.personal-detail-page {
    --retail-blue: #0071E3;
    background: #f3f3f5;
    font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.personal-detail-page .personal-product {
    width: min(1240px, calc(100% - 10vw));
}

html:has(> body.personal-detail-page),
body.personal-detail-page,
.personal-detail-page .personal-product-thumbs {
    scrollbar-width: none;
}

.personal-detail-page .product-gallery-single {
    grid-template-columns: minmax(0, 1fr);
}

.personal-detail-page .personal-product-image,
.personal-detail-page .personal-product-thumbs button {
    background: #fff;
}

.product-gallery-single .personal-product-image {
    grid-column: 1;
}

.personal-detail-page .personal-product-heading h1 {
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 500;
}

.personal-product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.personal-product-title-row button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--retail-border);
    border-radius: 50%;
    background: #fff;
    color: var(--retail-ink);
    cursor: pointer;
}

.personal-product-title-row button[aria-pressed="true"] {
    color: var(--retail-blue);
}

.product-rating,
.product-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.product-rating {
    margin-top: 9px;
    font-size: 14px;
}

.product-rating a {
    color: inherit;
    text-decoration: underline;
}

.product-price-line {
    margin-top: 15px;
    font-size: 14px;
}

.product-price-line>strong {
    color: var(--retail-blue);
    font-size: 28px;
    font-weight: 500;
}

.product-price-line del {
    color: var(--retail-muted);
}

.product-savings {
    padding: 3px 8px;
    border-radius: 5px;
    background: #e5f5ec;
    color: #126339;
    font-weight: 500;
}

.personal-detail-page .personal-variant-form {
    gap: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}

.personal-detail-page [data-variant-picker] {
    gap: 26px;
}

.personal-detail-page [hidden] {
    display: none !important;
}

.personal-detail-page .personal-product-toggle button {
    cursor: pointer;
}

.personal-detail-page .personal-product-toggle button:disabled {
    cursor: default;
}

.personal-detail-page .product-option-group {
    position: relative;
    margin: 0;
    gap: 8px;
}

.product-option-group legend,
.product-addon legend {
    margin-bottom: 9px;
    font-size: 19px;
    font-weight: 500;
}

.product-option-group .personal-condition-help {
    position: absolute;
    inset-inline-end: 0;
    top: -33px;
    color: var(--retail-ink);
}

.product-option-tiles {
    display: grid;
    gap: 8px;
}

[data-variant-group="storage"] .product-option-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-variant-group="color"] .product-option-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-option-tiles button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 60px;
    padding: 10px 14px;
    border: 1px solid #dedee3;
    border-radius: 9px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.product-option-tiles button>span {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 4px 10px;
    min-width: 0;
}

:is([data-variant-group="storage"], [data-variant-group="color"]) .product-option-tiles button>span {
    display: grid;
    justify-content: initial;
}

[data-variant-group="storage"] .product-option-tiles button {
    justify-content: center;
    padding-inline: 4px;
    text-align: center;
}

.product-option-tiles strong {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.product-option-tiles small {
    color: var(--retail-muted);
    font-size: 12px;
}

.product-option-tiles i {
    flex: 0 0 16px;
    height: 16px;
    border: 1px solid #0002;
    border-radius: 50%;
}

.product-option-tiles button[aria-pressed="true"] {
    border-color: var(--retail-blue);
    background: #edf3fc;
}

.product-option-tiles button:disabled {
    background: #f3f3f5;
}

.product-purchase-options {
    display: grid;
    gap: 12px;
}

.product-addon {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-addon label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid #dedee3;
    border-radius: 12px;
    background: #fff;
    font-weight: 500;
}

.product-addon label:has(input:checked) {
    border-color: var(--retail-blue);
    background: #edf3fc;
}

.product-addon label strong {
    margin-inline-start: auto;
    color: var(--retail-blue);
}

.product-order-summary {
    padding: clamp(16px, 2vw, 24px);
    border-radius: 16px;
    background: #fff;
}

.product-order-summary .personal-primary {
    margin-top: 14px;
    min-height: 48px;
    background: var(--retail-blue);
}

.product-order-summary input[type="number"] {
    width: 75px;
    margin-inline-start: 8px;
}

.product-service-links {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.product-service-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--retail-border);
    border-radius: 12px;
    color: inherit;
}

.product-service-links a:first-child {
    background: #f3f7fc;
}

.product-service-links a span,
.personal-detail-page .personal-product-info a {
    color: var(--retail-blue);
}

.personal-detail-page {
    --product-section-top: var(--personal-header-height, 82px);
    --product-section-offset: calc(var(--personal-header-height, 82px) + var(--product-purchase-height, 0px) + var(--product-section-nav-height, 0px) + 12px);
}

.personal-detail-page:has(.product-sticky-purchase.is-visible) {
    --product-section-top: calc(var(--personal-header-height, 82px) + var(--product-purchase-height, 0px));
}

.personal-detail-page .product-configuration-wrap { padding-block-end: clamp(16px, 2vw, 28px); }
.personal-detail-page .product-section-content { padding-block-start: 0; }

.product-section-nav {
    position: sticky;
    inset-block-start: var(--product-section-top);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px clamp(15px, 3vw, 45px);
    min-height: 60px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--retail-border);
    background: #f3f3f5;
}

.product-section-nav a {
    color: inherit;
    font-size: 14px;
}

.product-section-nav a:hover {
    color: var(--retail-blue);
}

@media (max-width: 600px) {
    .product-section-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        min-height: 44px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .product-section-nav a { flex: 0 0 auto; }
}

.product-specs {
    padding: clamp(16px, 3vw, 36px);
    border-radius: 16px;
    background: #f5f5f7;
}

.product-spec-highlights,
.product-spec-table {
    display: grid;
    gap: 10px;
}

.product-spec-highlights {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}

.product-spec-highlights>div {
    display: flex;
    flex-direction: column-reverse;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--retail-border);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.product-spec-highlights dt,
.product-spec-table dt {
    color: var(--retail-muted);
    font-size: 13px;
}

.product-spec-highlights dd,
.product-spec-table dd {
    margin: 0;
    font-weight: 500;
}

.product-spec-table {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.product-spec-table>div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--retail-border);
}

.product-spec-table dd {
    text-align: end;
}

.product-spec-pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    padding: 20px;
    margin-block: 20px;
    border: 1px solid var(--retail-border);
    border-radius: 12px;
    background: #fff;
}

.product-spec-pros-cons h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.product-spec-pros-cons ul {
    margin: 0;
    padding-inline-start: 20px;
}

.product-spec-pros-cons li+li {
    margin-top: 6px;
}

