/* Shared catalogue styling for the iPad and Customized journeys. */
.ipads-page-shell,
.customized-page-shell {
    --catalog-surface: #f9f8ff;
    --catalog-border: #d8dde5;
    --catalog-blue: #1684ff;
}

/* iPad family showcase */
.ipads-page-shell {
    max-width: none;
    /* Keep the first heading below the fixed 62px site navigation. */
    padding-top: 62px !important;
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
    overflow-x: clip;
}

.ipads-series-showcase {
    overflow: hidden;
    border-radius: 0 0 64px 64px;
    background: var(--catalog-surface);
    box-shadow: 0 22px 34px rgba(17, 24, 39, .1);
}

.ipads-page-shell .iphones-page-hero,
.ipads-page-shell .iphones-page-grid-shell {
    width: 100%;
    margin: 0;
    background: var(--catalog-surface);
}

.ipads-page-shell .iphones-page-hero {
    padding: 42px 24px 0;
}

.ipads-page-shell .iphones-page-title {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: .1px;
}

.ipads-page-shell .iphones-page-grid-shell {
    padding: 72px 24px 66px;
    border-radius: 0;
    box-shadow: none;
}

.ipads-page-shell .iphones-page-grid {
    justify-content: center;
    gap: 36px clamp(54px, 7vw, 112px);
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0;
    border: 0;
}

.ipads-page-shell .iphones-page-card {
    width: 170px;
    min-height: 186px;
    gap: 18px;
}

.ipads-page-shell .iphones-builder-section {
    width: min(calc(100% - 64px), 1280px);
    height: 0;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -24px, 0);
    transition:
        height .75s cubic-bezier(.22, 1, .36, 1),
        margin .65s cubic-bezier(.22, 1, .36, 1),
        opacity .4s ease,
        transform .7s cubic-bezier(.22, 1, .36, 1);
}

.ipads-page-shell .iphones-builder-section.is-open {
    margin-top: 72px;
    margin-bottom: 72px;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.ipads-builder-configurator {
    display: grid;
    grid-template-columns: minmax(300px, 520px) minmax(460px, 640px);
    align-items: start;
    justify-content: center;
    gap: clamp(50px, 7vw, 110px);
}

.ipads-builder-product-visual {
    position: sticky;
    top: 150px;
    display: flex;
    min-height: 560px;
    justify-content: center;
    padding-top: 34px;
}

.ipads-builder-product-image {
    width: min(100%, 360px);
    height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(15, 23, 42, .14));
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(.97);
    transition:
        opacity .55s cubic-bezier(.22, 1, .36, 1),
        transform .7s cubic-bezier(.22, 1, .36, 1);
}

