/* ============================= */
/* COOKIE BANNER */
/* ============================= */

#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    background: #ffffff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#cookie-consent-banner.show {
    display: block;
}

/* TEXT */
.cookie-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
}

.cookie-desc {
    font-size: 15px;
    margin-bottom: 15px;
    color: #444;
}

/* ROW */
.cookie-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* LEFT */
.cookie-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* OPTIONS */
.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

.cookie-options input[type="checkbox"] {
    accent-color: #84CC16;
    cursor: pointer;
}

/* SHOW DETAILS */
#cookiescript_manage {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

#cookiescript_manageicon {
    width: 16px;
    height: 16px;
}

/* RIGHT BUTTONS */
.cookie-actions {
    width: 40%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* BUTTON BASE */
.cookie-actions button {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    min-width: 120px;
    transition: all 0.3s ease;
}

/* BUTTON COLORS */
.btn-primary {
    background: #84CC16;
    color: #000;
}

.btn-primary:hover {
    background: #6ba812;
    color: #000;
}

.btn-outline {
    background: #eee;
    color: #333;
}

.btn-outline:hover {
    background: #bbb;
}

.btn-secondary {
    background: #142339;
    color: #fff;
}

.btn-secondary:hover {
    background: #0d1620;
}


/* ============================= */
/* MODAL */
/* ============================= */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 10000;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL BOX */
.cookie-modal-content {
    width: 90%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

/* 🔥 FORCE TEXT COLOR (MAIN FIX) */
.cookie-modal-content,
.cookie-modal-content * {
    color: #333 !important;
}

/* HEADER */
.cookie-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* BODY */
.cookie-modal-body {
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    flex: 1;
}

/* TABS */
.cookie-tabs {
    display: flex;
    margin: 15px 0;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    background: #84CC16;
    color: #000 !important;
}

.tab-btn:hover {
    background: #6ba812;
    color: #000 !important;
}

/* TAB CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* CATEGORY */
.cookie-category {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    background: #fff;
}

.cookie-category h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-category p {
    font-size: 14px;
    color: #555 !important;
}

/* COOKIE TABLE */
.cookie-section-title {
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #222 !important;
}

.cookie-table {
    display: none;
    margin-top: 10px;
    width: 100%;
    border-collapse: collapse;
}

.cookie-table thead {
    background: #f5f5f5;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 13px;
}

/* TOGGLE BUTTON */
.toggle-btn {
    display: inline-block;
    margin-top: 5px;
    cursor: pointer;
    color: #84CC16;
    font-size: 14px;
    font-weight: 800;
}

.cookie-table tbody tr:hover {
    background: #fafafa;
}

.cookie-table td:first-child {
    font-weight: 500;
    color: #222 !important;
    white-space: nowrap;
}

.cookie-table td:nth-child(2) {
    width: 120px;
    white-space: nowrap;
}

.cookie-table td:nth-child(3) {
    max-width: 400px;
    word-wrap: break-word;
}

.font-14{
    font-size: 14px;
}
/* FOOTER */
/* ============================= */
/* FINAL BUTTON FIX (IMPORTANT) */
/* ============================= */

.cookie-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fff;
}

/* FORCE BUTTON RESET */
.cookie-modal-footer button {
    all: unset;
    display: inline-block !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500;
    cursor: pointer !important;
    min-width: 140px;
    text-align: center;
}

/* ACCEPT */
.cookie-modal-footer .btn-primary {
    background: #84CC16 !important;
    color: #000 !important;
}

/* DECLINE */
.cookie-modal-footer .btn-outline {
    background: #e5e5e5 !important;
    color: #333 !important;
}

/* SAVE */
.cookie-modal-footer .btn-secondary {
    background: #142339 !important;
    color: #fff !important;
}

/* HOVER */
.cookie-modal-footer .btn-primary:hover {
    background: #6ba812 !important;
}

.cookie-modal-footer .btn-outline:hover {
    background: #b3b3b3 !important;
}

.cookie-modal-footer .btn-secondary:hover {
    background: #0d1620 !important;
}

/* REMOVE ANY DISABLED LOOK */
.cookie-modal-footer button:disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {

    #cookie-consent-banner {
        width: 95%;
        bottom: 10px;
        padding: 15px;
    }

    .cookie-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-left,
    .cookie-actions {
        width: 100%;
    }

    .cookie-actions {
        justify-content: flex-start;
    }

    .cookie-actions button {
        width: 100%;
    }

    .cookie-options {
        flex-direction: column;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }
}