/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

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

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

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Cookie Popup Styles */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    transition: color 0.2s;
}

.cookie-popup-close:hover {
    color: #000;
}

.cookie-popup-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

/* Tabs */
.cookie-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.cookie-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.cookie-tab:hover {
    color: #333;
}

.cookie-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.cookie-tab-content {
    display: none;
}

.cookie-tab-content.active {
    display: block;
}

/* Cookie Sections */
.cookie-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

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

.cookie-section h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

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

/* Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch-small {
    width: 40px;
    height: 22px;
}

.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-small .cookie-slider:before {
    height: 16px;
    width: 16px;
}

input:checked+.cookie-slider {
    background-color: #007bff;
}

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

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

input:disabled+.cookie-slider {
    background-color: #999;
    cursor: not-allowed;
}

.cookie-label {
    font-size: 14px;
    color: #333;
}

/* Cookie Details */
.cookie-details-section {
    margin-bottom: 30px;
}

.cookie-details-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.cookie-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.cookie-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    font-family: monospace;
}

.cookie-item-details {
    font-size: 13px;
    color: #666;
}

.cookie-item-details p {
    margin: 5px 0;
}

.cookie-item-details strong {
    color: #333;
}

/* Buttons */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-primary {
    background: #007bff;
    color: #fff;
}

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

.cookie-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.cookie-btn-secondary:hover {
    background: #545b62;
}

/* Footer */
.cookie-popup-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

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

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

    .cookie-popup-content {
        padding: 20px;
        width: 95%;
    }

    .cookie-popup-title {
        font-size: 20px;
        padding-right: 30px;
    }

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

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