/* Agora Digital — Package Builder
   Add this after styles.css.
*/


/* =========================================================
   ADD-ON INTRO
   ========================================================= */

.addon-intro {
    margin-top: 18px;
    padding: 18px 20px 4px;
}


.addon-intro > small {
    display: block;

    margin-bottom: 8px;

    color: var(--accent-deep);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .11em;
}


.addon-intro strong {
    display: block;

    font-family: var(--serif);

    font-size: 21px;
    font-weight: 600;

    line-height: 1.2;
}


.addon-intro p {
    margin: 6px 0 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   ADD-ON LIST
   ========================================================= */

#addonList {
    gap: 11px;
}


#addonList .addon-row {
    position: relative;

    overflow: hidden;

    grid-template-columns:
        46px
        minmax(0, 1fr)
        auto
        42px;

    min-height: 82px;

    padding:
            15px
            16px;

    border-radius: 16px;

    background:
            linear-gradient(
                    145deg,
                    color-mix(
                            in srgb,
                            var(--bg) 94%,
                            var(--accent-soft)
                    ),
                    var(--bg)
            );
}


/* Accent line when selected */

#addonList .addon-row::before {
    content: "";

    position: absolute;

    left: 0;
    top: 16px;
    bottom: 16px;

    width: 2px;

    border-radius: 99px;

    background: transparent;

    transition:
            background .2s ease;
}


/* Selected add-on */

#addonList .addon-row:has(input:checked) {
    border-color:
            color-mix(
                    in srgb,
                    var(--accent) 56%,
                    var(--line)
            );

    background:
            color-mix(
                    in srgb,
                    var(--accent-soft) 34%,
                    var(--bg)
            );
}


#addonList .addon-row:has(input:checked)::before {
    background: var(--accent);
}


/* =========================================================
   ADD-ON ICON
   ========================================================= */

#addonList .addon-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    font-family: var(--serif);

    font-size: 15px;
}


/* =========================================================
   ADD-ON TEXT
   ========================================================= */

#addonList .addon-copy > strong {
    display: block;

    margin: 0 0 4px;

    font-size: 13px;

    color: var(--text);
}


#addonList .addon-copy > span {
    display: block;

    max-width: 470px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   ADD-ON PRICE
   ========================================================= */

#addonList .addon-price {
    align-self: center;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}


/* Custom feature */

#addonList .addon-price.quote-price {
    color: var(--accent-deep);

    font-size: 10px;

    letter-spacing: .04em;

    text-transform: uppercase;
}


#addonList .switch {
    align-self: center;
}


/* =========================================================
   ALWAYS INCLUDED
   ========================================================= */

.included-list span {
    position: relative;

    padding-left: 16px;
}


.included-list span::before {
    content: "✓";

    position: absolute;

    left: 0;

    color: var(--accent-deep);

    font-weight: 700;
}


/* =========================================================
   SUMMARY — CUSTOM FEATURE
   ========================================================= */

.package-summary
.summary-lines
.quote-line
strong {

    color: var(--accent-deep);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .04em;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.package-builder-empty {
    padding: 20px;

    border:
            1px dashed
            var(--line);

    border-radius: 14px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   CURRENCY SWITCHER
   ========================================================= */

.currency-switcher {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    margin:
            -6px
            0
            14px;
}


.currency-label {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: .08em;

    color: var(--muted);

    transition:
            color .2s ease,
            opacity .2s ease;
}


.currency-label.active {
    color: var(--accent-deep);
}


/* Toggle container */

.currency-toggle {
    position: relative;

    width: 48px;
    height: 26px;

    flex: 0 0 auto;
}


.currency-toggle input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


/* Slider background */

.currency-slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 999px;

    background:
            color-mix(
                    in srgb,
                    var(--text) 18%,
                    var(--bg)
            );

    transition:
            background .22s ease;
}


/* Slider circle */

.currency-slider::after {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: var(--bg);

    box-shadow:
            0 2px 8px
            rgba(0, 0, 0, .16);

    transition:
            transform .22s ease;
}


/* MKD selected */

.currency-toggle
input:checked
+ .currency-slider {

    background: var(--accent);
}


.currency-toggle
input:checked
+ .currency-slider::after {

    transform:
            translateX(22px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    #addonList .addon-row {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            42px;
    }


    #addonList .addon-price {
        grid-column: 2;

        margin-top: 2px;
    }


    #addonList .switch {
        grid-column: 3;

        grid-row:
                1 / span 2;
    }


    .addon-intro {
        padding-left: 4px;
        padding-right: 4px;
    }


    .currency-switcher {
        justify-content: flex-start;

        margin-top: 0;
    }

}

/* =========================================================
   PACKAGE BUILDER — RESPONSIVE SAFETY PASS
   ========================================================= */

@media (max-width: 720px) {
    #addonList,
    #addonList .addon-row,
    #addonList .addon-copy {
        width: 100%;
        min-width: 0;
    }

    #addonList .addon-row {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 10px;
        padding: 13px 12px;
    }

    #addonList .addon-copy > strong,
    #addonList .addon-copy > span {
        overflow-wrap: anywhere;
    }

    .addon-intro {
        padding-left: 0;
        padding-right: 0;
    }

    .currency-switcher {
        max-width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    #addonList .addon-row {
        grid-template-columns: 36px minmax(0, 1fr) 38px;
        gap: 9px;
        padding-left: 10px;
        padding-right: 10px;
    }

    #addonList .addon-icon {
        width: 36px;
        height: 36px;
    }
}

