/* Cookie consent – lišta, modal a trvalé tlačítko */

.cookie-consent-root {
    --cookie-consent-z-banner: 1045;
    --cookie-consent-z-fab: 1035;
}

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--cookie-consent-z-banner);
    background: #fff;
    border-top: 1px solid var(--karvina-border, #dee2e6);
    box-shadow: 0 -8px 24px rgba(43, 41, 41, 0.12);
    padding: 1rem 0 calc(1rem + var(--safe-bottom));
}

.cookie-consent-banner[hidden],
.cookie-consent-fab[hidden] {
    display: none !important;
}

.cookie-consent-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-banner__text {
    flex: 1 1 18rem;
    min-width: min(100%, 18rem);
}

.cookie-consent-banner__title {
    color: var(--karvina-text, #2b2929);
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-consent-btn {
    min-width: 7.5rem;
}

.cookie-consent-fab {
    position: fixed;
    left: 0;
    bottom: calc(1rem + var(--safe-bottom));
    z-index: var(--cookie-consent-z-fab);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--karvina-border, #dee2e6);
    border-left: none;
    border-radius: 0 999px 999px 0;
    background: #fff;
    color: var(--karvina-text, #2b2929);
    box-shadow: 0 4px 16px rgba(43, 41, 41, 0.15);
    padding: 0.55rem 0.85rem 0.55rem 0.45rem;
    transform: translateX(calc(-100% + 2.35rem));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.cookie-consent-fab:hover,
.cookie-consent-fab:focus-visible {
    transform: translateX(0);
    box-shadow: 0 6px 20px rgba(43, 41, 41, 0.2);
    outline: none;
}

.cookie-consent-fab__label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-consent-fab i {
    font-size: 1.1rem;
    color: var(--karvina-primary, #4c589f);
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-category {
    padding: 0.85rem 1rem;
    border: 1px solid var(--karvina-border, #dee2e6);
    border-radius: 0.5rem;
    background: #fafafa;
}

.cookie-consent-category__switch {
    margin-bottom: 0.35rem;
}

.cookie-consent-embed {
    border: 1px dashed var(--karvina-border, #dee2e6);
    border-radius: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
}

.cookie-consent-embed--active {
    border-style: solid;
    background: transparent;
    padding: 0;
}

.cookie-consent-embed iframe {
    display: block;
    width: 100%;
    min-height: 16rem;
    border: 0;
}

.cookie-consent-embed__inner {
    text-align: center;
}

.site-front.cookie-consent-banner-visible .scroll-to-top {
    bottom: calc(7.5rem + var(--safe-bottom));
}

.site-front.cookie-consent-banner-visible .chatbot-root {
    bottom: calc(7.5rem + var(--safe-bottom));
}

@media (max-width: 575.98px) {
    .cookie-consent-banner__actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-banner__actions .cookie-consent-btn {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .cookie-consent-banner__actions .cookie-consent-btn--accept {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-fab {
        transition: none;
    }
}