@media (max-width: 420px) {
    [data-variant-group="storage"] .product-option-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-preview-notice {
    color: var(--retail-muted);
    font-size: 13px;
}

.product-configuration-preview {
    display: grid;
}

.personal-condition-preview {
    display: grid;
    grid-template-columns: clamp(88px, 29%, 144px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 3vw, 20px);
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--retail-border);
    border-radius: 12px;
    background: #fff;
}

.condition-preview-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f3f5;
}

.condition-preview-copy {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.condition-preview-label {
    color: var(--retail-muted);
    font-size: 12px;
}

.condition-preview-copy strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
}

.condition-preview-copy p {
    margin: 4px 0 0;
    color: var(--retail-muted);
    font-size: 13px;
    line-height: 1.4;
}

.condition-preview-copy .personal-product-toggle {
    max-width: 100%;
    border-radius: 8px;
    background: #f3f3f5;
}

.condition-preview-copy .personal-product-toggle button {
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.condition-preview-copy .personal-product-toggle button[aria-pressed="true"] {
    background: #fff;
    color: var(--retail-ink);
    box-shadow: 0 1px 3px #15171b24;
    font-weight: 500;
}

.product-option-group .personal-condition-help span {
    margin-inline-end: 3px;
}

.personal-detail-page [data-variant-group="condition"] .product-option-tiles button {
    min-height: 52px;
}

.product-purchase-options>div>p {
    margin: 0;
    color: var(--retail-muted);
    font-size: 13px;
}

.product-purchase-options .product-addon label {
    min-height: 64px;
    cursor: pointer;
}

.product-purchase-options .product-addon input {
    accent-color: var(--retail-blue);
}

.product-addon-select {
    font-weight: 500;
}

.personal-detail-page .personal-product-info details {
    padding: 16px 0;
}

.personal-detail-page .personal-product-info summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}

.personal-detail-page .personal-product-info summary::-webkit-details-marker {
    display: none;
}

.personal-detail-page .personal-product-info summary::after {
    content: "";
    width: 7px;
    height: 7px;
    align-self: center;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.personal-detail-page .personal-product-info details[open] summary::after {
    transform: rotate(225deg);
}

.product-device-checks {
    margin-block: 28px 32px;
    padding-block-start: 24px;
    border-block-start: 1px solid var(--retail-border);
}

.product-device-checks ul {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(150px, 75%);
    gap: 12px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.product-device-checks li {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 134px;
    padding: 16px;
    border: 1px solid var(--retail-border);
    border-radius: 16px;
    background: #fff;
    scroll-snap-align: start;
}

.product-device-checks small {
    color: var(--retail-muted);
    font-size: 13px;
}

.product-device-check-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.product-specs {
    position: relative;
    isolation: isolate;
    max-width: 1100px;
    margin-inline: auto;
    margin-block-start: 0;
    padding: 26px 0 60px;
    background: transparent;
}

.product-specs::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #f5f5f7;
    box-shadow: 0 0 0 100vmax #f5f5f7;
    clip-path: inset(0 -100vmax);
}

.personal-section.product-specs h2 {
    font-size: clamp(24px, 2.5vw, 29px);
    margin-bottom: 18px;
}

.product-spec-highlights {
    margin: 0 0 24px;
}

.product-spec-highlights>div {
    justify-content: center;
    min-height: 86px;
    border-radius: 15px;
}

.product-spec-highlights dt {
    font-size: 12px;
}

.product-spec-highlights dd {
    font-size: 15px;
}

.product-specs .personal-product-specifications {
    max-width: 85ch;
    font-size: 16px;
    line-height: 1.55;
}

.product-spec-pros-cons {
    gap: 0;
    padding: 0;
    margin-block: 24px 26px;
}

.product-spec-pros-cons>div {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.55;
}

.product-spec-pros-cons>div+div {
    border-inline-start: 1px solid var(--retail-border);
}

.product-spec-pros-cons h3 {
    font-size: 15px;
}

.product-spec-pros-cons h3 span {
    margin-inline-end: 5px;
}

.product-spec-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 35px);
}

.product-spec-columns .product-spec-table {
    display: block;
    margin: 0;
}

.product-spec-table>div {
    padding: 12px 0;
    font-size: 14px;
}

@media (min-width: 1024px) {
    .product-spec-highlights {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .product-spec-columns,
    .product-spec-pros-cons {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-spec-pros-cons>div+div {
        border-inline-start: 0;
        border-block-start: 1px solid var(--retail-border);
    }
}

.product-sticky-purchase {
    position: fixed;
    z-index: 2;
    inset: var(--personal-header-height, 82px) 0 auto;
    border-bottom: 1px solid var(--retail-border);
    background: #fff;
    box-shadow: 0 4px 12px rgb(0 0 0 / 5%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 240ms ease, opacity 200ms ease, visibility 240ms;
}

.product-sticky-purchase.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.product-sticky-purchase-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(1240px, 90%);
    min-height: 79px;
    margin-inline: auto;
    padding-block: 10px;
}

.product-sticky-purchase-inner img {
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 10px;
    background: #f3f3f5;
    object-fit: contain;
}

.product-sticky-purchase-model,
.product-sticky-purchase-price {
    display: grid;
    gap: 2px;
}

.product-sticky-purchase-model {
    flex: 1;
    min-width: 0;
}

.product-sticky-purchase-model span,
.product-sticky-purchase-price del {
    color: var(--retail-muted);
    font-size: 12px;
}

.product-sticky-purchase-price strong {
    color: var(--retail-blue);
    font-size: clamp(18px, 2vw, 24px);
    white-space: nowrap;
}

.product-sticky-purchase .personal-primary {
    white-space: nowrap;
    min-height: 48px;
    padding-inline: 22px;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .product-sticky-purchase {
        transition: none;
    }
}

.product-sim-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #f4f4f5;
    font-size: 14px;
}

.product-sim-summary svg {
    flex: 0 0 auto;
}

.product-sim-summary [data-selected-sim-detail] {
    color: var(--retail-muted);
}

.product-purchase-options {
    margin-block: 8px;
}

.product-purchase-options .product-addon label {
    min-height: 70px;
    padding: 14px 16px;
    border-radius: 16px;
}

.product-purchase-options .product-addon input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.product-order-summary .personal-primary {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.product-order-summary .product-order-delivery {
    margin: 12px 0 0;
    font-size: 14px;
}

.product-box-contents {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--retail-border);
}

.product-box-contents>span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4f4f5;
    font-size: 14px;
}

.product-box-contents a {
    text-decoration: underline;
}

.product-customised-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.product-customised-swatch {
    width: 26px;
    height: 26px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5dd86, #a37b23);
}

.product-service-links a {
    align-items: center;
}

