:root {
    --pk-bg: #F6F8FA;
    --pk-surface: #FFFFFF;
    --pk-surface-2: #F2F6F8;
    --pk-ink: #172027;
    --pk-muted: #6F7B84;
    --pk-line: #DCE4EA;
    --pk-blue: #3D78E8;
    --pk-blue-2: #245DC4;
    --pk-blue-tint: #EAF2FF;
    --pk-green: #159B69;
    --pk-green-bg: #E8F8F1;
    --pk-orange: #E97725;
    --pk-amber: #FFC069;
    --pk-shadow: 0 2px 10px rgba(23,32,39,.07);
    --pk-shadow-lg: 0 18px 40px rgba(23,32,39,.12);
    --pk-radius: 14px;
    --pk-r-sm: 9px;
    --pk-r-md: 12px;
    --pk-r-lg: 16px;
    --pk-ease: all .22s ease;
}


html[data-theme="dark"] {
    --pk-bg: #090D10;
    --pk-surface: #12181D;
    --pk-surface-2: #161D23;
    --pk-ink: #EAF1F2;
    --pk-muted: #93A0A8;
    --pk-line: #232C32;
    --pk-blue: #5B9BFF;
    --pk-blue-2: #78ADFF;
    --pk-blue-tint: #152238;
    --pk-green: #33D188;
    --pk-green-bg: #0E2A1E;
    --pk-orange: #E97725;
    --pk-amber: #FFC069;
    --pk-shadow: 0 2px 10px rgba(0,0,0,.35);
    --pk-shadow-lg: 0 18px 40px rgba(0,0,0,.5);
}


* {
    box-sizing: border-box
}


html {
    scroll-behavior: smooth
}


body {
    margin: 0;
    background: var(--pk-bg);
    color: var(--pk-ink);
    font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    line-height: 1.5;
    padding-bottom: 0;
    transition: padding-bottom .28s ease
}


    body.ps-tray-open {
        padding-bottom: 0
    }


@media(max-width:760px) {
    body.ps-tray-open {
        padding-bottom: 0
    }
}


a {
    color: inherit;
    text-decoration: none
}


button,
input,
select {
    font: inherit
}


.ps-wrap {
    width: min(1440px,calc(100% - 40px));
    margin: auto
}

/* PAGE INTRO */


.ps-breadcrumb {
    padding: 18px 0 8px;
    color: var(--pk-muted);
    font-size: 12px
}


    .ps-breadcrumb a {
        color: var(--pk-blue)
    }


.ps-brand-intro {
    margin-bottom: 20px
}


    .ps-brand-intro h1 {
        font-size: clamp(28px,4vw,42px);
        line-height: 1.08;
        margin: 4px 0 9px;
        letter-spacing: -.7px
    }


    .ps-brand-intro p {
        max-width: 900px;
        color: var(--pk-muted);
        margin: 0;
        font-size: 15px
    }

        .ps-brand-intro p .ps-intro-link {
            color: var(--pk-blue-2);
            font-weight: 700;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 2px;
        }

            .ps-brand-intro p .ps-intro-link:hover {
                color: var(--pk-blue);
            }

.ps-internal-sidebar-widget {
    padding: 15px
}

.ps-internal-sidebar-note {
    margin: -5px 0 10px;
    color: var(--pk-muted);
    font-size: 11px;
    line-height: 1.45
}

.ps-internal-sidebar-links {
    display: flex;
    flex-direction: column
}

    .ps-internal-sidebar-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 2px;
        border-bottom: 1px solid var(--pk-line);
        color: var(--pk-blue-2);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
    }

        .ps-internal-sidebar-links a:last-child {
            border-bottom: 0
        }

        .ps-internal-sidebar-links a:hover {
            color: var(--pk-blue);
            text-decoration: underline
        }

        .ps-internal-sidebar-links a b {
            flex: 0 0 auto;
            font-size: 17px;
            line-height: 1;
            color: var(--pk-blue)
        }

/* LAYOUT */


.ps-content-layout {
    width: min(1440px,calc(100% - 40px));
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 24px;
    align-items: start
}


.ps-page-main {
    min-width: 0
}


.ps-sidebar {
    width: 300px;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px
}


.ps-card,
.ps-widget {
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow)
}

/* FILTER / TOOL BAR */


.ps-controlbar {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 14px
}


.ps-search {
    height: 42px;
    flex: 1;
    min-width: 230px;
    border: 1px solid var(--pk-line);
    border-radius: 10px;
    background: var(--pk-surface-2);
    color: var(--pk-ink);
    padding: 0 13px;
    outline: none
}


.ps-select {
    height: 42px;
    border: 1px solid var(--pk-line);
    border-radius: 10px;
    background: var(--pk-surface-2);
    color: var(--pk-ink);
    padding: 0 11px
}


.ps-filter-pills {
    display: flex;
    gap: 7px;
    overflow: auto;
    width: 100%;
    padding-top: 2px
}


.ps-filter-pill {
    border: 1px solid var(--pk-line);
    background: var(--pk-surface-2);
    color: var(--pk-muted);
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer
}


    .ps-filter-pill.active {
        background: var(--pk-blue);
        border-color: var(--pk-blue);
        color: #fff
    }

/* PHONE LIST */


.ps-results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 10px
}


    .ps-results-head h2 {
        font-size: 20px;
        margin: 0
    }


    .ps-results-head p {
        margin: 0;
        color: var(--pk-muted);
        font-size: 12px
    }

.ps-phone-list {
    display: flex;
    flex-direction: column;
    gap: 14px
}


.ps-phone-card {
    padding: 16px;
    position: relative;
    overflow: hidden
}


.ps-phone-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 11px
}


.ps-phone-title-wrap {
    min-width: 0
}


.ps-phone-title {
    font-size: 19px;
    font-weight: 850;
    line-height: 1.2;
    margin: 0 0 4px
}


    .ps-phone-title:hover {
        color: var(--pk-blue)
    }


.ps-phone-meta {
    font-size: 12px;
    color: var(--pk-muted)
}


.ps-compare-check {
    border: 0;
    background: transparent;
    color: var(--pk-blue);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    padding: 5px
}


    .ps-compare-check.is-added {
        color: var(--pk-green)
    }

.ps-phone-body {
    display: grid;
    grid-template-columns: 190px minmax(0,1fr) 165px;
    gap: 18px;
    align-items: center
}


.ps-phone-visual {
    height: 230px;
    border-radius: 14px;
    background: linear-gradient(145deg,var(--pk-surface-2),var(--pk-surface));
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden
}


    .ps-phone-visual img {
        width: 175px;
        height: 215px;
        object-fit: contain
    }


.ps-score-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--pk-green);
    color: #fff;
    border-radius: 10px;
    padding: 7px 9px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15
}


    .ps-score-badge strong {
        display: block;
        font-size: 20px
    }

.ps-key-specs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px
}


.ps-spec-row {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--pk-line);
    border-radius: 10px;
    background: var(--pk-surface-2)
}


    .ps-spec-row small {
        display: block;
        color: var(--pk-muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: 2px
    }


    .ps-spec-row b {
        display: block;
        font-size: 12px;
        line-height: 1.35
    }

.ps-phone-side {
    border-left: 1px solid var(--pk-line);
    padding-left: 17px
}


.ps-price {
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.4px
}


.ps-price-label {
    font-size: 11px;
    color: var(--pk-muted);
    margin-top: 1px
}


.ps-offer-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 13px
}


.ps-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 32px;
    padding: 0;
    color: var(--pk-blue);
    font-weight: 850;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: 0;
    white-space: nowrap
}

    .ps-buy-now::after {
        content: ' →';
        font-weight: 900
    }

    .ps-buy-now:hover {
        text-decoration: underline
    }

.ps-phone-card.offer-open .ps-buy-now {
    display: none !important
}

