﻿: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 .brand-intro-link {
        color: var(--pk-blue);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px
    }

        .ps-brand-intro .brand-intro-link:hover {
            color: var(--pk-blue);
            text-decoration-thickness: 2px
        }

        .ps-brand-intro .brand-intro-link:focus-visible {
            outline: 2px solid var(--pk-blue);
            outline-offset: 2px
        }


/* 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-image-link {
    display: block;
    line-height: 0
}

.ps-compare-phone-title-link {
    color: inherit;
    text-decoration: none
}

    .ps-compare-phone-title-link:hover, .ps-compare-phone-title-link:focus {
        text-decoration: underline;
        color: var(--pk-blue)
    }

.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: hidden;
    background: var(--pk-surface);
    width: 100%;
    max-width: 100%
}


.ps-v6-matrix {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 13px;
    overflow-wrap: anywhere
}

    .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 {
        background: var(--pk-surface);
        font-weight: 900;
        color: var(--pk-ink);
        overflow-wrap: anywhere
    }

    .ps-v6-matrix th:first-child,
    .ps-v6-matrix td:first-child {
        background: var(--pk-surface-2);
        font-weight: 850;
        color: var(--pk-ink);
        width: 28%;
        min-width: 0
    }

    .ps-v6-matrix thead th:first-child {
        z-index: auto
    }

    .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;
        }
}

/* =========================================================
   PhoneScope SEO FILTER PAGE
   Same visual system as BrandSeo.aspx.
   Header/footer/theme remain owned by Category.master.
   ========================================================= */

.ps-seo-filter-page {
    width: min(1440px,calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 44px;
}

    .ps-seo-filter-page .ps-breadcrumb {
        padding: 18px 0 12px;
    }

.ps-filter-hero {
    padding: 22px 24px;
    margin-bottom: 20px;
}

    .ps-filter-hero h1 {
        margin: 4px 0 10px;
        font-size: clamp(28px,4vw,42px);
        line-height: 1.08;
        letter-spacing: -.7px;
    }

.ps-filter-hero-intro {
    max-width: 980px;
    color: var(--pk-muted);
    font-size: 15px;
    line-height: 1.72;
}

    .ps-filter-hero-intro a {
        color: var(--pk-blue);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

.ps-filter-summary {
    margin-top: 12px;
    color: var(--pk-muted);
    font-size: 12px;
    font-weight: 700;
}

.ps-filter-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 24px;
    align-items: start;
}

.ps-filter-main {
    min-width: 0;
}

.ps-filter-section {
    margin-bottom: 18px;
}

.ps-filter-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin: 0 0 11px;
}

    .ps-filter-section-head h2 {
        margin: 0;
        font-size: 21px;
        line-height: 1.2;
    }

    .ps-filter-section-head p {
        margin: 0;
        color: var(--pk-muted);
        font-size: 12px;
    }

.ps-filter-phone-card {
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow);
    padding: 16px;
    margin-bottom: 14px;
    transition: var(--pk-ease);
}

    .ps-filter-phone-card:hover {
        border-color: var(--pk-blue);
        box-shadow: var(--pk-shadow-lg);
    }

.ps-filter-phone-card-inner {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr) 170px;
    gap: 18px;
    align-items: center;
}