.ipads-builder-product-image.is-image-ready {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.ipads-builder-configurator-title {
    margin: 0 0 30px;
    color: #08080a;
    font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ipads-page-shell .iphones-builder-controls {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ipads-page-shell .iphones-builder-controls-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.ipads-page-shell .iphones-builder-field {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 44px;
    align-items: center;
    padding: 0 0 0 16px;
    border: 1px solid #d6dce3;
    border-radius: 10px;
    background: #fafafa;
}

.ipads-page-shell .iphones-builder-label,
.ipads-page-shell .iphones-builder-label-row {
    margin: 0;
    padding: 0;
    text-align: left;
    color: #202124;
    font-size: 14px;
    font-weight: 600;
}

.ipads-page-shell .iphones-builder-select,
.ipads-page-shell .iphones-builder-dropdown-trigger {
    min-height: 42px;
    padding: 0 42px 0 10px;
    border: 0 !important;
    border-radius: 0 10px 10px 0;
    background-color: transparent;
    box-shadow: none !important;
    outline: 0;
    font-size: 15px;
    font-weight: 600;
}

.ipads-page-shell .iphones-builder-dropdown-trigger:hover,
.ipads-page-shell .iphones-builder-dropdown.is-open .iphones-builder-dropdown-trigger,
.ipads-page-shell .iphones-builder-dropdown-trigger:focus-visible,
.ipads-page-shell .iphones-builder-dropdown.is-disabled .iphones-builder-dropdown-trigger,
.ipads-page-shell .iphones-builder-dropdown-trigger:disabled {
    border: 0 !important;
    background-color: transparent;
    box-shadow: none !important;
    transform: none;
}

.ipads-page-shell .iphones-builder-dropdown.is-disabled .iphones-builder-dropdown-trigger,
.ipads-page-shell .iphones-builder-dropdown-trigger:disabled {
    color: #b3b3b8;
}

.ipads-page-shell .iphones-builder-field--fixed-quality .iphones-builder-dropdown-trigger,
.ipads-page-shell .iphones-builder-field--fixed-quality .iphones-builder-dropdown.is-disabled .iphones-builder-dropdown-trigger {
    color: #111111;
    background-image: none;
    opacity: 1;
}

.ipads-page-shell .iphones-builder-field--model {
    grid-column: auto;
}

.ipads-page-shell .iphones-builder-field--model .iphones-builder-select,
.ipads-page-shell .iphones-builder-field--model .iphones-builder-dropdown-trigger {
    min-height: 42px;
    font-size: 15px;
}

.ipads-page-shell .iphones-builder-field:focus-within {
    border-color: var(--catalog-blue);
    box-shadow: 0 0 0 3px rgba(22, 132, 255, .12);
}

.ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-image-wrap,
.ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-title {
    opacity: 0;
    will-change: opacity, transform, filter;
}

.ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-image-wrap {
    filter: blur(3px);
    transform: translate3d(0, 26px, 0) scale(.88);
    transition:
        opacity .72s cubic-bezier(.22, 1, .36, 1),
        transform .82s cubic-bezier(.22, 1, .36, 1),
        filter .72s ease;
}

.ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-title {
    transform: translate3d(0, 12px, 0);
    transition:
        opacity .52s ease,
        transform .62s cubic-bezier(.22, 1, .36, 1);
}

.ibp-motion-enabled .ipads-page-shell .iphones-page-grid.is-visible .iphones-page-card.is-image-ready .iphones-page-card-image-wrap,
.ibp-motion-enabled .ipads-page-shell .iphones-page-grid.is-visible .iphones-page-card .iphones-page-card-title {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: calc(120ms + (var(--iphone-series-index, 0) * 90ms));
}

/* Customized product journey */
.customized-page-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
    overflow-x: clip;
}

.customized-page-hero,
.customized-category-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    background: var(--catalog-surface);
}

.customized-page-hero {
    padding: 52px 24px 28px;
}

.customized-page-title {
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 600;
    letter-spacing: -.035em;
}

.customized-category-shell {
    padding: 34px 24px 64px;
    border-radius: 0 0 64px 64px;
    box-shadow: 0 22px 34px rgba(17, 24, 39, .1);
}

.customized-category-grid {
    justify-content: center;
    width: min(100%, 1400px);
    margin: 0 auto;
    gap: 34px clamp(24px, 4vw, 64px);
}

.customized-category-card {
    min-height: 176px;
    border: 2px solid transparent;
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
}

.customized-category-card:hover,
.customized-category-card:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.customized-category-card.is-active {
    border: 2px solid var(--catalog-blue);
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.customized-category-card:hover .customized-category-card-image-wrap,
.customized-category-card:focus-visible .customized-category-card-image-wrap,
.customized-category-card.is-active .customized-category-card-image-wrap {
    filter: none;
    transform: none;
}

.customized-category-card:hover .customized-category-card-title,
.customized-category-card:focus-visible .customized-category-card-title,
.customized-category-card.is-active .customized-category-card-title {
    color: var(--catalog-blue);
}

@media (min-width: 1200px) {
    .customized-category-grid {
        flex-wrap: nowrap;
    }

    .customized-category-card {
        flex: 0 0 172px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .customized-category-grid {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0 24px 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .customized-category-grid::-webkit-scrollbar {
        display: none;
    }

    .customized-category-card {
        flex: 0 0 172px;
        scroll-snap-align: start;
    }
}

.customized-divider {
    margin: 72px auto 0;
}

.customized-products-shell {
    width: min(calc(100% - 48px), 1180px);
    margin-top: 58px;
}

.customized-products-rail {
    padding-top: 16px;
    padding-bottom: 42px;
}

.customized-product-card {
    border: 2px solid transparent;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
}

.customized-product-card.is-selected {
    border-color: var(--catalog-blue);
}

.customized-selection-shell {
    width: min(100%, 760px);
    margin: 54px auto 0;
}

.customized-selection-card {
    padding: 26px 28px;
    border: 1px solid var(--catalog-border);
    border-radius: 20px;
    background: #f7f7f8;
}

.customized-selection-title {
    font-size: 22px;
}

.customized-selection-grid {
    gap: 16px;
    margin-top: 24px;
}

.customized-select {
    min-height: 54px;
    border-color: var(--catalog-blue);
    border-radius: 10px;
}

@media (max-width: 767px) {
    .ipads-page-shell {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .ipads-series-showcase,
    .ipads-page-shell .iphones-page-grid-shell,
    .ipads-page-shell .iphones-builder-section,
    .ipads-builder-configurator,
    .ipads-builder-configuration-panel {
        box-sizing: border-box;
        max-width: 100%;
    }

    .ipads-page-shell .iphones-page-hero {
        box-sizing: border-box;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
        padding-top: 28px;
        text-align: center;
    }

    .ipads-page-shell .iphones-page-title,
    .customized-page-title {
        font-size: 30px;
        line-height: 1.18;
    }

    .ipads-page-shell .iphones-page-title {
        width: 100%;
        text-align: center;
    }

    .ipads-page-shell .iphones-page-grid-shell,
    .customized-category-shell {
        padding-right: 16px;
        padding-left: 16px;
        border-radius: 0 0 38px 38px;
    }

    .ipads-series-showcase {
        border-radius: 0 0 38px 38px;
    }

    .ipads-page-shell .iphones-page-grid-shell {
        padding-right: 0;
        padding-left: 0;
        padding-top: 44px;
        padding-bottom: 36px;
    }

    .ipads-page-shell .iphones-page-grid {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0 20px 20px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .ipads-page-shell .iphones-page-card {
        flex: 0 0 132px;
        width: 132px;
        min-height: 148px;
        scroll-snap-align: start;
    }

    .ipads-page-shell .iphones-page-grid::-webkit-scrollbar {
        display: none;
    }

    .ipads-page-shell .iphones-page-grid-controls {
        margin: 8px auto 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ipads-page-shell .iphones-page-grid-control,
    .ipads-page-shell .iphones-page-grid-control:hover,
    .ipads-page-shell .iphones-page-grid-control:focus,
    .ipads-page-shell .iphones-page-grid-control:focus-visible,
    .ipads-page-shell .iphones-page-grid-control:active,
    .ipads-page-shell .iphones-page-grid-control:disabled {
        border-color: #dbe4eb;
        background: #ffffff;
        color: #17181a;
        outline: none;
    }

    .ipads-page-shell .iphones-page-grid-control path,
    .ipads-page-shell .iphones-page-grid-control:hover path,
    .ipads-page-shell .iphones-page-grid-control:focus path,
    .ipads-page-shell .iphones-page-grid-control:active path {
        stroke: #17181a;
    }

    .ipads-page-shell .iphones-page-grid-control:disabled path {
        stroke: rgba(23, 24, 26, .42);
    }

    .ipads-page-shell .iphones-page-card.is-active .iphones-page-card-title {
        color: #17181a;
    }

    .ipads-page-shell .iphones-builder-section {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    .ipads-page-shell .ipads-builder-configuration-panel {
        box-sizing: border-box;
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .ipads-page-shell .iphones-builder-section.is-open {
        margin-top: 46px;
        margin-bottom: 28px;
    }

    .ipads-builder-configurator {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ipads-builder-product-visual {
        position: static;
        min-height: 270px;
        padding-top: 0;
    }

    .ipads-builder-product-image {
        width: min(100%, 250px);
        height: 270px;
    }

    .ipads-builder-configurator-title {
        margin-bottom: 24px;
        font-size: 30px;
        text-align: center;
    }

    .ipads-page-shell .iphones-builder-controls {
        box-sizing: border-box;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding: 0;
        border-radius: 0;
    }

    .ipads-page-shell .iphones-builder-controls-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ipads-page-shell .iphones-builder-field--model {
        grid-column: auto;
    }

    .ipads-page-shell .iphones-builder-field {
        box-sizing: border-box;
        width: 100%;
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 50px;
        padding-left: 12px;
    }

    .ipads-page-shell .iphones-builder-selected {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .ipads-page-shell .iphones-builder-action {
        justify-content: center;
    }

    .ipads-page-shell .iphones-builder-add-button {
        width: min(100%, 180px);
        min-height: 44px;
        font-size: 16px;
    }

    .ipads-page-shell > .iphones-partners-section {
        margin-top: 0;
    }

    .customized-page-hero {
        padding: 34px 16px 22px;
    }

    .customized-category-shell {
        padding-top: 22px;
        padding-bottom: 42px;
    }

    .customized-divider {
        margin-top: 48px;
    }

    .customized-products-shell {
        width: calc(100% - 24px);
        margin-top: 42px;
    }

    .customized-selection-shell {
        width: 100%;
        margin-top: 38px;
    }

    .customized-selection-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .customized-selection-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ipads-page-shell .iphones-builder-section,
    .ipads-builder-product-image,
    .ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-image-wrap,
    .ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-title {
        transition-duration: .01ms;
    }

    .ipads-builder-product-image,
    .ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-image-wrap,
    .ibp-motion-enabled .ipads-page-shell .iphones-page-grid .iphones-page-card-title {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* Four categories on the first row, with the last two centered below. */
@media (min-width: 768px) {
    .customized-category-shell {
        overflow-x: hidden;
    }

    .customized-category-grid {
        display: grid !important;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        width: min(100%, 1000px) !important;
        max-width: 100%;
        gap: 28px 20px;
    }

    .customized-category-card {
        grid-column: span 2;
        width: 100%;
        min-width: 0;
        max-width: 200px;
        justify-self: center;
    }

    .customized-category-card[data-customized-category="iphone-air"] {
        grid-column: 3 / span 2;
    }

    .customized-category-card[data-customized-category="accessories"] {
        grid-column: 5 / span 2;
    }

    .customized-what-you-get-media {
        height: 320px;
        min-height: 320px;
    }
}

html.customized-motion-enabled .customized-page-shell .customized-brand-showcase-gallery [data-customized-reveal] {
    transition-duration: .2s !important;
    transition-delay: 0ms !important;
}

.customized-brand-showcase-gallery-wrap {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
}

.customized-brand-showcase-gallery-wrap .customized-brand-showcase-gallery {
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    padding: 0 max(24px, 7%) 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-y: none;
    scroll-padding-inline: max(24px, 7%);
}


/* Customized page: three-stage reveal matching the iPhone journey. */
.customized-page-shell {
    padding-top: 0 !important;
}

.customized-page-title,
.customized-color-stage-title,
.customized-configuration-stage-title {
    color: #08080a;
    font-family: "SF Pro Display", "SF Pro Icons", "AOS Icons", "Helvetica Neue", Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: .1px;
    text-align: center;
}

/* Match the iPhone catalogue's reveal and image-loading motion. */
html.customized-motion-enabled .customized-page-shell [data-customized-reveal] {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .75s cubic-bezier(.22, 1, .36, 1),
        transform .75s cubic-bezier(.22, 1, .36, 1),
        filter .75s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--customized-reveal-delay, 0ms);
    will-change: transform, opacity, filter;
}

html.customized-motion-enabled .customized-page-shell [data-customized-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

html.customized-motion-enabled .customized-page-shell .customized-products-shell [data-customized-reveal],
html.customized-motion-enabled .customized-page-shell .customized-brand-showcase-gallery [data-customized-reveal] {
    filter: blur(4px);
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .75s cubic-bezier(.22, 1, .36, 1),
        transform .75s cubic-bezier(.22, 1, .36, 1),
        filter .75s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--customized-reveal-delay, 0ms);
}

html.customized-motion-enabled .customized-page-shell .customized-products-shell [data-customized-reveal].is-visible,
html.customized-motion-enabled .customized-page-shell .customized-brand-showcase-gallery [data-customized-reveal].is-visible {
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

html.customized-motion-enabled .customized-category-grid .customized-category-card-image-wrap,
html.customized-motion-enabled .customized-category-grid .customized-category-card-title {
    opacity: 0;
    will-change: opacity, transform, filter;
}

html.customized-motion-enabled .customized-category-grid .customized-category-card-image-wrap {
    filter: blur(3px);
    transform: translate3d(0, 26px, 0) scale(.88);
    transition:
        opacity .72s cubic-bezier(.22, 1, .36, 1),
        transform .82s cubic-bezier(.22, 1, .36, 1),
        filter .72s ease;
}

html.customized-motion-enabled .customized-category-grid .customized-category-card-title {
    transform: translate3d(0, 12px, 0);
    transition:
        opacity .52s ease,
        transform .62s cubic-bezier(.22, 1, .36, 1);
}

html.customized-motion-enabled .customized-category-grid.is-visible .customized-category-card.is-image-ready .customized-category-card-image-wrap,
html.customized-motion-enabled .customized-category-grid.is-visible .customized-category-card .customized-category-card-title {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: calc(120ms + (var(--customized-category-index, 0) * 90ms));
}

html.customized-motion-enabled .customized-product-card[data-customized-reveal].is-visible:not(.is-image-ready) {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 34px, 0);
}

.customized-configurator-image {
    opacity: 1;
    transform: none;
    transition: none;
}

.customized-configurator-image.is-image-ready {
    opacity: 1;
    transform: none;
}

@media (max-width: 552px) {
    .customized-category-grid[data-customized-reveal],
    .customized-category-grid[data-customized-reveal].is-visible {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.customized-motion-enabled .customized-page-shell [data-customized-reveal],
    html.customized-motion-enabled .customized-category-grid .customized-category-card-image-wrap,
    html.customized-motion-enabled .customized-category-grid .customized-category-card-title,
    .customized-configurator-image {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

.customized-page-hero {
    padding-top: 104px;
}

.customized-divider {
    display: none;
}

.customized-products-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100px;
    max-height: 100px;
    margin-top: -25px;
    padding: 0 clamp(24px, 6vw, 96px);
    overflow: hidden;
    border-radius: 0 0 60px 60px;
    background: #f7f7f7;
    box-shadow: 0 22px 34px rgba(17, 24, 39, .08);
    opacity: 1;
    transform: translateY(-28px);
    transition:
        max-height .8s cubic-bezier(.22, 1, .36, 1),
        min-height .65s cubic-bezier(.22, 1, .36, 1),
        padding .65s cubic-bezier(.22, 1, .36, 1),
        transform .65s cubic-bezier(.22, 1, .36, 1),
        box-shadow .4s ease;
}

.customized-products-shell:not(.is-open) > .customized-products-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.customized-products-shell.is-open {
    min-height: 0;
    max-height: 8000px;
    padding-top: 68px;
    padding-bottom: 0;
    box-shadow: none;
    transform: translateY(0);
}

.customized-products-shell.is-open > .customized-products-panel {
    visibility: visible;
    opacity: 1;
    transition: opacity .35s ease .12s;
}

.customized-products-shell.is-configuration-open {
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.customized-color-stage-title {
    margin: 0 0 72px;
}

.customized-color-stage {
    width: 100%;
    min-height: 560px;
    margin: -68px 0 0;
    padding: 86px 30px 56px;
    border-radius: 0 0 60px 60px;
    background: #f7f7f7;
    box-shadow: none;
}

.customized-configuration-stage-title {
    margin: 0 0 28px;
}

.customized-products-rail {
    --customized-products-rail-column-width: 176px;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 16px 8px 42px;
    gap: 20px;
    overflow-y: hidden;
    overscroll-behavior-y: auto;
    touch-action: auto;
    scroll-padding-left: 8px;
}

@media (min-width: 768px) {
    .customized-products-shell {
        padding-right: 0;
        padding-left: 0;
    }

    .customized-products-rail-wrap {
        width: min(100%, 1120px);
        margin-right: auto;
        margin-left: auto;
    }

    .customized-products-rail-control {
        top: 50%;
        z-index: 5;
        width: 46px;
        height: 46px;
    }

    .customized-products-rail-control--prev {
        left: 16px;
    }

    .customized-products-rail-control--next {
        right: 16px;
    }

    .customized-products-panel,
    .customized-color-stage {
        box-sizing: border-box;
        width: 100%;
    }

    .customized-products-rail {
        width: 100%;
        grid-auto-columns: 176px;
        margin-right: auto;
        margin-left: auto;
        padding: 0 72px 18px;
        scroll-padding-inline: 72px;
    }

    .customized-products-rail-wrap.is-scrollable.has-right-overflow:not(.has-left-overflow) .customized-products-rail {
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 93%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 93%, transparent 100%);
    }

    .customized-products-rail-wrap.is-scrollable.has-left-overflow.has-right-overflow .customized-products-rail {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
    }

    .customized-products-rail-wrap.is-scrollable.has-left-overflow:not(.has-right-overflow) .customized-products-rail {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 100%);
    }

    .customized-products-rail--centered-desktop {
        grid-template-columns: repeat(var(--customized-products-count), 176px);
        width: min(100%, 764px);
        padding-right: 0;
        padding-left: 0;
    }

    .customized-product-card {
        width: 176px;
        min-height: 224px;
        padding: 16px 14px 12px;
        gap: 10px;
        border-width: 1.5px;
        border-radius: 20px;
        box-shadow: none;
    }

    .customized-product-card:hover,
    .customized-product-card:focus-visible,
    .customized-product-card.is-selected {
        transform: none;
        box-shadow: none;
    }

    .customized-customize-button-wrap-desktop {
        margin: 24px auto 30px;
    }

    .customized-product-card-media {
        min-height: 158px;
    }

    .customized-product-card-image {
        width: 116px;
        max-width: 116px;
        height: 158px;
        margin-top: 0;
    }

    .customized-product-card-image--rose-gold {
        width: 80px;
        max-width: 80px;
        height: 108px;
        margin-top: 0;
    }

    .customized-product-card:hover .customized-product-card-image,
    .customized-product-card:focus-visible .customized-product-card-image,
    .customized-product-card.is-selected .customized-product-card-image {
        transform: none;
    }

    .customized-product-card-title {
        font-size: 14px;
        line-height: 1.2;
    }
}

.customized-selection-shell {
    width: min(100%, 760px);
    max-height: 0;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-18px);
    transition:
        max-height .75s cubic-bezier(.22, 1, .36, 1),
        margin .65s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease,
        transform .65s cubic-bezier(.22, 1, .36, 1);
}

.customized-products-shell.is-configuration-open .customized-products-panel:not([hidden]) .customized-selection-shell {
    max-height: 4000px;
    margin-top: 76px;
    opacity: 1;
    transform: translateY(0);
}

.customized-products-shell .customized-selection-shell {
    width: min(100%, 1320px);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.customized-configurator-layout {
    display: grid;
    grid-template-columns: minmax(430px, 560px) minmax(460px, 560px);
    align-items: start;
    justify-content: center;
    gap: clamp(46px, 6vw, 76px);
}

.customized-configurator-content {
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

.customized-configurator-visual {
    position: sticky;
    top: 150px;
    display: flex;
    min-height: 730px;
    justify-content: center;
    padding-top: 20px;
}

.customized-configurator-gallery {
    width: min(100%, 560px);
    touch-action: pan-y;
}

.customized-configurator-gallery-stage {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 650px;
    place-items: center;
    overflow: hidden;
}

.customized-configurator-gallery.has-multiple-images .customized-configurator-gallery-stage {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.customized-configurator-image {
    width: min(100%, 500px);
    height: 650px;
    object-fit: contain;
}

.customized-configurator-gallery.has-multiple-images .customized-configurator-image {
    width: 100%;
    padding: 8px;
    filter: none;
}

.customized-configurator-gallery-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #dfe5ec;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    color: #111;
    transform: translateY(-50%);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.customized-configurator-gallery-control:hover {
    border-color: var(--catalog-blue);
    color: var(--catalog-blue);
    transform: translateY(-50%) scale(1.04);
}

.customized-configurator-gallery-control--prev {
    left: 14px;
}

.customized-configurator-gallery-control--next {
    right: 14px;
}

.customized-configurator-gallery-control svg {
    width: 10px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.customized-configurator-gallery-count {
    position: absolute;
    right: 16px;
    bottom: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.customized-configurator-gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

@media (min-width: 768px) {
    .customized-configurator-gallery-thumbnails {
        justify-content: center;
    }

    .customized-configurator-layout {
        align-items: start;
    }

    .customized-configurator-visual {
        height: clamp(540px, 44vw, 650px);
        min-height: 0;
        padding-top: 0;
        align-self: start;
    }

    .customized-configurator-gallery {
        display: flex;
        height: 100%;
        min-height: 0;
        flex-direction: column;
    }

    .customized-configurator-gallery-stage {
        position: relative;
        min-height: 0;
        flex: 1 1 auto;
    }

    .customized-configurator-image,
    .customized-configurator-gallery.has-multiple-images .customized-configurator-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        object-fit: contain;
    }
}

@media (min-width: 1200px) {
    .customized-configurator-gallery.has-multiple-images .customized-configurator-image {
        inset: -8%;
        width: 116%;
        height: 116%;
        max-height: none;
        padding: 0;
        object-position: center;
    }

    #customized-panel-iphone-duo .customized-configurator-gallery.has-multiple-images .customized-configurator-image {
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        padding: 8px;
    }
}

.customized-configurator-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.customized-configurator-gallery-thumbnail {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    transition: border-color .2s ease, transform .2s ease;
}

.customized-configurator-gallery-thumbnail:hover,
.customized-configurator-gallery-thumbnail.is-selected {
    border-color: var(--catalog-blue);
}

.customized-configurator-gallery-thumbnail.is-selected {
    transform: translateY(-2px);
}

.customized-configurator-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
}

.customized-configurator-gallery-control[hidden],
.customized-configurator-gallery-count[hidden],
.customized-configurator-gallery-thumbnails[hidden] {
    display: none;
}

.customized-configuration-stage-title {
    text-align: left;
}

.customized-configurator-content .customized-selection-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.customized-configurator-content .customized-selection-copy {
    display: none;
}

.customized-configurator-content .customized-selection-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
}

.customized-configurator-content .customized-selection-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 52px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--catalog-border);
    border-radius: 10px;
    background: #fafafa;
}

.customized-configurator-content .customized-selection-field:has(.customized-select-wrap--buttons) {
    display: block;
    min-height: 0;
    padding: 0 0 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.customized-configurator-content .customized-selection-label {
    margin: 0;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
}

.customized-configurator-content .customized-selection-field:has(.customized-select-wrap--buttons) .customized-selection-label {
    display: block;
    margin-bottom: 12px;
    padding: 0;
    font-size: 16px;
}

.customized-configurator-content .customized-select-wrap {
    position: relative;
    height: 100%;
}

.customized-configurator-content .customized-select-wrap.is-enhanced::after {
    display: none;
}

.customized-configurator-content .customized-select-wrap--buttons {
    height: auto;
}

.customized-option-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    width: 100%;
}

#customized-panel-iphone-duo [data-customized-sim-field] .customized-option-buttons {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.customized-option-button {
    min-width: 0;
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid #d5dbe3;
    border-radius: 9px;
    background: #fff;
    color: #111;
    font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.customized-option-button:hover,
.customized-option-button:focus-visible {
    border-color: var(--catalog-blue);
    outline: none;
}

.customized-option-button.is-selected {
    border-color: var(--catalog-blue);
    background: #f2f8ff;
    color: #087bea;
}

.customized-option-button:disabled {
    border-color: #e0e4e9;
    background: #f4f5f7;
    color: #9ca3ad;
    cursor: not-allowed;
}

.customized-configurator-content .customized-select {
    min-height: 50px;
    border: 0 !important;
    border-radius: 0 10px 10px 0;
    background: transparent;
    box-shadow: none !important;
    font-size: 15px;
}

.customized-configurator-content .customized-select.is-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.customized-select-dropdown {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.customized-select-dropdown.is-open {
    z-index: 50;
}

.customized-select-trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    padding: 0 50px 0 14px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.customized-select-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6L8 11L13 6' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    transform: translateY(-50%);
    transition: transform .22s ease;
}

.customized-select-dropdown.is-open .customized-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.customized-select-trigger:focus-visible {
    outline: none;
}

.customized-select-trigger:disabled {
    color: #a5a8ad;
    cursor: not-allowed;
}

.customized-select-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 7px);
    left: -112px;
    display: none;
    width: calc(100% + 112px);
    max-height: 280px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #d6dce3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(15, 23, 42, .18);
}

.customized-select-dropdown.is-open .customized-select-menu {
    display: grid;
    gap: 3px;
}

.customized-select-option {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #111;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.customized-select-option:hover,
.customized-select-option:focus-visible,
.customized-select-option.is-selected {
    outline: none;
    background: #edf5ff;
    color: #087bea;
}

.customized-select-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.customized-configurator-content .customized-selection-field.has-open-dropdown {
    position: relative;
    z-index: 40;
    overflow: visible;
    border-color: var(--catalog-blue);
    box-shadow: 0 0 0 3px rgba(22, 132, 255, .12);
}

.customized-configurator-content .customized-selection-field:focus-within {
    border-color: var(--catalog-blue);
    box-shadow: 0 0 0 3px rgba(22, 132, 255, .12);
}

.customized-configurator-content .customized-selection-field:has(.customized-select-wrap--buttons):focus-within {
    border-color: transparent;
    box-shadow: none;
}

.customized-configurator-content .customized-selection-price {
    margin-top: 26px;
}

.customized-configurator-content .customized-selection-note {
    margin-top: 14px;
    font-size: 14px;
}

.customized-configurator-content .customized-selection-actions {
    margin-top: 24px;
}

.customized-configurator-content .customized-accordion-shell {
    margin-top: 34px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.customized-configurator-content .customized-accordion-item {
    overflow: hidden;
    border: 0;
    border-top: 1px solid var(--catalog-border);
    border-radius: 0;
    background: transparent;
}

.customized-configurator-content .customized-accordion-item + .customized-accordion-item {
    margin-top: 0;
    border-top: 1px solid var(--catalog-border);
}

.customized-configurator-content .customized-accordion-trigger {
    min-height: 68px;
    padding: 18px 0;
}

.customized-configurator-content .customized-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 400;
}

.customized-accordion-label-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.customized-configurator-content .customized-accordion-copy {
    padding: 0 0 22px;
}

.customized-configurator-content .customized-selection-price {
    color: #087bea;
    font-size: 20px;
    font-weight: 600;
}

.customized-configurator-content .customized-selection-note {
    line-height: 1.55;
}

.customized-configurator-content .ibp-directory-whatsapp,
.customized-configurator-content .ibp-directory-whatsapp:visited {
    min-height: 48px;
    padding: 0 22px;
    border-color: #5ec66a;
    background: #242424;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
}

.customized-configurator-content .ibp-directory-whatsapp:hover,
.customized-configurator-content .ibp-directory-whatsapp:focus-visible {
    border-color: #72dd7d;
    background: #2b2b2b;
    color: #fff;
}

.customized-configurator-content .ibp-directory-whatsapp-icon {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .customized-products-shell .customized-selection-shell {
        width: min(100%, 980px);
    }

    .customized-configurator-layout {
        grid-template-columns: minmax(320px, .95fr) minmax(380px, 520px);
        gap: 36px;
    }

    .customized-configurator-visual {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .customized-category-card.is-active,
    .customized-category-card.is-active:hover,
    .customized-category-card.is-active:focus-visible {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        outline: none;
    }

    .customized-page-hero {
        padding-top: 112px;
    }

    .customized-products-shell {
        width: 100%;
        min-height: 58px;
        max-height: 58px;
        margin-top: -18px;
        padding-right: 12px;
        padding-left: 12px;
        border-radius: 0 0 38px 38px;
        transform: translateY(-18px);
    }

    .customized-products-shell.is-open {
        min-height: 0;
        max-height: 8000px;
        padding-top: 46px;
        padding-bottom: 52px;
        transform: translateY(0);
    }

    .customized-color-stage-title {
        margin-bottom: 30px;
    }

    .customized-color-stage {
        width: auto;
        min-height: 0;
        margin: -46px -12px 0;
        padding: 46px 12px 24px;
        border-radius: 0 0 38px 38px;
    }

    .customized-customize-button-wrap-mobile {
        margin-bottom: 0;
    }

    .customized-products-shell.is-configuration-open .customized-products-panel:not([hidden]) .customized-selection-shell {
        margin-top: 44px;
    }

    .customized-configurator-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .customized-configurator-content {
        max-width: 100%;
    }

    .customized-configurator-visual {
        position: static;
        min-height: 330px;
        padding-top: 0;
    }

    .customized-configurator-image {
        width: min(100%, 290px);
        height: 330px;
    }

    .customized-configurator-gallery {
        width: min(100%, 360px);
    }

    .customized-configurator-gallery-stage {
        min-height: 350px;
    }

    .customized-configurator-gallery.has-multiple-images .customized-configurator-image {
        height: 350px;
        padding: 12px;
    }

    .customized-configurator-gallery-control {
        width: 40px;
        height: 40px;
    }

    .customized-configurator-gallery-control--prev {
        left: 10px;
    }

    .customized-configurator-gallery-control--next {
        right: 10px;
    }

    .customized-configurator-gallery-thumbnails {
        width: 100%;
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }

    .customized-configurator-gallery-thumbnail {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .customized-option-buttons,
    #customized-panel-iphone-duo [data-customized-sim-field] .customized-option-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customized-option-button {
        min-height: 48px;
        font-size: 15px;
    }

    .customized-configurator-content .customized-selection-actions {
        align-items: center;
    }

    .customized-configurator-content .ibp-directory-whatsapp,
    .customized-configurator-content .ibp-directory-whatsapp:visited {
        width: 85%;
        min-height: 70px;
        margin-right: auto;
        margin-left: auto;
        font-size: 16px;
        gap: 12px;
    }

    .customized-configurator-content .ibp-directory-whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .customized-configuration-stage-title {
        margin-bottom: 24px;
        text-align: center;
    }

    .customized-configurator-content .customized-selection-field {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 50px;
    }

    .customized-select-menu {
        left: -96px;
        width: calc(100% + 96px);
    }
}

@media (max-width: 767px) {
    .customized-products-grid-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .customized-product-card-mobile {
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 16px 8px;
        text-align: center;
    }

    .customized-product-image-wrap-mobile {
        width: 90px;
        height: 90px;
        border-radius: 0;
        background: transparent;
    }

    .customized-product-card-title-mobile {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .customized-configurator-content .ibp-directory-whatsapp,
    .customized-configurator-content .ibp-directory-whatsapp:visited {
        width: auto;
        min-height: 46px;
        padding: 0 24px;
        font-size: 14px;
        gap: 8px;
    }

    .customized-configurator-content .ibp-directory-whatsapp-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 767px) {
    .customized-category-grid {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

#customized-panel-iphone-duo [data-customized-sim-field],
#customized-panel-iphone-duo .customized-customize-button-wrap {
    display: none;
}

@media (min-width: 768px) {
    .customized-products-shell.is-configuration-open,
    .customized-products-shell.is-configuration-open .customized-selection-shell {
        overflow: visible;
        max-height: none;
    }

    .customized-configurator-visual {
        position: sticky;
        top: 82px;
        height: min(650px, calc(100dvh - 102px));
        align-self: start;
    }
}

@media (min-width: 1025px) {
    .customized-collectors-track {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding-left: 24px;
        padding-right: 24px;
        justify-content: safe center;
        scroll-padding-left: 24px;
    }
}

#customized-panel-iphone-duo [data-customized-option-buttons] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    #customized-panel-iphone-duo [data-customized-option-buttons] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 68%;
    }
}

/* Layered glass photo carousel; the original scroll gallery remains the no-JS fallback. */
.customized-brand-showcase-gallery-wrap.is-glass-carousel {
    padding: 36px 0 24px;
    border-radius: 36px;
    background: radial-gradient(ellipse at 50% 40%, #c8d7e7 0, #edf1f6 45%, #f8f9fb 80%);
    perspective: 1200px;
}
.is-glass-carousel .customized-brand-showcase-gallery {
    display: block;
    position: relative;
    height: 470px;
    padding: 0;
    overflow: visible;
    transform-style: preserve-3d;
}
.is-glass-carousel .customized-brand-showcase-gallery-item {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 286px;
    height: 434px;
    padding: 10px;
    margin-left: -143px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 26px;
    background: linear-gradient(145deg, #ffffffb8, #ffffff38);
    box-shadow: 0 20px 45px #182e4924, inset 0 1px 0 #fff;
    backdrop-filter: blur(18px);
    transform: translateX(var(--glass-x)) translateZ(var(--glass-z)) rotateY(var(--glass-turn)) scale(var(--glass-scale));
    opacity: var(--glass-opacity);
    z-index: var(--glass-order);
    transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .45s ease, box-shadow .3s ease;
    cursor: pointer;
    will-change: transform;
}
.is-glass-carousel .customized-brand-showcase-gallery-image {
    border-radius: 18px;
    transform: scale(.96);
    transition: transform .3s ease;
}
.is-glass-carousel .customized-brand-showcase-gallery-item:hover .customized-brand-showcase-gallery-image { transform: scale(1); }
.glass-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 24px; width: fit-content; margin: 12px auto 0; padding: 8px; border: 1px solid #ffffffcf; border-radius: 40px; background: #ffffff8c; box-shadow: 0 8px 30px #182e4915; backdrop-filter: blur(20px); }
.glass-carousel-controls[hidden] { display: none; }
.glass-carousel-controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffffb8; border-radius: 50%; background: #ffffffa8; color: #263748; font-size: 22px; cursor: pointer; }
.glass-carousel-controls button:hover { background: #fff; }
.glass-carousel-controls span { min-width: 70px; text-align: center; color: #445568; font-size: 13px; }
[data-glass-carousel]:focus-visible, .glass-carousel-controls button:focus-visible { outline: 3px solid #3266ff; outline-offset: 4px; }
@media (max-width: 767px) {
 .customized-brand-showcase-gallery-wrap.is-glass-carousel { border-radius: 24px; padding-top: 24px; }
 .is-glass-carousel .customized-brand-showcase-gallery { height: 360px; margin-top: 0; }
 .is-glass-carousel .customized-brand-showcase-gallery-item { width: 216px; height: 328px; margin-left: -108px; padding: 8px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
 .is-glass-carousel .customized-brand-showcase-gallery-item, .is-glass-carousel .customized-brand-showcase-gallery-image { transition: none; }
}

/* Photo-only cards, with direct drag and snap navigation. */
.is-glass-carousel { touch-action: pan-y; user-select: none; cursor: grab; }
.is-glass-carousel.is-dragging, .is-glass-carousel.is-dragging .customized-brand-showcase-gallery-item { cursor: grabbing; }
.is-glass-carousel .customized-brand-showcase-gallery-item {
    height: auto;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    overflow: visible;
    cursor: grab;
    box-shadow: 0 20px 45px #182e4924;
}
.is-glass-carousel .customized-brand-showcase-gallery-image,
.is-glass-carousel .customized-brand-showcase-gallery-item:hover .customized-brand-showcase-gallery-image {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 22px;
    transform: none;
    pointer-events: none;
    -webkit-user-drag: none;
}
.is-glass-carousel.is-dragging .customized-brand-showcase-gallery-item { transition: none; }
.glass-carousel-hint { margin: 0; text-align: center; color: #657283; font-size: 13px; }
.glass-carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* White stage with a thin glass bevel, without an outer photo frame. */
.customized-brand-showcase-gallery-wrap.is-glass-carousel { background: #fff; }
.is-glass-carousel .customized-brand-showcase-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px #ffffff9c, inset 2px 2px 3px #ffffff8c, inset -2px -2px 4px #b7cee744;
    background: linear-gradient(120deg, #ffffff36, transparent 9%, transparent 89%, #ffffff29);
}


.is-glass-carousel.is-following .customized-brand-showcase-gallery-item { transition: none; }
@media (hover: hover) {
 .is-glass-carousel, .is-glass-carousel .customized-brand-showcase-gallery-item { cursor: ew-resize; }
}

.is-glass-carousel .customized-brand-showcase-gallery-item.is-center-card { filter: none; }
.is-glass-carousel .customized-brand-showcase-gallery-item.is-center-card::after { opacity: 0; }

@media (min-width: 768px) {
 .customized-brand-showcase-gallery-wrap.is-glass-carousel {
    width: min(1760px, calc(100vw - 48px));
    max-width: none;
    margin-left: calc((100% - min(1760px, 100vw - 48px)) / 2);
 }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .is-glass-carousel:not(.is-dragging):not(.is-following) .customized-brand-showcase-gallery-item.is-center-card:hover {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1.04);
 }
}

/* Keep the FAQ close to the photo stack. */
.customized-brand-showcase { padding-bottom: 16px; }
.customized-brand-showcase-gallery-wrap.is-glass-carousel { padding-bottom: 8px; }
.is-glass-carousel .customized-brand-showcase-gallery { height: 400px; }
.customized-faq-section { padding-top: 24px; }
@media (max-width: 767px) {
 .is-glass-carousel .customized-brand-showcase-gallery { height: 310px; }
}

/* Keep mobile galleries inside the same balanced page gutters. */
@media (max-width: 767px) {
    .customized-page-shell .customized-chosen-by-stars-grid {
        box-sizing: border-box;
        width: 100%;
        margin-inline: 0;
        padding-inline: var(--customized-page-gutter, 18px);
        scroll-padding-inline: var(--customized-page-gutter, 18px);
    }

    .customized-page-shell .customized-collectors-shell {
        box-sizing: border-box;
        width: 100%;
        margin-inline: 0;
    }

    .customized-page-shell .customized-collectors-heading {
        padding-inline: 0;
    }

    .customized-page-shell .customized-collectors-track {
        box-sizing: border-box;
        width: 100%;
        margin-inline: 0;
        padding-inline: var(--customized-page-gutter, 18px);
        scroll-padding-inline: var(--customized-page-gutter, 18px);
    }
}
