/*!
 * Promax cookie lišta – verze pro fibiplast.cz (A8). Barvy a písmo ze šablony (--primary, --dark, Inter).
 * Vrstvy: mobilní lišta 1030 < cookie lišta 1040 < podklad dialogu 1045 < dialog 1050.
 * Vše position: fixed → žádný posun layoutu (CLS).
 */
.cb-banner[hidden], .cb-dialog[hidden], .cb-backdrop[hidden] { display: none !important; }

.cb-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 640px;
    z-index: 1040;
    padding: 20px;
    background: #fff;
    color: #2D2C2C;
    border-top: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    font-size: .9rem;
    line-height: 1.5;
}

.cb-title {
    margin: 0 0 .5rem;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2D2C2C;
}

.cb-text { margin: 0 0 1rem; }
.cb-banner a, .cb-dialog a { color: var(--primary); text-decoration: underline; }

.cb-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-buttons .btn { flex: 1 1 0; min-width: 9rem; padding: .6rem 1rem; }

.cb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(0, 0, 0, .5);
}

.cb-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    z-index: 1050;
    padding: 28px 24px 24px;
    background: #fff;
    color: #2D2C2C;
    border-top: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    font-size: .9rem;
}

.cb-dialog h2 { margin-bottom: 1rem; }

.cb-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #2D2C2C;
    font-size: 1.75rem;
    line-height: 1;
}

.cb-option { margin-bottom: 1rem; }
.cb-option input { width: 1.1rem; height: 1.1rem; margin-right: .5rem; vertical-align: -2px; accent-color: var(--primary); }
.cb-option p { margin: .25rem 0 0 1.6rem; color: #6C7176; }

.cb-banner .btn:focus-visible,
.cb-dialog .btn:focus-visible,
.cb-dialog-close:focus-visible,
.cb-option input:focus-visible,
.cb-banner a:focus-visible,
[data-consent-open]:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    box-shadow: none;
}

/* pod lg: lišta nad mobilní lištou Zavolat/Napsat (56 px + bezpečná zóna) */
@media (max-width: 991.98px) {
    .cb-banner {
        left: 8px;
        right: 8px;
        width: auto;
        transform: none;
        bottom: calc(56px + env(safe-area-inset-bottom) + 8px);
        max-height: calc(100vh - 56px - 32px);
        overflow: auto;
    }
}
