.store-consent:not([open]),
.store-consent [hidden],
.footer-links .store-consent-trigger[hidden] {
    display: none;
}

.store-consent {
    position: fixed;
    inset: auto 0 max(1rem, env(safe-area-inset-bottom)) 0;
    margin: 0 auto;
    max-width: none;
    overscroll-behavior: contain;
    width: min(36rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    border: 1px solid #4d4943;
    border-radius: 0.75rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: #292724;
    color: #faf6ef;
    box-shadow: 0 0.75rem 2.5rem rgb(28 25 21 / 35%);
    font-size: 0.9375rem;
    line-height: 1.45;
}

html:has(.store-consent:modal) {
    overflow: hidden;
}

.store-consent::backdrop {
    background: rgb(28 25 21 / 55%);
}

.store-consent h2 {
    margin: 0 0 0.5rem;
    font: 600 1.8rem/1.1 "Cormorant Garamond", Georgia, serif;
}

.store-consent p {
    margin: 0 0 1rem;
}

.store-consent-options {
    margin-bottom: 1rem;
    border-block: 1px solid #605a52;
    padding-block: 0.25rem;
}

.store-consent-options label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.store-consent-options input {
    width: 1.125rem;
    height: 1.125rem;
    flex: none;
    margin: 0.125rem 0 0;
    accent-color: #f6efe2;
}

.store-consent-options strong {
    display: block;
}

.store-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
}

.store-consent-actions button {
    width: 100%;
    margin: 0;
    min-height: 2.75rem;
    border: 1px solid #f6efe2;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f6efe2;
    color: #292724;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.store-consent-actions button:hover {
    background: #e3d7c5;
    border-color: #e3d7c5;
}

.store-consent :is(a, button, input):focus-visible {
    outline: 2px solid #faf6ef;
    outline-offset: 2px;
}

.footer-links .store-consent-trigger {
    width: auto;
    margin: 0;
    border: 0;
    padding: 5px 0;
    background: transparent;
    color: #e4dbcb;
    font: inherit;
    font-size: 0.87rem;
    line-height: 1.5;
    cursor: pointer;
}

.footer-links .store-consent-trigger:hover {
    text-decoration: underline;
}