.ps-filter-phone-image {
    height: 220px;
    border-radius: 14px;
    background: linear-gradient(145deg,var(--pk-surface-2),var(--pk-surface));
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .ps-filter-phone-image img {
        width: 165px;
        height: 205px;
        object-fit: contain;
    }

.ps-filter-phone-content {
    min-width: 0;
}

    .ps-filter-phone-content h3 {
        margin: 0 0 5px;
        font-size: 19px;
        line-height: 1.25;
    }

        .ps-filter-phone-content h3 a:hover {
            color: var(--pk-blue);
        }

.ps-filter-phone-brand {
    color: var(--pk-muted);
    font-size: 12px;
    margin-bottom: 13px;
}

.ps-filter-spec-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.ps-filter-spec {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--pk-line);
    border-radius: 10px;
    background: var(--pk-surface-2);
}

    .ps-filter-spec small {
        display: block;
        color: var(--pk-muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: 2px;
    }

    .ps-filter-spec b {
        display: block;
        font-size: 12px;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.ps-filter-phone-side {
    border-left: 1px solid var(--pk-line);
    padding-left: 17px;
}

.ps-filter-price {
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.4px;
}

.ps-filter-price-label {
    color: var(--pk-muted);
    font-size: 11px;
    margin-top: 2px;
}

.ps-filter-rating {
    margin-top: 10px;
    color: var(--pk-muted);
    font-size: 11px;
}

.ps-filter-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 12px;
    padding: 0 12px;
    border: 1px solid var(--pk-blue);
    border-radius: 9px;
    color: var(--pk-blue);
    font-size: 12px;
    font-weight: 850;
}

    .ps-filter-view:hover {
        background: var(--pk-blue);
        color: #fff;
    }

.ps-filter-featured {
    display: inline-flex;
    margin-top: 10px;
    padding: 5px 8px;
    border-radius: 20px;
    background: var(--pk-green-bg);
    color: var(--pk-green);
    font-size: 10px;
    font-weight: 800;
}

.ps-filter-empty {
    background: var(--pk-surface);
    border: 1px dashed var(--pk-line);
    border-radius: var(--pk-radius);
    padding: 34px 20px;
    text-align: center;
    color: var(--pk-muted);
}

.ps-filter-copy {
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow);
    padding: 20px;
    margin-bottom: 18px;
}

    .ps-filter-copy h2 {
        margin: 0 0 9px;
        font-size: 20px;
    }

    .ps-filter-copy p {
        margin: 0;
        color: var(--pk-muted);
        font-size: 14px;
        line-height: 1.75;
    }

    .ps-filter-copy a {
        color: var(--pk-blue);
    }

.ps-filter-sidebar {
    width: 300px;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .ps-filter-sidebar .ps-widget {
        padding: 15px;
    }

.ps-filter-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pk-line);
    font-size: 13px;
    font-weight: 750;
}

    .ps-filter-links a:last-child {
        border-bottom: 0;
    }

    .ps-filter-links a:hover {
        color: var(--pk-blue);
    }

.ps-filter-links span {
    color: var(--pk-muted);
    font-size: 11px;
}

.ps-filter-note {
    color: var(--pk-muted);
    font-size: 11px;
    line-height: 1.55;
}

@media(max-width:1050px) {
    .ps-filter-phone-card-inner {
        grid-template-columns: 150px minmax(0,1fr) 155px;
    }

    .ps-filter-phone-image {
        height: 205px;
    }

        .ps-filter-phone-image img {
            width: 145px;
            height: 190px;
        }
}

@media(max-width:860px) {
    .ps-filter-layout {
        grid-template-columns: 1fr;
    }

    .ps-filter-sidebar {
        width: auto;
        position: static;
    }

    .ps-filter-phone-card-inner {
        grid-template-columns: 150px minmax(0,1fr);
    }

    .ps-filter-phone-side {
        border-left: 0;
        border-top: 1px solid var(--pk-line);
        padding: 13px 0 0;
        grid-column: 1/-1;
    }

    .ps-filter-view {
        display: inline-flex;
        width: auto;
        min-width: 150px;
    }
}

