/* Device identification and repair shortcuts share the soft price-list palette. */
.ad-device-detail-hero .ad-device-repair-navigation { margin-top: 22px; }
.ad-device-detail-hero .ad-problem-title {
    margin: 0 0 12px;
    padding: 0;
    color: #30283f;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.ad-device-repair-links { display: grid; grid-template-columns: repeat(4, max-content); justify-content: start; gap: 8px; align-items: stretch; }
.ad-device-detail-hero .ad-problem-chip {
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(135, 113, 194, .18); /* taste-skill-ignore: preserve the requested soft appledaily control edge */
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .96), rgba(241, 235, 251, .9)); /* taste-skill-ignore: restrained highlight matches the requested Liquid Glass price panels */
    color: #51475f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), 0 3px 10px rgba(69, 48, 110, .035); /* taste-skill-ignore: subtle relief follows the site's requested soft controls */
    backdrop-filter: none; /* taste-skill-ignore: reset inherited blur */
    -webkit-backdrop-filter: none; /* taste-skill-ignore: reset inherited blur */
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    transition: border-color .16s ease, color .16s ease;
}
.ad-device-detail-hero .ad-problem-chip::after { display: none; }
.ad-device-detail-hero .ad-problem-chip:hover,
.ad-device-detail-hero .ad-problem-chip:active { transform: none; border-color: #cdbdee; background: #eee6fb; color: #6842c2; }
.ad-device-detail-hero .ad-problem-chip:focus-visible { outline: 2px solid #7654dd !important; outline-offset: 3px; }
.ad-device-detail-hero .ad-device-model-codes { color: #766b82; line-height: 1.5; }
.ad-device-iphone17-hero .ad-problem-chip { border-radius: 999px; }

@media (max-width: 991px) {
    /* Keep repair choices and booking buttons clear of floating utilities. */
    .ad-device-repair-in-view #__replain_widget,
    .ad-device-repair-in-view .drop-msg,
    .ad-device-repair-in-view #back-to-top { display: none !important; }
    .ad-device-repair-in-view .drop-msg,
    .ad-device-repair-in-view #back-to-top {
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .device-about-boxes.ad-device-detail-hero { padding: 22px 0 24px; border: 0; background: #fcfbff; }
    .ad-device-detail-hero > .container { max-width: 100%; padding-right: 22px; padding-left: 22px; }
    .device-about-boxes.ad-device-detail-hero > .container > .ad-device-hero-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 104px;
        column-gap: 20px;
        row-gap: 16px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none; /* taste-skill-ignore: reset inherited decorative shadow */
        overflow: visible;
    }
    .ad-device-detail-hero > .container > .ad-device-hero-layout::before { display: none; }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-copy,
    .ad-device-detail-hero .ad-device-hero-summary { display: contents; }
    .device-about-boxes.ad-device-detail-hero h1 {
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0;
        padding: 0;
        color: #30283f;
        font-size: 26px !important;
        font-weight: 700;
        line-height: 1.15;
    }
    .ad-device-detail-hero .ad-device-model-codes {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        margin: 0;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.65;
    }
    .ad-device-model-codes strong { display: block; margin-bottom: 5px; color: #51475f; font-size: 12px; font-weight: 500; }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-photo {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        width: 104px;
        max-width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        mix-blend-mode: multiply;
    }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-photo .img-fluid {
        display: block;
        width: 104px;
        height: 116px;
        max-width: 100%;
        max-height: 116px;
        object-fit: contain;
        filter: none;
    }
    .ad-device-detail-hero .ad-device-repair-navigation { grid-column: 1 / -1; grid-row: 3; margin: 4px 0 0; }
    .ad-device-detail-hero .ad-device-hero-note {
        grid-column: 1 / -1;
        grid-row: 4;
        margin: 0;
        padding: 0;
        color: #766b82;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.5;
    }
    .ad-device-detail-hero .ad-device-hero-empty,
    .ad-device-detail-hero .ad-device-laptop-intro { grid-column: 1 / -1; grid-row: 3; margin: 0; }
    .ad-device-detail-hero .ad-device-hero-layout:not(.has-model-codes) h1 { grid-column: 1; align-self: center; }
    .ad-device-detail-hero .ad-device-hero-layout:not(.has-model-codes) .ad-device-hero-photo { grid-row: 1; }
    .ad-device-detail-hero .ad-device-hero-layout:not(.has-photo) { grid-template-columns: minmax(0, 1fr); }
    .ad-device-detail-hero .ad-device-hero-layout:not(.has-photo) h1 { grid-column: 1 / -1; }
    .ad-device-detail-hero .ad-device-hero-layout:not(.has-model-codes) :is(.ad-device-repair-navigation, .ad-device-hero-empty, .ad-device-laptop-intro) { grid-row: 2; }
    .ad-device-detail-hero .ad-device-hero-layout:not(.has-model-codes) .ad-device-hero-note { grid-row: 3; }
}

@media (max-width: 991px) {
    /* Hide before widget scripts load; observers restore utilities below the main content. */
    body:has(.ad-device-iphone17-hero):not(.ad-device-utilities-available) :is(.drop-msg, #back-to-top, #__replain_widget) { display: none !important; }
}

@media (max-width: 359px) {
    .ad-device-detail-hero > .container { padding-right: 18px; padding-left: 18px; }
    .device-about-boxes.ad-device-detail-hero h1 { font-size: 24px !important; }
    .device-about-boxes.ad-device-detail-hero > .container > .ad-device-hero-layout { grid-template-columns: minmax(0, 1fr) 84px; column-gap: 14px; }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-photo { width: 84px; }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-photo .img-fluid { width: 84px; height: 108px; max-height: 108px; }
    .ad-device-detail-hero .ad-problem-chip { padding-right: 10px; padding-left: 10px; font-size: 13px; }
}

@media (min-width: 360px) and (max-width: 599px) {
    .device-about-boxes.ad-device-detail-hero > .container > .ad-device-hero-layout { grid-template-columns: minmax(0, 1fr) 112px; column-gap: 16px; row-gap: 12px; }
    .device-about-boxes.ad-device-detail-hero .has-photo h1 { grid-column: 1; font-size: 24px !important; }
    .ad-device-detail-hero .has-photo .ad-device-model-codes { align-self: start; }
    .device-about-boxes.ad-device-detail-hero .has-photo .ad-device-hero-photo { width: 112px; }
    .device-about-boxes.ad-device-detail-hero .has-photo.has-model-codes .ad-device-hero-photo { grid-row: 1 / span 2; }
    .device-about-boxes.ad-device-detail-hero .has-photo .ad-device-hero-photo .img-fluid { flex-shrink: 0; width: 132px; max-width: none; height: 144px; max-height: 144px; }
}

@media (min-width: 600px) and (max-width: 991px) {
    .device-about-boxes.ad-device-detail-hero > .container > .ad-device-hero-layout { grid-template-columns: minmax(0, 1fr) 148px; }
    .device-about-boxes.ad-device-detail-hero .has-photo h1 { grid-column: 1; }
    .device-about-boxes.ad-device-detail-hero .has-photo.has-model-codes .ad-device-hero-photo { grid-row: 1 / span 2; }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-photo { width: 148px; }
    .device-about-boxes.ad-device-detail-hero .ad-device-hero-photo .img-fluid { width: 148px; height: 148px; max-height: 148px; }
}

@media (max-width: 599px) {
    .ad-device-detail-hero .ad-device-repair-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .device-about-boxes.ad-device-detail-hero > .container > .ad-device-hero-layout:not(.has-photo) { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .ad-device-detail-hero .ad-problem-chip { transition: none; }
}
