.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    color: #173028;
}

.cookie-banner__inner,
.cookie-modal__box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(20, 48, 40, 0.18);
}

.cookie-banner__inner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
}

.cookie-banner p,
.cookie-modal p { margin: 0; line-height: 1.45; }

.cookie-banner a { color: #1c7d54; }

.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.cookie-banner button,
.cookie-modal button {
    border: 1px solid #d7e3dc;
    background: #fff;
    color: #173028;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
}

#cookie-accept,
#cookie-accept-all,
#cookie-modal-save {
    background: #27a06e;
    border-color: #27a06e;
    color: #fff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cookie-modal[hidden],
.cookie-banner[hidden] { display: none; }

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 48, 40, 0.45);
}

.cookie-modal__box {
    position: relative;
    width: min(520px, 100%);
    padding: 22px;
}

.cookie-modal h2 { margin: 0 0 8px; font-size: 22px; }

.cookie-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d7e3dc;
}

.cookie-cat strong, .cookie-cat em, .cookie-cat > div span { display: block; }
.cookie-cat em, .cookie-cat > div span { color: #5c6f66; font-size: 14px; font-style: normal; }

.cookie-switch { position: relative; width: 44px; height: 26px; flex: none; }
.cookie-switch input { position: absolute; opacity: 0; }
.cookie-switch span {
    position: absolute;
    inset: 0;
    background: #d7e3dc;
    border-radius: 999px;
}
.cookie-switch span:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
}
.cookie-switch input:checked + span { background: #27a06e; }
.cookie-switch input:checked + span:before { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 2px solid #173028; }

button.cookie-manage {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

@media (max-width: 800px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
}
