:root {
    --ddb-consent-navy: #102b4e;
    --ddb-consent-turquoise: #32c0c6;
    --ddb-consent-white: #ffffff;
}

.ddb-cookie-settings-link {
    white-space: nowrap;
}

.ddb-consent[hidden] {
    display: none !important;
}

.ddb-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    padding: 18px 22px;
    color: var(--ddb-consent-white);
    background: var(--ddb-consent-navy);
    border-top: 4px solid var(--ddb-consent-turquoise);
    box-shadow: 0 -8px 30px rgba(4, 24, 46, 0.2);
}

.ddb-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ddb-consent__copy {
    max-width: 760px;
}

.ddb-consent h2 {
    margin: 0 0 5px;
    color: var(--ddb-consent-white);
    font-size: 20px;
    line-height: 1.3;
}

.ddb-consent p {
    margin: 0;
    color: var(--ddb-consent-white);
    font-size: 15px;
    line-height: 1.55;
}

.ddb-consent a {
    margin-left: 5px;
    color: var(--ddb-consent-white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ddb-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.ddb-consent__button,
.ddb-map-placeholder__button {
    min-height: 44px;
    padding: 10px 17px;
    border: 2px solid var(--ddb-consent-turquoise);
    border-radius: 3px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.ddb-consent__button--primary,
.ddb-map-placeholder__button {
    color: var(--ddb-consent-navy);
    background: var(--ddb-consent-turquoise);
}

.ddb-consent__button--secondary {
    color: var(--ddb-consent-white);
    background: transparent;
}

.ddb-consent__button:hover,
.ddb-consent__button:focus-visible,
.ddb-map-placeholder__button:hover,
.ddb-map-placeholder__button:focus-visible {
    color: var(--ddb-consent-navy);
    background: var(--ddb-consent-white);
    border-color: var(--ddb-consent-white);
    outline: 3px solid rgba(50, 192, 198, 0.45);
    outline-offset: 2px;
}

.ddb-map-placeholder {
    display: grid;
    min-height: 320px;
    place-items: center;
    padding: 28px;
    color: var(--ddb-consent-navy);
    line-height: 1.5;
    text-align: center;
    background: #edf8f8;
    border: 1px solid rgba(16, 43, 78, 0.18);
}

.ddb-map-placeholder__content {
    width: 100%;
    max-width: 480px;
    line-height: 1.5;
}

/* The Clinics Hub map has a more specific block layout; keep its consent
   controls centered until the visitor chooses to load the map. */
.ddb-clinic .clinic-locations-map.ddb-map-placeholder {
    display: grid;
    place-items: center;
}

.ddb-map-placeholder p {
    margin: 0 0 16px;
    color: var(--ddb-consent-navy);
    line-height: 1.5;
}

.ddb-map-placeholder__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    line-height: 1.4;
}

.ddb-map-placeholder__link {
    color: var(--ddb-consent-navy);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ddb-map-placeholder__link:hover,
.ddb-map-placeholder__link:focus-visible {
    color: #176f75;
}

@media (max-width: 760px) {
    .ddb-consent {
        padding: 17px 16px calc(17px + env(safe-area-inset-bottom));
    }

    .ddb-consent__inner,
    .ddb-consent__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ddb-consent__inner {
        gap: 16px;
    }

    .ddb-consent__actions {
        gap: 8px;
    }

    .ddb-consent__button {
        width: 100%;
    }

    .ddb-map-placeholder {
        min-height: 260px;
        padding: 22px 16px;
    }

    .ddb-map-placeholder__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .ddb-map-placeholder__button,
    .ddb-map-placeholder__link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ddb-consent *,
    .ddb-map-placeholder * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
