/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(236, 187, 46, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.cookie-consent-banner--compact {
    bottom: 1rem;
    top: auto;
    left: auto;
    right: 1rem;
    width: auto;
    max-width: 360px;
    border-top: none;
    border: 1px solid rgba(236, 187, 46, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    z-index: 100001;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

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

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

.cookie-consent-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
}

body.redirecting .cookie-consent-banner {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
}

body.redirecting .cookie-consent-banner--compact {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-consent-banner--compact .cookie-consent-container {
    max-width: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cookie-consent-banner--compact .cookie-consent-content {
    gap: 0;
    position: relative;
    padding-left: 0;
}

.cookie-consent-banner--compact .cookie-consent-title {
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cookie-consent-banner--compact .cookie-consent-description {
    font-size: 0.7rem;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: visible;
    display: block;
}

.cookie-consent-banner--compact .cookie-consent-links {
    gap: 8px;
    font-size: 0.65rem;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.cookie-consent-banner--compact .cookie-consent-actions {
    flex-direction: row;
    gap: 6px;
    margin-top: 4px;
}

.cookie-consent-banner--compact .cookie-consent-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-width: auto;
    flex: 1;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-align: left;
}

.cookie-consent-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-align: left;
}

.cookie-consent-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-consent-link {
    color: #ECBB2E;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-consent-link:hover {
    color: #F1E381;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.025em;
    min-width: 120px;
}

.cookie-consent-btn--primary {
    background: linear-gradient(135deg, #ECBB2E 0%, #F1E381 100%);
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(236, 187, 46, 0.3);
    font-weight: 700;
}

.cookie-consent-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 187, 46, 0.4);
}

.cookie-consent-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 200;
}

.cookie-consent-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px 20px;
    box-sizing: border-box;
}

.cookie-settings-modal--visible {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-settings-content {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid rgba(236, 187, 46, 0.3);
    border-radius: 16px;
    width: 50vw;
    min-width: 400px;
    max-width: 800px;
    height: 50vh;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.cookie-settings-modal--visible .cookie-settings-content {
    transform: scale(1);
}

/* Ensure modal is always on top */
.cookie-settings-modal {
    z-index: 999999 !important;
}

.cookie-settings-overlay {
    z-index: 1;
}

.cookie-settings-content {
    z-index: 2;
    position: relative;
}

/* Ensure proper centering and visibility */
.cookie-settings-modal {
    align-items: center !important;
    justify-content: center !important;
}

.cookie-settings-content {
    max-height: calc(100vh - 80px) !important;
}

.cookie-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid rgba(236, 187, 46, 0.2);
    margin-bottom: 24px;
    position: relative;
}

.cookie-settings-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    padding-right: 60px;
    line-height: 1.3;
}

.cookie-settings-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
}

.cookie-settings-close:hover {
    background: rgba(236, 187, 46, 0.2);
    border-color: rgba(236, 187, 46, 0.4);
    color: #ECBB2E;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(236, 187, 46, 0.3);
}

.cookie-settings-close:active {
    transform: scale(0.95);
}

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

.cookie-settings-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 187, 46, 0.1);
    border-radius: 12px;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.cookie-category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.cookie-category-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.cookie-category-toggle {
    flex-shrink: 0;
}

.cookie-category-checkbox {
    display: none;
}