@media(max-width:620px) {
    .ps-seo-filter-page {
        width: min(100% - 24px,1440px);
    }

    .ps-filter-hero {
        padding: 17px;
    }

        .ps-filter-hero h1 {
            font-size: 29px;
        }

    .ps-filter-phone-card {
        padding: 11px;
    }

    .ps-filter-phone-card-inner {
        grid-template-columns: 82px minmax(0,1fr);
        gap: 12px;
    }

    .ps-filter-phone-image {
        height: 118px;
        border-radius: 10px;
    }

        .ps-filter-phone-image img {
            width: 75px;
            height: 108px;
        }

    .ps-filter-phone-content h3 {
        font-size: 15px;
    }

    .ps-filter-phone-brand {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .ps-filter-spec-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ps-filter-spec {
        padding: 7px 8px;
    }

        .ps-filter-spec small {
            font-size: 9px;
        }

        .ps-filter-spec b {
            font-size: 11px;
        }

    .ps-filter-phone-side {
        grid-column: 1/-1;
    }

    .ps-filter-price {
        font-size: 20px;
    }

    .ps-filter-view {
        width: 100%;
    }

    .ps-filter-copy {
        padding: 16px;
    }
}


/* =========================================================
   PhoneSeo inline CSS fix
   Keep header/footer owned by Category.master.
   Fix full-width background and compare tray visibility.
   ========================================================= */
.ps-seo-filter-page {
    position: relative;
    overflow: visible !important;
    padding-bottom: 130px !important;
    background: transparent;
    isolation: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

    .ps-seo-filter-page::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        background: var(--pk-bg, #f6f8fa);
        pointer-events: none;
    }

html[data-theme="dark"] .ps-seo-filter-page::before {
    background: var(--pk-bg, #090d10);
}

.ps-seo-filter-page .ps-compare-tray {
    position: fixed !important;
    left: 50% !important;
    bottom: 12px !important;
    z-index: 2147483000 !important;
    width: min(960px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    transform: translate(-50%, calc(100% + 24px)) !important;
    visibility: visible;
}

    .ps-seo-filter-page .ps-compare-tray.open {
        transform: translate(-50%, 0) !important;
    }

    .ps-seo-filter-page .ps-compare-tray .ps-compare-actions {
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        gap: 8px;
    }

    .ps-seo-filter-page .ps-compare-tray .ps-compare-now,
    .ps-seo-filter-page .ps-compare-tray .ps-remove-all {
        visibility: visible !important;
        opacity: 1 !important;
    }

@media (max-width: 620px) {
    .ps-seo-filter-page {
        width: calc(100% - 24px) !important;
        padding-bottom: 145px !important;
    }

        .ps-seo-filter-page .ps-compare-tray {
            bottom: 0 !important;
            width: 100vw !important;
            max-width: 100vw !important;
            border-radius: 16px 16px 0 0 !important;
        }

            .ps-seo-filter-page .ps-compare-tray .ps-compare-actions {
                flex-wrap: nowrap !important;
                gap: 7px !important;
            }

            .ps-seo-filter-page .ps-compare-tray .ps-compare-now {
                flex: 1 1 auto !important;
                min-width: 0;
            }
}


/* Added comparison and internal-link sections */
.ps-filter-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px
}

.ps-compare-add-btn, .ps-compare-open-sidebar {
    border: 1px solid var(--pk-blue);
    background: var(--pk-blue-tint);
    color: var(--pk-blue);
    border-radius: 9px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer
}

    .ps-compare-add-btn:hover, .ps-compare-open-sidebar:hover {
        background: var(--pk-blue);
        color: #fff
    }

.ps-related-link-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 14px
}

    .ps-related-link-grid a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--pk-line);
        border-radius: 10px;
        background: var(--pk-surface);
        color: var(--pk-ink);
        font-weight: 650
    }

        .ps-related-link-grid a span {
            color: var(--pk-blue);
            font-size: 20px
        }

.ps-compare-tray {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 2147483000;
    width: min(960px,calc(100vw - 24px));
    padding: 16px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: 16px;
    box-shadow: var(--pk-shadow-lg);
    transform: translate(-50%,calc(100% + 24px));
    transition: transform .25s ease;
    visibility: visible;
    color: var(--pk-ink)
}

    .ps-compare-tray.open {
        transform: translate(-50%,0)
    }

.ps-compare-tray-head, .ps-compare-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

    .ps-compare-tray-head > div {
        display: flex;
        flex-direction: column
    }

    .ps-compare-tray-head span, .ps-compare-item small {
        font-size: 12px;
        color: var(--pk-muted)
    }

.ps-compare-close, .ps-compare-item button {
    border: 0;
    background: transparent;
    color: var(--pk-muted);
    font-size: 24px;
    cursor: pointer
}

.ps-compare-items {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 12px 0
}

