.nl-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 16px;
    background: rgba(20, 20, 20, 0.94);
    color: #f5f5f5;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}

.nl-cookie-banner[hidden],
.nl-cookie-modal[hidden],
.nl-cookie-modal:not(.is-open) {
    display: none !important;
}

.nl-cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.nl-cookie-banner__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.nl-cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
}

.nl-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nl-cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
}

.nl-cookie-btn--primary {
    background: var(--theme-primary, #0f5a26);
    color: var(--theme-on-primary, #fff);
}

.nl-cookie-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.nl-cookie-btn--light {
    background: #fff;
    color: #222;
}

.nl-cookie-modal.is-open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483000 !important;
    align-items: center;
    justify-content: center;
    padding: 18px;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.nl-cookie-modal__panel {
    width: min(560px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    padding: 18px 18px 16px;
}

.nl-cookie-modal__title {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--theme-primary, #0f5a26);
}

.nl-cookie-modal__lead {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
}

.nl-cookie-option {
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}

.nl-cookie-option__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.nl-cookie-option__label {
    font-weight: 700;
    margin: 0 0 4px;
}

.nl-cookie-option__desc {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.nl-cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

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

.nl-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.nl-cookie-modal__actions .nl-cookie-btn--ghost {
    border-color: #ccc;
    color: #333;
}

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

.nl-consent-embed {
    position: relative;
    width: 100%;
    min-height: 180px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

.nl-consent-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 0;
    display: block;
}

.nl-consent-embed__placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    min-height: 180px;
}

.nl-consent-embed__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.nl-consent-embed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nl-consent-embed__btn {
    appearance: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.nl-consent-embed__btn--primary {
    background: var(--theme-primary, #0f5a26);
    border-color: transparent;
    color: var(--theme-on-primary, #fff);
}

.nl-consent-embed--active {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 0;
}

.nl-venue__map-wrap .nl-consent-embed,
.nl-venue__map-wrap .nl-consent-embed iframe,
.invitation-location-map .nl-consent-embed,
.invitation-location-map .nl-consent-embed iframe,
.nl-contact-card__column--map .nl-consent-embed,
.nl-contact-card__column--map .nl-consent-embed iframe {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.nl-venue__map-wrap .nl-consent-embed {
    min-height: 440px;
    border: 0;
    border-radius: 0;
}

.invitation-location-map .nl-consent-embed {
    min-height: 180px;
    border: 0;
    border-radius: 0;
}

.nl-contact-card__column--map .nl-consent-embed {
    min-height: 520px;
    border: 0;
    border-radius: 14px;
}

.invitation-media .nl-consent-embed,
.invitation-media .nl-consent-embed iframe {
    width: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 0;
}

/* Hide legacy cookie bar when new system is present */
#cookies_message {
    display: none !important;
}

@media (max-width: 640px) {
    .nl-cookie-banner__actions,
    .nl-cookie-modal__actions {
        flex-direction: column;
    }

    .nl-cookie-btn {
        width: 100%;
    }
}
