/**
 * Cookie Consent Banner Styles
 * For Ridgecrest Camps (Boys & Girls sites)
 * GDPR & ePrivacy Compliant
 */

/* Banner Container */
.ks-cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    display: none; /* Hidden by default, shown by JS */
}

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

/* Banner Content */
.ks-cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.ks-cookie-consent-message {
    flex: 1 1 300px;
}

.ks-cookie-consent-message p {
    margin: 0 0 10px 0;
}

.ks-cookie-consent-message a {
    color: #4CAF50;
    text-decoration: underline;
}

.ks-cookie-consent-message a:hover {
    color: #66BB6A;
}

/* Button Container */
.ks-cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.ks-cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ks-cookie-consent-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.ks-cookie-consent-btn-accept {
    background: #4CAF50;
    color: white;
}

.ks-cookie-consent-btn-accept:hover {
    background: #45a049;
}

.ks-cookie-consent-btn-reject {
    background: #f44336;
    color: white;
}

.ks-cookie-consent-btn-reject:hover {
    background: #da190b;
}

.ks-cookie-consent-btn-settings {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ks-cookie-consent-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Settings Modal */
.ks-cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ks-cookie-consent-modal.show {
    display: flex;
}

.ks-cookie-consent-modal-content {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ks-cookie-consent-modal-header {
    margin-bottom: 20px;
}

.ks-cookie-consent-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.ks-cookie-consent-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.ks-cookie-consent-modal-close:hover {
    color: #333;
}

/* Cookie Category */
.ks-cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.ks-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ks-cookie-category-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.ks-cookie-category-description {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Toggle Switch */
.ks-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.ks-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ks-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.ks-cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.ks-cookie-toggle input:checked + .ks-cookie-toggle-slider {
    background-color: #4CAF50;
}

.ks-cookie-toggle input:checked + .ks-cookie-toggle-slider:before {
    transform: translateX(26px);
}

.ks-cookie-toggle input:disabled + .ks-cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Buttons */
.ks-cookie-consent-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ks-cookie-consent-modal-buttons button {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ks-cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .ks-cookie-consent-buttons {
        justify-content: stretch;
    }

    .ks-cookie-consent-btn {
        flex: 1;
        text-align: center;
    }

    .ks-cookie-consent-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .ks-cookie-consent-modal-buttons {
        flex-direction: column;
    }
}

/* Accessibility - High Contrast Mode Support */
@media (prefers-contrast: high) {
    .ks-cookie-consent-banner {
        border-top: 3px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .ks-cookie-consent-btn,
    .ks-cookie-toggle-slider,
    .ks-cookie-toggle-slider:before {
        transition: none;
    }
}
