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

.cookie-consent__backdrop[hidden],
.cookie-consent__modal[hidden] {
    display: none !important;
}

.cookie-consent__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-consent__modal {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cookie-consent__dialog {
    width: 100%;
    max-width: 680px;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
    color: #1a1a1a;
}

.cookie-consent__title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #1a1a1a;
}

.cookie-consent__text {
    margin: 0 0 14px;
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent__privacy-link,
.cookie-consent-placeholder__link {
    color: #DBAC34;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent__privacy-link:hover,
.cookie-consent-placeholder__link:hover {
    color: #b8911e;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cookie-consent__button,
.cookie-consent-placeholder__button {
    appearance: none;
    border: 2px solid #DBAC34;
    border-radius: 999px;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 11px 20px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__button--primary,
.cookie-consent-placeholder__button {
    background: #DBAC34;
    color: #1a1a1a;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus,
.cookie-consent-placeholder__button:hover,
.cookie-consent-placeholder__button:focus {
    background: #b8911e;
    border-color: #b8911e;
    color: #ffffff;
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--secondary:focus {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.cookie-consent-embed {
    position: relative;
    min-height: 220px;
    background: #f2f0eb;
}

.cookie-consent-embed--google-maps {
    min-height: 300px;
}

.cookie-consent-embed__iframe {
    display: block;
    width: 100%;
    transition: opacity 0.2s ease;
}

.cookie-consent-embed--google-maps .cookie-consent-embed__iframe {
    height: 100%;
}

.cookie-consent-embed:not(.is-active) .cookie-consent-embed__iframe {
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(242, 240, 235, 0.97), rgba(255, 255, 255, 0.98));
}

.cookie-consent-placeholder__title,
.cookie-consent-placeholder__text {
    margin: 0;
    max-width: 480px;
}

.cookie-consent-placeholder__title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.cookie-consent-placeholder__text {
    font-size: 0.875rem;
    color: #666666;
}

.cookie-consent-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.cookie-consent-embed.is-active .cookie-consent-placeholder {
    display: none;
}

/* Elementor video widget specifics */
.elementor-widget-video.cookie-consent-embed {
    min-height: 180px;
}

.elementor-widget-video.cookie-consent-embed .elementor-video {
    min-height: 180px;
}

@media (max-width: 767px) {
    .cookie-consent__modal {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .cookie-consent__dialog {
        padding: 18px;
    }

    .cookie-consent__actions,
    .cookie-consent-placeholder__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__button,
    .cookie-consent-placeholder__button {
        width: 100%;
        text-align: center;
    }
}

/* Dark gold keeps the link readable on the light placeholder (WCAG 4.5:1) */
.cookie-consent-placeholder__link {
    color: #7a5a00;
}

.cookie-consent-placeholder__link:hover {
    color: #4d3900;
}
