/* Cookie consent — bottom-left floating card (overrides legacy theme rules in style.css) */

.cookie-banner {
    position: fixed !important;
    left: 1.25rem !important;
    right: auto !important;
    bottom: 1.25rem !important;
    top: auto !important;
    transform: none !important;
    width: min(22rem, calc(100vw - 2.5rem)) !important;
    max-width: 22rem !important;
    z-index: 10000000;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
    display: block !important;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #2b2b2b !important;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner.is-visible {
    pointer-events: auto;
}

.cookie-banner__card {
    pointer-events: auto;
    background: #fff;
    border: 1px solid rgba(26, 23, 27, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(26, 23, 27, 0.18);
    padding: 1.1rem 1.15rem 1.15rem;
}

.cookie-banner .container,
.cookie-banner .row,
.cookie-banner .col-md-12 {
    all: unset;
    display: block;
}

.cookie-banner__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.cookie-banner__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(73, 165, 57, 0.12);
    color: #49a539;
    font-size: 1rem;
}

.cookie-banner__title {
    margin: 0 !important;
    font-family: var(--font-sans, Ubuntu, Arial, sans-serif);
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #1a171b !important;
}

.cookie-banner__text {
    margin: 0 0 0.65rem;
    color: #444 !important;
}

.cookie-banner__text--small {
    font-size: 0.84rem;
    color: #666 !important;
}

.cookie-banner__link {
    color: #1a6fb4 !important;
    text-decoration: underline;
}

.cookie-banner__link:hover {
    color: #125786 !important;
}

.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.cookie-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: var(--font-sans, Ubuntu, Arial, sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cookie-banner__btn--primary {
    background: #49a539;
    border-color: #49a539;
    color: #fff !important;
}

.cookie-banner__btn--primary:hover {
    background: #3d8b30;
    border-color: #3d8b30;
}

.cookie-banner__btn--ghost {
    background: transparent;
    border-color: rgba(26, 23, 27, 0.16);
    color: #1a171b !important;
}

.cookie-banner__btn--ghost:hover {
    background: rgba(26, 23, 27, 0.04);
}

.cookie-banner__choices {
    margin: 0;
    padding: 0;
    border: 0;
}

.cookie-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.55rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(26, 23, 27, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.cookie-choice:last-child {
    margin-bottom: 0;
}

.cookie-choice:hover {
    background: rgba(26, 23, 27, 0.025);
}

.cookie-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-choice__control {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    border: 2px solid #adb5bd;
    background: #fff;
    position: relative;
}

.cookie-choice__control::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: #49a539;
    transform: scale(0);
    transition: transform 0.15s ease;
}

.cookie-choice input:checked ~ .cookie-choice__control {
    border-color: #49a539;
}

.cookie-choice input:checked ~ .cookie-choice__control::after {
    transform: scale(1);
}

.cookie-choice input:focus-visible ~ .cookie-choice__control {
    outline: 2px solid #49a539;
    outline-offset: 2px;
}

.cookie-choice:has(input:checked) {
    border-color: rgba(73, 165, 57, 0.45);
    background: rgba(73, 165, 57, 0.06);
}

.cookie-choice__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cookie-choice__label {
    font-weight: 600;
    color: #1a171b;
    line-height: 1.25;
}

.cookie-choice__hint {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.35;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media screen and (max-width: 990px) {
    .cookie-banner {
        left: 0.85rem !important;
        bottom: 0.85rem !important;
        width: min(22rem, calc(100vw - 1.7rem)) !important;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner {
        left: 0.65rem !important;
        right: 0.65rem !important;
        width: auto !important;
        max-width: none !important;
    }
}