.ps-compare-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--pk-line);
    border-radius: 10px
}

    .ps-compare-item img {
        width: 44px;
        height: 48px;
        object-fit: contain
    }

    .ps-compare-item > div {
        display: flex;
        flex: 1;
        min-width: 0;
        flex-direction: column
    }

    .ps-compare-item strong {
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.ps-compare-empty {
    padding: 12px;
    color: var(--pk-muted);
    font-size: 13px
}

.ps-compare-now, .ps-remove-all {
    border: 0;
    border-radius: 9px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer
}

.ps-compare-now {
    background: var(--pk-blue);
    color: white
}

    .ps-compare-now:disabled {
        opacity: .45;
        cursor: not-allowed
    }

.ps-remove-all {
    background: var(--pk-surface-2);
    color: var(--pk-ink)
}

.ps-compare-reopen {
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 2147483000;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: var(--pk-blue);
    color: white;
    box-shadow: var(--pk-shadow-lg);
    font-weight: 750;
    cursor: pointer
}

    .ps-compare-reopen[hidden] {
        display: none !important
    }

/* BrandSeo-inspired PhoneSeo sections and sidebar cards */
.ps-filter-after-section {
    margin-top: 20px;
    padding: 20px
}

    .ps-filter-after-section .ps-v6-head h2 {
        font-size: 23px;
        font-weight: 900;
        line-height: 1.2
    }

    .ps-filter-after-section .ps-v6-head p {
        margin-top: 6px;
        color: var(--pk-muted);
        font-size: 13px
    }

.ps-filter-explore-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.ps-filter-explore-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--pk-line);
    border-radius: 14px;
    background: var(--pk-surface-2);
    min-width: 0;
    transition: var(--pk-ease)
}

    .ps-filter-explore-card:hover {
        border-color: var(--pk-blue);
        transform: translateY(-2px);
        box-shadow: var(--pk-shadow)
    }

.ps-filter-explore-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pk-blue-tint);
    color: var(--pk-blue);
    font-size: 20px;
    font-weight: 900
}

.ps-filter-explore-card b {
    font-size: 14px;
    line-height: 1.3
}

.ps-filter-explore-card small {
    font-size: 12px;
    color: var(--pk-muted);
    line-height: 1.45
}

.ps-filter-explore-card strong {
    margin-top: auto;
    color: var(--pk-blue);
    font-size: 12px
}

.ps-filter-editorial-copy {
    color: var(--pk-muted);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere
}

    .ps-filter-editorial-copy p {
        margin: 0 0 10px
    }

        .ps-filter-editorial-copy p:last-child {
            margin-bottom: 0
        }

.ps-filter-buying-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 14px
}

    .ps-filter-buying-grid > div {
        padding: 14px;
        border: 1px solid var(--pk-line);
        border-radius: 13px;
        background: var(--pk-surface-2)
    }

    .ps-filter-buying-grid span {
        display: inline-grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: var(--pk-blue-tint);
        color: var(--pk-blue);
        font-size: 11px;
        font-weight: 900;
        margin-bottom: 10px
    }

    .ps-filter-buying-grid b {
        display: block;
        font-size: 13px;
        line-height: 1.35
    }

    .ps-filter-buying-grid p {
        margin: 6px 0 0;
        color: var(--pk-muted);
        font-size: 12px;
        line-height: 1.55
    }

.ps-filter-side-feature {
    background: linear-gradient(145deg,var(--pk-surface),var(--pk-blue-tint))
}

.ps-filter-side-kicker {
    display: block;
    color: var(--pk-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    margin-bottom: 7px
}

.ps-filter-side-feature h3 {
    font-size: 17px !important;
    line-height: 1.25
}

.ps-filter-sidebar .ps-widget {
    min-width: 0
}

.ps-filter-sidebar .ps-filter-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pk-line);
    font-size: 12px
}

    .ps-filter-sidebar .ps-filter-links a:last-child {
        border-bottom: 0
    }

    .ps-filter-sidebar .ps-filter-links a:hover {
        color: var(--pk-blue)
    }

.ps-filter-sidebar .ps-filter-links b {
    color: var(--pk-blue);
    font-size: 19px;
    line-height: 1
}

.ps-filter-note {
    font-size: 12px;
    color: var(--pk-muted);
    line-height: 1.6;
    margin: 0 0 12px
}

@media(max-width:760px) {
    .ps-filter-explore-grid, .ps-filter-buying-grid {
        grid-template-columns: 1fr
    }

    .ps-filter-after-section {
        padding: 15px
    }

    .ps-compare-tray {
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        border-radius: 16px 16px 0 0
    }

    .ps-compare-items {
        grid-template-columns: 1fr
    }

    .ps-compare-reopen {
        right: 12px;
        bottom: 12px
    }

    .ps-filter-card-actions {
        width: 100%
    }
}



