/* Cookie Consent Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d6a4f 0%, #1e4d3a 100%);
    color: #fff;
    padding: 0;
    z-index: 10000;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cookie-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-icon svg {
    color: #fff;
}

.cookie-banner-text-wrapper {
    flex: 1;
}

.cookie-banner-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.cookie-banner-title svg {
    display: none;
}

.cookie-banner-title h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.3px;
}

.cookie-banner-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cookie-banner-text a:hover {
    opacity: 0.8;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #fff;
    color: #2d6a4f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-btn-accept:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-reject {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: #fff;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: translateY(0);
}

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

.cookie-settings-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.cookie-settings-close:hover {
    color: #1a1a1a;
    background-color: #f0f0f0;
}

.cookie-settings-body {
    padding: 30px;
}

.cookie-settings-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-category {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cookie-category:last-of-type {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-category-header:hover {
    background-color: #f0f0f0;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

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

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    margin-left: 16px;
}

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

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

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #2d6a4f;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #2d6a4f;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category-details {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background-color: #fff;
}

.cookie-category-details p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background-color: #f8f9fa;
}

.cookie-settings-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-settings-btn-save {
    background-color: #2d6a4f;
    color: #fff;
}

.cookie-settings-btn-save:hover {
    background-color: #245a42;
}

.cookie-settings-btn-accept-all {
    background-color: #1a1a1a;
    color: #fff;
}

.cookie-settings-btn-accept-all:hover {
    background-color: #333;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cookie-banner-container {
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .cookie-banner-content {
        width: 100%;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .cookie-banner-container {
        padding: 18px 20px;
        gap: 14px;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-banner-icon {
        width: 44px;
        height: 44px;
    }

    .cookie-banner-title {
        justify-content: center;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .cookie-btn-settings {
        flex: 0 0 100%;
        order: 3;
    }

    .cookie-settings-content {
        max-height: 85vh;
    }

    .cookie-settings-header {
        padding: 20px;
    }

    .cookie-settings-body {
        padding: 20px;
    }

    .cookie-settings-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .cookie-settings-btn {
        width: 100%;
    }

    .cookie-category-header {
        padding: 14px 16px;
    }

    .cookie-category-details {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-container {
        padding: 16px;
    }

    .cookie-banner-title h3 {
        font-size: 15px;
    }

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

    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cookie-settings-header h2 {
        font-size: 18px;
    }
}
