.hhtx-fb-embed {
    min-height: 320px;
}

.fb-page {
    display: none;
}

.hhtx-facebook-enabled .fb-page {
    display: block;
}

.hhtx-fb-consent-placeholder {
    min-height: 320px;
    padding: 2rem;
    border: 1px solid rgba(24, 126, 129, 0.28);
    border-radius: 15px;
    background: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.hhtx-fb-consent-placeholder[hidden] {
    display: none;
}

.hhtx-fb-consent-placeholder h3,
.hhtx-fb-consent-placeholder p {
    margin: 0;
}

.hhtx-fb-consent-placeholder h3 {
    color: #187e81;
}

.hhtx-fb-consent-placeholder p {
    max-width: 430px;
    line-height: 1.6;
}

.hhtx-privacy-button {
    border: 0;
    border-radius: 8px;
    padding: 0.7rem 1.15rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.hhtx-privacy-button-primary {
    background: #187e81;
    color: #fff;
}

.hhtx-privacy-button-primary:hover,
.hhtx-privacy-button-primary:focus-visible {
    background: #0f5a5c;
}

.hhtx-privacy-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: transparent;
    color: #fff;
}

.hhtx-privacy-button-secondary:hover,
.hhtx-privacy-button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.hhtx-fb-open-link {
    color: #187e81;
    font-weight: 600;
}

.hhtx-cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 10000;
    display: none;
    max-width: 940px;
    margin: 0 auto;
    padding: 1.1rem 1.25rem;
    border: 1px solid #7ed4d6;
    border-radius: 12px;
    background: #233536;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
    color: #fff;
}

.hhtx-cookie-banner.is-visible {
    display: block;
}

.hhtx-cookie-banner h2 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.hhtx-cookie-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.hhtx-cookie-summary[hidden],
.hhtx-cookie-settings[hidden] {
    display: none;
}

.hhtx-cookie-copy {
    max-width: 440px;
}

.hhtx-cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.hhtx-cookie-settings {
    max-width: 720px;
    margin: 0 auto;
}

.hhtx-cookie-settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.hhtx-cookie-banner a {
    color: #a8e6e8;
    font-weight: 600;
}

.hhtx-cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hhtx-cookie-summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    min-width: 430px;
    margin-top: 0;
}

.hhtx-cookie-summary-actions .hhtx-privacy-button {
    width: 100%;
}

.hhtx-cookie-summary-actions .hhtx-manage-choices {
    grid-column: 1 / -1;
    justify-self: center;
}

.hhtx-manage-choices,
.hhtx-settings-back {
    padding: 0.35rem;
    border: 0;
    background: transparent;
    color: #a8e6e8;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hhtx-provider-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.hhtx-provider-choice > span:first-child {
    flex: 1;
}

.hhtx-provider-choice strong,
.hhtx-provider-choice small {
    display: block;
}

.hhtx-provider-choice strong {
    color: #fff;
}

.hhtx-provider-choice small {
    margin-top: 0.18rem;
    color: #d7e4e4;
    font-size: 0.82rem;
    line-height: 1.4;
}

.hhtx-provider-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
}

.hhtx-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: #536263;
    transition: background 0.18s ease;
}

.hhtx-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}

.hhtx-provider-choice input:checked + .hhtx-toggle {
    background: #187e81;
}

.hhtx-provider-choice input:checked + .hhtx-toggle::after {
    transform: translateX(20px);
}

.hhtx-provider-choice input:focus-visible + .hhtx-toggle {
    outline: 3px solid #a8e6e8;
    outline-offset: 3px;
}

.hhtx-cookie-preferences {
    padding: 0;
    border: 0;
    background: transparent;
    color: #7ed4d6;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hhtx-cookie-preferences:hover,
.hhtx-cookie-preferences:focus-visible {
    color: #a8e6e8;
}

.hhtx-youtube-embed {
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.hhtx-youtube-placeholder,
.hhtx-youtube-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.hhtx-youtube-placeholder {
    position: relative;
    overflow: hidden;
    background: #333;
}

.hhtx-youtube-placeholder[hidden],
.hhtx-youtube-disable[hidden] {
    display: none;
}

.hhtx-youtube-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hhtx-youtube-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.05));
    pointer-events: none;
}

.hhtx-youtube-enable {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    white-space: nowrap;
}

.hhtx-youtube-enable:hover,
.hhtx-youtube-enable:focus-visible {
    transform: translateX(-50%);
}

.hhtx-external-media-note {
    margin: 0.85rem auto 0;
    max-width: 760px;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

.hhtx-external-media-note a {
    color: #187e81;
    font-weight: 600;
}

.hhtx-youtube-disable {
    display: block;
    margin: 0.75rem auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #187e81;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 760px) {
    .hhtx-cookie-summary {
        display: block;
    }

    .hhtx-cookie-copy {
        max-width: none;
    }

    .hhtx-cookie-summary-actions {
        min-width: 0;
        margin-top: 0.85rem;
    }
}

@media (max-width: 560px) {
    .hhtx-cookie-banner {
        padding: 1rem;
    }

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

    .hhtx-cookie-summary-actions {
        align-items: stretch;
        grid-template-columns: 1fr;
        min-width: 0;
        margin-top: 0.85rem;
    }

    .hhtx-cookie-summary-actions .hhtx-manage-choices {
        grid-column: 1;
    }

    .hhtx-cookie-actions .hhtx-privacy-button {
        width: 100%;
    }

    .hhtx-manage-choices {
        align-self: center;
    }

    .hhtx-youtube-enable {
        bottom: 1rem;
        width: calc(100% - 2rem);
        white-space: normal;
    }
}
