/*
 * Cookie Consent banner.
 * All colors, size and radius are fed via inline CSS custom properties
 * computed in PHP (see buildInlineStyle()), so editing this file is only
 * necessary for structural tweaks.
 */
.cc-banner {
    position: fixed;
    z-index: 2147483000;
    display: none;
    opacity: 1;
    background: var(--cc-bg, #ffffff);
    color: #1f2937;
    border: 1px solid var(--cc-border, #9e9e9e);
    border-radius: var(--cc-radius, 6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.cc-banner *,
.cc-banner *::before,
.cc-banner *::after {
    box-sizing: border-box;
}

.cc-banner.cc-visible {
    display: block;
    animation: cc-slide-in .3s ease-out;
}

/* Only animate transform — never opacity — so a throttled animation can
   never leave the critical consent banner in a transparent state. */
@keyframes cc-slide-in {
    from { transform: translateY(12px); }
    to   { transform: translateY(0); }
}

/* Make sure the banner's own text color propagates into the rich content
   and is not overridden by theme inheritance. */
.cc-banner__content,
.cc-banner__content h1,
.cc-banner__content h2,
.cc-banner__content h3,
.cc-banner__content h4,
.cc-banner__content h5,
.cc-banner__content h6,
.cc-banner__content p,
.cc-banner__content li,
.cc-banner__content span,
.cc-banner__content strong,
.cc-banner__content em {
    color: inherit;
}

/* ----------- Position variants ----------- */
.cc-banner--left-bottom-box {
    left: 20px;
    bottom: 20px;
    width: var(--cc-width, 550px);
    max-width: calc(100vw - 40px);
}

.cc-banner--right-bottom-box {
    right: 20px;
    bottom: 20px;
    width: var(--cc-width, 550px);
    max-width: calc(100vw - 40px);
}

.cc-banner--bottom-bar {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}

/* ----------- Inner layout ----------- */
.cc-banner__inner {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cc-banner--bottom-bar .cc-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cc-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-banner__content > :first-child {
    margin-top: 0;
}

.cc-banner__content > :last-child {
    margin-bottom: 0;
}

.cc-banner__content h1,
.cc-banner__content h2,
.cc-banner__content h3,
.cc-banner__content h4 {
    margin: 0 0 6px;
    font-weight: 600;
}

.cc-banner__content p {
    margin: 0 0 8px;
}

.cc-banner__content a {
    color: var(--cc-btn-bg, #00b1c9);
    text-decoration: underline;
}

/* ----------- Actions ----------- */
.cc-banner__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cc-banner__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cc-banner__btn--accept {
    color: var(--cc-btn-fg, #ffffff);
    border-color: var(--cc-btn-border, #00b1c9);
    background: var(--cc-btn-bg, #00b1c9);
}

.cc-banner__btn--accept:hover,
.cc-banner__btn--accept:focus {
    color: var(--cc-btn-fg-hover, #ffffff);
    border-color: var(--cc-btn-border-hover, #2598a9);
    background: var(--cc-btn-bg-hover, #2598a9);
    outline: none;
}

.cc-banner__btn--reject {
    color: inherit;
    background: transparent;
    border-color: var(--cc-border, #9e9e9e);
}

.cc-banner__btn--reject:hover,
.cc-banner__btn--reject:focus {
    background: rgba(0, 0, 0, .05);
    outline: none;
}

/* ----------- Responsive -----------
 * Box positions (left-bottom-box / right-bottom-box) keep their configured
 * width on every viewport. The max-width: calc(100vw - 40px) set above
 * already prevents them from overflowing a small screen. Only the inner
 * padding and the action buttons are tightened on narrow screens.
 */
@media (max-width: 640px) {
    .cc-banner__inner {
        padding: 16px 18px;
    }
    .cc-banner__actions {
        width: 100%;
    }
    .cc-banner__btn {
        flex: 1 1 auto;
    }
}
