html.ps-r7-modal-open { overflow: hidden; }

.ps-r7-advice {
    --r7-ink: #19191c;
    --r7-muted: #51535a;
    --r7-rule: #e3e2e4;
    --r7-red: #bf1726;
    --r7-gap: clamp(16px, 4vw, 32px);
    box-sizing: border-box;
    color: var(--r7-ink);
    background: #fff;
    font: normal 400 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
}

dialog.ps-r7-advice {
    position: fixed;
    inset: 0;
    width: min(608px, calc(100% - 28px));
    min-width: 0;
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    margin: auto;
    border: 1px solid rgba(35, 24, 27, .14);
    border-radius: 20px;
    box-shadow: 0 24px 90px rgba(18, 14, 16, .32);
    overflow: hidden;
}

.ps-r7-advice [hidden], dialog.ps-r7-advice:not([open]) { display: none !important; }
dialog.ps-r7-advice::backdrop { background: rgba(20, 18, 20, .67); }
.ps-r7-advice *, .ps-r7-advice *::before, .ps-r7-advice *::after { box-sizing: border-box; }

.ps-r7-advice [data-ps-r7-panel] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    overscroll-behavior: contain;
}
.ps-r7-advice .ps-r7-heading {
    flex: 0 0 auto;
    min-width: 0;
    padding: var(--r7-gap) calc(var(--r7-gap) + 39px) 12px var(--r7-gap);
}
.ps-r7-advice h2, .ps-r7-advice h3, .ps-r7-advice p {
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
    margin: 0;
}
.ps-r7-advice h2, .ps-r7-advice [data-ps-r7-title] {
    font: 730 clamp(22px, 4vw, 30px)/1.12 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}
.ps-r7-advice [data-ps-r7-title]:focus { outline: none; }
.ps-r7-advice .ps-r7-heading p { margin: 8px 0 0; }
.ps-r7-advice .ps-r7-heading p, .ps-r7-advice .ps-r7-note { color: var(--r7-muted); }
.ps-r7-advice .ps-r7-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px var(--r7-gap) 18px;
    scrollbar-width: thin;
}
.ps-r7-advice .ps-r7-body > * + * { margin-top: 14px; }
.ps-r7-advice .ps-r7-body > .ps-r7-heading {
    padding: max(12px, calc(var(--r7-gap) - 4px)) 38px 0 0;
}
.ps-r7-advice .ps-r7-body > .ps-r7-heading + * { margin-top: 16px; }