/* BrandSeo-aligned PhoneSeo sections */
.ps-filter-related-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.ps-filter-related-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--pk-line,#d9e2ec);
    border-radius: 14px;
    background: var(--pk-surface,#fff);
    color: inherit;
    text-decoration: none
}

    .ps-filter-related-card img {
        width: 72px;
        height: 84px;
        aspect-ratio: 6/7;
        object-fit: contain;
        border-radius: 10px;
        background: var(--pk-surface-2,#f3f6f8);
        flex: none
    }

    .ps-filter-related-card .ps-image-missing {
        position: relative;
        background: linear-gradient(145deg,var(--pk-surface-2),var(--pk-blue-tint))
    }

        .ps-filter-related-card.ps-image-missing:after {
            content: "PhoneScope";
            position: absolute;
            left: 12px;
            top: 12px;
            width: 72px;
            height: 84px;
            display: grid;
            place-items: center;
            font-size: 9px;
            font-weight: 800;
            color: var(--pk-muted);
            visibility: visible;
            border-radius: 10px;
            background: linear-gradient(145deg,var(--pk-surface-2),var(--pk-blue-tint))
        }

    .ps-filter-related-card strong {
        display: block;
        font-size: 14px;
        line-height: 1.35
    }

    .ps-filter-related-card small {
        display: block;
        color: var(--pk-muted,#68778a);
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.45
    }

.ps-filter-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0
}

.ps-filter-popular-item {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--pk-line,#d9e2ec);
    text-decoration: none;
    color: inherit
}

    .ps-filter-popular-item:last-child {
        border-bottom: 0
    }

    .ps-filter-popular-item img {
        width: 54px;
        height: 64px;
        aspect-ratio: 21/25;
        object-fit: contain;
        border-radius: 7px;
        background: var(--pk-surface-2,#f3f6f8);
        flex: none
    }

    .ps-filter-popular-item .ps-image-missing {
        position: relative;
        background: linear-gradient(145deg,var(--pk-surface-2),var(--pk-blue-tint))
    }

        .ps-filter-popular-item.ps-image-missing:after {
            content: "Phone";
            position: absolute;
            left: 0;
            top: 10px;
            width: 54px;
            height: 64px;
            display: grid;
            place-items: center;
            font-size: 9px;
            font-weight: 800;
            color: var(--pk-muted);
            visibility: visible;
            border-radius: 7px;
            background: linear-gradient(145deg,var(--pk-surface-2),var(--pk-blue-tint))
        }

    .ps-filter-popular-item strong {
        display: block;
        font-size: 13px
    }

    .ps-filter-popular-item small {
        display: block;
        color: var(--pk-muted,#68778a);
        margin-top: 4px
    }

.ps-filter-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

    .ps-filter-brand-tags a {
        border: 1px solid var(--pk-line,#d9e2ec);
        border-radius: 999px;
        padding: 8px 12px;
        text-decoration: none;
        color: inherit;
        background: var(--pk-surface-2,#f4f7fa);
        font-size: 12px
    }

.ps-inline-compare .ps-compare-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px
}

.ps-inline-compare .ps-compare-phone {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--pk-line,#d9e2ec);
    border-radius: 14px;
    background: var(--pk-surface-2,#f4f7fa);
    min-width: 0
}

    .ps-inline-compare .ps-compare-phone img {
        width: 110px;
        height: 120px;
        object-fit: contain;
        background: #fff;
        border-radius: 10px
    }

    .ps-inline-compare .ps-compare-phone h3 {
        font-size: 16px;
        margin: 0 0 8px
    }

.ps-inline-compare .ps-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--pk-line,#d9e2ec);
    border-radius: 12px;
    overflow: hidden
}

    .ps-inline-compare .ps-compare-table th, .ps-inline-compare .ps-compare-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid var(--pk-line,#d9e2ec);
        font-size: 13px
    }

    .ps-inline-compare .ps-compare-table th {
        background: var(--pk-surface-2,#f4f7fa)
    }

    .ps-inline-compare .ps-compare-table tr:last-child td {
        border-bottom: 0
    }

.ps-inline-compare[hidden] {
    display: none !important
}

@media(max-width:760px) {
    .ps-filter-related-grid {
        grid-template-columns: 1fr
    }

    .ps-inline-compare .ps-compare-duo {
        grid-template-columns: 1fr
    }

    .ps-inline-compare .ps-compare-phone img {
        width: 78px;
        height: 90px
    }

    .ps-inline-compare .ps-compare-table th, .ps-inline-compare .ps-compare-table td {
        padding: 8px;
        font-size: 12px
    }
}



.ps-filter-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 18px
}

.ps-filter-internal-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pk-line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--pk-blue);
    background: var(--pk-surface-2);
    font-size: 13px;
    font-weight: 650
}

    .ps-filter-internal-link:hover {
        border-color: var(--pk-blue);
        text-decoration: underline
    }

.ps-filter-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.ps-filter-faq-list details {
    padding: 14px 0;
    border-bottom: 1px solid var(--pk-line)
}

    .ps-filter-faq-list details:last-child {
        border-bottom: 0
    }

.ps-filter-faq-list summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--pk-ink);
    line-height: 1.5
}

