.footer-consent-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: #dbe7e4;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.footer-consent-button:hover,
.footer-consent-button:focus-visible { text-decoration: underline; }

.consent-banner {
    position: fixed;
    z-index: 100000;
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid #d7e3df;
    border-radius: 16px;
    background: #fff;
    color: #213836;
    box-shadow: 0 16px 50px rgba(20, 45, 42, .22);
}
.consent-banner-text { flex: 1 1 auto; min-width: 0; }
.consent-banner-text strong { font-size: 18px; }
.consent-banner-text p { margin: 6px 0 0; line-height: 1.45; }
.consent-banner-actions { flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent-btn {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #a9c5bf;
    border-radius: 9px;
    background: #fff;
    color: #1f5f5b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.consent-btn:hover { background: #eef6f4; }
.consent-btn-primary { background: #1f5f5b; border-color: #1f5f5b; color: #fff; }
.consent-btn-primary:hover { background: #174d49; }
.consent-more { font-size: 13px; }
.consent-more a { color: #1f5f5b; }

.consent-modal-backdrop {
    position: fixed;
    z-index: 100001;
    inset: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 30, 29, .62);
}
.consent-modal {
    position: relative;
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 26px;
    border-radius: 18px;
    background: #fff;
    color: #213836;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.consent-modal h2 { margin: 0 40px 20px 0; font-size: 25px; }
.consent-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef4f2;
    color: #1f5f5b;
    font-size: 25px;
    cursor: pointer;
}
.consent-category {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #e4ece9;
}
.consent-category p { margin: 5px 0 0; line-height: 1.45; color: #526865; }
.consent-status { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #5b6d6a; }
.consent-status-on { color: #1f5f5b; }
.consent-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; flex-wrap: wrap; }

.consent-switch { position: relative; width: 52px; height: 30px; flex: 0 0 52px; }
.consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-switch span { position: absolute; inset: 0; border-radius: 99px; background: #aebbb8; cursor: pointer; transition: .15s ease; }
.consent-switch span::after { content: ''; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .15s ease; }
.consent-switch input:checked + span { background: #1f5f5b; }
.consent-switch input:checked + span::after { transform: translateX(22px); }
.consent-switch input:focus-visible + span { outline: 3px solid rgba(31,95,91,.25); outline-offset: 2px; }

@media (max-width: 760px) {
    .consent-banner { align-items: stretch; flex-direction: column; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .consent-banner-actions { justify-content: stretch; }
    .consent-banner-actions .consent-btn { flex: 1 1 100%; }
    .consent-modal { padding: 22px 18px; }
    .consent-category { align-items: flex-start; }
}
