/* PS5 dedicated product page presentation. Dashboard uses its canonical CSS. */
html body .ps5-product-ui {
    min-width: 0;
    max-width: 100%;
    --ps5-info-bg: #0c2033;
    --ps5-info-border: #2c6187;
}
html body .ps5-product-ui [hidden] { display: none !important; }
html body .ps5-product-ui .ps5-product-notice {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(16px, 2.5vw, 22px);
    border: 1px solid var(--ps5-info-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #102d45, var(--ps5-info-bg));
    color: #d0e1ef;
    overflow-wrap: break-word;
}
html body .ps5-product-ui .ps5-product-notice--demand {
    --ps5-info-bg: #102a29;
    --ps5-info-border: #3a7167;
    background: linear-gradient(135deg, #153936, var(--ps5-info-bg));
}
html body .ps5-product-ui .ps5-product-notice-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}
html body .ps5-product-ui .ps5-product-notice-heading > span {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid #5facc7;
    border-radius: 10px;
    color: #9cdcf6;
    font-size: 20px;
    line-height: 1;
}
html body .ps5-product-ui .ps5-product-notice-heading :is(h2,h3) {
    margin: 0;
    min-width: 0;
    color: #eef8ff;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.015em;
}
html body .ps5-product-ui .ps5-product-notice p {
    margin: 0;
    color: #d0e1ef;
    font-size: 14px;
    line-height: 1.7;
}
html body .ps5-product-ui .ps5-product-notice p + p {
    margin-top: 12px;
}
html body .ps5-product-ui .ps5-product-p1-exception {
    padding-top: 12px;
    border-top: 1px solid #4f759566;
}
html body .ps5-product-ui .ps5-product-p1-exception strong { color: #f0f7ff; }
html body .ps5-product-ui :is(.btn,button,a) { touch-action: manipulation; }
html body .ps5-product-ui :is(button,.btn,.ebx528-package-card):focus-visible {
    outline: 3px solid #88d4ff;
    outline-offset: 3px;
}

/* Dedicated product page. Preserve artwork, scope all layout to PS5. */
html body .ebx509-game-page.ps5-product-ui :is(.game-rental-panel,.ebx512ui2-p1-panel) { min-width: 0; }
html body .ebx509-game-page.ps5-product-ui .game-rental-status {
    gap: 12px;
    flex-wrap: wrap;
}
html body .ebx509-game-page.ps5-product-ui .game-rental-status > span {
    max-width: 100%;
    white-space: normal;
}
html body .ebx509-game-page.ps5-product-ui .game-next-availability {
    border-color: #345b76;
    background: #0d2232;
}
html body .ebx509-game-page.ps5-product-ui .game-next-availability :is(strong,p) { color: #cbddeb; }
html body .ebx509-game-page.ps5-product-ui .game-next-availability p { font-size: 13px; line-height: 1.65; }
html body .ebx509-game-page.ps5-product-ui .game-package-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
}
html body .ebx509-game-page.ps5-product-ui .ebx528-package-card {
    min-width: 0;
    min-height: 86px;
    padding: 12px;
}
html body .ebx509-game-page.ps5-product-ui .ebx528-package-card b {
    font-size: 15px;
    white-space: nowrap;
}
@media (max-width: 1180px) {
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .game-detail-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: none !important;
    }
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .game-detail-info-group {
        display: grid !important;
        grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr) !important;
        gap: 20px;
        grid-column: auto !important;
    }
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .ebx512ui2-purchase-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-column: auto !important;
        gap: 18px;
    }
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .ebx512ui2-purchase-cards > aside {
        display: flex !important;
        flex-direction: column !important;
        grid-column: auto !important;
        width: 100% !important;
        padding: 18px !important;
    }
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .ebx512ui2-purchase-cards > aside > * { grid-column: auto !important; }
}
@media (max-width: 600px) {
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .game-detail-info-group,
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .ebx512ui2-purchase-cards {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .game-detail-cover {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
    html body.customer34-body.ebx-page-games .ebx509-game-page.ps5-product-ui .game-detail-intro h1 {
        font-size: clamp(26px, 7vw, 36px) !important;
        line-height: 1.15 !important;
    }
}
