/* Standalone styles: consent controls must work without a frontend rebuild. */
.cookie-panel[hidden], .cookie-settings-trigger[hidden], #cookie-error[hidden], iframe[data-consent-src][hidden], iframe[data-consent-src]:not([src]) { display: none !important; }
.cookie-panel, .cookie-dialog, .cookie-settings-trigger, .cookie-media-placeholder { font-family: system-ui, sans-serif; color: #3f291d; box-sizing: border-box; font-size: 14px; line-height: 1.55; }
.cookie-panel { position: fixed; z-index: 9999; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; background: #550606; color: #fff8ef; border: 1px solid #b9985d; border-radius: 16px; padding: 16px 20px; box-shadow: 0 12px 40px #30231855; font-size: 13px; line-height: 1.45; }
.cookie-panel h2, .cookie-dialog h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.cookie-panel p, .cookie-dialog p { margin: 8px 0; }
.cookie-panel .cookie-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #e4c078; margin: 0 0 4px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie-actions button, .cookie-media-placeholder button { flex: 1 1 160px; border: 1px solid #8a7259; border-radius: 10px; padding: 12px 16px; background: #fffdf9; color: #3f291d; font: inherit; font-weight: 650; cursor: pointer; }
.cookie-actions button:hover, .cookie-media-placeholder button:hover, .cookie-settings-trigger:hover { background: #ece5db; }
.cookie-panel button:focus-visible, .cookie-dialog button:focus-visible, .cookie-dialog input:focus-visible, .cookie-dialog summary:focus-visible, .cookie-dialog a:focus-visible, .cookie-settings-trigger:focus-visible, .cookie-media-placeholder button:focus-visible { outline: 3px solid #6d0808; outline-offset: 3px; }
.cookie-settings-trigger { position: fixed; bottom: 12px; left: 12px; z-index: 9998; border: 1px solid #d8ccbb; border-radius: 100px; padding: 8px 14px; background: #fffdf9; box-shadow: 0 2px 12px #30231820; font-size: 12px; cursor: pointer; }
.cookie-dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #d8ccbb; border-radius: 20px; background: #fffdf9; overflow: auto; overscroll-behavior: contain; }
.cookie-dialog::backdrop { background: #20181180; }
.cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-dialog-header button { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #d8ccbb; border-radius: 50%; font-size: 24px; cursor: pointer; background: transparent; }
.cookie-category { border: 1px solid #e0d6c8; border-radius: 12px; padding: 16px; margin-top: 14px; }
.cookie-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-category-heading h3, .cookie-category-heading strong { font-size: 15px; font-weight: 700; margin: 0; }
.cookie-category-heading span { font-size: 12px; color: #526341; }
.cookie-category label { cursor: pointer; min-height: 32px; }
.cookie-category input { width: 22px; height: 22px; accent-color: #6d0808; flex-shrink: 0; }
.cookie-category p, .cookie-details { font-size: 13px; color: #5b5148; }
.cookie-details { margin-top: 18px; }
.cookie-details summary { cursor: pointer; font-weight: 650; }
.cookie-dialog a { text-decoration: underline; }
#cookie-error { color: #8b1515; }
.cookie-media-placeholder { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; min-height: 100px; background: #f7f5f1; padding: 16px; text-align: center; }
.cookie-media-placeholder p { margin: 0; max-width: 460px; font-size: 13px; }
.cookie-media-placeholder button { flex: none; padding: 8px 14px; }
.cookie-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .cookie-panel, .cookie-dialog { padding: 18px; } .cookie-actions { gap: 8px; } .cookie-actions button { flex-basis: 100%; } }

.cookie-panel h2 { color: #fff8ef; font-size: 18px; margin-bottom: 6px; }
.cookie-panel p { margin: 6px 0; }
.cookie-panel .cookie-actions { margin-top: 12px; gap: 8px; }
.cookie-panel .cookie-actions button { min-height: 44px; padding: 9px 14px; border-color: #e4c078; }
.cookie-panel button:focus-visible { outline-color: #e4c078; }
.cookie-settings-trigger { background: #550606; color: #fff8ef; border-color: #b9985d; }
.cookie-settings-trigger:hover { background: #730c0c; }
@media (max-width: 480px) {
    .cookie-panel { padding: 14px 16px; bottom: 12px; }
    .cookie-panel .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-panel .cookie-actions button { min-width: 0; padding: 9px 8px; overflow-wrap: anywhere; }
    .cookie-panel .cookie-actions button:last-child { grid-column: 1 / -1; }
}
