.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999999999;
}

.cookie-consent-modal {
    width: 340px;
    background: #0a0b0f;
    border: 1px solid #1a2333;
    border-radius: 18px;
    padding: 1rem 1.15rem;
    color: #e3f2ff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    font-family: 'Poppins', sans-serif;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    pointer-events: auto;
}

.cookie-consent-close {
    position: absolute;
    top: 0.6rem;
    right: 0.65rem;
    background: transparent;
    border: none;
    color: #c8d8f8;
    font-size: 1.2rem;
    cursor: pointer;
}

.cookie-consent-modal h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.cookie-consent-description {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    color: #c5d4f7;
}

.cookie-consent-section {
    margin-bottom: 0.75rem;
    border: 1px solid #1c2a3f;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: #0f1624;
}

.cookie-section-toggle {
    background: none;
    border: none;
    color: #c5d4f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.cookie-section-toggle__caret {
    font-size: 1.1rem;
    color: #8ed6ff;
    margin-left: 0.5rem;
}

.cookie-section-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.cookie-section-details.is-open {
    margin-top: 0.35rem;
    max-height: 200px;
}

.cookie-consent-section h3 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: #8ed6ff;
}

.cookie-consent-section p {
    margin: 0;
    font-size: 0.8rem;
    color: #aebedc;
}

.cookie-consent-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.cookie-options-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cookie-options-panel.is-open {
    margin-top: 0.5rem;
    max-height: 500px;
}

.cookie-options-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.cookie-options-toggle {
    width: 100%;
    margin: 0.4rem 0 0.2rem;
    padding: 0.45rem 0.75rem;
    background: transparent;
    border: 1px solid #253246;
    border-radius: 999px;
    color: #c8d8f8;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
}

.cookie-options-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cookie-options-panel.is-open {
    margin-top: 0.5rem;
    max-height: 500px;
}

.cookie-btn {
    flex: 1;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.74rem;
    min-width: 90px;
}

.cookie-btn-primary {
    flex: 1 0 100%;
    background: linear-gradient(90deg, #00b7ff, #00e0b8);
    color: #0a0b0f;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid #33455e;
    color: #c8d8f8;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-btn-reject {
    border-color: #ff6b6b;
    color: #ff8a8a;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn-primary:hover {
    opacity: 0.9;
}

.cookie-btn-secondary:hover {
    border-color: #4b5d7a;
    color: #e7f0ff;
}

.cookie-btn-reject:hover {
    border-color: #ff8f8f;
    color: #ffc2c2;
}

.cookie-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #1b2536;
    border-radius: 999px;
    transition: background 0.25s;
}

.cookie-toggle span::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 4px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.cookie-toggle input:checked + span {
    background: linear-gradient(90deg, #00bfff, #00ffd5);
}

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

.cookie-consent-link {
    color: #00b7ff;
    text-decoration: underline;
}
