/* AstraStone consent component */
.asta-consent-banner[hidden], .asta-consent-banner [hidden], .asta-footer-consent[hidden] { display: none !important; }
.asta-consent-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    max-height: 85vh;
    max-height: 85dvh;
    overscroll-behavior: contain;
    overflow: auto;
    z-index: calc(var(--asta-z-toggle) + 1);
    padding: var(--asta-space-16) clamp(16px, 4vw, 64px);
    padding-bottom: calc(var(--asta-space-16) + env(safe-area-inset-bottom, 0px));
    background: var(--asta-color-surface);
    color: var(--asta-color-text);
    border: 0;
    border-top: 1px solid var(--asta-color-border);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(var(--asta-dark-rgb), .16);
}
.asta-consent-banner h2 { margin: 0 0 var(--asta-space-10); color: var(--asta-color-heading); font-size: 1.25rem; }
.asta-consent-banner p { margin: 0 0 var(--asta-space-16); }
.asta-consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--asta-space-10); }
.asta-consent-options { display: grid; gap: var(--asta-space-10); margin-bottom: var(--asta-space-16); }
.asta-consent-options label { display: flex; align-items: center; gap: var(--asta-space-10); }
.asta-consent-banner button:focus-visible, .asta-consent-banner input:focus-visible, .asta-footer-consent:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 600px) { .asta-consent-actions { grid-template-columns: 1fr; } .asta-consent-banner { padding-inline: var(--asta-space-16); } }

/* Keep all consent actions visible and equally prominent. */
.asta-consent-banner .asta-consent-actions .asta-btn,
.asta-consent-banner .asta-consent-options .asta-btn {
    background: var(--asta-primary-dark);
    color: #fff;
    border-color: var(--asta-primary-dark);
    box-shadow: none;
    min-height: 44px;
    padding: 8px 16px;
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.asta-consent-banner .asta-consent-actions .asta-btn:hover,
.asta-consent-banner .asta-consent-options .asta-btn:hover {
    background: var(--asta-primary-dark);
    color: #fff;
    border-color: var(--asta-primary-dark);
}
@media (min-width: 901px) {
    .asta-consent-banner:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 46%); column-gap: 24px; align-items: center; }
    .asta-consent-banner h2 { grid-column: 1; }
    .asta-consent-banner p { grid-column: 1; margin-bottom: 0; }
    .asta-consent-actions { grid-column: 2; grid-row: 1 / 3; }
    .asta-consent-options { grid-column: 1 / -1; grid-row: 3; margin-top: 16px; }
}

/* Footer privacy control follows the existing copyright styling. */
.asta-footer-consent {
    position: static;
    display: inline;
    margin-inline-start: 0.75em;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Preserve readable controls on narrow screens and at high zoom. */
.asta-consent-options label { min-width: 0; overflow-wrap: anywhere; }
.asta-consent-options input { flex: 0 0 auto; }
.asta-footer-consent:hover { text-decoration-thickness: 2px; }
