/* Cookie Consent Styles */

/* Banner - Fixed at bottom */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(21, 21, 21, 0.98);
    color: #fff;
    padding: 20px;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
}

.cookie-banner-text a {
    color: rgba(184, 0, 18, 1);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #ff3b4e;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Button styles */
.cookie-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn-primary {
    background: rgba(184, 0, 18, 1);
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #d40015;
}

.cookie-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #666;
}

.cookie-btn-secondary:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

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

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

/* Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay.visible {
    display: flex;
}

/* Modal */
.cookie-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #151515;
}

.cookie-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Category Items */
.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

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

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #151515;
    margin: 0;
}

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

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.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: 26px;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #4CAF50;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle.always-on .cookie-toggle-slider {
    cursor: not-allowed;
}

/* Required badge */
.cookie-required {
    font-size: 11px;
    color: #888;
    margin-left: 8px;
    font-weight: normal;
}

/* Footer Cookie Settings Link */
#openCookieSettings {
    cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 640px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal {
        max-height: 100vh;
        border-radius: 0;
    }

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

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

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
