/*
 * cms2 cookie consent banner.
 *
 * Loaded only on sites with consent enabled (render.php), so nothing here
 * reaches a site that does not use it. Neutral by design — themes restyle it
 * from the site's custom CSS, which is emitted after this file.
 *
 * The banner ships in the cached HTML with the `hidden` attribute and is
 * revealed by consent.js, so a visitor who already chose never sees a flash.
 */

.cms2-cc {
    position: fixed;
    z-index: 900;                  /* over the menu (200) and shoplist drawer (400) */
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: rgba(20, 20, 20, .96);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}
.cms2-cc[hidden] { display: none; }

.cms2-cc-box {
    max-width: calc(var(--cms2-max-width, 1280px) + 40px);
    margin: 0 auto;
    padding-inline: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
}

.cms2-cc-main { flex: 1 1 320px; min-width: 0; }

.cms2-cc-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.cms2-cc-text { margin: 0; }

.cms2-cc-policy {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

/* preferences ---------------------------------------------------------- */

.cms2-cc-prefs {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.cms2-cc-prefs[hidden] { display: none; }

.cms2-cc-cat p {
    margin: 2px 0 0 24px;
    font-size: 13px;
    opacity: .75;
}

.cms2-cc-cat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}
.cms2-cc-cat-head input { cursor: pointer; }
.cms2-cc-cat-head input:disabled { cursor: default; opacity: .6; }

/* buttons -------------------------------------------------------------- */

.cms2-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cms2-cc-btn {
    appearance: none;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #141414;
    font: inherit;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
}
.cms2-cc-btn:hover { opacity: .85; }
.cms2-cc-btn[hidden] { display: none; }

.cms2-cc-reject {
    background: transparent;
    color: #fff;
}

.cms2-cc-link {
    background: transparent;
    border-color: transparent;
    color: #fff;
    text-decoration: underline;
    padding-inline: 6px;
}

@media (max-width: 640px) {
    .cms2-cc-box { padding-inline: 0; }
    .cms2-cc-actions { width: 100%; }
    .cms2-cc-actions .cms2-cc-btn:not(.cms2-cc-link) { flex: 1 1 auto; }
}