.ps-phone-card.offer-open .ps-retailer-actions {
    display: grid !important
}

.ps-buy-now[hidden] {
    display: none !important
}

.ps-retailer-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 34px;
    gap: 6px;
    align-items: stretch
}

    .ps-retailer-actions[hidden] {
        display: none !important
    }

.ps-retailer-actions {
    min-width: 0
}

    .ps-retailer-actions .ps-affiliate {
        min-width: 0;
        white-space: nowrap
    }

.ps-offer-close {
    height: 38px;
    width: 34px;
    border-radius: 9px;
    border: 1px solid var(--pk-line);
    background: var(--pk-surface);
    color: var(--pk-muted);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: grid;
    place-items: center
}

    .ps-offer-close:hover {
        border-color: var(--pk-red);
        color: var(--pk-red);
        background: var(--pk-red-bg)
    }

.ps-affiliate {
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--pk-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer
}


    .ps-affiliate.amazon {
        background: #fff;
        color: #151515;
        border-color: #ddd
    }


    .ps-affiliate.flipkart {
        background: #2877e6;
        color: #fff;
        border-color: #2877e6
    }


.ps-details-btn {
    display: block;
    text-align: center;
    margin-top: 9px;
    color: var(--pk-blue);
    font-size: 12px;
    font-weight: 800
}


.ps-award {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 8px;
    border-radius: 20px;
    background: var(--pk-green-bg);
    color: var(--pk-green);
    font-size: 10px;
    font-weight: 800
}

/* SIDEBAR */


.ps-widget {
    padding: 15px
}


    .ps-widget h3 {
        font-size: 15px;
        margin: 0 0 11px
    }


.ps-widget-search {
    display: flex;
    gap: 7px
}


    .ps-widget-search input {
        height: 39px;
        width: 100%;
        min-width: 0;
        border: 1px solid var(--pk-line);
        border-radius: 9px;
        background: var(--pk-surface-2);
        color: var(--pk-ink);
        padding: 0 10px
    }


    .ps-widget-search button {
        width: 40px;
        border: 0;
        border-radius: 9px;
        background: var(--pk-blue);
        color: #fff
    }


.ps-widget-list a {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--pk-line)
}


    .ps-widget-list a:last-child {
        border-bottom: 0
    }


.ps-rank {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 7px;
    background: var(--pk-surface-2);
    display: grid;
    place-items: center;
    color: var(--pk-muted);
    font-size: 11px;
    font-weight: 850
}


.ps-widget-list b {
    font-size: 12px
}

.ps-widget-list span {
    display: block;
    color: var(--pk-muted);
    font-size: 11px
}


.ps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.ps-tag {
    padding: 6px 9px;
    border: 1px solid var(--pk-line);
    border-radius: 20px;
    background: var(--pk-surface-2);
    font-size: 11px
}

/* FULL WIDTH SECTIONS */


.ps-full-width {
    width: min(1440px,calc(100% - 40px));
    margin: 24px auto
}


.ps-wide {
    padding: 22px
}


.ps-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-bottom: 13px
}


    .ps-section-head h2 {
        font-size: 21px;
        margin: 0
    }

    .ps-section-head p {
        font-size: 12px;
        color: var(--pk-muted);
        margin: 0
    }


.ps-compare-grid {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    gap: 12px;
    align-items: center
}


.ps-compare-phone {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--pk-line);
    border-radius: 13px;
    background: var(--pk-surface-2);
    display: grid;
    grid-template-columns: 75px minmax(0,1fr);
    gap: 12px;
    align-items: center
}


    .ps-compare-phone img {
        width: 70px;
        height: 90px;
        object-fit: contain
    }


    .ps-compare-phone b {
        font-size: 14px;
        overflow-wrap: break-word
    }

    .ps-compare-phone span {
        display: block;
        color: var(--pk-muted);
        font-size: 11px;
        margin-top: 3px;
        overflow-wrap: break-word
    }


.ps-vs {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pk-blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900
}


.ps-article-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}


.ps-article {
    padding: 16px
}

    .ps-article h3 {
        font-size: 14px;
        margin: 0 0 5px
    }

    .ps-article p {
        font-size: 12px;
        color: var(--pk-muted);
        margin: 0
    }

/* PhoneScope compact compare tray */


.ps-compare-tray {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translate(-50%,calc(100% + 20px));
    width: min(960px,calc(100% - 24px));
    max-height: none;
    height: auto;
    z-index: 2000;
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(23,32,39,.20);
    transition: transform .22s ease;
    overflow: hidden;
}


html[data-theme="dark"] .ps-compare-tray {
    box-shadow: 0 -10px 30px rgba(0,0,0,.42);
}



/* Compare tray must include header + slots + action row.
   Do not clip the Compare Phones button. */
.ps-compare-tray.open {
    transform: translate(-50%,0)
}

.ps-compare-tray .ps-compare-actions {
    display: flex !important;
    visibility: visible !important;
}

.ps-compare-tray .ps-compare-now {
    display: block !important;
    visibility: visible !important;
}


.ps-compare-head {
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pk-line);
}


    .ps-compare-head strong {
        font-size: 15px
    }


    .ps-compare-head button {
        border: 1px solid var(--pk-line);
        background: var(--pk-surface-2);
        color: var(--pk-ink);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
    }


.ps-compare-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 86px;
}


.ps-compare-slot {
    position: relative;
    min-width: 0;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    border-right: 1px solid var(--pk-line);
}


    .ps-compare-slot:last-child {
        border-right: 0
    }


    .ps-compare-slot img {
        width: 50px;
        height: 68px;
        object-fit: contain
    }


    .ps-compare-slot .remove {
        position: absolute;
        right: 6px;
        top: 4px;
        z-index: 2;
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--pk-line);
        background: var(--pk-surface);
        border-radius: 50%;
        color: var(--pk-ink);
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
    }


        .ps-compare-slot .remove:hover {
            border-color: var(--pk-red);
            color: var(--pk-red)
        }


    .ps-compare-slot h4 {
        margin: 0 20px 2px 0;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .ps-compare-slot .tray-price {
        font-size: 14px;
        font-weight: 850
    }

.ps-tray-add-phone {
    width: 100%;
    min-height: 62px;
    border: 1px dashed var(--pk-line);
    border-radius: 11px;
    background: var(--pk-surface-2);
    color: var(--pk-blue);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: var(--pk-ease);
}


    .ps-tray-add-phone:hover {
        border-color: var(--pk-blue);
        background: var(--pk-blue-tint);
    }


.ps-empty {
    color: var(--pk-muted);
    font-size: 11px
}


.ps-compare-actions {
    min-height: 48px;
    height: auto;
    border-top: 1px solid var(--pk-line);
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.ps-compare-hint {
    flex: 1;
    min-width: 0;
    color: var(--pk-muted);
    font-size: 11px;
}


.ps-remove-all {
    border: 0;
    background: none;
    color: var(--pk-ink);
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
}


.ps-compare-now {
    border: 0;
    border-radius: 9px;
    padding: 9px 16px;
    background: var(--pk-blue);
    color: #fff;
    font-weight: 850;
    font-size: 12px;
    cursor: pointer;
}


    .ps-compare-now:disabled {
        opacity: .55;
        cursor: not-allowed;
        display: block;
        visibility: visible
    }


@media(max-width:760px) {


    .ps-compare-tray {
        width: calc(100% - 12px);
        border-radius: 15px;
        bottom: 6px;
        max-height: 112px
    }


    .ps-compare-head {
        min-height: 43px
    }


    .ps-compare-slots {
        min-height: 78px
    }


    .ps-compare-slot {
        padding: 7px 8px;
        grid-template-columns: 42px minmax(0,1fr);
        gap: 7px;
    }


        .ps-compare-slot img {
            width: 40px;
            height: 58px
        }


        .ps-compare-slot h4 {
            font-size: 11px
        }


        .ps-compare-slot .tray-price {
            font-size: 13px
        }


    .ps-compare-actions {
        min-height: 47px;
        padding: 6px 9px
    }


    .ps-compare-hint {
        display: none
    }


    .ps-remove-all {
        padding: 8px 5px
    }


    .ps-compare-now {
        flex: 1;
        padding: 9px 10px
    }
}

@media(max-width:1080px) {


    .ps-phone-body {
        grid-template-columns: 160px minmax(0,1fr)
    }


    .ps-phone-side {
        grid-column: 2;
        border-left: 0;
        border-top: 1px solid var(--pk-line);
        padding: 12px 0 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        align-items: center
    }


    .ps-offer-stack {
        margin-top: 0
    }
}


@media(max-width:820px) {

    .ps-content-layout {
        grid-template-columns: 1fr;
        width: calc(100% - 28px)
    }


    .ps-sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr))
    }


    .ps-full-width {
        width: calc(100% - 28px)
    }
}