.ps-r7-advice .ps-r7-callout {
    padding: 16px 18px;
    background: #fff5df;
    border: 1px solid #e9c17a;
    border-inline-start: 4px solid #ba771d;
    border-radius: 12px;
    color: #4d3515;
}
.ps-r7-advice .ps-r7-stat {
    display: block;
    margin: 0 0 5px;
    font-size: clamp(25px, 4.5vw, 33px);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -.035em;
    color: #75440b;
}
.ps-r7-advice .ps-r7-callout p + p { margin: 7px 0 0; }
.ps-r7-advice .ps-r7-note { font-size: 14px; line-height: 1.5; }
.ps-r7-advice .ps-r7-actions {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0;
    padding: 14px var(--r7-gap) 18px;
    background: #fff;
    border-top: 1px solid var(--r7-rule);
}
.ps-r7-advice button, .ps-r7-advice :is(.ps-r7-primary, .ps-r7-secondary, .ps-r7-contact) {
    min-width: 0;
    height: auto;
    margin: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    white-space: normal;
    cursor: pointer;
}
.ps-r7-advice :is(.ps-r7-primary, .ps-r7-secondary, .ps-r7-contact) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    text-align: center;
    text-decoration: none;
}
.ps-r7-advice .ps-r7-primary {
    background: var(--r7-red);
    border: 1px solid var(--r7-red);
    color: #fff;
}
.ps-r7-advice .ps-r7-primary:hover { background: #991321; color: #fff; }
.ps-r7-advice .ps-r7-secondary {
    color: var(--r7-ink);
    background: #fff;
    border: 1px solid #bfbcc1;
}
.ps-r7-advice .ps-r7-secondary:hover { color: var(--r7-ink); background: #f6f4f5; }
.ps-r7-advice .ps-r7-contact {
    color: #215c43;
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 600;
}
.ps-r7-advice .ps-r7-contact:hover { color: #164730; text-decoration: underline; }
.ps-r7-advice [data-ps-r7-continue][aria-busy="true"] { opacity: .65; cursor: progress; }
.ps-r7-advice [data-ps-r7-close] {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 1;
    top: 9px;
    right: 9px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f5f3f4;
    color: #252426;
    border: 1px solid transparent;
    border-radius: 50%;
    font-size: 21px;
}
.ps-r7-advice [data-ps-r7-close]:hover { background: #eae6e8; }
.ps-r7-advice [data-ps-r7-error] { color: #a81220; margin: 0; font-weight: 600; font-size: 14px; }
.ps-r7-advice :is(a, button):focus-visible {
    outline: 3px solid #225bb0;
    outline-offset: 2px;
}

.ps-r7-advice .ps-r7-options { display: grid; gap: 10px; padding: 0; list-style: none; }
.ps-r7-advice a.ps-r7-option {
    display: grid;
    grid-template-columns: clamp(64px, 14vw, 84px) minmax(0, 1fr) auto;
    gap: 3px 12px;
    align-items: center;
    width: 100%;
    padding: 10px;
    margin: 0;
    color: var(--r7-ink);
    background: #fff;
    border: 1px solid var(--r7-rule);
    border-radius: 13px;
    text-decoration: none;
}
.ps-r7-advice a.ps-r7-option:hover { border-color: #a25960; background: #fffcfc; }
.ps-r7-advice .ps-r7-option-photo {
    display: block;
    width: 100%;
    height: clamp(58px, 12vw, 76px);
    padding: 2px;
    background: #fff;
    border-radius: 7px;
    object-fit: contain;
}
.ps-r7-advice .ps-r7-option-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ps-r7-advice .ps-r7-option-body { min-width: 0; }
.ps-r7-advice .ps-r7-option-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.22; }
.ps-r7-advice .ps-r7-option-meta { display: block; margin-top: 4px; font-size: 13px; line-height: 1.36; color: var(--r7-muted); }
.ps-r7-advice .ps-r7-option-price { font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--r7-red); white-space: nowrap; }
.ps-r7-advice .ps-r7-option-price :is(del, ins, span, bdi) { color: inherit; }

.ps-r7-fallback .ps-r7-advice, .ps-r7-fallback.ps-r7-advice {
    position: relative;
    width: min(608px, 100%);
    margin: 20px auto;
    border: 1px solid #dedbdd;
    border-radius: 15px;
    overflow: hidden;
}
.ps-r7-fallback .ps-r7-advice [data-ps-r7-panel], .ps-r7-fallback.ps-r7-advice [data-ps-r7-panel] { max-height: none; }
.ps-r7-fallback .ps-r7-body > .ps-r7-heading { padding-right: 0; }
.ps-r7-fallback details > .ps-r7-primary { cursor: pointer; }
.ps-r7-fallback details[open] > .ps-r7-primary { margin-bottom: 12px; }

@media (max-width: 500px) {
    dialog.ps-r7-advice { width: calc(100% - 18px); border-radius: 16px; }
    .ps-r7-advice .ps-r7-heading { padding-top: 18px; }
    .ps-r7-advice .ps-r7-body { font-size: 15px; padding-bottom: 14px; }
    .ps-r7-advice .ps-r7-actions { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); gap: 6px; }
    .ps-r7-advice a.ps-r7-option { grid-template-columns: 62px minmax(0, 1fr); gap: 4px 9px; }
    .ps-r7-advice .ps-r7-option-title { font-size: 15px; }
    .ps-r7-advice .ps-r7-option-photo { grid-column: 1; grid-row: 1 / span 2; }
    .ps-r7-advice .ps-r7-option-body, .ps-r7-advice .ps-r7-option-price { grid-column: 2; }
}
@media (max-height: 500px) {
    .ps-r7-advice [data-ps-r7-panel] { display: block; }
    .ps-r7-advice .ps-r7-actions { padding-top: 8px; padding-bottom: 8px; }
    .ps-r7-advice .ps-r7-body { overflow: visible; }
}
@media (prefers-reduced-motion: no-preference) {
    dialog.ps-r7-advice[open] { animation: ps-r7-open .16s ease-out; }
    @keyframes ps-r7-open { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
