/* ==============================================================
   Novello Pre-Wheel Customer Interest
   v1.0.0
   ============================================================== */

.nv-interest-picker {
    min-width: 0;
    margin: 4px 0 17px;
    padding: 14px 14px 13px;

    border: 1px solid rgba(184, 28, 94, .10);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(255,248,251,.98)
        );
}

.nv-interest-title {
    width: 100%;
    margin: 0;
    padding: 0;

    color: #382b31;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
}

.nv-interest-subtitle {
    margin-top: 3px;

    color: #8e7e85;

    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.55;
}

.nv-interest-subtitle span {
    color: #b09fa7;
}

.nv-interest-chips {
    margin-top: 11px;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nv-interest-chip {
    position: relative;

    display: inline-flex;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nv-interest-chip input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.nv-interest-chip span {
    min-height: 34px;

    padding: 7px 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(93, 69, 80, .11);
    border-radius: 999px;

    color: #65555d;
    background: #fff;

    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;

    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.nv-interest-chip:hover span {
    border-color: rgba(216, 24, 103, .22);

    color: #a91453;
    background: #fffafd;
}

.nv-interest-chip input:checked + span {
    border-color: rgba(215, 23, 102, .32);

    color: #b31255;

    background:
        linear-gradient(
            145deg,
            #fff4f8,
            #fffafd
        );

    box-shadow:
        0 0 0 3px rgba(218, 24, 104, .055);
}

.nv-interest-chip input:focus-visible + span {
    outline: 2px solid rgba(218, 24, 104, .28);
    outline-offset: 2px;
}

.nv-interest-chip:active span {
    transform: scale(.97);
}

.nv-interest-other-wrap {
    margin-top: 9px;
}

.nv-interest-other {
    width: 100%;
    min-height: 41px;

    padding: 9px 12px;

    border: 1px solid rgba(91, 67, 78, .13);
    border-radius: 11px;

    outline: none;

    color: #45353d;
    background: #fff;

    font: inherit;
    font-size: 11.5px;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.nv-interest-other::placeholder {
    color: #b3a5ab;
}

.nv-interest-other:focus {
    border-color: rgba(215, 23, 102, .34);

    box-shadow:
        0 0 0 3px rgba(215, 23, 102, .06);
}

@media (max-width: 520px) {

    .nv-interest-picker {
        margin-bottom: 15px;
        padding: 12px;
    }

    .nv-interest-title {
        font-size: 12px;
    }

    .nv-interest-chips {
        gap: 6px;
    }

    .nv-interest-chip span {
        min-height: 32px;

        padding: 7px 9px;

        font-size: 10px;
    }
}


/* ==============================================================
   V1.1 — Theme-aware Premium Interest Chips
   ============================================================== */

.nv-interest-picker {
    --interest-accent: #d71968;
    --interest-accent-dark: #971246;
    --interest-accent-soft: rgba(215, 25, 104, .08);
    --interest-accent-ring: rgba(215, 25, 104, .16);

    position: relative;
    overflow: hidden;
}

.nv-interest-picker::before {
    content: "";

    position: absolute;
    inset-inline-start: 0;
    top: 0;

    width: 4px;
    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--interest-accent),
            var(--interest-accent-dark)
        );
}

.nv-interest-title {
    color: #35252d;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
}

.nv-interest-subtitle {
    margin-top: 3px;

    color: #8c7d84;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.nv-interest-subtitle span {
    color: var(--interest-accent);

    font-weight: 800;
}

.nv-interest-chips {
    margin-top: 12px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nv-interest-chip {
    position: relative;

    margin: 0;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.nv-interest-chip input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.nv-interest-chip > span {
    min-height: 38px;

    padding: 8px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid rgba(92, 65, 78, .11);
    border-radius: 999px;

    color: #5b4851;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fffafb
        );

    box-shadow:
        0 4px 12px rgba(74, 45, 59, .035);

    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.25;

    transition:
        transform .16s ease,
        border-color .16s ease,
        color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

@media (hover: hover) {
    .nv-interest-chip:hover > span {
        transform: translateY(-1px);

        border-color: var(--interest-accent-ring);

        color: var(--interest-accent-dark);

        box-shadow:
            0 7px 18px var(--interest-accent-soft);
    }
}

.nv-interest-chip input:focus-visible + span {
    outline: 3px solid var(--interest-accent-ring);
    outline-offset: 2px;
}

.nv-interest-chip input:checked + span {
    border-color: transparent;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--interest-accent),
            var(--interest-accent-dark)
        );

    box-shadow:
        0 8px 20px var(--interest-accent-ring);

    transform: translateY(-1px);
}

.nv-interest-chip input:checked + span::before {
    content: "✓";

    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--interest-accent-dark);
    background: rgba(255,255,255,.92);

    font-size: 10px;
    font-weight: 900;
}


/* --------------------------------------------------------------
   Saudi National Day
   -------------------------------------------------------------- */

.nw-theme-national-day .nv-interest-picker {
    --interest-accent: #087743;
    --interest-accent-dark: #045d33;
    --interest-accent-soft: rgba(8, 119, 67, .08);
    --interest-accent-ring: rgba(8, 119, 67, .18);

    border-color: rgba(8, 119, 67, .12);

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(203, 164, 77, .08),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7fcf9
        );
}

.nw-theme-national-day
.nv-interest-chip > span {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fcfa
        );
}

.nw-theme-national-day
.nv-interest-chip input:checked + span {
    background:
        linear-gradient(
            135deg,
            #0a8149,
            #045f35
        );

    box-shadow:
        0 8px 20px rgba(8, 119, 67, .18);
}


/* --------------------------------------------------------------
   Mobile
   -------------------------------------------------------------- */

