  /**
 * Cookie Notice Styles
 * Version: 1.0.1 - Fixed modal display issue
 */

:root {
    --cookie-primary-color: #28a745;
    --cookie-reject-color: #dc3545;
    --cookie-settings-color: #6c757d;
    --cookie-overlay-bg: rgba(0, 0, 0, 0.7);
    --cookie-container-bg: #ffffff;
    --cookie-text-color: #555555;
    --cookie-border-radius: 12px;
    --cookie-transition: all 0.3s ease;
}

/* Overlay */
.cookie-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 35%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Container */
.cookie-notice-container {
    background: var(--cookie-container-bg);
    max-width: 800px;
    width: 100%;
    border-radius: var(--cookie-border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom scrollbar */
.cookie-notice-container::-webkit-scrollbar {
    width: 8px;
}

.cookie-notice-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 var(--cookie-border-radius) var(--cookie-border-radius) 0;
}

.cookie-notice-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.cookie-notice-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Content */
.cookie-notice-content {
    padding: 30px;
    position: relative;
}

/* Close button */
.cookie-notice-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--cookie-transition);
    z-index: 10;
}

.cookie-notice-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

/* Title */
.cookie-notice-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Text content */
.cookie-notice-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cookie-text-color);
    margin-bottom: 25px;
}

.cookie-notice-text p {
    margin: 0 0 15px 0;
}

.cookie-notice-text p:last-child {
    margin-bottom: 0;
}

.cookie-notice-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.cookie-notice-text li {
    margin-bottom: 10px;
}

.cookie-notice-text strong {
    color: #333;
    font-weight: 600;
}

.cookie-notice-text a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-notice-text a:hover {
    color: #005177;
}

/* Buttons */
.cookie-notice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

.cookie-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cookie-transition);
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 100px !important;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-btn:active::before {
    width: 300px;
    height: 300px;
}

.cookie-btn-accept {
    background: var(--cookie-primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.cookie-btn-reject {
    background: var(--cookie-reject-color);
    color: white;
}

.cookie-btn-reject:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.cookie-btn-settings {
    background: var(--cookie-settings-color);
    color: white;
}

.cookie-btn-settings:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.cookie-btn-secondary {
    background: #e9ecef;
    color: #333;
}

.cookie-btn-secondary:hover {
    background: #d3d6d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-btn:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

/* Settings Modal - SỬA LẠI ĐỂ HIỂN THỊ ĐÚNG */
.cookie-settings-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cookie-container-bg);
    border-radius: var(--cookie-border-radius);
    animation: cookieSlideIn 0.3s ease;
    overflow-y: auto;
}

@keyframes cookieSlideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cookie-settings-content {
    padding: 30px;
    position: relative;
    background: transparent !important;
}

.cookie-settings-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-right: 50px;
    color: #fff;
}

.cookie-settings-content > p {
    color: var(--cookie-text-color);
    margin-bottom: 20px;
}

/* Cookie Options */
.cookie-option {
    margin: 20px 0;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--cookie-transition);
    border: 2px solid transparent;
}

.cookie-option:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-option input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--cookie-primary-color);
    flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option-text {
    flex: 1;
}

.cookie-option strong {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.cookie-description {
    display: block;
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
}

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}
.cookie-notice-text {
    color: #fff !important;
}

.cookie-notice-text strong {
}

.cookie-notice-text ul {
    list-style: disc;
}

.cookie-notice-text a {
    color: #e3322b;
}

.cookie-notice-container, .cookie-settings-modal {
    border=r: 0;
}

.cookie-notice-title {
    color: rgb(33, 86, 149) !important;
    font-size: 35px;
}

.cookie-notice-content {
    border-radius: 0 !important;
}

.cookie-notice-container {
    border-radius: 0 !important;
}

.cookie-btn {
}

.cookie-btn-accept {
    background: rgb(33, 86, 149) !important;
}

.cookie-settings-content p {
    color: #fff !important;
}

.cookie-option {
    border-radius: 0;
    background: #205695 !important;
}

.cookie-option input[type="checkbox"] {
    accent-color: #e4322b;
}
.cookie-notice-overlay {
    align-items: flex-end;
    padding: 0;
}

.cookie-notice-content {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    position: unset;
}

.cookie-notice-container {
    max-width: 100%;
    background: rgb(3 44 95);
}

button.cookie-notice-close {
    display: none;
}

.cookie-notice-title {
    color: #fff !important;
    text-align: left;
    font-size: 23px;
}

.wrap_box_cookie {
    display: flex;
    color: #fff;
    gap: 2rem;
}

.wrap_box_cookie .item {
    width: calc(100% / 3);
    text-align: justify;
    font-size: 13px;
}

.cookie-notice-buttons {
    color: #fff !important;
}

.wrap_box_cookie a {
    text-decoration: underline;
}

.cookie-notice-text a {
    text-decoration: underline !important;
    color: #fff;
    font-weight: 400;
}

button#accept-all-cookies {
    color: rgb(33, 86, 149) !important;
    background: #fff !important;
}

button#cookie-settings {
    background: #516990;
}
/* Responsive Design */
@media (max-width: 768px) {
    .cookie-notice-container {
        max-width: 95%;
        max-height: 85vh;
    }

    .cookie-notice-content,
    .cookie-settings-content {
        padding: 20px;
    }

    .cookie-notice-title,
    .cookie-settings-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-right: 40px;
    }

    .cookie-notice-text {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .cookie-notice-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .cookie-notice-container {
        max-height: 95vh;
        border-radius: var(--cookie-border-radius) var(--cookie-border-radius) 0 0;
    }

    .cookie-notice-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        min-width: unset;
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }

    .cookie-option {
        padding: 15px;
    }

    .cookie-option strong {
        font-size: 15px;
    }
    .cookie-notice-buttons {
        position: sticky;
        bottom: 0;
        width: 100%;
        padding-bottom: 17px;
        background: #032c5f;
        padding-top: 15px;
    }

    .cookie-notice-overlay {
        padding: 0;
    }

    .cookie-notice-container {
        max-width: 100%;
        max-height: 80vh;
    }
    .cookie-btn {
        padding: 14px 15px;
        font-size: 14px;
        line-height: 1;
    }

    .cookie-notice-buttons {
        padding: 0;
        padding-top: 10px;
    }

}

/* Print styles */
@media print {
    .cookie-notice-overlay {
        display: none !important;
    }
}

/* Accessibility improvements */
.cookie-btn:focus-visible {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

.cookie-option input[type="checkbox"]:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}
