/* Cookie Policy Styles - Green & Gold Theme */
.cp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9faf7 100%);
    color: #1a2e1a;
    padding: 25px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    border-top: 4px solid #2e7d32;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Kanit', sans-serif;
}

.cp-banner.show {
    transform: translateY(0);
}

.cp-content {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
}

.cp-icon {
    font-size: 3rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cp-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2e1a;
    letter-spacing: -0.5px;
}

.cp-text p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #4a554a;
    font-size: 0.95rem;
}

.cp-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.cp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cp-btn:hover::before {
    left: 100%;
}

.cp-btn.accept {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.cp-btn.accept:hover {
    background: linear-gradient(135deg, #1b5e20, #0d3d14);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.cp-btn.customize {
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.cp-btn.customize:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.cp-btn.reject {
    background: linear-gradient(135deg, #c0a040, #8c6d1f);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 160, 64, 0.3);
}

.cp-btn.reject:hover {
    background: linear-gradient(135deg, #8c6d1f, #5c4812);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 160, 64, 0.4);
}

/* Cookie Modal Styles */
.cp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 46, 26, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    font-family: 'Kanit', sans-serif;
}

.cp-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f9faf7 100%);
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.cp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid rgba(46, 125, 50, 0.1);
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    color: white;
    border-radius: 20px 20px 0 0;
}

.cp-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cp-close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cp-close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cp-modal-body {
    padding: 30px;
}

.cp-category {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(46, 125, 50, 0.1);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.05);
    transition: all 0.3s ease;
}

.cp-category:hover {
    box-shadow: 0 4px 15px rgba(192, 160, 64, 0.2);
    transform: translateY(-2px);
}

.cp-category:last-child {
    margin-bottom: 0;
}

.cp-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cp-category h3 {
    margin: 0;
    color: #1a2e1a;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.cp-category p {
    margin: 0;
    color: #4a554a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Toggle Switch */
.cp-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.cp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.cp-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.cp-switch input:checked + .cp-slider {
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
}

.cp-switch input:disabled + .cp-slider {
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    opacity: 0.7;
    cursor: not-allowed;
}

.cp-switch input:checked + .cp-slider:before {
    transform: translateX(30px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.cp-modal-footer {
    padding: 30px;
    border-top: 2px solid rgba(46, 125, 50, 0.1);
    background: rgba(249, 250, 247, 0.9);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Cookie Settings Button */
.cp-settings-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.cp-settings-btn.show {
    display: block;
    animation: cp-pulse 2s infinite;
}

.cp-settings-btn:hover {
    background: linear-gradient(135deg, #c0a040, #2e7d32);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 12px 35px rgba(192, 160, 64, 0.4);
}

@keyframes cp-pulse {
    0% {
        box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(46, 125, 50, 0.5), 0 0 0 10px rgba(192, 160, 64, 0.15);
    }
    100% {
        box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cp-content {
        flex-direction: column;
        text-align: center;
    }

    .cp-buttons {
        justify-content: center;
    }

    .cp-btn {
        flex: 1;
        min-width: 120px;
    }

    .cp-modal-content {
        width: 95%;
        margin: 20px;
    }

    .cp-modal-header,
    .cp-modal-body,
    .cp-modal-footer {
        padding: 20px;
    }

    .cp-modal-footer {
        flex-direction: column;
    }

    .cp-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cp-settings-btn {
        bottom: 240px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
/* 🌙 Dark Mode - Cookie Policy */
body.dark-mode .cp-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    color: #f3f4f6;
    border-top: 4px solid #2e7d32;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
}

body.dark-mode .cp-icon {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

body.dark-mode .cp-text h3 {
    color: #f3f4f6;
}

body.dark-mode .cp-text p {
    color: #d1d5db;
}

/* Buttons */
body.dark-mode .cp-btn.customize {
    background: #1f2937;
    color: #c0a040;
    border: 2px solid #c0a040;
    box-shadow: 0 2px 8px rgba(192, 160, 64, 0.2);
}

body.dark-mode .cp-btn.customize:hover {
    background: #c0a040;
    color: #121212;
    box-shadow: 0 4px 15px rgba(192, 160, 64, 0.4);
}

/* Modal */
body.dark-mode .cp-modal {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

body.dark-mode .cp-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(192, 160, 64, 0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

body.dark-mode .cp-modal-header {
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    color: #fff;
}

body.dark-mode .cp-close-modal {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.dark-mode .cp-category {
    background: #111827;
    border: 1px solid rgba(192, 160, 64, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

body.dark-mode .cp-category h3 {
    color: #f3f4f6;
}

body.dark-mode .cp-category p {
    color: #d1d5db;
}

/* Toggle Switch */
body.dark-mode .cp-slider {
    background: linear-gradient(135deg, #374151, #1f2937);
}

body.dark-mode .cp-slider:before {
    background: linear-gradient(135deg, #cbd5e0, #e5e7eb);
}

/* Footer */
body.dark-mode .cp-modal-footer {
    background: rgba(17, 24, 39, 0.95);
    border-top: 2px solid rgba(192, 160, 64, 0.25);
}

/* Settings Button */
body.dark-mode .cp-settings-btn {
    background: linear-gradient(135deg, #2e7d32, #c0a040);
    border: 3px solid #1a1a1a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}