.product-seller-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-seller-label svg,
.product-customised-swatch {
    flex: 0 0 auto;
}

#product-accessories .iphone-addon-card {
    position: relative;
    gap: 14px;
}

.iphone-addon-copy,
.iphone-addon-pricing {
    display: grid;
    gap: 4px;
}

.iphone-addon-copy {
    flex: 1;
}

.iphone-addon-copy small {
    color: var(--retail-muted);
    line-height: 1.35;
}

.iphone-addon-pricing {
    justify-items: end;
    text-align: end;
    font-size: 13px;
}

.iphone-addon-pricing strong {
    font-size: 18px;
}

.iphone-addon-pricing del {
    color: var(--retail-muted);
}

.iphone-addon-images {
    display: flex;
    gap: 4px;
}

.iphone-addon-images>* {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f4f4f5;
    object-fit: contain;
}

#product-accessories .iphone-addon-featured {
    border-color: var(--retail-blue);
    margin-top: 5px;
}

.iphone-addon-badge {
    position: absolute;
    inset-block-start: -11px;
    inset-inline-start: 50px;
    padding: 1px 7px;
    border: 1px solid var(--retail-blue);
    border-radius: 5px;
    background: white;
    color: var(--retail-blue);
    font-size: 11px;
}

.iphone-single-addons {
    border-block-start: 1px solid var(--retail-border);
}

.iphone-single-addons summary {
    padding-block: 12px;
    cursor: pointer;
}

.iphone-addon-card:has(input:disabled) .iphone-addon-pricing {
    display: none;
}

.iphone-single-addons summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    list-style: none;
}

.iphone-single-addons summary::-webkit-details-marker {
    display: none;
}

.iphone-single-addons summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.iphone-single-addons[open] summary::after {
    transform: rotate(225deg);
}

.iphone-single-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr));
    gap: 8px;
}

.iphone-single-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px;
    border: 1px solid var(--retail-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

.iphone-single-card img {
    flex: 0 0 40px;
    object-fit: contain;
    border-radius: 8px;
    background: #f4f4f5;
}

.iphone-single-card .iphone-addon-copy {
    gap: 1px;
    line-height: 1.3;
}

.iphone-single-card .iphone-single-price {
    color: var(--retail-blue);
    font-size: 13px;
}

.iphone-single-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.iphone-single-button {
    padding: 8px 9px;
    border: 1px solid currentColor;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.iphone-single-button> :last-child,
.iphone-single-card:has(:checked) .iphone-single-button> :first-child {
    display: none;
}

.iphone-single-card:has(:checked) .iphone-single-button> :last-child {
    display: inline;
}

.iphone-single-card:has(:checked),
.iphone-single-card:focus-within {
    border-color: var(--retail-blue);
}

.iphone-single-card:has(:disabled) .iphone-single-button {
    display: none;
}

.iphone-single-card:has(:disabled) {
    cursor: default;
}

.product-order-summary {
    border-color: var(--retail-border);
}

.product-order-summary [data-variant-summary] li {
    background: #f0f0f2;
    border: 0;
    border-radius: 6px;
}

.product-summary-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-inline-start: 5px;
    border-radius: 50%;
}

.product-charger-note {
    font-size: 13px;
    margin: 14px 0;
    color: var(--retail-muted);
}

.product-charger-note button {
    padding: 0;
    margin-inline-start: 4px;
    border: 0;
    background: transparent;
    color: var(--retail-blue);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.product-order-summary .personal-primary {
    min-height: 56px;
    border-radius: 10px;
}

.product-device-checks p {
    margin: 4px 0 0;
    color: var(--retail-muted);
    font-size: 14px;
}

.product-service-links {
    gap: 24px;
}

.product-service-links a {
    min-height: 64px;
    border-radius: 16px;
}

.product-service-links a:first-child {
    border-color: transparent;
}

.product-discovery {
    background: #f5f5f7;
    padding-block: var(--store-section-gap);
}

.product-discovery-inner {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

.product-discovery .product-discovery-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--store-section-gap);
}

.product-discovery h2,
.product-before-footer h2 {
    margin: 0 0 18px;
    font-size: clamp(23px, 3vw, 29px);
    font-weight: 500;
}

.product-discovery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 18px;
}

.product-discovery-heading h2,
.product-discovery-heading h3 {
    margin: 0;
}

.product-discovery-rail,
.product-discovery-grid {
    display: grid;
    gap: 16px;
}

.product-discovery-rail {
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-discovery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-discovery-card {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
    background: white;
    border: 1px solid var(--retail-border);
    border-radius: 16px;
    color: inherit;
    scroll-snap-align: start;
}

.product-discovery-card h3 {
    margin: 3px 0 0;
    font-size: 16px;
}

.product-discovery-card small {
    color: var(--retail-muted);
}

.product-shelf-card {
    color: var(--retail-ink);
}

.product-shelf-card .landing-card-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding-inline: 14px;
    font-size: 12px;
}

.product-shelf-related .landing-card-copy {
    padding-inline-end: clamp(42px, 4vw, 60px);
}

.product-shelf-related .landing-card-arrow {
    width: 36px;
    height: 36px;
    inset-inline-end: clamp(10px, 1.4vw, 20px);
    bottom: clamp(10px, 1.4vw, 20px);
    background: #e8e8ed;
    color: #454549;
}

.product-shelf-related .landing-card-arrow svg {
    width: 16px;
    height: 16px;
}

.product-shelf-related:focus-visible {
    outline-offset: -3px;
}

.product-shelf-purchase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 10px;
}

.product-shelf-purchase p {
    margin: 0;
}

.product-shelf-purchase button {
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 99px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.product-shelf-purchase button[aria-pressed="true"] {
    background: #edf3fc;
    color: #184f9a;
}

.product-shelf-purchase button:disabled {
    background: #f3f3f5;
    color: var(--retail-muted);
    cursor: default;
}

.product-discovery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 10px;
    color: inherit;
    background: white;
    font: inherit;
    cursor: pointer;
    text-align: center;
}

.product-discovery-button[aria-disabled="true"] {
    color: var(--retail-muted);
    cursor: default;
}

.product-rail-controls {
    display: flex;
    gap: 10px;
}