.cookie-toggle-label {
    display: block;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-category-checkbox:checked + .cookie-toggle-label {
    background: linear-gradient(135deg, #ECBB2E 0%, #F1E381 100%);
}

.cookie-category-checkbox:checked + .cookie-toggle-label .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-category-checkbox:disabled + .cookie-toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enabled toggle for essential cookies */
.cookie-toggle-enabled {
    display: block;
    width: 48px;
    height: 24px;
    background: linear-gradient(135deg, #ECBB2E 0%, #F1E381 100%);
    border-radius: 12px;
    position: relative;
    cursor: default;
    box-shadow: 0 2px 4px rgba(236, 187, 46, 0.3);
}

.cookie-toggle-slider-enabled {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-settings-footer {
    padding: 24px;
    border-top: 1px solid rgba(236, 187, 46, 0.2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 0 0 16px 16px;
}

/* Responsive Design */
@media (max-width: 1230px) {
    .cookie-consent-banner--compact {
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        bottom: 9rem;
        top: auto;
        max-height: calc(100vh - 11rem);
        transform: translateY(20px);
    }
    
    .cookie-consent-banner--compact.cookie-consent-banner--visible {
        transform: translateY(0);
    }
    
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-actions {
        justify-content: center;
    }
    
    .cookie-consent-btn {
        flex: 1;
        min-width: auto;
    }
    
    .cookie-settings-content {
        width: 90vw;
        height: 85vh;
        margin: 0;
        border-radius: 12px;
        min-width: auto;
        max-width: none;
    }
    
    .cookie-settings-header {
        padding: 20px;
    }
    
    .cookie-settings-body {
        padding: 0 20px;
    }
    
    .cookie-settings-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .cookie-settings-close {
        width: 40px;
        height: 40px;
        padding: 10px;
        top: 12px;
        right: 16px;
    }
    
    .cookie-settings-header h2 {
        padding-right: 50px;
        font-size: 1.25rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .cookie-category-toggle {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .cookie-consent-banner .cookie-consent-content {
        text-align: left;
    }

    .cookie-consent-text {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 6px;
        align-items: center;
    }

    .cookie-consent-title {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .cookie-consent-links {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .cookie-consent-description {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: 0;
    }

    .cookie-consent-banner--compact .cookie-consent-title {
        margin-bottom: 0;
    }

    .cookie-consent-banner--compact .cookie-consent-links {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 16px;
    }
    
    .cookie-consent-title {
        font-size: 1rem;
    }
    
    .cookie-consent-description {
        font-size: 0.8rem;
    }
}

/* Cookie List Section */
.cookie-list-section {
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-list-toggle {
    background: transparent;
    border: 1px solid rgba(236, 187, 46, 0.3);
    color: #ECBB2E;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: space-between;
}

.cookie-list-toggle:hover {
    background: rgba(236, 187, 46, 0.1);
    border-color: rgba(236, 187, 46, 0.5);
}

.cookie-list-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cookie-list-icon--expanded {
    transform: rotate(180deg);
}

.cookie-list-content--hidden {
    display: none;
}

.cookie-list-content--visible {
    display: block;
}

body.cookie-modal-open {
    overflow: hidden;
}

.cookie-list-content {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 24px;
    padding-bottom: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-list-content h4 {
    color: #ECBB2E;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.cookie-list-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cookie-list-category {
    margin-bottom: 32px;
}

.cookie-list-category:last-child {
    margin-bottom: 0;
}

.cookie-list-category h5 {
    color: #ECBB2E;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cookie-category-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.cookie-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-list-table thead {
    background: rgba(236, 187, 46, 0.15);
}

.cookie-list-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ECBB2E;
    border-bottom: 1px solid rgba(236, 187, 46, 0.3);
}

.cookie-list-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-list-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-list-table tbody tr:hover {
    background: rgba(236, 187, 46, 0.05);
}

.cookie-list-table code {
    background: rgba(236, 187, 46, 0.15);
    color: #ECBB2E;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* Responsive styles for cookie list */
@media (max-width: 768px) {
    .cookie-list-content {
        padding: 16px;
    }
    
    .cookie-list-table {
        font-size: 0.75rem;
    }
    
    .cookie-list-table th,
    .cookie-list-table td {
        padding: 8px 12px;
    }
    
    .cookie-list-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Cookie conditional badge */
.cookie-conditional-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(236, 187, 46, 0.2);
    color: #ECBB2E;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Mobile styles for how-it-works page - make banner less dominant */
@media (max-width: 480px) {
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact {
        max-width: 280px;
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0;
    }
    
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact .cookie-consent-container {
        padding: 10px;
        gap: 8px;
    }
    
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact .cookie-consent-title {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact .cookie-consent-description {
        font-size: 0.65rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact .cookie-consent-links {
        gap: 6px;
        font-size: 0.6rem;
        margin-bottom: 0;
    }
    
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact .cookie-consent-actions {
        gap: 4px;
        margin-top: 2px;
    }
    
    .cookie-consent-banner--how-it-works.cookie-consent-banner--compact .cookie-consent-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}





