[data-consent-banner],
[data-consent-dialog] {
    box-sizing: border-box;
    color: #382014;
    background: #fff8f2;
    border: 1px solid #9b523b;
    border-radius: 5px;
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
}

[data-consent-banner] {
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(850px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 20px;
    overflow: auto;
    box-shadow: 0 5px 30px rgb(56 32 20 / 24%);
}

[data-consent-banner][hidden],
[data-consent-banner] [hidden],
[data-consent-dialog] [hidden] {
    display: none !important;
}

[data-consent-banner] h2,
[data-consent-dialog] h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

[data-consent-banner] p,
[data-consent-dialog] p {
    margin: 0 0 14px;
}

[data-consent-banner] a,
[data-consent-dialog] a {
    color: #7b2f1b;
    text-decoration: underline;
}

[data-consent-actions] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

[data-consent-accept],
[data-consent-reject],
[data-consent-banner] [data-consent-settings],
[data-consent-dialog] button,
[data-consent-dialog] input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #783820;
    border-radius: 3px;
    background: #914127;
    color: #ffffff;
    font: inherit;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

[data-consent-accept]:hover,
[data-consent-reject]:hover,
[data-consent-banner] [data-consent-settings]:hover,
[data-consent-dialog] button:hover {
    background: #74311e;
    color: #ffffff;
}

[data-consent-banner] a:focus-visible,
[data-consent-banner] button:focus-visible,
[data-consent-dialog] :focus-visible,
[data-consent-settings]:focus-visible {
    outline: 3px solid #382014;
    outline-offset: 3px;
}

[data-consent-dialog] {
    width: min(620px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 24px;
    overflow: auto;
    box-shadow: 0 8px 36px rgb(56 32 20 / 30%);
}

[data-consent-dialog]::backdrop {
    background: rgb(30 18 11 / 65%);
}

[data-consent-dialog] fieldset {
    min-width: 0;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #b48b73;
    border-radius: 3px;
}

[data-consent-dialog] legend {
    padding: 0 6px;
    font-weight: bold;
}

[data-consent-dialog] label {
    display: block;
    margin: 12px 0;
    cursor: pointer;
}

[data-consent-dialog] input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0 8px 0 0;
    vertical-align: middle;
    accent-color: #914127;
}

[data-consent-status]:not([hidden]) {
    margin-top: 12px;
    font-weight: bold;
}

.holiday-consent__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    color: #382014;
    font-size: 12px;
    line-height: 1.5;
}

.holiday-consent__links a {
    color: #382014;
    text-underline-offset: 3px;
}

/* Success is announced without adding a stray message outside the site shell.
   Storage failures are also rendered visibly inside the banner. */
.holiday-consent__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 520px) {
    [data-consent-banner],
    [data-consent-dialog] {
        padding: 16px;
    }

    [data-consent-actions] {
        grid-template-columns: 1fr;
    }
}