.product-rail-controls button {
    border: 1px solid var(--retail-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    background: #111;
    color: white;
    font-size: 23px;
    cursor: pointer;
}

.product-rail-controls button:disabled {
    color: var(--retail-muted);
    background: white;
    cursor: default;
}

.product-reviews-layout {
    display: grid;
    grid-template-columns: clamp(210px, 25%, 300px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
}

.product-review-summary,
.product-review-card {
    padding: clamp(16px, 2vw, 24px);
}

.product-review-summary dl {
    display: grid;
    gap: 5px;
    margin: 6px 0;
}

.product-review-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.product-review-summary dt {
    color: var(--retail-muted);
}

.product-review-summary dd {
    margin: 0;
    font-weight: 500;
}

.product-review-summary summary {
    width: 100%;
    list-style: none;
}

.product-review-summary summary::-webkit-details-marker {
    display: none;
}

.product-review-summary details p {
    margin: 8px 0 0;
    text-align: center;
}

.product-review-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.product-review-score span {
    font-size: 20px;
    letter-spacing: .07em;
}

.product-review-score strong {
    font-size: 28px;
}

.product-review-filters {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.product-review-filters h3,
.product-reviews-feed h3 {
    margin: 0;
    font-size: 21px;
}

.product-review-filters fieldset {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 0;
    margin: 0;
}

.product-review-filters legend {
    margin-bottom: 8px;
    font-weight: 500;
}

.product-review-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-review-filters input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--retail-blue);
}

.product-review-filters button {
    justify-self: start;
}

.product-review-toolbar {
    flex-wrap: wrap;
    margin: 16px 0 0;
}

.product-review-toolbar label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--retail-muted);
}

.product-review-toolbar select {
    padding: 10px;
    border: 1px solid var(--retail-border);
    border-radius: 10px;
    background: white;
    font: inherit;
}

.product-reviews-feed {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 12px;
}

.product-review-photos {
    grid-auto-columns: clamp(132px, 23%, 180px);
    gap: 12px;
}

.product-review-photo {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--retail-border);
    border-radius: 16px;
    background: #fff;
    color: var(--retail-ink);
    scroll-snap-align: start;
}

.product-review-photo:focus-visible {
    outline-offset: -4px;
}

.product-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-review-photo strong,
.product-review-photo span {
    position: absolute;
    inset-inline-start: 10px;
    max-width: calc(100% - 20px);
    padding: 3px 8px;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-review-photo strong {
    inset-block-start: 10px;
}

.product-review-photo span {
    inset-block-end: 10px;
}

.product-review-card header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
}

.product-review-card p {
    margin: 4px 0;
    overflow-wrap: anywhere;
}

.product-review-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-review-attachments:empty {
    display: none;
}

.product-review-attachments img {
    object-fit: cover;
    border-radius: 8px;
}

.product-review-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--retail-border);
    border-radius: 10px;
    font-size: 14px;
}

.product-review-device img {
    padding: 3px;
    border-radius: 6px;
    background: #f3f3f5;
    object-fit: contain;
}

.product-before-footer #product-about {
    padding-block: 0 var(--store-section-gap);
}

.product-about-intro {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
}

.product-about-intro h2 {
    margin: 5px 0;
}

.product-about-intro p,
.product-newsletter p {
    color: var(--retail-muted);
    margin: 0;
}

.product-about-avatar {
    width: clamp(72px, 10vw, 140px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #f3f3f5;
    border: 1px solid var(--retail-border);
    border-radius: 50%;
}

.product-about-avatar img {
    display: block;
    width: 75%;
    height: auto;
}

.product-about-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
}

.product-about-benefits a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    border: 1px solid var(--retail-border);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: scale 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-about-benefits .product-benefit-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #eef5ff;
    color: #0071e3;
}

.product-about-intro .product-discovery-button {
    transition: scale 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .product-about-benefits a:hover,
    .product-about-intro .product-discovery-button:hover {
        scale: 1.025;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .09);
        border-color: #b8d5f5;
    }
    .product-about-intro .product-discovery-button:hover {
        background-color: #f0f6ff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-about-benefits a,
    .product-about-intro .product-discovery-button {
        transition: none;
    }
}

.product-newsletter {
    border-top: 1px solid var(--retail-border);
    padding-block: 36px;
}

.product-newsletter .product-discovery-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.product-newsletter h2 {
    margin-bottom: 6px;
    font-size: 21px;
}

.product-newsletter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.product-newsletter input {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--retail-border);
    border-radius: 9px;
    font: inherit;
}

.product-newsletter form p {
    grid-column: 1 / -1;
}

.product-newsletter form p:empty {
    display: none;
}

.personal-detail-page .product-section-content [id],
.product-discovery section[id],
.product-before-footer section[id] {
    scroll-margin-block-start: var(--product-section-offset);
}

@media (max-width: 850px) {
    .product-discovery-rail {
        grid-auto-columns: minmax(180px, 43%);
    }

    .product-discovery-grid,
    .product-about-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-discovery-inner {
        width: calc(100% - 28px);
    }

    .product-reviews-layout,
    .product-newsletter .product-discovery-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-about-intro {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }

    .product-about-intro>a {
        grid-column: 2;
        justify-self: start;
    }

    .product-discovery-card {
        padding: 11px;
    }
}

.product-option-group button.personal-condition-help {
    border: 0;
    color: var(--retail-ink);
    font-family: inherit;
    cursor: pointer;
}

.product-condition-guide {
    --condition-accent: #7064e6;
    position: fixed;
    inset-block: var(--personal-header-height, 82px) 0;
    inset-inline: auto 0;
    width: min(100dvw, 360px);
    max-width: 100%;
    height: calc(100dvh - var(--personal-header-height, 82px));
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--retail-ink);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.product-condition-guide::backdrop {
    background: transparent;
}

.personal-detail-page:has(.product-condition-guide[open])::after {
    content: '';
    position: fixed;
    z-index: 2;
    inset: var(--personal-header-height, 82px) 0 0;
    pointer-events: none;
    background: #15171b55;
    backdrop-filter: blur(7px);
}

html:has(.product-condition-guide[open]) {
    overflow: hidden;
}

.condition-guide-content {
    padding: 0 22px 24px;
}

.condition-guide-heading {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-block: 16px 10px;
    background: #fff;
}

.condition-guide-heading h2 {
    margin: 0;
    font-size: 22px;
}

.condition-guide-heading button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f5;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
}

.condition-guide-content>p {
    margin: 0 0 18px;
    color: var(--retail-muted);
    font-size: 14px;
}

.condition-guide-card {
    margin-block-end: 24px;
    padding: 12px 14px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 30px;
    background: #f7f7f7;
}

.condition-guide-card h3 {
    width: fit-content;
    margin: 0 0 10px;
    min-width: 76px;
    padding: 7px 12px;
    border-radius: 99px;
    background: #050505;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.condition-guide-card img {
    width: min(100%, 280px);
    height: auto;
    margin-inline: auto;
}

.condition-guide-card-headline {
    margin: 12px 0 6px;
    color: var(--retail-ink);
    font-size: 12px;
    font-weight: 500;
}

.condition-guide-card .condition-guide-points {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
}