.ps-filter-faq-list details p {
    margin: 9px 0 0;
    color: var(--pk-muted);
    font-size: 13px;
    line-height: 1.7
}

/* PhoneScope responsive polish: prevent page-level horizontal scrolling */
.ps-seo-filter-page, .ps-filter-layout, .ps-filter-main, .ps-filter-sidebar, .ps-v6-card {
    min-width: 0;
    max-width: 100%
}

html, body {
    max-width: 100%;
    overflow-x: clip
}

.ps-seo-filter-page {
    overflow-x: clip
}

.ps-filter-layout {
    grid-template-columns: minmax(0,1fr) 300px
}

.ps-filter-related-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.ps-filter-popular-item {
    min-width: 0
}

    .ps-filter-popular-item img {
        flex: 0 0 54px;
        width: 54px;
        height: 64px;
        object-fit: contain;
        padding: 3px
    }

    .ps-filter-popular-item span {
        min-width: 0;
        overflow-wrap: anywhere
    }

    .ps-filter-popular-item strong {
        line-height: 1.35
    }

.ps-filter-explore-card, .ps-filter-buying-grid > div {
    min-width: 0
}

.ps-inline-compare #psInlineCompareContent {
    min-width: 0;
    max-width: 100%
}

.ps-inline-compare .ps-compare-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0
}

    .ps-inline-compare .ps-compare-table th, .ps-inline-compare .ps-compare-table td {
        padding: 12px 10px;
        overflow-wrap: anywhere;
        word-break: normal
    }

        .ps-inline-compare .ps-compare-table th:first-child {
            width: 27%
        }

.ps-inline-compare .ps-compare-duo {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px
}

.ps-inline-compare .ps-compare-phone {
    min-width: 0
}

    .ps-inline-compare .ps-compare-phone img {
        max-width: 100%;
        height: 112px;
        object-fit: contain
    }

@media(max-width:900px) {
    .ps-filter-layout {
        grid-template-columns: minmax(0,1fr)
    }

    .ps-filter-sidebar {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px
    }

        .ps-filter-sidebar .ps-widget {
            margin: 0;
            min-width: 0
        }
}

@media(max-width:600px) {
    .ps-filter-related-grid {
        grid-template-columns: minmax(0,1fr)
    }

    .ps-filter-sidebar {
        grid-template-columns: minmax(0,1fr)
    }

    .ps-v6-matrix th, .ps-v6-matrix td {
        padding: 9px 7px;
        font-size: 12px
    }

        .ps-v6-matrix th:first-child, .ps-v6-matrix td:first-child {
            width: 27%
        }

    .ps-inline-compare .ps-compare-table th, .ps-inline-compare .ps-compare-table td {
        padding: 9px 6px;
        font-size: 12px
    }

    .ps-inline-compare .ps-compare-duo {
        grid-template-columns: minmax(0,1fr)
    }

    .ps-filter-hero {
        padding: 17px
    }
}