@media(max-width:620px) {


    .ps-wrap {
        width: calc(100% - 28px)
    }


    .ps-brand-intro h1 {
        font-size: 29px
    }

    .ps-brand-intro p {
        font-size: 13px
    }


    .ps-phone-body {
        grid-template-columns: 1fr
    }


    .ps-phone-visual {
        height: 240px
    }

        .ps-phone-visual img {
            height: 225px
        }


    .ps-phone-side {
        grid-column: auto;
        display: block
    }


    .ps-offer-stack {
        display: grid;
        grid-template-columns: 1fr 1fr
    }


    .ps-details-btn {
        grid-column: 1/-1
    }


    .ps-key-specs {
        grid-template-columns: 1fr
    }


    .ps-sidebar {
        grid-template-columns: 1fr
    }


    .ps-compare-slots {
        grid-template-columns: 1fr
    }


    .ps-compare-slot {
        border-right: 0;
        border-bottom: 1px solid var(--pk-line);
        min-height: 130px
    }


        .ps-compare-slot:last-child {
            border-bottom: 0
        }


    .ps-compare-tray {
        width: 100%;
        border-radius: 20px 20px 0 0
    }


    .ps-compare-grid,
    .ps-article-grid {
        grid-template-columns: 1fr
    }


    .ps-vs {
        margin: auto
    }
}

/* PHONE SCOPE V2: compact cards, reliable mobile menu, list/grid switch */


.ps-view-toggle {
    display: flex;
    gap: 5px;
    margin-left: auto
}

.ps-view-btn {
    height: 40px;
    min-width: 40px;
    border: 1px solid var(--pk-line);
    border-radius: 9px;
    background: var(--pk-surface-2);
    color: var(--pk-muted);
    font-weight: 800;
    cursor: pointer
}

    .ps-view-btn.active {
        background: var(--pk-blue);
        border-color: var(--pk-blue);
        color: #fff
    }


.ps-phone-card {
    padding: 12px
}

.ps-phone-top {
    margin-bottom: 8px
}

.ps-phone-title {
    font-size: 16px
}

.ps-phone-body {
    grid-template-columns: 145px minmax(0,1fr) 145px;
    gap: 13px
}

.ps-phone-visual {
    height: 185px
}

    .ps-phone-visual img {
        width: 135px;
        height: 172px
    }

.ps-score-badge {
    left: 7px;
    top: 7px;
    padding: 5px 7px
}

    .ps-score-badge strong {
        font-size: 17px
    }

.ps-key-specs {
    gap: 6px
}

.ps-spec-row {
    padding: 7px 8px
}

    .ps-spec-row small {
        font-size: 9px
    }

    .ps-spec-row b {
        font-size: 11px
    }

.ps-price {
    font-size: 20px
}

.ps-affiliate {
    height: 34px;
    font-size: 11px
}

.ps-phone-side {
    padding-left: 13px
}

.ps-award {
    margin-top: 7px
}


.ps-phone-list.grid-view {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px
}

    .ps-phone-list.grid-view .ps-phone-card {
        height: 100%
    }

    .ps-phone-list.grid-view .ps-phone-top {
        min-height: 52px
    }

    .ps-phone-list.grid-view .ps-phone-body {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .ps-phone-list.grid-view .ps-phone-visual {
        height: 205px
    }

        .ps-phone-list.grid-view .ps-phone-visual img {
            height: 190px
        }

    .ps-phone-list.grid-view .ps-phone-side {
        border-left: 0;
        border-top: 1px solid var(--pk-line);
        padding: 10px 0 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .ps-phone-list.grid-view .ps-offer-stack {
        margin-top: 0
    }

    .ps-phone-list.grid-view .ps-details-btn {
        grid-column: 1/-1
    }

@media(max-width:1080px) {
    .ps-phone-body {
        grid-template-columns: 125px minmax(0,1fr)
    }

    .ps-phone-side {
        grid-column: 2;
        border-left: 0;
        border-top: 1px solid var(--pk-line);
        padding: 10px 0 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    .ps-offer-stack {
        margin-top: 0
    }
}


@media(max-width:760px) {
    .ps-phone-list.grid-view {
        grid-template-columns: 1fr
    }

    .ps-phone-body {
        grid-template-columns: 1fr
    }

    .ps-phone-side {
        grid-column: auto;
        display: block
    }

    .ps-offer-stack {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .ps-details-btn {
        grid-column: 1/-1
    }

    .ps-view-toggle {
        width: 100%;
        margin-left: 0
    }

    .ps-controlbar .ps-search {
        min-width: 100%
    }
}

/* MOBILE MENU ACCORDION SUBMENUS */

/* SERIES BROWSE */


.ps-series-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px
}


.ps-series-card {
    border: 1px solid var(--pk-line);
    background: var(--pk-surface-2);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    font: inherit;
    color: var(--pk-ink)
}


    .ps-series-card:hover {
        border-color: var(--pk-blue);
        background: var(--pk-surface)
    }


.ps-series-emoji {
    font-size: 24px;
    display: block;
    margin-bottom: 6px
}


.ps-series-card b {
    display: block;
    font-size: 13px
}


.ps-series-card span {
    display: block;
    color: var(--pk-muted);
    font-size: 11px;
    margin-top: 2px
}


@media(max-width:820px) {
    .ps-series-grid {
        grid-template-columns: repeat(3,1fr)
    }
}


@media(max-width:520px) {
    .ps-series-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

/* RATING + ALERT WIDGETS */


.ps-rating-score {
    display: flex;
    align-items: center;
    gap: 12px
}


.ps-rating-num {
    font-size: 32px;
    font-weight: 900;
    line-height: 1
}


.ps-rating-stars {
    color: var(--pk-orange);
    font-size: 14px;
    letter-spacing: 1px
}


.ps-rating-count {
    color: var(--pk-muted);
    font-size: 11px;
    margin-top: 2px
}


.ps-alert-row {
    display: flex;
    gap: 7px;
    margin-top: 4px
}


    .ps-alert-row input {
        height: 39px;
        width: 100%;
        min-width: 0;
        border: 1px solid var(--pk-line);
        border-radius: 9px;
        background: var(--pk-surface-2);
        color: var(--pk-ink);
        padding: 0 10px
    }


    .ps-alert-row button {
        border: 0;
        border-radius: 9px;
        padding: 0 14px;
        background: var(--pk-blue);
        color: #fff;
        font-weight: 800;
        font-size: 12px;
        white-space: nowrap;
        cursor: pointer
    }


.ps-widget p.ps-widget-note {
    font-size: 11px;
    color: var(--pk-muted);
    margin: 6px 0 0
}

/* FAQ */


.ps-faq details {
    border: 1px solid var(--pk-line);
    border-radius: 13px;
    background: var(--pk-surface-2);
    padding: 3px 15px;
    margin-bottom: 9px
}


.ps-faq summary {
    padding: 13px 0;
    cursor: pointer;
    font-weight: 750;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px
}


    .ps-faq summary::-webkit-details-marker {
        display: none
    }


    .ps-faq summary:after {
        content: "+";
        font-size: 18px;
        color: var(--pk-blue);
        flex: none
    }


.ps-faq details[open] summary:after {
    content: "−"
}


.ps-faq p {
    margin: 0 0 13px;
    color: var(--pk-muted);
    font-size: 13px;
    line-height: 1.6
}

/* Compare must never change or hide the phone result container */


#phoneList {
    min-height: 40px
}

    /* COMPARE SAFETY: opening the compare tray must never hide the result list. */
    #phoneList > .ps-phone-card {
        display: block;
    }

        #phoneList > .ps-phone-card[hidden] {
            display: none !important;
        }

.ps-compare-tray.open {
    position: fixed;
}


#phoneList.grid-view {
    align-items: stretch
}


