/* Banner đồng ý cookie. Mọi selector nằm trong .cookie-banner / .cookie-modal
   để không đè class .btn của site. */

.cookie-banner {
    width: 100%;
    min-height: 127px;
    background: #fff;

    display: flex;
    align-items: center;

    padding: 18px 25px;

    border-top: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);

    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 99999;

    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.cookie-banner *,
.cookie-modal * {
    box-sizing: border-box;
}

.cookie-banner .cookie-content {
    flex: 1;
    padding-right: 30px;
}

.cookie-banner .cookie-content h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.cookie-banner .cookie-content p {
    margin: 0 0 4px;
    max-width: 950px;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-banner .cookie-content a,
.cookie-banner .cookie-content .privacy-link {
    color: #8f3034;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-banner .cookie-content span {
    white-space: nowrap;
}

.cookie-banner .privacy-link {
    display: inline-block;
    font-size: 13px;
    line-height: 1.3;
}

.cookie-banner .cookie-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.cookie-banner .cookie-btn-link {
    border: 0;
    background: transparent;
    padding: 12px 4px;

    color: #8f3034;
    font-size: 14px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: underline;

    cursor: pointer;
    white-space: nowrap;
}

.cookie-banner .cookie-btn {
    min-height: 43px;
    padding: 0 16px;

    border: 0;
    border-radius: 2px;

    background: #ad3037;
    color: #fff;

    font-size: 13px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;

    cursor: pointer;
    white-space: nowrap;
}

.cookie-banner .cookie-btn:hover,
.cookie-modal .cookie-btn:hover {
    background: #8e252b;
}

.cookie-banner .cookie-btn-link:hover {
    color: #6f2025;
}

.cookie-banner .cookie-btn-close {
    width: 32px;
    height: 43px;

    padding: 0;
    margin-left: 8px;

    border: 0;
    background: transparent;

    color: #555;

    font-size: 30px;
    font-weight: 300;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;

    cursor: pointer;
}

.cookie-banner .cookie-btn-close:hover {
    color: #111;
}

.cookie-banner.cookie-hidden {
    display: none;
}

.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
    font-family: Arial, Helvetica, sans-serif;
}

.cookie-modal.is-open {
    display: flex;
}

.cookie-modal .cookie-modal-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 4px;
    padding: 22px 22px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.cookie-modal .cookie-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.cookie-modal h3 {
    margin: 0;
    color: #111;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.cookie-modal .cookie-modal-close {
    border: 0;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.cookie-modal .cookie-modal-close:hover {
    color: #111;
}

.cookie-modal .cookie-modal-desc {
    margin: 0 0 16px;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-modal .cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e6e6e6;
}

.cookie-modal .cookie-option strong {
    display: block;
    margin-bottom: 4px;
    color: #111;
    font-size: 14px;
}

.cookie-modal .cookie-option p {
    margin: 0;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-modal .cookie-always-on {
    color: #8f3034;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-modal .cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.cookie-modal .cookie-btn {
    min-height: 43px;
    padding: 0 16px;
    border: 0;
    border-radius: 2px;
    background: #ad3037;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-banner .cookie-content {
        padding-right: 0;
    }

    .cookie-banner .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner .cookie-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .cookie-banner .cookie-btn {
        flex: 1;
    }

    .cookie-banner .cookie-btn-close {
        margin-left: auto;
    }

    .cookie-modal .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-modal .cookie-btn {
        width: 100%;
    }
}