/* Expanded key-specification grid and PhoneScope score */
.ps-filter-spec-grid-expanded {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px 12px;
    margin-top: 14px
}

    .ps-filter-spec-grid-expanded .ps-filter-spec {
        min-width: 0;
        padding: 9px 10px;
        border: 1px solid var(--pk-border,#e2e8f0);
        border-radius: 10px;
        background: var(--pk-surface-2,#f7f9fb)
    }

        .ps-filter-spec-grid-expanded .ps-filter-spec small {
            display: block;
            margin-bottom: 4px;
            font-size: 11px;
            letter-spacing: .02em;
            color: var(--pk-muted,#64748b)
        }

        .ps-filter-spec-grid-expanded .ps-filter-spec b {
            display: -webkit-box;
            overflow: hidden;
            overflow-wrap: anywhere;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            font-size: 13px;
            line-height: 1.45
        }

.ps-filter-score-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--pk-green-bg,#e8f7ef);
    color: var(--pk-green,#087443);
    font-size: 13px;
    font-weight: 800
}

    .ps-filter-score-inline strong {
        font-size: 18px;
        font-variant-numeric: tabular-nums
    }

@media(max-width:600px) {
    .ps-filter-spec-grid-expanded {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px
    }

        .ps-filter-spec-grid-expanded .ps-filter-spec {
            padding: 8px
        }

            .ps-filter-spec-grid-expanded .ps-filter-spec b {
                font-size: 12px
            }
}


/* Compact, predictable phone cards: avoid very tall cards caused by displaying every spec at once. */
.ps-filter-phone-card {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 16px
}

.ps-filter-phone-card-inner {
    grid-template-columns: 132px minmax(0,1fr) 148px;
    gap: 16px;
    align-items: start
}

.ps-filter-phone-image {
    height: 172px;
    position: sticky;
    top: 100px
}

    .ps-filter-phone-image img {
        width: 122px;
        height: 160px;
        object-fit: contain
    }

.ps-filter-phone-content h3 {
    font-size: 18px;
    margin: 2px 0 5px
}

.ps-filter-phone-brand {
    margin-bottom: 10px
}

.ps-filter-spec-grid-compact {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px
}

    .ps-filter-spec-grid-compact .ps-filter-spec {
        padding: 7px 9px
    }

        .ps-filter-spec-grid-compact .ps-filter-spec b {
            display: block;
            white-space: normal;
            overflow-wrap: anywhere;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical
        }

.ps-filter-more-specs {
    margin-top: 9px;
    font-size: 12px
}

    .ps-filter-more-specs summary {
        cursor: pointer;
        color: var(--pk-blue);
        font-weight: 800;
        padding: 6px 0
    }

    .ps-filter-more-specs[open] .ps-filter-spec-grid {
        margin-top: 6px
    }

.ps-filter-score-inline {
    margin-top: 9px;
    padding: 9px 11px;
    min-height: 38px
}

    .ps-filter-score-inline strong {
        font-size: 15px;
        white-space: nowrap
    }

.ps-filter-phone-side {
    padding-left: 13px
}

.ps-filter-price {
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: anywhere
}

@media(max-width:860px) {
    .ps-filter-phone-card-inner {
        grid-template-columns: 110px minmax(0,1fr);
        gap: 13px
    }

    .ps-filter-phone-image {
        height: 145px;
        position: static
    }

        .ps-filter-phone-image img {
            width: 100px;
            height: 136px
        }

    .ps-filter-phone-side {
        grid-column: 1/-1;
        padding: 12px 0 0
    }
}

@media(max-width:620px) {
    .ps-filter-phone-card-inner {
        grid-template-columns: 76px minmax(0,1fr);
        gap: 10px
    }

    .ps-filter-phone-image {
        height: 108px
    }

        .ps-filter-phone-image img {
            width: 70px;
            height: 100px
        }

    .ps-filter-spec-grid-compact {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 6px
    }

        .ps-filter-spec-grid-compact .ps-filter-spec {
            padding: 6px 7px
        }

            .ps-filter-spec-grid-compact .ps-filter-spec b {
                font-size: 11px
            }

    .ps-filter-score-inline {
        align-items: flex-start
    }

        .ps-filter-score-inline strong {
            font-size: 13px
        }
}

/* Footer compare tray: product image and title link to the phone detail page. */
.ps-compare-item-link {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    flex: 1 1 auto;
}

    .ps-compare-item-link:hover strong,
    .ps-compare-item-link:focus-visible strong {
        color: var(--pk-blue);
        text-decoration: underline;
    }

    .ps-compare-item-link img {
        width: 44px;
        height: 58px;
        object-fit: contain;
    }

    .ps-compare-item-link span {
        min-width: 0;
        display: block
    }

    .ps-compare-item-link strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .ps-compare-item-link small {
        display: block
    }