.ps-phone-card[style*="display: none"] {
    display: none !important
}

/* FINAL COMPARE DOCK SAFETY
   The compare tray is an overlay only. It must never alter the phone-list layout
   and it must never clip the Compare Phones action row. */
.ps-compare-tray {
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

    .ps-compare-tray .ps-compare-actions {
        display: flex !important;
        min-height: 52px;
        height: auto;
        visibility: visible !important;
        position: relative;
        z-index: 3;
    }

    .ps-compare-tray .ps-compare-now {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        visibility: visible !important;
        opacity: 1;
    }

        .ps-compare-tray .ps-compare-now:disabled {
            opacity: .45;
        }

    .ps-compare-tray .ps-remove-all {
        min-height: 36px;
        white-space: nowrap;
    }

body.ps-tray-open {
    padding-bottom: 0 !important;
}

/* FINAL MOBILE COMPARE DOCK FIX
   Keep both compare slots visible in one compact row.
   The earlier <=620px rules made the tray vertically huge and clipped it. */


@media (max-width:620px) {


    .ps-compare-tray {
        width: calc(100% - 12px);
        left: 50%;
        bottom: calc(6px + env(safe-area-inset-bottom));
        max-height: none;
        overflow: hidden;
        border-radius: 15px;
    }

    .ps-compare-head {
        min-height: 44px;
        padding: 0 12px;
    }

    .ps-compare-slots {
        grid-template-columns: 1fr 1fr !important;
        min-height: 68px;
        height: 68px;
    }

    .ps-compare-slot {
        min-height: 68px !important;
        height: 68px;
        padding: 5px 7px;
        grid-template-columns: 38px minmax(0,1fr);
        gap: 6px;
        border-right: 1px solid var(--pk-line) !important;
        border-bottom: 0 !important;
        overflow: hidden;
    }

        .ps-compare-slot:last-child {
            border-right: 0 !important;
        }

        .ps-compare-slot img {
            width: 36px;
            height: 52px;
        }

        .ps-compare-slot h4 {
            font-size: 10px;
            line-height: 1.2;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ps-compare-slot .tray-price {
            font-size: 12px;
            line-height: 1.2;
        }

        .ps-compare-slot .ps-empty {
            font-size: 10px;
            line-height: 1.25;
        }

    .ps-compare-actions {
        min-height: 48px;
        height: 48px;
        padding: 6px 8px;
        gap: 8px;
    }

    .ps-compare-hint {
        display: none !important;
    }

    .ps-remove-all {
        padding: 8px 5px;
        white-space: nowrap;
        font-size: 12px;
    }

    .ps-compare-now {
        flex: 1;
        min-width: 0;
        padding: 9px 8px;
        font-size: 12px;
    }

    body.ps-tray-open {
        padding-bottom: 0;
    }
}

/* RIGHT SIDEBAR COMPARE WIDGET */


.ps-side-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}


    .ps-side-compare-head h3 {
        margin: 0
    }


#sideCompareCount {
    font-size: 11px;
    font-weight: 850;
    color: var(--pk-blue);
    background: var(--pk-blue-tint);
    padding: 4px 7px;
    border-radius: 20px
}


.ps-side-compare-note {
    font-size: 11px;
    color: var(--pk-muted);
    margin: 6px 0 10px
}


.ps-side-compare-slot {
    min-height: 66px;
    border: 1px dashed var(--pk-line);
    border-radius: 10px;
    background: var(--pk-surface-2);
    margin-top: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}


.ps-side-add {
    width: 100%;
    min-height: 44px;
    border: 1px dashed var(--pk-blue);
    border-radius: 8px;
    background: transparent;
    color: var(--pk-blue);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}


.ps-side-phone {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 8px;
    align-items: center;
    width: 100%
}


    .ps-side-phone img {
        width: 38px;
        height: 50px;
        object-fit: contain
    }


    .ps-side-phone b {
        display: block;
        font-size: 11px;
        line-height: 1.25;
        margin-right: 20px
    }


    .ps-side-phone span {
        display: block;
        color: var(--pk-muted);
        font-size: 10px;
        margin-top: 2px
    }


.ps-side-remove {
    position: absolute;
    right: 4px;
    top: 2px;
    z-index: 2;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pk-line);
    background: var(--pk-surface);
    border-radius: 50%;
    color: var(--pk-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}


    .ps-side-remove:hover {
        border-color: var(--pk-red);
        color: var(--pk-red)
    }


.ps-side-compare-actions {
    display: flex;
    gap: 7px;
    margin-top: 10px
}


.ps-side-clear {
    flex: 1;
    border: 1px solid var(--pk-line);
    border-radius: 8px;
    background: var(--pk-surface-2);
    color: var(--pk-ink);
    padding: 8px 5px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}


.ps-side-compare-now {
    flex: 1;
    border: 0;
    border-radius: 8px;
    background: var(--pk-blue);
    color: #fff;
    padding: 8px 5px;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}


    .ps-side-compare-now:disabled {
        opacity: .42;
        cursor: not-allowed
    }

/* SIDEBAR COMPARE PICKER */


.ps-side-picker {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: rgba(0,0,0,.48);
    padding: 20px;
    align-items: center;
    justify-content: center;
}


    .ps-side-picker.open {
        display: flex
    }


.ps-side-picker-panel {
    width: min(560px,100%);
    max-height: min(720px,90vh);
    overflow: hidden;
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: 16px;
    box-shadow: var(--pk-shadow-lg);
    display: flex;
    flex-direction: column;
}


.ps-side-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pk-line);
}


    .ps-side-picker-head h3 {
        margin: 0;
        font-size: 16px
    }


.ps-side-picker-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--pk-line);
    border-radius: 50%;
    background: var(--pk-surface-2);
    color: var(--pk-ink);
    cursor: pointer;
}


.ps-side-picker-search {
    margin: 12px;
    height: 40px;
    border: 1px solid var(--pk-line);
    border-radius: 9px;
    background: var(--pk-surface-2);
    color: var(--pk-ink);
    padding: 0 11px;
    outline: none;
}


.ps-side-picker-list {
    overflow: auto;
    padding: 0 12px 12px
}


.ps-side-picker-item {
    display: grid;
    grid-template-columns: 45px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 5px;
    border-bottom: 1px solid var(--pk-line);
}


    .ps-side-picker-item img {
        width: 40px;
        height: 54px;
        object-fit: contain
    }


    .ps-side-picker-item b {
        display: block;
        font-size: 11px
    }


    .ps-side-picker-item span {
        display: block;
        color: var(--pk-muted);
        font-size: 9px;
        margin-top: 2px
    }


