.tudav-cookie[hidden],
.tudav-cookie-modal[hidden] {
    display: none !important;
}

.tudav-cookie {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5400;
    padding: 0 16px 16px;
    pointer-events: none;
}

.tudav-cookie__banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(18, 32, 56, 0.14);
    border-left: 6px solid #0077bf;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(18, 32, 56, 0.18);
    color: #393d46;
    pointer-events: auto;
}

.tudav-cookie__content h2,
.tudav-cookie-modal__dialog h2 {
    margin: 0;
    color: #122038;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.tudav-cookie__content p {
    margin: 8px 0 0;
    color: #4d5663;
    font-size: 0.9rem;
    line-height: 1.55;
}

.tudav-cookie__actions,
.tudav-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tudav-cookie__button {
    min-height: 42px;
    border: 1px solid transparent;
    padding: 10px 16px;
    background: #ffffff;
    color: #122038;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tudav-cookie__button:focus-visible,
.tudav-cookie-modal__close:focus-visible,
.footer-legal-links button:focus-visible {
    outline: 3px solid rgba(0, 119, 191, 0.28);
    outline-offset: 2px;
}

.tudav-cookie__button--primary {
    background: #0077bf;
    border-color: #0077bf;
    color: #ffffff;
}

.tudav-cookie__button--primary:hover {
    background: #005f9b;
    border-color: #005f9b;
}

.tudav-cookie__button--secondary {
    border-color: #9aa8b6;
    color: #122038;
}

.tudav-cookie__button--secondary:hover {
    border-color: #122038;
    background: #f2f6f9;
}

.tudav-cookie__button--ghost {
    border-color: transparent;
    color: #0077bf;
}

.tudav-cookie__button--ghost:hover {
    background: #edf7fd;
}

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

.tudav-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 32, 56, 0.58);
}

.tudav-cookie-modal__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.tudav-cookie-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #e5ebf1;
}

.tudav-cookie-modal__eyebrow {
    margin: 0 0 6px;
    color: #0077bf;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tudav-cookie-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d5dee7;
    background: #ffffff;
    color: #122038;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.tudav-cookie-modal__body {
    display: grid;
    gap: 12px;
    padding: 20px 24px;
}

.tudav-cookie-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 16px;
    border: 1px solid #e1e8ef;
    background: #fbfcfd;
    cursor: pointer;
}

.tudav-cookie-option--locked {
    grid-template-columns: minmax(0, 1fr) auto auto;
    cursor: default;
}

.tudav-cookie-option strong,
.tudav-cookie-option small {
    display: block;
}

.tudav-cookie-option strong {
    color: #122038;
    font-size: 0.98rem;
}

.tudav-cookie-option small {
    margin-top: 5px;
    color: #5b6570;
    font-size: 0.85rem;
    line-height: 1.5;
}

.tudav-cookie-option em {
    color: #0077bf;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.tudav-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 30px;
    flex: 0 0 52px;
}

.tudav-cookie-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tudav-cookie-switch span {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 999px;
    background: #bcc7d1;
    pointer-events: none;
    transition: background-color 0.2s ease;
}

.tudav-cookie-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.tudav-cookie-switch input:checked + span {
    background: #0077bf;
}

.tudav-cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.tudav-cookie-switch--locked span {
    background: #7897ad;
}

.tudav-cookie-modal__actions {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5ebf1;
}

.footer-bottom__inner {
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 18px;
}

.footer-legal-links a,
.footer-legal-links button {
    color: #ccc;
    font-size: 0.8rem;
}

.footer-legal-links button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
    color: #0077bf;
}

.cookie-policy-page {
    padding-bottom: 5rem;
}

.cookie-policy-content {
    max-width: 980px;
    margin: 0 auto 4rem;
    color: #393d46;
}

.cookie-policy-content p {
    color: #4d5663;
    font-size: 1rem;
    line-height: 1.75;
}

.cookie-policy-content h2 {
    margin: 2rem 0 1rem;
    color: #122038;
    font-size: 1.35rem;
    font-weight: 700;
}

.cookie-policy-table {
    display: grid;
    border: 1px solid #dfe7ee;
    background: #ffffff;
    overflow-x: auto;
}

.cookie-policy-table > div {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.7fr) minmax(150px, 0.6fr);
    min-width: 720px;
}

.cookie-policy-table > div:first-child {
    background: #122038;
    color: #ffffff;
}

.cookie-policy-table strong,
.cookie-policy-table span {
    padding: 14px 16px;
    border-right: 1px solid #dfe7ee;
    border-bottom: 1px solid #dfe7ee;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cookie-policy-table strong:last-child,
.cookie-policy-table span:last-child {
    border-right: 0;
}

.cookie-policy-preferences {
    min-height: 44px;
    margin-top: 0.5rem;
    border: 1px solid #0077bf;
    padding: 10px 18px;
    background: #0077bf;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.cookie-policy-preferences:hover {
    background: #005f9b;
    border-color: #005f9b;
}

@media (max-width: 900px) {
    .tudav-cookie__banner {
        grid-template-columns: 1fr;
    }

    .tudav-cookie__actions,
    .tudav-cookie-modal__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .tudav-cookie {
        padding: 0 10px 10px;
    }

    .tudav-cookie__banner {
        padding: 16px;
    }

    .tudav-cookie__actions,
    .tudav-cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tudav-cookie__button {
        width: 100%;
    }

    .tudav-cookie-modal {
        align-items: end;
        padding: 10px;
    }

    .tudav-cookie-modal__dialog {
        max-height: calc(100vh - 20px);
    }

    .tudav-cookie-modal__header,
    .tudav-cookie-modal__body,
    .tudav-cookie-modal__actions {
        padding-right: 16px;
        padding-left: 16px;
    }

    .tudav-cookie-option,
    .tudav-cookie-option--locked {
        grid-template-columns: 1fr;
    }

    .footer-bottom__inner,
    .footer-legal-links {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .footer-bottom__inner {
        flex-direction: column;
    }
}