.condition-guide-points li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: inherit;
}

.condition-guide-points li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--condition-accent);
}

.condition-guide-premium {
    border-color: var(--condition-accent);
    background: #f7f5fc;
}

.condition-guide-premium h3 { background: var(--condition-accent); }

@media (max-width: 480px) {
    .condition-guide-content { padding-inline: 14px; }
    .condition-guide-heading h2 { font-size: clamp(18px, 5.5vw, 22px); }
    .iphone-single-grid { grid-template-columns: minmax(0, 1fr); }
}

.product-customised-showcase {
    margin-block: clamp(28px, 5vw, 64px);
    padding: clamp(18px, 2.8vw, 38px);
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(115deg, #a07c40, #f0ce83, #fff1c7, #c3944e, #f0ce83) border-box;
    box-shadow: 0 0 10px rgb(240 206 131 / 48%),
        0 0 24px rgb(195 148 78 / 24%);
}

@media (prefers-reduced-motion: no-preference) {
    .product-customised-showcase {
        background-size: 100% 100%, 220% 100%;
        animation: customisedGoldBorderFlow 6s ease infinite;
    }
}

@keyframes customisedGoldBorderFlow {
    0%, 100% { background-position: 0 0, 0% 50%; }
    50% { background-position: 0 0, 100% 50%; }
}

.product-customised-heading p,
.product-customised-heading a {
    margin: 0;
    color: var(--retail-blue);
    font-size: 14px;
}

.product-customised-heading h2 {
    margin: 6px 0;
    font-size: clamp(23px, 2.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.product-customised-heading a:hover {
    text-decoration: underline;
}

.product-customised-configurator {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(20px, 5vw, 76px);
    margin-block-start: 18px;
}

.product-customised-feature > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 540 / 350;
    object-fit: contain;
}

.product-customised-feature-copy {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-block-start: 12px;
    text-align: center;
}

.product-customised-feature-copy > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-customised-feature-copy h3 {
    margin: 0;
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.2;
}

.product-customised-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #bbf7d6;
    color: #075b37;
    font-size: 13px;
}

.product-customised-feature-copy .product-customised-buy {
    gap: 0;
    border-radius: 999px;
    background: #dcf0ff;
    font-size: 14px;
}

.product-customised-buy span,
.product-customised-buy a {
    padding: 6px 13px;
}

.product-customised-buy a {
    border-radius: 999px;
    background: var(--retail-blue);
    color: #fff;
}

.product-customised-finishes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.product-customised-finishes a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #f3f3f5;
    color: inherit;
}

.product-customised-finishes a:is(:hover, [aria-current]) {
    border-color: #d4b479;
    background: #fcf8ee;
}

.product-customised-finishes img {
    flex: 0 0 44px;
    width: 44px;
    height: 52px;
    object-fit: contain;
}