.ps-side-picker-add {
    border: 0;
    border-radius: 8px;
    background: var(--pk-blue);
    color: #fff;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}


@media(max-width:820px) {


    .ps-side-compare {
        order: -1
    }
}

.ps-drop-label {
    padding: 6px 10px 7px;
    color: var(--pk-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em
}


.ps-direct {
    font-size: 13px !important
}

.ps-theme {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--pk-line);
    border-radius: 10px;
    background: var(--pk-surface);
    color: var(--pk-ink);
    cursor: pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
    transition: var(--pk-ease)
}


    .ps-theme:hover {
        border-color: var(--pk-blue);
        color: var(--pk-blue)
    }


    .ps-theme svg {
        width: 18px;
        height: 18px;
        display: block
    }

.ps-theme-icon {
    display: inline-flex
}


    .ps-theme-icon svg {
        width: 17px;
        height: 17px;
        display: block
    }

/* Persistent "reopen compare" pill - shown when the compare tray is minimized/closed but phones are selected */


.ps-mobile-compare {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%,calc(100% + 30px));
    width: min(360px,calc(100% - 24px));
    z-index: 1997;
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: 14px;
    box-shadow: var(--pk-shadow-lg);
    transition: transform .22s ease;
    padding: 10px 12px
}


    .ps-mobile-compare.show {
        transform: translate(-50%,0)
    }


.ps-mobile-compare-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}


.ps-mobile-compare-text {
    font-size: 12px;
    color: var(--pk-ink);
    line-height: 1.3
}


    .ps-mobile-compare-text strong {
        font-size: 13px
    }


    .ps-mobile-compare-text span {
        color: var(--pk-muted)
    }


.ps-mobile-compare-inner button {
    border: 0;
    border-radius: 9px;
    padding: 9px 14px;
    background: var(--pk-blue);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap
}

@media(max-width:900px) {
}


@media(max-width:520px) {

    .ps-theme {
        width: 38px;
        height: 38px;
        flex-basis: 38px
    }
}

/* =========================================================
   PhoneScope V6 Reference UI - comparison + recommendation cards
   ========================================================= */


.ps-v6-card {
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: 18px;
    box-shadow: var(--pk-shadow);
    padding: 20px;
    margin-top: 20px;
    overflow: hidden
}


.ps-v6-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px
}


    .ps-v6-head h2 {
        margin: 0;
        font-size: 26px;
        line-height: 1.15;
        font-weight: 900;
        color: var(--pk-ink)
    }


    .ps-v6-head p {
        margin: 7px 0 0;
        color: var(--pk-muted);
        font-size: 14px;
        line-height: 1.5
    }


.ps-v6-view {
    color: var(--pk-blue);
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    padding-top: 4px
}


    .ps-v6-view:hover {
        text-decoration: underline
    }


.ps-v6-compare {
    display: grid;
    grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr);
    align-items: stretch;
    gap: 10px
}


.ps-v6-phone {
    position: relative;
    border: 1px solid var(--pk-line);
    border-radius: 15px;
    padding: 14px;
    display: grid;
    grid-template-columns: 150px minmax(0,1fr);
    gap: 16px;
    background: var(--pk-surface-2);
    min-width: 0
}


    .ps-v6-phone img {
        width: 150px;
        height: 190px;
        object-fit: contain;
        border-radius: 12px;
        background: var(--pk-surface);
        display: block
    }


.ps-v6-info {
    min-width: 0;
    padding: 3px 30px 3px 0
}


    .ps-v6-info h3 {
        margin: 0 0 8px;
        font-size: 18px;
        line-height: 1.25;
        color: var(--pk-ink)
    }


.ps-v6-score {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--pk-green-bg);
    color: var(--pk-green);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 9px
}


.ps-v6-price {
    font-size: 17px;
    font-weight: 900;
    color: var(--pk-ink);
    margin-bottom: 10px
}


    .ps-v6-price span {
        font-weight: 600;
        color: var(--pk-muted);
        font-size: 13px;
        margin-left: 5px
    }


.ps-v6-specs {
    display: grid;
    gap: 7px;
    color: var(--pk-muted);
    font-size: 13px;
    line-height: 1.4
}


.ps-v6-spec {
    display: flex;
    gap: 9px;
    align-items: flex-start
}

    .ps-v6-spec b {
        color: var(--pk-ink);
        font-weight: 750;
        min-width: 18px
    }


.ps-v6-remove {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--pk-bg);
    color: var(--pk-ink);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3
}


    .ps-v6-remove:hover {
        background: var(--pk-red);
        color: #fff
    }


.ps-v6-vs {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--pk-blue),var(--pk-blue-2));
    color: #fff;
    display: grid;
    place-items: center;
    align-self: center;
    font-weight: 950;
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(61,120,232,.25)
}


.ps-v6-actions {
    display: grid;
    grid-template-columns: 210px minmax(0,1fr);
    gap: 10px;
    margin-top: 14px
}


.ps-v6-btn {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--pk-line);
    background: var(--pk-surface);
    color: var(--pk-ink);
    font: inherit;
    font-weight: 850;
    cursor: pointer
}


    .ps-v6-btn.danger {
        color: var(--pk-red);
        border-color: color-mix(in srgb,var(--pk-red) 35%,var(--pk-line))
    }


    .ps-v6-btn.primary {
        background: linear-gradient(135deg,var(--pk-blue),var(--pk-blue-2));
        border-color: transparent;
        color: #fff
    }


    .ps-v6-btn:disabled {
        opacity: .5;
        cursor: not-allowed
    }


.ps-v6-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}


.ps-v6-list-card {
    display: grid;
    grid-template-columns: 88px minmax(0,1fr) 22px;
    gap: 11px;
    align-items: center;
    border: 1px solid var(--pk-line);
    border-radius: 13px;
    padding: 10px;
    background: var(--pk-surface);
    text-decoration: none;
    color: inherit;
    min-width: 0;
    min-height: 112px;
    transition: transform .15s ease,border-color .15s ease,box-shadow .15s ease
}


    .ps-v6-list-card:hover {
        transform: translateY(-1px);
        border-color: var(--pk-blue);
        box-shadow: var(--pk-shadow)
    }


    .ps-v6-list-card img {
        width: 88px;
        height: 104px;
        object-fit: contain;
        border-radius: 10px;
        background: var(--pk-surface-2);
        display: block
    }


.ps-v6-list-info {
    min-width: 0
}

    .ps-v6-list-info h3 {
        margin: 0 0 5px;
        font-size: 14px;
        line-height: 1.3;
        color: var(--pk-ink)
    }


.ps-v6-list-price {
    font-weight: 900;
    color: var(--pk-ink);
    font-size: 15px
}

    .ps-v6-list-price span {
        color: var(--pk-muted);
        font-weight: 650;
        font-size: 12px;
        margin-left: 4px
    }


.ps-v6-list-meta {
    margin-top: 6px;
    color: var(--pk-muted);
    font-size: 11px;
    line-height: 1.45
}

.ps-v6-arrow {
    font-size: 26px;
    color: var(--pk-ink);
    text-align: center
}


.ps-v6-empty {
    border: 1px dashed var(--pk-line);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: var(--pk-muted);
    grid-column: 1/-1
}


.ps-v6-compare-matrix {
    margin-top: 18px;
    border: 1px solid var(--pk-line);
    border-radius: 14px;
    overflow: auto;
    background: var(--pk-surface);
    -webkit-overflow-scrolling: touch
}


.ps-v6-matrix {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 680px;
    font-size: 13px
}

    .ps-v6-matrix th,
    .ps-v6-matrix td {
        padding: 11px 13px;
        border-bottom: 1px solid var(--pk-line);
        text-align: left;
        vertical-align: top
    }

    .ps-v6-matrix thead th {
        position: sticky;
        top: 0;
        background: var(--pk-surface);
        z-index: 5;
        font-weight: 900;
        color: var(--pk-ink)
    }

    .ps-v6-matrix th:first-child,
    .ps-v6-matrix td:first-child {
        position: sticky;
        left: 0;
        z-index: 4;
        background: var(--pk-surface-2);
        font-weight: 850;
        color: var(--pk-ink);
        width: 150px;
        min-width: 150px
    }

    .ps-v6-matrix thead th:first-child {
        z-index: 7
    }

    .ps-v6-matrix .group td {
        background: var(--pk-tint-bg);
        font-weight: 900;
        color: var(--pk-blue)
    }


    .ps-v6-matrix tbody tr:not(.group) th {
        background: var(--pk-surface-2);
        font-weight: 800
    }


    .ps-v6-matrix tbody tr:not(.group) td {
        background: var(--pk-surface)
    }


    .ps-v6-matrix .group td {
        padding: 9px 13px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-top: 1px solid var(--pk-line)
    }


