/* CSS Variables for Cookie Popup */
:root {
  --black: #121212;
  --white: #ffffff;
  --gold: #ddac63;
  --bg-dark: #1a1a1a;
  --border: #333333;
}

/* Cookie Popup - Bottom Left */
.cookie-popup {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 99999 !important;
    max-width: 320px !important;
    width: auto !important;
    font-family: 'League Spartan', sans-serif !important;
    animation: slideInLeft 0.3s ease-out !important;
}

/* Button layout */
.cookie-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cookie-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'League Spartan', sans-serif;
    min-width: 100px;
    text-align: center;
}

/* First two buttons on same line */
.cookie-btn-primary,
.cookie-btn-secondary {
    flex: 1;
    min-width: 45%;
}

/* Reject button on new line */
.cookie-btn-text {
    order: 1;
    width: auto;
    padding: 8px 12px !important;
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cookie-popup {
        width: 70% !important;
        max-width: 350px !important;
        left: 20px !important;
        right: auto !important;
        bottom: 15px !important;
    }
    
    .cookie-popup-content {
        padding: 14px;
    }
    
    .cookie-btn {
        font-size: 0.8rem !important;
        padding: 7px 10px !important;
    }
    
    .cookie-btn-primary,
    .cookie-btn-secondary {
        min-width: calc(50% - 5px);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .cookie-popup {
        width: 70% !important;
        max-width: 300px !important;
        left: 15px !important;
    }
    
    .cookie-popup-header h3 {
        font-size: 1rem;
    }
    
    .cookie-popup-header p {
        font-size: 0.8rem;
    }
    
    .cookie-option {
        font-size: 0.85rem;
    }
}

.cookie-popup-content {
    background: var(--black);
    border: 1px solid var(--white);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-popup-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-popup-header p {
    font-size: 0.85rem;
    color: var(--white);
    margin: 0 0 12px 0;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-popup-options {
    margin: 8px 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.cookie-popup-options.expanded {
    max-height: 250px;
    margin-bottom: 16px;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--white);
    padding: 6px 0;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Custom checkmark styling */
.cookie-option input[type="checkbox"]:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

.cookie-option input[type="checkbox"]:checked::before {
    color: var(--black);
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-popup-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'League Spartan', sans-serif;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.cookie-btn-primary {
    background: var(--white);
    color: var(--black);
    font-weight: 600;
}

.cookie-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 500;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-toggle-options {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin: 5px 0 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-toggle-options:hover {
    opacity: 0.9;
    color: var(--gold);
}

.cookie-toggle-options i {
    transition: transform 0.2s ease;
    font-size: 0.8em;
    color: var(--gold);
}

.cookie-toggle-options.expanded i {
    transform: rotate(180deg);
}

.cookie-btn-text {
    background: transparent;
    color: var(--white);
    opacity: 0.9;
    font-weight: 500;
    padding: 10px 16px !important;
    border: 1px solid transparent !important;
}

.cookie-btn-text:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .cookie-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .cookie-popup-content {
        padding: 1.25rem;
    }
    
    .cookie-popup-header h3 {
        font-size: 1rem;
    }
    
    .cookie-popup-header p {
        font-size: 0.8rem;
    }
}
