.cookie-consent-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
}

.cookie-consent-overlay[hidden],
.cookie-settings-trigger[hidden],
.cookie-config[hidden],
.cookie-summary[hidden] {
    display: none !important;
}

.cookie-consent-dialog {
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px;
    background: #fff;
    color: #333;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.cookie-consent-dialog h2 {
    margin: 0 0 14px;
    color: #111;
    font-size: 25px;
    line-height: 1.25;
}

.cookie-consent-dialog p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-consent-dialog a {
    color: #111;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.cookie-action {
    flex: 1 1 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 2px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-action:hover,
.cookie-action:focus {
    border-color: #111;
    background: #111;
    color: #fff;
    outline: 2px solid #777;
    outline-offset: 2px;
}

.cookie-config {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    margin-top: 4px;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #111;
}

.cookie-required {
    white-space: nowrap;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-settings-trigger {
    position: fixed;
    z-index: 9998;
    left: 12px;
    bottom: 12px;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 11px;
    letter-spacing: .7px;
    text-transform: uppercase;
    cursor: pointer;
}

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

@media (max-width: 640px) {
    .cookie-consent-dialog {
        padding: 24px 20px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-action {
        flex-basis: auto;
        width: 100%;
    }
}