@media (max-width: 600px) {
    .nv-interest-picker {
        padding: 13px 12px 12px;
    }

    .nv-interest-chips {
        gap: 7px;
    }

    .nv-interest-chip > span {
        min-height: 36px;

        padding: 7px 11px;

        font-size: 11px;
    }
}


/* ==============================================================
   V1.2 — Mobile App Style Interest Selector
   Clean tiles · No icons · Premium touch UI
   ============================================================== */

.nv-interest-picker {
    padding: 15px 14px 14px;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98),
            rgba(255,255,255,.94)
        );

    box-shadow:
        0 10px 30px rgba(29, 61, 46, .045),
        inset 0 1px 0 rgba(255,255,255,.92);
}


/* --------------------------------------------------------------
   Heading
   -------------------------------------------------------------- */

.nv-interest-title {
    width: 100%;

    margin: 0;
    padding: 0 2px;

    color: #17261f;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.65;
}

.nv-interest-subtitle {
    margin-top: 5px;
    padding: 0 2px;

    color: #7a847f;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.65;
}

.nv-interest-subtitle span {
    color: var(--interest-accent);

    font-weight: 800;
}


/* --------------------------------------------------------------
   App-style selection grid
   -------------------------------------------------------------- */

.nv-interest-chips {
    margin-top: 13px;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}


/* --------------------------------------------------------------
   Tile
   -------------------------------------------------------------- */

.nv-interest-chip {
    position: relative;

    min-width: 0;
    min-height: 50px;

    margin: 0;

    display: flex;
    align-items: stretch;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nv-interest-chip input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}


/* --------------------------------------------------------------
   Default tile
   -------------------------------------------------------------- */

.nv-interest-chip > span {
    width: 100%;
    min-height: 50px;

    padding: 11px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(37, 64, 51, .105);
    border-radius: 13px;

    color: #27372f;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfcfb
        );

    box-shadow:
        0 2px 5px rgba(30, 58, 45, .025),
        0 7px 18px rgba(30, 58, 45, .035);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;

    text-align: center;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease;
}


/* --------------------------------------------------------------
   Touch interaction
   -------------------------------------------------------------- */

.nv-interest-chip:active > span {
    transform: scale(.975);
}


/* --------------------------------------------------------------
   Selected
   -------------------------------------------------------------- */

.nv-interest-chip input:checked + span {
    border-color: var(--interest-accent);

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--interest-accent),
            var(--interest-accent-dark)
        );

    box-shadow:
        0 8px 20px var(--interest-accent-ring),
        inset 0 1px 0 rgba(255,255,255,.14);

    transform: translateY(-1px);
}


/* --------------------------------------------------------------
   Keyboard focus
   -------------------------------------------------------------- */

.nv-interest-chip input:focus-visible + span {
    outline: 3px solid var(--interest-accent-ring);
    outline-offset: 2px;
}


/* --------------------------------------------------------------
   Last option / Other
   -------------------------------------------------------------- */

.nv-interest-chip:last-child > span {
    border-style: dashed;

    color: #5e6c65;

    background:
        rgba(255,255,255,.72);

    box-shadow: none;
}

.nv-interest-chip:last-child input:checked + span {
    border-style: solid;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--interest-accent),
            var(--interest-accent-dark)
        );

    box-shadow:
        0 8px 20px var(--interest-accent-ring);
}


/* --------------------------------------------------------------
   Other custom field
   -------------------------------------------------------------- */

.nv-interest-other-wrap {
    margin-top: 10px;
}

.nv-interest-other {
    width: 100%;
    min-height: 48px;

    padding: 11px 14px;

    border: 1px solid rgba(36, 63, 50, .11);
    border-radius: 13px;

    color: #26372f;
    background: #fff;

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

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.nv-interest-other::placeholder {
    color: #a0aaa5;
}

.nv-interest-other:focus {
    border-color: var(--interest-accent);

    box-shadow:
        0 0 0 3px var(--interest-accent-ring);
}


/* --------------------------------------------------------------
   National Day theme
   -------------------------------------------------------------- */

body.nw-theme-national-day .nv-interest-picker {
    --interest-accent: #078447;
    --interest-accent-dark: #056637;
    --interest-accent-soft: rgba(7,132,71,.075);
    --interest-accent-ring: rgba(7,132,71,.17);
}


/* --------------------------------------------------------------
   Default Novello theme
   -------------------------------------------------------------- */

body:not(.nw-theme-national-day) .nv-interest-picker {
    --interest-accent: #d71968;
    --interest-accent-dark: #a9114f;
    --interest-accent-soft: rgba(215,25,104,.075);
    --interest-accent-ring: rgba(215,25,104,.16);
}


/* --------------------------------------------------------------
   Premium wide tile for long labels
   -------------------------------------------------------------- */

.nv-interest-chip:has(
    input[value="مورفيوس / شد البشرة"]
) > span,
.nv-interest-chip:has(
    input[value="تفتيح وعلاج التصبغات"]
) > span {
    font-size: 11.5px;
}


/* --------------------------------------------------------------
   Small mobile
   -------------------------------------------------------------- */

@media (max-width: 390px) {

    .nv-interest-picker {
        padding:
            13px 11px 12px;
    }

    .nv-interest-chips {
        gap: 7px;
    }

    .nv-interest-chip,
    .nv-interest-chip > span {
        min-height: 47px;
    }

    .nv-interest-chip > span {
        padding:
            9px 8px;

        border-radius: 12px;

        font-size: 11.3px;
    }

}


/* --------------------------------------------------------------
   Very narrow devices
   -------------------------------------------------------------- */

@media (max-width: 330px) {

    .nv-interest-chips {
        grid-template-columns: 1fr;
    }

}


/* --------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .nv-interest-chip > span,
    .nv-interest-other {
        transition: none;
    }

}