.ps-v6-image-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--pk-line);
    font-size: 11px;
    color: var(--pk-muted)
}

    .ps-v6-image-links summary {
        cursor: pointer;
        font-weight: 800;
        color: var(--pk-ink)
    }

    .ps-v6-image-links a {
        display: block;
        color: var(--pk-blue);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: 6px
    }


@media(min-width:901px) {


    .ps-v6-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
        align-items: stretch
    }


    .ps-v6-list-card {
        grid-template-columns: 78px minmax(0,1fr) 20px;
        padding: 9px;
        gap: 10px;
        min-height: 106px
    }


        .ps-v6-list-card img {
            width: 78px;
            height: 92px
        }


    .ps-v6-list-info h3 {
        font-size: 13px
    }


    .ps-v6-list-price {
        font-size: 14px
    }


    .ps-v6-list-meta {
        font-size: 10px
    }
}


@media(max-width:900px) {
    .ps-v6-card {
        padding: 16px;
        border-radius: 16px
    }

    .ps-v6-compare {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .ps-v6-vs {
        width: 44px;
        height: 44px;
        justify-self: center;
        order: 2
    }

    .ps-v6-phone:first-child {
        order: 1
    }

    .ps-v6-phone:last-child {
        order: 3
    }

    .ps-v6-actions {
        grid-template-columns: 1fr 1.7fr
    }

    .ps-v6-grid {
        grid-template-columns: 1fr
    }
}


@media(max-width:560px) {
    .ps-v6-head h2 {
        font-size: 23px
    }

    .ps-v6-head p {
        font-size: 13px
    }

    .ps-v6-phone {
        grid-template-columns: 110px minmax(0,1fr);
        gap: 12px;
        padding: 11px
    }

        .ps-v6-phone img {
            width: 110px;
            height: 145px
        }

    .ps-v6-info h3 {
        font-size: 16px
    }

    .ps-v6-specs {
        font-size: 12px
    }

    .ps-v6-actions {
        grid-template-columns: 1fr 1.45fr
    }

    .ps-v6-list-card {
        grid-template-columns: 88px minmax(0,1fr) 20px;
        padding: 9px;
        gap: 9px
    }

        .ps-v6-list-card img {
            width: 88px;
            height: 105px
        }

    .ps-v6-list-info h3 {
        font-size: 13px
    }

    .ps-v6-list-price {
        font-size: 14px
    }

    .ps-v6-list-meta {
        font-size: 10px
    }
}
/* =========================================================
   Brand.aspx server-rendered UI additions
   ========================================================= */
.ps-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    color: var(--pk-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em
}

    .ps-kicker:before {
        content: "";
        width: 18px;
        height: 2px;
        background: var(--pk-blue);
        border-radius: 4px
    }

.ps-card-link {
    display: block;
    color: inherit;
    text-decoration: none
}

.ps-phone-card .ps-phone-title a {
    color: inherit;
    text-decoration: none
}

    .ps-phone-card .ps-phone-title a:hover {
        color: var(--pk-blue)
    }

.ps-spec-row b {
    overflow-wrap: anywhere
}

.ps-section-empty {
    padding: 22px;
    text-align: center;
    color: var(--pk-muted)
}

.ps-v6-list-card .ps-v6-list-info {
    overflow: hidden
}

    .ps-v6-list-card .ps-v6-list-info h3 {
        overflow-wrap: anywhere
    }

.ps-v6-list-meta {
    overflow-wrap: anywhere
}

.ps-tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
    font-size: 13px
}

    .ps-tech-table th, .ps-tech-table td {
        padding: 11px 12px;
        border-bottom: 1px solid var(--pk-line);
        text-align: left;
        vertical-align: top
    }

    .ps-tech-table th {
        background: var(--pk-surface-2);
        font-weight: 850
    }

.ps-tech-wrap {
    overflow: auto;
    border: 1px solid var(--pk-line);
    border-radius: 14px
}

.ps-tech-table tr:last-child th, .ps-tech-table tr:last-child td {
    border-bottom: 0
}

.ps-sidebar .ps-widget a {
    overflow-wrap: anywhere
}

@media(max-width:620px) {
    .ps-results-head h2 {
        font-size: 18px
    }

    .ps-v6-head {
        align-items: flex-start
    }
}


/* FINAL COMPARE UI OVERRIDE
   Compare is a fixed overlay. It must not participate in phone-list layout,
   and the primary Compare Phones action must remain visible on mobile. */
.ps-compare-tray {
    z-index: 2100 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

    .ps-compare-tray .ps-compare-actions {
        display: flex !important;
        align-items: center !important;
        min-height: 56px !important;
        height: auto !important;
        padding: 7px 10px !important;
        box-sizing: border-box;
        visibility: visible !important;
    }

    .ps-compare-tray .ps-compare-now {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 auto;
    }

    .ps-compare-tray .ps-remove-all {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 38px !important;
        visibility: visible !important;
    }

@media (max-width:620px) {
    .ps-compare-tray .ps-compare-actions {
        min-height: 58px !important;
        padding: 7px 8px !important;
        gap: 7px !important;
    }

    .ps-compare-tray .ps-compare-now {
        min-height: 40px !important;
        flex: 1 1 auto !important;
    }

    .ps-compare-tray .ps-remove-all {
        min-height: 40px !important;
        flex: 0 0 auto !important;
    }
}

/* FINAL GRID IMAGE + MOBILE COMPARE TRAY FIX
   Grid view must always retain the server-rendered phone image.
   The compare tray is a fixed footer overlay and must remain compact,
   readable and fully visible on phones. */
.ps-phone-list.grid-view .ps-phone-body {
    display: block !important;
    grid-template-columns: none !important;
}

.ps-phone-list.grid-view .ps-phone-visual {
    display: grid !important;
    visibility: visible !important;
    width: 100% !important;
    height: 205px !important;
    margin: 0 0 10px !important;
}

    .ps-phone-list.grid-view .ps-phone-visual img {
        display: block !important;
        visibility: visible !important;
        width: auto !important;
        max-width: 100% !important;
        height: 190px !important;
        object-fit: contain !important;
    }

/* Compare tray slots use the same compact layout on every viewport. */
.ps-compare-tray .ps-compare-slots {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
}

.ps-compare-tray .ps-compare-slot {
    min-width: 0 !important;
    min-height: 78px !important;
    height: 78px !important;
    padding: 7px 10px !important;
    display: block !important;
    overflow: hidden !important;
    border-bottom: 0 !important;
}

    .ps-compare-tray .ps-compare-slot img,
    .ps-compare-tray .ps-side-phone img {
        display: block !important;
        width: 42px !important;
        height: 58px !important;
        object-fit: contain !important;
        flex: none !important;
    }

.ps-compare-tray .ps-side-phone {
    min-width: 0 !important;
    width: 100% !important;
    height: 64px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0,1fr) !important;
    gap: 8px !important;
    align-items: center !important;
}

    .ps-compare-tray .ps-side-phone img {
        display: block !important;
        width: 42px !important;
        height: 58px !important;
        object-fit: contain !important;
        flex: none !important;
    }

.ps-compare-tray .ps-compare-phone-info {
    min-width: 0 !important;
    overflow: hidden !important;
    padding-right: 22px !important;
}

