.smart-goal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

.smart-goal-wrapper h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--gp-heading-color, #222);
}

.smart-goal-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    border-bottom: 2px solid var(--gp-accent-color, #1e73be);
}

.smart-goal-tabs .tab {
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: #efefef;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    color: var(--gp-text-color, #1e73be);
    cursor: pointer;
}

.smart-goal-tabs .tab.active {
    background-color: var(--gp-accent-color, #1e73be);
    color: var(--gp-button-color, #fff);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.goal-top-field {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 10px;
    max-width: 50%;
    width: 100%;
}

.goal-range-field {
    width: 100%;
}

.goal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.goal-row label {
    flex: 1 1 50%;
    font-weight: bold;
    color: var(--gp-text-color, #333);
}

.goal-row input[type="number"] {
    max-width: 150px;
}

.smart-goal-wrapper input[type="range"] {
    width: 100%;
    accent-color: var(--gp-accent-color, #4da784);
    /* for browsers that support it */
}


/* Track styling (WebKit browsers: Chrome, Safari, Edge) */

.smart-goal-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #ccc;
    /* set track background */
    border-radius: 3px;
}


/* Track styling (Firefox) */

.smart-goal-wrapper input[type="range"]::-moz-range-track {
    height: 6px;
    background: #ccc;
    border-radius: 3px;
}


/* Thumb styling (WebKit) */

.smart-goal-wrapper input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gp-accent-color, #1e73be);
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    margin-top: -6px;
    /* align thumb vertically with the track */
}

.goal-button {
    padding: 14px 32px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    border: none;
    background-color: var(--gp-button-background, #1e73be);
    color: var(--gp-button-color, #fff);
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.highlight-row span {
    font-size: 20px;
    font-weight: bold;
    color: #00695c;
}

@media (max-width: 768px) {
    .goal-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .goal-row input {
        width: 100% !important;
        max-width: 100%;
    }
}