.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent__panel {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 18px 20px;
}

.cookie-consent__text {
    margin: 0 0 12px;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: #222;
}

.cookie-consent__text a {
    color: inherit;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-consent__btn {
    font-size: var(--text-sm);
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
}

.cookie-consent__btn--primary {
    background: #1a1a2e;
    color: #fff;
}

.cookie-consent__btn--outline {
    border-color: #999;
    color: #222;
}

.cookie-consent__btn--ghost {
    color: #555;
    margin-right: auto;
}

.cookie-consent__details[hidden] {
    display: none;
}

.cookie-consent__option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.cookie-consent__option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-consent__option-name {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    color: #222;
}

.cookie-consent__option-desc {
    font-size: var(--text-sm);
    color: #666;
}

.cookie-settings-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 480px) {
    .cookie-consent__actions {
        justify-content: stretch;
    }
    .cookie-consent__btn {
        flex: 1 1 auto;
    }
    .cookie-consent__btn--ghost {
        margin-right: 0;
        flex-basis: 100%;
        order: 3;
    }
}