.ps-compare-tray .ps-compare-phone-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 0 3px 0 !important;
    color: var(--pk-ink) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
}

    .ps-compare-tray .ps-compare-phone-title:hover {
        color: var(--pk-blue) !important;
        text-decoration: underline !important;
    }

.ps-compare-tray .ps-compare-phone-price {
    display: block !important;
    color: var(--pk-ink) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ps-compare-tray .ps-compare-phone-score {
    display: block !important;
    color: var(--pk-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
}

.ps-compare-tray .ps-side-add {
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 5px !important;
    border: 1px dashed var(--pk-blue) !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--pk-blue) !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    white-space: normal !important;
}

.ps-compare-tray .ps-side-remove {
    position: absolute !important;
    right: 6px !important;
    top: 5px !important;
    z-index: 5 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
}

@media(max-width:620px) {
    .ps-phone-list.grid-view .ps-phone-visual {
        height: 205px !important;
        margin-bottom: 10px !important;
    }

        .ps-phone-list.grid-view .ps-phone-visual img {
            height: 190px !important;
            max-height: 190px !important;
        }

    .ps-compare-tray {
        left: 50% !important;
        bottom: calc(6px + env(safe-area-inset-bottom)) !important;
        width: calc(100% - 12px) !important;
        max-width: 560px !important;
        border-radius: 16px !important;
    }

        .ps-compare-tray .ps-compare-head {
            min-height: 46px !important;
            height: 46px !important;
            padding: 0 12px !important;
        }

            .ps-compare-tray .ps-compare-head strong {
                font-size: 15px !important;
            }

        .ps-compare-tray .ps-compare-slots {
            min-height: 82px !important;
            height: 82px !important;
            grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
        }

        .ps-compare-tray .ps-compare-slot {
            min-height: 82px !important;
            height: 82px !important;
            padding: 7px 8px !important;
            display: block !important;
        }

            .ps-compare-tray .ps-compare-slot img,
            .ps-compare-tray .ps-side-phone img {
                width: 38px !important;
                height: 56px !important;
            }

        .ps-compare-tray .ps-side-phone {
            width: 100% !important;
            height: 64px !important;
            grid-template-columns: 38px minmax(0,1fr) !important;
            gap: 7px !important;
        }

        .ps-compare-tray .ps-compare-phone-info {
            padding-right: 16px !important;
        }

        .ps-compare-tray .ps-compare-phone-title {
            font-size: 11px !important;
            -webkit-line-clamp: 2 !important;
        }

        .ps-compare-tray .ps-compare-phone-score {
            font-size: 9px !important;
        }

        .ps-compare-tray .ps-compare-phone-price {
            font-size: 9px !important;
        }

        .ps-compare-tray .ps-compare-actions {
            min-height: 56px !important;
            height: 56px !important;
            padding: 7px 8px !important;
            gap: 8px !important;
        }

        .ps-compare-tray .ps-compare-hint {
            display: none !important;
        }

        .ps-compare-tray .ps-remove-all {
            flex: 0 0 auto !important;
            min-height: 40px !important;
            height: 40px !important;
            padding: 7px 9px !important;
            font-size: 11px !important;
        }

        .ps-compare-tray .ps-compare-now {
            flex: 1 1 auto !important;
            min-width: 0 !important;
            min-height: 40px !important;
            height: 40px !important;
            padding: 8px 10px !important;
            font-size: 12px !important;
        }
}

/* Phone listing page: polished two-column layout */
.ps-content-layout {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 310px);
    gap: clamp(18px, 2.2vw, 30px);
    align-items: start;
}

.ps-page-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ps-page-main > .ps-card,
.ps-page-main > .ps-v6-card,
.ps-page-main > section {
    min-width: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ps-sidebar {
    width: auto;
    min-width: 0;
    position: sticky;
    top: 84px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 3px 8px 0;
    scrollbar-width: thin;
}

.ps-sidebar .ps-widget {
    padding: 17px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(18, 32, 48, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ps-sidebar .ps-widget:hover {
    border-color: var(--pk-blue);
    box-shadow: 0 9px 25px rgba(18, 32, 48, .09);
}

.ps-sidebar .ps-widget h3 {
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    margin: 0 0 12px;
}

.ps-page-main .ps-controlbar {
    margin-bottom: 0;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(18, 32, 48, .045);
}

.ps-page-main .ps-v6-card,
.ps-page-main .ps-card.ps-wide {
    border-radius: 18px;
    box-shadow: var(--pk-shadow);
}

.ps-page-main .ps-v6-card {
    padding: clamp(16px, 2vw, 22px);
}

.ps-page-main .ps-v6-head h2,
.ps-page-main .ps-section-head h2 {
    letter-spacing: -.025em;
}

.ps-page-main .ps-tech-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 980px) {
    .ps-content-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 16px;
        width: calc(100% - 32px);
    }

    .ps-sidebar {
        top: 72px;
    }
}

@media (max-width: 820px) {
    .ps-content-layout {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 28px);
        gap: 20px;
    }

    .ps-page-main {
        gap: 15px;
    }

    .ps-sidebar {
        position: static;
        top: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .ps-content-layout {
        width: calc(100% - 24px);
    }

    .ps-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-page-main .ps-v6-card,
    .ps-page-main .ps-card.ps-wide {
        border-radius: 15px;
    }

    .ps-page-main .ps-v6-card {
        padding: 15px;
    }
}


/* Upcoming phones page: accessible labels and stable responsive card behavior */
.ps-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#phoneList > .ps-section-empty {
    grid-column: 1 / -1;
    padding: 22px;
    text-align: center;
}

#phoneList > .ps-phone-card[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    #upcomingSeriesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #upcomingSeriesGrid .ps-series-card:first-child {
        grid-column: 1 / -1;
    }
}


