/* ==========================================
   Cookie Consent Banner Styles
   ========================================== */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 24px 20px;
    animation: slideUp 0.4s ease-out;
    border-top: 3px solid #68a435;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2b5a1d;
    margin: 0 0 8px 0;
}

.cookie-consent-text p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #68a435;
    color: white;
}

.cookie-btn-primary:hover {
    background: #5a8f2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 164, 53, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: #68a435;
    border: 2px solid #68a435;
}

.cookie-btn-secondary:hover {
    background: #68a435;
    color: white;
    transform: translateY(-2px);
}

.cookie-btn-text {
    background: transparent;
    color: #555;
    text-decoration: underline;
    padding: 12px 16px;
}

.cookie-btn-text:hover {
    color: #2b5a1d;
}

/* Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

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

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

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

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2b5a1d;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #2b5a1d;
}

.cookie-modal-body {
    padding: 24px 28px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-category-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2b5a1d;
    margin: 0 0 8px 0;
}

.cookie-category-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

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

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #68a435;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #68a435;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-privacy-link {
    padding: 0 28px 24px 28px;
    text-align: center;
}

.cookie-privacy-link a {
    color: #68a435;
    text-decoration: none;
    font-size: 14px;
}

.cookie-privacy-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
    }

    .cookie-consent-text {
        text-align: center;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        margin: 10px;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer,
    .cookie-privacy-link {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-text h3 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}
