/* =============================================
   Cookie Consent Banner & Config - Styles
   ============================================= */

/* Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #fff;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    padding: 25px;
    border-radius: 12px;
    max-width: 560px;
    width: calc(100% - 40px);
    animation: cookieSlideIn 0.4s ease;
}
@keyframes cookieSlideIn {
    from { transform: translateX(-50%) translateY(30px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cookie-banner-text {
    width: 100%;
}
.cookie-banner-text strong {
    font-size: 16px;
    color: #001630;
    display: block;
    margin-bottom: 6px;
}
.cookie-banner-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #2F3B4A;
    margin: 0;
}
.cookie-banner-text a {
    color: #FF6800;
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}
.cookie-banner-actions .cookie-btn {
    flex: 1;
    text-align: center;
}

/* Buttons */
.cookie-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50em;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.cookie-btn-primary {
    background: #FF6800;
    color: #fff;
}
.cookie-btn-primary:hover {
    background: #FF3E00;
}
.cookie-btn-secondary {
    background: transparent;
    color: #2F3B4A;
    border: 1px solid #ddd;
}
.cookie-btn-secondary:hover {
    border-color: #FF6800;
    color: #FF6800;
}

/* Config Panel */
#cookie-config-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
#cookie-config-panel.cookie-config-hidden {
    opacity: 0;
    pointer-events: none;
}
.cookie-config-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.cookie-config-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.cookie-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}
.cookie-config-header strong {
    font-size: 18px;
    color: #001630;
}
.cookie-config-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 5px;
}
.cookie-config-close-btn:hover {
    color: #001630;
}
.cookie-config-body {
    padding: 10px 25px;
}
.cookie-config-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cookie-config-item:last-child {
    border-bottom: none;
}
.cookie-config-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cookie-config-item-title {
    font-weight: 700;
    font-size: 15px;
    color: #001630;
}
.cookie-config-always {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.cookie-config-item-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}
.cookie-config-footer {
    padding: 15px 25px 20px;
    display: flex;
    justify-content: flex-end;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}
.cookie-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #FF6800;
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

/* Mobile adjustments */
@media (max-width: 479px) {
    #cookie-banner {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 20px;
    }
    .cookie-banner-actions .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