.product-customised-finishes strong,
.product-customised-finishes small {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-customised-finishes small {
    margin-block-start: 3px;
    color: var(--retail-muted);
}

@media (max-width: 850px) {
    .product-customised-configurator {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-customised-feature > img {
        max-width: 500px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .product-customised-finishes {
        gap: 8px;
    }

    .product-customised-finishes a {
        gap: 6px;
        padding: 7px;
    }

    .product-customised-finishes img {
        flex-basis: 24px;
        width: 24px;
        height: 40px;
    }

    .product-customised-finishes strong,
    .product-customised-finishes small {
        font-size: 12px;
    }
}

.personal-detail-page :is(h1, h2, h3, h4, h5, h6, strong, b, legend, button, summary) {
    font-weight: 500;
}

#product-reviews > h2 { margin-bottom: 24px; }
.product-review-summary summary > :last-child,
.product-review-summary details[open] summary > :first-child { display: none; }
.product-review-summary details[open] summary > :last-child { display: inline; }
.product-review-filters fieldset + fieldset { margin-top: 8px; }
.product-review-filters input { width: 20px; height: 20px; }
.product-review-photo-heading { min-height: 44px; margin-block-end: 16px; }
.product-review-toolbar { margin-top: 24px; }
.product-review-toolbar select { border-radius: 10px; font-size: 14px; }
.product-review-card { font-size: 15px; }
.product-review-card p { margin-block: 3px; }
.product-review-card header > span { letter-spacing: .05em; }
.product-review-device small { display: block; }
.product-review-photo img { object-fit: contain; }

@media (max-width: 767px) {
    .personal-detail-page {
        --product-mobile-gutter: clamp(16px, 5vw, 26px);
    }

    .personal-detail-page .personal-product,
    .personal-detail-page .product-discovery-inner {
        width: calc(100% - 2 * var(--product-mobile-gutter));
    }

    .personal-product-grid {
        gap: 16px;
    }

    .personal-product-gallery,
    .personal-product-options,
    .product-customised-configurator > * {
        min-width: 0;
    }

    .personal-detail-page .personal-product-image {
        padding: 16px;
        border-radius: 16px;
    }

    .personal-product-image img {
        height: clamp(190px, 61vw, 330px);
    }

    .personal-product-thumbs {
        padding: 2px;
        scroll-snap-type: inline proximity;
    }

    .personal-product-thumbs button {
        scroll-snap-align: start;
    }

    .personal-detail-page [data-variant-picker] {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .personal-detail-page,
    .personal-detail-page:has(.product-sticky-purchase.is-visible) {
        --product-section-top: var(--personal-header-height, 52px);
        --product-section-offset: calc(var(--product-section-top) + var(--product-section-nav-height, 44px) + 12px);
    }

    .personal-detail-page:has(.product-sticky-purchase) {
        padding-block-end: var(--product-purchase-height, 0px);
    }

    .product-sticky-purchase {
        inset: auto 0 0;
        border-block-start: 1px solid var(--retail-border);
        border-block-end: 0;
        box-shadow: 0 -4px 12px rgb(0 0 0 / 5%);
        transform: translateY(100%);
    }

    .product-sticky-purchase.is-visible {
        transform: translateY(0);
    }

    .product-sticky-purchase-inner {
        width: calc(100% - 2 * var(--product-mobile-gutter));
        min-height: 0;
        gap: 8px;
        padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .product-sticky-purchase-inner img,
    .product-sticky-purchase-model span {
        display: none;
    }

    .product-sticky-purchase-model {
        font-size: 13px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .product-sticky-purchase .personal-primary {
        justify-content: center;
        min-height: 44px;
        padding-inline: 12px;
        white-space: normal;
        text-align: center;
    }

    .product-section-nav {
        gap: 18px;
        padding-inline: var(--product-mobile-gutter);
        overscroll-behavior-inline: contain;
    }

    #product-accessories .iphone-addon-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 12px;
        padding: 14px;
    }

    .iphone-addon-card .iphone-addon-pricing {
        grid-column: 2;
        justify-items: start;
        text-align: start;
    }

    .iphone-addon-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .product-specs,
    .product-customised-showcase {
        padding: 14px;
    }

    .product-spec-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-spec-table dd {
        overflow-wrap: anywhere;
    }

    .product-discovery-rail {
        grid-auto-columns: minmax(0, 66%);
    }

    .product-discovery-rail.product-review-photos {
        grid-auto-columns: clamp(124px, 40%, 180px);
    }

    .product-discovery-grid {
        gap: 8px;
    }

    .product-shelf-card img {
        height: clamp(100px, 32vw, 155px);
    }
}

.retail-ipad-options {
    display: grid;
    gap: 20px;
    margin-block-end: 22px;
}

.retail-ipad-options [data-variant-group="connectivity"] .product-option-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retail-ipad-options .product-option-tiles button {
    overflow-wrap: anywhere;
}

.retail-ipad-options .personal-product-toggle button:disabled {
    opacity: .45;
}

.retail-ipad-options .product-option-tiles button > span {
    flex-wrap: wrap;
}

.retail-ipad-options [data-variant-group="condition"] .product-option-tiles button {
    min-height: 50px;
}

.retail-quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block: 8px 14px;
}

.retail-selection-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    list-style: none;
}

.retail-selection-summary li {
    padding: 4px 9px;
    border-radius: 6px;
    background: #f3f3f5;
    font-size: 13px;
}

@media (max-width: 767px) {
    .personal-detail-page:has(.product-sticky-purchase) { padding-block-end: var(--product-purchase-height, 78px); }
    .product-sticky-purchase { inset: auto 0 0; transform: translateY(100%); border-block-start: 1px solid var(--retail-border); border-block-end: 0; box-shadow: 0 -4px 12px rgb(0 0 0 / 5%); }
    .product-sticky-purchase-inner { width: calc(100% - 28px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .product-sticky-purchase-inner > img, .product-sticky-purchase-model { display: none; }
    .product-sticky-purchase-price { justify-items: start; }
    .product-sticky-purchase-price del { font-size: 12px; }
    .product-sticky-purchase .personal-primary { min-height: 48px; padding-inline: 24px; background: #0071e3; color: #fff; }
    #product-accessories .iphone-addon-card { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 18px 14px; }
    #product-accessories .iphone-addon-card .iphone-addon-pricing { grid-column: 3; justify-items: end; text-align: end; max-width: 112px; }
    #product-accessories .iphone-addon-copy { min-width: 0; font-weight: 400; }
    #product-accessories .iphone-addon-copy b { font-size: 16px; }
    #product-accessories .iphone-addon-copy small { font-size: 13px; }
    #product-accessories .iphone-addon-pricing del { font-size: 12px; }
    #product-accessories .iphone-addon-images > img { width: 24px; height: 24px; }
}

@media (max-width: 767px) {
    .product-condition-guide {
        inset: auto 0 max(12px, env(safe-area-inset-bottom, 0px));
        width: calc(100% - 28px);
        max-width: 560px;
        height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 28px);
        margin-inline: auto;
        border-radius: 20px;
        box-shadow: 0 18px 60px rgb(0 0 0 / 22%);
    }

    .product-condition-guide::backdrop { background: rgb(21 23 27 / 42%); backdrop-filter: blur(5px); }
    .personal-detail-page:has(.product-condition-guide[open])::after { display: none; }
    .condition-guide-content { padding: 0 16px 24px; }
    .condition-guide-heading { padding-block: 16px 12px; }
    .condition-guide-heading button { flex-basis: 44px; width: 44px; height: 44px; }
    .condition-guide-heading button:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
}

.product-condition-guide { --condition-guide-offset: translateX(100%); }
html[dir="rtl"] .product-condition-guide { --condition-guide-offset: translateX(-100%); }
.product-condition-guide[open] { animation: condition-guide-enter 300ms cubic-bezier(.22, 1, .36, 1) both; }
.product-condition-guide[open].is-closing { animation: condition-guide-exit 280ms ease-in both; }
.product-condition-guide[open]::backdrop,
.personal-detail-page:has(.product-condition-guide[open])::after { animation: condition-guide-shade-in 300ms ease both; }
.product-condition-guide.is-closing::backdrop,
.personal-detail-page:has(.product-condition-guide.is-closing)::after { animation: condition-guide-shade-out 280ms ease both; }

@media (max-width: 767px) {
    .product-condition-guide,
    html[dir="rtl"] .product-condition-guide { --condition-guide-offset: translateY(60px); }
}
@keyframes condition-guide-enter {
    from { opacity: 0; transform: var(--condition-guide-offset); }
    to { opacity: 1; transform: translate(0); }
}
@keyframes condition-guide-exit {
    from { opacity: 1; transform: translate(0); }
    to { opacity: 0; transform: var(--condition-guide-offset); }
}
@keyframes condition-guide-shade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes condition-guide-shade-out { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .product-condition-guide[open],
    .product-condition-guide[open].is-closing,
    .product-condition-guide[open]::backdrop,
    .personal-detail-page:has(.product-condition-guide[open])::after { animation: none; }
}

.condition-guide-heading button {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    outline: none;
    box-shadow: none;
}

.condition-guide-heading button svg { display: block; }
.condition-guide-heading button:hover { background: #e8e8ed; }
.condition-guide-heading button:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

.product-option-group:has(.personal-condition-help) > legend { width: 100%; margin-bottom: 12px; }
.product-option-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-option-group .product-option-heading .personal-condition-help {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin: 0;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
}

/* Keep related products readable and swipeable on small screens. */
@media (max-width: 767px) {
    .product-discovery-inner > section {
        min-width: 0;
    }

    .product-discovery-rail:has(> .product-shelf-related) {
        display: flex;
        gap: 14px;
        width: 100%;
        padding-block-end: 4px;
        overscroll-behavior-inline: contain;
    }

    .product-discovery-rail > .product-shelf-related {
        flex: 0 0 clamp(220px, 72vw, 290px);
        min-height: 310px;
    }

    .product-shelf-related img {
        height: 190px;
        padding: 24px 24px 12px;
    }

    .product-shelf-related .landing-card-swatches {
        flex-shrink: 0;
        gap: 6px;
    }

    .product-shelf-related .landing-card-swatch {
        flex: 0 0 11px;
    }

    .product-shelf-related .landing-card-copy {
        padding: 16px 54px 22px 20px;
    }

    .product-shelf-related h3 {
        line-height: 1.25;
    }
}

@media (max-width: 767px) {
    /* Keep the fixed purchase controls above the scrolling section tabs. */
    .product-sticky-purchase {
        z-index: 20;
    }

    .product-section-nav {
        z-index: 2;
    }
}

.product-review-filter-toggle { display: none; }
.product-review-filters[hidden] { display: none; }
@media (max-width: 767px) {
    .product-review-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 8px;
    }
    .product-review-toolbar > h3,
    .product-review-sort-label { display: none; }
    .product-review-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 44px;
        padding: 8px;
        border: 1px solid var(--retail-border);
        border-radius: 10px;
        background: #fff;
        color: var(--retail-ink);
        font: inherit;
        font-size: 13px;
    }
    .product-review-toolbar label,
    .product-review-toolbar select { width: 100%; min-width: 0; }
    .product-review-toolbar select { min-height: 44px; }
    .product-reviews-feed > .product-review-filters {
        margin: 0;
        padding: 18px;
        border: 1px solid var(--retail-border);
        border-radius: 14px;
        background: #fff;
    }
    .product-service-links a:has(.product-customised-label) {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .product-service-links a:has(.product-customised-label) > span { white-space: nowrap; }
    .product-customised-label { min-width: 0; }
    .product-customised-swatch { flex-shrink: 0; }
    .product-section-nav { position: relative; inset-block-start: auto; }
}

/* Contain wide carousels and intrinsic content at every viewport size. */
html:has(> body.personal-detail-page),
body.personal-detail-page {
    max-inline-size: 100%;
    overflow-x: clip;
}

.personal-detail-page > main,
.personal-detail-page .personal-product-grid > *,
.personal-detail-page .product-reviews-layout > *,
.personal-detail-page .product-discovery-inner > *,
.personal-detail-page .product-section-content > * {
    min-inline-size: 0;
}

.personal-detail-page .product-discovery-rail {
    max-inline-size: 100%;
    min-inline-size: 0;
}

.personal-detail-page .product-section-nav {
    max-inline-size: 100%;
}

.personal-detail-page fieldset {
    min-inline-size: 0;
}

/* Align the storefront chrome and product sections to the same gutters. */
.personal-detail-page {
    --product-page-gutter: clamp(16px, 4vw, 40px);
    inline-size: 100%;
    margin-inline: 0;
}

.personal-detail-page > .landing-header,
.personal-detail-page > main,
.personal-detail-page > .landing-footer {
    inline-size: 100%;
    max-inline-size: 100%;
}

.personal-detail-page .landing-header,
.personal-detail-page .landing-footer {
    --landing-max: 1240px;
    --landing-gutter: var(--product-page-gutter);
}

.personal-detail-page .landing-header .landing-wrap,
.personal-detail-page .landing-footer .landing-wrap,
.personal-detail-page .personal-product,
.personal-detail-page .product-discovery-inner,
.personal-detail-page .product-sticky-purchase-inner {
    width: min(1240px, calc(100% - 2 * var(--product-page-gutter)));
    margin-inline: auto;
}

@media (max-width: 767px) {
    .personal-detail-page {
        --product-page-gutter: 16px;
        --product-mobile-gutter: var(--product-page-gutter);
    }
}

.personal-detail-page .personal-product-toggle[data-variant-types] {
    background: #fff;
}

.personal-detail-page .personal-product-toggle[data-variant-types] button:not([aria-pressed="true"]) {
    background: #fff;
}

.product-rail-controls button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    line-height: 1;
}
.product-rail-controls button svg { display: block; flex-shrink: 0; }
[dir="rtl"] .product-rail-controls button svg { transform: rotate(180deg); }

/* Keep gallery thumbnails and zoom stage below both sticky header rows. */
@media (min-width: 768px) {
    .personal-detail-page .personal-product-gallery {
        --gallery-top: calc(var(--personal-header-height, 82px) + 16px);
    }
    .personal-detail-page:has(.product-sticky-purchase.is-visible) .personal-product-gallery {
        --gallery-top: calc(var(--personal-header-height, 82px) + var(--product-purchase-height, 80px) + 16px);
    }
}

/* Consistent customised preview and finish picker. */
.product-customised-showcase {
    border: 1px solid #e2e6ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 20px rgb(21 23 27 / 5%);
    animation: none;
}
.product-customised-heading h2 { font-size: 28px; font-weight: 500; }
.product-customised-configurator { align-items: start; gap: 32px; margin-block-start: 28px; }
.product-customised-feature { position: sticky; top: calc(var(--personal-header-height, 82px) + 24px); }
.product-customised-feature > img {
    height: clamp(360px, 32vw, 480px);
    aspect-ratio: auto;
    padding: 12px;
    object-fit: contain;
}
.product-customised-feature-copy { margin-block-start: 20px; gap: 16px; }
.product-customised-feature-copy h3 { font-size: 24px; font-weight: 500; }
.product-customised-badge { font-size: 14px; }
.product-customised-feature-copy .product-customised-buy { gap: 16px; background: transparent; }
.product-customised-buy span { padding: 0; font-size: 17px; }
.product-customised-buy a { min-width: 84px; padding: 10px 22px; font-size: 14px; }
.product-customised-finishes { gap: 12px; }
.product-customised-finishes a {
    min-height: 80px;
    border: 1px solid #e2e6ee;
    border-radius: 12px;
    padding: 12px;
    transition: border-color 200ms ease, background-color 200ms ease;
}
.product-customised-finishes a[aria-current],
.product-customised-finishes a:hover { border-color: #0071e3; background: #f2f7ff; }
.product-customised-finishes strong,
.product-customised-finishes small { font-size: 14px; }
@media (max-width: 850px) {
    .product-customised-feature { position: static; }
    .product-customised-feature > img { height: 360px; }
}
@media (max-width: 600px) {
    .product-customised-showcase { padding: 20px; border-radius: 20px; }
    .product-customised-heading h2 { font-size: 24px; }
    .product-customised-feature > img { height: 320px; }
    .product-customised-feature-copy h3 { font-size: 21px; }
    .product-customised-finishes { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .product-customised-finishes a { transition: none; } }

/* Restore the customised collection's gold frame. */
.product-customised-showcase {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(115deg, #a07c40, #f0ce83, #fff1c7, #c3944e, #f0ce83) border-box;
    box-shadow: 0 0 10px rgb(240 206 131 / 48%), 0 0 24px rgb(195 148 78 / 24%);
}
.product-customised-feature > img {
    height: clamp(390px, 35vw, 520px);
    padding: 4px;
}
@media (prefers-reduced-motion: no-preference) {
    .product-customised-showcase {
        background-size: 100% 100%, 220% 100%;
        animation: customisedGoldBorderFlow 6s ease infinite;
    }
}
@media (max-width: 850px) { .product-customised-feature > img { height: 390px; } }
@media (max-width: 600px) { .product-customised-feature > img { height: 350px; } }

/* About Coolmix: compact introduction and evenly sized service cards. */
.product-before-footer #product-about { padding-block: 32px 48px; }
.product-about-intro { gap: 24px; }
.product-about-avatar {
    width: 112px;
    border-radius: 22px;
    background: #fff;
}
.product-about-intro small { display: block; margin-bottom: 8px; color: #6e6e73; font-size: 14px; }
.product-about-intro h2 { margin: 0 0 10px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.product-about-intro p { font-size: 16px; line-height: 1.5; }
.product-about-benefits { margin-top: 28px; }
body .product-about-benefits a {
    display: flex;
    min-height: 88px;
    padding: 20px;
    border-radius: 16px;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}
body .product-about-benefits a .product-benefit-icon {
    display: grid;
    place-items: center;
    translate: none;
    transform: none;
}
body .product-about-benefits .product-benefit-icon svg { display: block; width: 24px; height: 24px; margin: 0; }
body .product-about-benefits a:is(:hover, :focus-visible) { scale: 1; border-color: #b8d5f5; }
body .product-about-benefits a:is(:hover, :focus-visible) .product-benefit-icon { translate: none; }
@media (max-width: 850px) {
    .product-about-intro { grid-template-columns: auto minmax(0, 1fr); }
    .product-about-intro .product-discovery-button { grid-column: 2; justify-self: start; }
    .product-about-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .product-about-avatar { width: 72px; border-radius: 16px; }
    .product-about-intro { gap: 16px; }
    .product-about-intro h2 { font-size: 24px; }
    .product-about-benefits { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { body .product-about-benefits a { transition: none; } }

/* Attach the desktop purchase bar to the visible header edge, without gaps. */
@media (min-width: 768px) {
    .personal-detail-page .product-sticky-purchase {
        inset-block-start: var(--personal-header-bottom, var(--personal-header-height, 82px));
        z-index: 20;
        background: #fff;
    }
    .personal-detail-page {
        --product-section-top: var(--personal-header-bottom, var(--personal-header-height, 82px));
    }
    .personal-detail-page:has(.product-sticky-purchase.is-visible) {
        --product-section-top: calc(var(--personal-header-bottom, var(--personal-header-height, 82px)) + var(--product-purchase-height, 0px));
    }
    .personal-detail-page .product-section-nav { z-index: 19; }
}

/* Prevent rubber-band scrolling past the page boundaries beneath fixed bars. */
html:has(> body.personal-detail-page),
body.personal-detail-page {
    overscroll-behavior-y: none;
}

.product-review-photos .product-review-photo { display: block; padding: 0; }
.product-review-photos .product-review-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

.product-review-filters input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #86868b;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.product-review-filters input[type="checkbox"]::before {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    opacity: 0;
    transition: transform 240ms cubic-bezier(.2, 1.5, .5, 1), opacity 160ms ease;
}
.product-review-filters input[type="checkbox"]:checked { background: #0071e3; border-color: #0071e3; }
.product-review-filters input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); opacity: 1; }
.product-review-filters input[type="checkbox"]:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .product-review-filters input[type="checkbox"],
    .product-review-filters input[type="checkbox"]::before { transition: none; }
}

#product-reviews > [data-review-photo-rail] {
    margin-block-end: clamp(28px, 3vw, 40px);
}

.personal-detail-page > .landing-header {
    --landing-small-font: 14px;
    font-size: 14px;
}

/* Customer reviews follow the storefront card and form styling. */
.product-reviews-layout { gap: 28px; align-items: start; }
.product-review-summary, .product-review-card, .product-review-filters {
    border: 1px solid #dfe6f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(27 46 83 / 3%);
}
.product-review-summary, .product-review-card { gap: 0; }
.product-review-summary { padding: 20px; }
.product-review-summary h3 { margin: 0 0 10px; font-size: 16px; }
.product-review-score { gap: 12px; margin-bottom: 8px; }
.product-review-score > span { color: #0071e3; font-size: 21px; letter-spacing: 0; }
.product-review-score > strong { font-size: 32px; letter-spacing: -1px; }
.product-review-summary > small { color: #72809a; font-size: 12px; }
.product-review-summary dl { margin: 8px 0 10px; padding-top: 12px; border-top: 1px solid #e8edf5; gap: 8px; font-size: 13px; }
.product-review-summary dd { color: #172238; font-weight: 600; }
.product-review-summary .product-discovery-button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 10px; background: #f1f5fc; color: #1764ca; font-size: 13px; }
.product-review-filters { margin-top: 14px; padding: 20px; gap: 12px; }
.product-review-filters h3 { font-size: 16px; }
.product-review-filters legend { font-size: 13px; font-weight: 600; }
.product-review-filters label { min-height: 28px; color: #526079; font-size: 13px; gap: 10px; }
.product-review-filters .product-discovery-button { width: 100%; border: 0; border-radius: 10px; background: #0071e3; color: #fff; font-size: 13px; }
.product-review-toolbar { margin: 0 0 6px; min-height: 42px; }
.product-review-toolbar h3 { font-size: 21px; letter-spacing: -.4px; }
.product-review-toolbar label { font-size: 13px; }
.product-reviews-feed { gap: 16px; }
.product-review-card { padding: 20px; }
.product-review-card header { align-items: center; }
.product-review-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-review-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #edf3ff; color: #1764ca; font-size: 16px; font-weight: 600; }
.product-review-author strong { font-size: 14px; overflow-wrap: anywhere; }
.product-review-author .personal-review-verified { display: block; margin-top: 3px; color: #188454; font-size: 11px; }
.product-review-card header > .product-review-rating { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #edf4ff; color: #1764ca; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.product-review-date { display: block; margin: 8px 0 10px; color: #8793a7; font-size: 12px; }
.product-review-card p { margin: 0 0 12px; color: #354158; font-size: 14px; line-height: 1.75; }
.product-review-attachments { margin-bottom: 12px; gap: 10px; }
.product-review-attachments:empty { margin: 0; }
.product-review-attachments img { width: 64px; height: 64px; border-radius: 12px; border: 1px solid #e8edf5; }
.product-review-device { margin-top: 0; padding: 10px; border: 0; border-radius: 12px; background: #f7f8fb; }
.product-review-device strong { font-size: 13px; }
.product-review-device small { margin-top: 3px; color: #72809a; font-size: 12px; }
@media (max-width: 767px) {
    .product-review-card { padding: 18px; }
    .product-review-filters { padding: 18px; }
    .product-review-card header { gap: 12px; }
    .product-review-card header > .product-review-rating { font-size: 12px; padding: 5px 8px; }
}
