
/* Privacy modal */

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-modal.is-open {
    display: flex;
}

.privacy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 45, 0.75);
}

.privacy-modal__window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    max-height: 90dvh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 60px rgba(0, 0, 0, .2);
}

.privacy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.privacy-modal__header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #10213e;
}

.privacy-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #10213e;
    cursor: pointer;
}

.privacy-modal__close:hover {
    background: #ff913d;
    color: #fff;
}

.privacy-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 32px;
    color: #334155;
    font-size: 15px;
    line-height: 1.75;
    overscroll-behavior: contain;
}

.privacy-modal__body h3 {
    margin: 28px 0 12px;
    color: #10213e;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
}

.privacy-modal__body p {
    margin: 0 0 14px;
}

.privacy-modal__body ul {
    margin: 0 0 20px;
    padding-left: 24px;
    list-style: disc;
}

.privacy-modal__body li {
    margin-bottom: 7px;
}

.privacy-modal__body a {
    color: #ed7134;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.privacy-modal__date {
    color: #64748b;
    font-size: 12px;
}

.privacy-modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 18px 32px;
    border-top: 1px solid #e5e7eb;
}

.privacy-modal__button {
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    background: #ff913d;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.privacy-modal__button:hover {
    background: #ed7134;
}

.privacy-modal__close:focus-visible,
.privacy-modal__button:focus-visible {
    outline: 3px solid #ff913d;
    outline-offset: 3px;
}

body.privacy-modal-open {
    overflow: hidden;
}

/* Mobile */

@media (max-width: 600px) {
    .privacy-modal {
        padding: 10px;
    }

    .privacy-modal__window {
        max-height: 95vh;
        max-height: 95dvh;
        border-radius: 12px;
    }

    .privacy-modal__header {
        padding: 18px 20px;
    }

    .privacy-modal__header h2 {
        font-size: 19px;
    }

    .privacy-modal__body {
        padding: 20px;
        font-size: 14px;
    }

    .privacy-modal__body h3 {
        font-size: 17px;
    }

    .privacy-modal__footer {
        padding: 14px 20px;
    }

    .privacy-modal__button {
        width: 100%;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    width: calc(100% - 40px);
    max-width: 1100px;
    padding: 22px 28px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .15);

    font-family: inherit;
}

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

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.cookie-banner__icon {
    color: #f36b35;
    font-size: 26px;
    line-height: 1;
}

.cookie-banner__text {
    color: #17253b;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner__text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.cookie-banner__text p {
    margin: 0;
}

.cookie-banner__text a {
    color: #e65c2c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 30px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cookie-banner__btn--accept {
    background: #ff913d;
    border: 1px solid #ff913d;
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: #f36b35;
}

.cookie-banner__btn--outline {
    background: #fff;
    border: 1px solid #17253b;
    color: #17253b;
}

.cookie-banner__btn--outline:hover {
    background: #17253b;
    color: #fff;
}

.cookie-banner__btn:focus-visible,
.cookie-banner__text a:focus-visible {
    outline: 3px solid #ff913d;
    outline-offset: 3px;
}

@media (max-width: 850px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
    }

    .cookie-banner__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 16px;
        border-radius: 12px;
    }

    .cookie-banner__text {
        font-size: 12px;
    }

    .cookie-banner__text strong {
        font-size: 15px;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner__btn {
        padding: 11px 12px;
    }
}
