/* Cookie notice and settings, shared by the storefront and control panel. */
.kh-cookie-notice {
    position: fixed;
    z-index: 100;
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    width: min(29rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    box-sizing: border-box;
    padding: 1rem 1.15rem;
    background: var(--paper, #fff9f2);
    color: var(--ink, #30201d);
    border: 1px solid var(--line, #c7ad9d);
    border-radius: .65rem;
    box-shadow: 0 .4rem 1.5rem #35231b25;
    line-height: 1.45;
}

.kh-cookie-notice[hidden], [data-cookie-settings][hidden] { display: none; }
.kh-cookie-notice > h2 { margin: 0 0 .35rem; font-size: 1.125rem; }
.kh-cookie-notice p { margin: .25rem 0 .65rem; }
.kh-cookie-notice button, .kh-cookie-notice summary { min-block-size: 44px; cursor: pointer; }
.kh-cookie-notice summary { align-content: center; color: inherit; }
.kh-cookie-notice [data-cookie-essential] {
    display: inline-flex;
    align-items: center;
    margin-top: .5rem;
    padding: .55rem .9rem;
    background: #3d2430;
    color: #fff;
    border: 1px solid #3d2430;
    border-radius: .35rem;
    font: inherit;
    font-weight: 650;
}
.kh-cookie-notice [data-cookie-essential]:hover { background: #543241; }
.kh-cookie-notice [data-cookie-essential]:focus-visible { outline-color: #3d2430; }
.kh-cookie-settings {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
    border-radius: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .18em;
}
.kh-cookie-settings:focus-visible, .kh-cookie-notice :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 36rem) {
    body:has(.kh-cookie-notice:not([hidden])) { padding-block-end: 16rem; }
}