/* Upcoming page: discovery cards and longer SEO introduction */
.ps-upcoming-intro-text { max-width:1050px; color:var(--pk-muted); font-size:15px; line-height:1.85; margin:0; }
.ps-discovery-section { margin-top:20px; }
.ps-section-viewall { flex:0 0 auto; color:var(--pk-blue); font-weight:800; white-space:nowrap; }
.ps-section-viewall:hover { text-decoration:underline; }
.ps-discovery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ps-discovery-phone { min-width:0; min-height:124px; display:grid; grid-template-columns:82px minmax(0,1fr) 14px; gap:12px; align-items:center; padding:12px; border:1px solid var(--pk-line); border-radius:13px; background:var(--pk-surface-2); transition:border-color .2s ease,transform .2s ease; }
.ps-discovery-phone:hover { border-color:var(--pk-blue); transform:translateY(-2px); }
.ps-discovery-phone img { width:82px; height:98px; object-fit:contain; border-radius:9px; background:var(--pk-surface); }
.ps-discovery-info { min-width:0; display:flex; flex-direction:column; gap:5px; }
.ps-discovery-info b { font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.ps-discovery-info strong { font-size:15px; color:var(--pk-ink); }
.ps-discovery-info small { color:var(--pk-muted); font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
.ps-discovery-arrow { color:var(--pk-blue); font-size:25px; font-weight:800; }
@media(max-width:1050px) { .ps-discovery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .ps-upcoming-intro-text { font-size:13px; line-height:1.75; } .ps-discovery-grid { grid-template-columns:1fr; } .ps-discovery-phone { grid-template-columns:72px minmax(0,1fr) 12px; } .ps-discovery-phone img { width:72px; height:88px; } .ps-section-head { align-items:flex-start; } }


/* UPCOMING PAGE FIX: contain product images and keep discovery cards compact. */
.ps-discovery-section { min-width:0; overflow:hidden; }
.ps-discovery-section .ps-discovery-grid { width:100%; min-width:0; align-items:stretch; }
.ps-discovery-section a.ps-discovery-phone {
    display:grid !important;
    grid-template-columns:82px minmax(0,1fr) 14px !important;
    align-items:center !important;
    min-width:0 !important;
    min-height:124px !important;
    height:auto !important;
    overflow:hidden !important;
    padding:12px !important;
    gap:12px !important;
}
.ps-discovery-section a.ps-discovery-phone > img {
    display:block !important;
    width:82px !important;
    min-width:82px !important;
    max-width:82px !important;
    height:98px !important;
    min-height:98px !important;
    max-height:98px !important;
    object-fit:contain !important;
    aspect-ratio:auto !important;
    flex:none !important;
}
.ps-discovery-section .ps-discovery-info { min-width:0 !important; overflow:hidden !important; }
.ps-discovery-section .ps-discovery-info b,
.ps-discovery-section .ps-discovery-info small { overflow-wrap:anywhere; }
.ps-upcoming-intro-text .ps-intro-link,
.ps-brand-intro .ps-upcoming-intro-text a {
    color:var(--pk-blue) !important;
    font-weight:750;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:3px;
}
.ps-upcoming-intro-text .ps-intro-link:hover { color:var(--pk-blue-2) !important; }
/* Prevent broad/global image rules from stretching the main upcoming-phone image. */
#phoneList .ps-phone-visual { width:100% !important; min-width:0 !important; overflow:hidden !important; }
#phoneList .ps-phone-visual > a { display:flex !important; width:100% !important; height:100% !important; align-items:center !important; justify-content:center !important; overflow:hidden !important; }
#phoneList .ps-phone-visual > a > img {
    display:block !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    height:172px !important;
    max-height:100% !important;
    object-fit:contain !important;
    aspect-ratio:auto !important;
}
@media(max-width:620px) {
    .ps-discovery-section a.ps-discovery-phone { grid-template-columns:72px minmax(0,1fr) 12px !important; gap:10px !important; }
    .ps-discovery-section a.ps-discovery-phone > img { width:72px !important; min-width:72px !important; max-width:72px !important; height:88px !important; min-height:88px !important; max-height:88px !important; }
    #phoneList .ps-phone-visual > a > img { height:210px !important; }
}


/* FINAL UPCOMING PAGE OVERRIDE: cache-busted stylesheet, strict image bounds and compact cards. */
html body .ps-discovery-section .ps-discovery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
html body .ps-discovery-section a.ps-discovery-phone {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 108px !important;
    height: auto !important;
    max-height: 140px !important;
    overflow: hidden !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px !important;
}
html body .ps-discovery-section a.ps-discovery-phone > img {
    display: block !important;
    position: static !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    object-fit: contain !important;
    object-position: center !important;
    aspect-ratio: auto !important;
    transform: none !important;
    margin: 0 !important;
}
html body #phoneList .ps-phone-card .ps-phone-body {
    display: grid !important;
    grid-template-columns: 135px minmax(0, 1fr) 145px !important;
    gap: 14px !important;
    align-items: center !important;
}
html body #phoneList .ps-phone-card .ps-phone-visual {
    width: 135px !important;
    min-width: 0 !important;
    max-width: 135px !important;
    height: 180px !important;
    min-height: 0 !important;
    max-height: 180px !important;
    overflow: hidden !important;
}
html body #phoneList .ps-phone-card .ps-phone-visual > a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
html body #phoneList .ps-phone-card .ps-phone-visual > a > img {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 165px !important;
    min-height: 0 !important;
    max-height: 100% !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    transform: none !important;
    margin: 0 auto !important;
}
@media (max-width: 1050px) {
    html body .ps-discovery-section .ps-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body #phoneList .ps-phone-card .ps-phone-body { grid-template-columns: 120px minmax(0, 1fr) !important; }
    html body #phoneList .ps-phone-card .ps-phone-visual { grid-column: 1; width: 120px !important; max-width: 120px !important; height: 160px !important; }
    html body #phoneList .ps-phone-card .ps-phone-side { grid-column: 2; }
}
@media (max-width: 620px) {
    html body .ps-discovery-section .ps-discovery-grid { grid-template-columns: minmax(0, 1fr) !important; }
    html body .ps-discovery-section a.ps-discovery-phone { grid-template-columns: 68px minmax(0, 1fr) 12px !important; min-height: 96px !important; }
    html body .ps-discovery-section a.ps-discovery-phone > img { width: 68px !important; min-width: 68px !important; max-width: 68px !important; height: 78px !important; min-height: 78px !important; max-height: 78px !important; }
    html body #phoneList .ps-phone-card .ps-phone-body { grid-template-columns: minmax(0, 1fr) !important; }
    html body #phoneList .ps-phone-card .ps-phone-visual { grid-column: 1; width: 100% !important; max-width: 100% !important; height: 190px !important; }
    html body #phoneList .ps-phone-card .ps-phone-visual > a > img { height: 175px !important; }
    html body #phoneList .ps-phone-card .ps-phone-side { grid-column: 1; }
}


/* =========================================================
   PhoneScope LIGHT THEME FIX — comparison cards + jump links
   These rules apply only when the master theme is not dark.
   ========================================================= */
html:not([data-theme="dark"]) .ps-popular-comparison-card,
html:not([data-theme="dark"]) .ps-popular-comparison-grid > * {
    background: #ffffff !important;
    color: #172033 !important;
    border: 1px solid #dbe3ed !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

html:not([data-theme="dark"]) .ps-popular-comparison-card h2,
html:not([data-theme="dark"]) .ps-popular-comparison-card h3,
html:not([data-theme="dark"]) .ps-popular-comparison-card p,
html:not([data-theme="dark"]) .ps-popular-comparison-card .comparison-title {
    color: #172033 !important;
}

html:not([data-theme="dark"]) .ps-popular-comparison-card a:not(.ps-v6-btn),
html:not([data-theme="dark"]) .ps-popular-comparison-grid > * a:not(.ps-v6-btn) {
    color: #2457c5 !important;
    text-decoration-color: currentColor;
}

html:not([data-theme="dark"]) .ps-popular-comparison-card .ps-v6-btn,
html:not([data-theme="dark"]) .ps-popular-comparison-grid > * .ps-v6-btn {
    background: #ffffff !important;
    color: #2457c5 !important;
    border: 1px solid #cbd5e1 !important;
}

html:not([data-theme="dark"]) .ps-popular-comparison-card .ps-v6-btn.primary,
html:not([data-theme="dark"]) .ps-popular-comparison-grid > * .ps-v6-btn.primary,
html:not([data-theme="dark"]) .ps-popular-comparison-card .add-both-to-compare,
html:not([data-theme="dark"]) .ps-popular-comparison-grid > * .add-both-to-compare {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

html:not([data-theme="dark"]) .ps-popular-comparison-card button,
html:not([data-theme="dark"]) .ps-popular-comparison-grid > * button {
    color: #ffffff;
}

html:not([data-theme="dark"]) .ps-jump-to,
html:not([data-theme="dark"]) .ps-jump-links,
html:not([data-theme="dark"]) .ps-jump-nav,
html:not([data-theme="dark"]) .ps-jump-links a,
html:not([data-theme="dark"]) .ps-jump-nav a {
    background: #f1f5f9 !important;
    color: #2457c5 !important;
    border-color: #d5deea !important;
}

html:not([data-theme="dark"]) .ps-jump-to a,
html:not([data-theme="dark"]) .ps-jump-links a,
html:not([data-theme="dark"]) .ps-jump-nav a {
    background: #ffffff !important;
    color: #2457c5 !important;
    border: 1px solid #d5deea !important;
}

html:not([data-theme="dark"]) .ps-jump-to .label,
html:not([data-theme="dark"]) .ps-jump-links .label,
html:not([data-theme="dark"]) .ps-jump-nav .label {
    color: #64748b !important;
}

/* Keep the dark theme's existing styling unchanged. */
