/* WP Local Consent visitor interface.
 * rules: Keep all public styles scoped; never change host page typography or action order.
 * rules: Equal-prominence mode gives accept/reject identical weight; disabled/hidden state never depends on color alone.
 * rules: Modal header/footer stay reachable while the category body scrolls. Preserve blocker visibility contracts.
 * rules: Root-ID specificity must beat later theme/Elementor kit rules. Reset only owned UI, never restored iframe/content or the host page.
 * rules: Do not use an important universal reset; preserve user accessibility styles, dynamic visibility and configured color variables.
 * agent: gpt-6.1-sol | openai | 2026-11-12 | s_20261112_003 | Consolidate visitor styles into one responsive, accessible consent surface.
 * agent: gpt-6.1-sol | openai | 2026-11-12 | s_20261112_005 | Isolate owned controls from the live Hello/Elementor theme without changing host styles.
 */
:root {
    --mcc-primary-color: #175d83;
    --mcc-primary-hover: #104560;
    --mcc-primary-color-text: #fff;
}
/* Revert author styles only inside our UI. Keep native semantics and user accessibility styles. */
#mcc-banner, #mcc-banner *, #mcc-modal, #mcc-modal *, #mcc-reopen, #mcc-reopen *,
.mcc-blocked-embed .mcc-blocked-overlay, .mcc-blocked-embed .mcc-blocked-overlay * {
    all: revert;
    box-sizing: border-box;
}
:is(#mcc-banner, #mcc-modal, #mcc-reopen, .mcc-blocked-embed) {
    --mcc-ink: #172326;
    --mcc-muted: #536165;
    --mcc-line: #d8e0e2;
    --mcc-soft: #f4f7f7;
    --mcc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    color: var(--mcc-ink);
    color-scheme: light;
    font-family: var(--mcc-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}
#mcc-banner *, #mcc-modal *, #mcc-reopen *, .mcc-blocked-embed .mcc-blocked-overlay * {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
}
#mcc-banner button::before, #mcc-banner button::after, #mcc-modal button::before, #mcc-modal button::after,
#mcc-reopen::before, #mcc-reopen::after, .mcc-blocked-embed .mcc-unblock-btn::before, .mcc-blocked-embed .mcc-unblock-btn::after { content: none; display: none; }
#mcc-banner [hidden], #mcc-modal [hidden] { display: none !important; }
#mcc-banner :focus-visible, #mcc-modal :focus-visible, #mcc-reopen:focus-visible, .mcc-blocked-embed .mcc-blocked-overlay :focus-visible { outline: 2px solid #172326; outline-offset: 3px; }
:is(#mcc-banner, #mcc-modal) h3 { margin: 0 0 10px; color: var(--mcc-ink); font: 650 24px/1.25 var(--mcc-font); }
:is(#mcc-banner, #mcc-modal) p { margin: 0; color: var(--mcc-muted); font-size: 14px; line-height: 1.65; }
:is(#mcc-banner, #mcc-modal) :is(strong,b) { font-weight: 650; }
#mcc-banner { position: fixed; z-index: 999999; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 160ms ease; }
#mcc-banner.mcc-visible { opacity: 1; visibility: visible; }
#mcc-banner.mcc-style-overlay { inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(16 28 32 / 32%); }
#mcc-banner .mcc-wrapper {
    width: 100%;
    border: 1px solid var(--mcc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 48px rgb(16 28 32 / 16%);
    overflow-wrap: anywhere;
}
#mcc-banner.mcc-style-overlay .mcc-wrapper { max-width: 600px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; }
#mcc-banner .mcc-banner-logo { display: block; width: 126px; height: auto; margin: 0 0 24px; object-fit: contain; }
#mcc-banner .mcc-banner-kicker { display: none; }
#mcc-banner .mcc-content { min-width: 0; }
#mcc-banner .mcc-content .mcc-trust-note { margin-top: 12px; font-size: 12px; color: #647175; }
#mcc-banner .mcc-content [role="status"] { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #9b6419; background: #fff8eb; color: #6b4c1c; }
#mcc-banner .mcc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
#mcc-banner .mcc-actions:not(:has(.mcc-btn-reject:not([hidden]))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(#mcc-banner, #mcc-modal, .mcc-blocked-embed) :is(.mcc-btn, .mcc-unblock-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--mcc-line);
    border-radius: 5px;
    background: #fff;
    color: var(--mcc-ink);
    font: 600 13px/1.4 var(--mcc-font);
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 120ms ease, border-color 120ms ease;
}
:is(#mcc-banner, #mcc-modal) .mcc-btn:is(:hover,:focus) { background: var(--mcc-soft); border-color: #97a8ad; color: var(--mcc-ink); box-shadow: none; }
:is(#mcc-banner, #mcc-modal, .mcc-blocked-embed) :is(.mcc-btn-accept,.mcc-unblock-btn) { background: var(--mcc-primary-color); color: var(--mcc-primary-color-text); border-color: var(--mcc-primary-color); }
:is(#mcc-banner, #mcc-modal, .mcc-blocked-embed) :is(.mcc-btn-accept,.mcc-unblock-btn):is(:hover,:focus) { background: var(--mcc-primary-hover); color: var(--mcc-primary-hover-text, var(--mcc-primary-color-text)); border-color: var(--mcc-primary-hover); box-shadow: none; }
#mcc-banner.mcc-equal-prominence .mcc-actions .mcc-btn-accept,
#mcc-banner.mcc-equal-prominence .mcc-actions .mcc-btn-reject { background: #fff; color: var(--mcc-ink); border-color: #83979e; }
#mcc-banner.mcc-equal-prominence .mcc-actions .mcc-btn-accept:is(:hover,:focus),
#mcc-banner.mcc-equal-prominence .mcc-actions .mcc-btn-reject:is(:hover,:focus) { background: var(--mcc-soft); border-color: var(--mcc-ink); }
:is(#mcc-banner, #mcc-modal, .mcc-blocked-embed) :is(.mcc-btn,.mcc-unblock-btn):disabled { cursor: not-allowed; opacity: .55; }
#mcc-banner .mcc-policy-link-container { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mcc-line); }
:is(#mcc-banner, #mcc-modal) :is(.mcc-policy-link,.mcc-link-btn), #mcc-banner #wplc-policy-retry { color: var(--mcc-primary-color); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
#mcc-modal .mcc-link-btn, #mcc-banner #wplc-policy-retry { appearance: none; padding: 0; border: 0; border-radius: 0; background: transparent; font-family: inherit; cursor: pointer; box-shadow: none; }
#mcc-modal .mcc-link-btn:is(:hover,:focus), #mcc-banner #wplc-policy-retry:is(:hover,:focus) { background: transparent; color: var(--mcc-ink); box-shadow: none; }
#mcc-banner.mcc-style-bar { inset: auto 16px 16px; }
#mcc-banner.mcc-style-bar .mcc-wrapper { max-width: 1160px; margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); column-gap: 32px; }
#mcc-banner.mcc-style-bar .mcc-banner-logo { grid-column: 1 / -1; width: 100px; margin-bottom: 12px; }
#mcc-banner.mcc-style-bar .mcc-content h3 { font-size: 20px; }
#mcc-banner.mcc-style-bar .mcc-actions { margin: 0; align-self: center; }
#mcc-banner.mcc-style-bar .mcc-policy-link-container { grid-column: 1 / -1; }
#mcc-reopen {
    position: fixed;
    z-index: 999998;
    bottom: max(18px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    max-width: calc(100vw - 32px);
    padding: 9px 14px;
    border: 1px solid #cad4d7;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(16 28 32 / 10%);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}
#mcc-reopen.mcc-visible { opacity: 1; visibility: visible; }
#mcc-reopen:is(:hover,:focus) { background: var(--mcc-soft); color: var(--mcc-ink); box-shadow: 0 3px 12px rgb(16 28 32 / 10%); }
#mcc-reopen .mcc-reopen-logo { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
#mcc-reopen.mcc-pos-bottom-right { right: 18px; }
#mcc-reopen.mcc-pos-bottom-left { left: 18px; }
#mcc-reopen.mcc-pos-hide { display: none !important; }
#mcc-modal { display: none; position: fixed; inset: 0; z-index: 1000000; padding: 24px; overflow: auto; background: rgb(16 28 32 / 32%); }
#mcc-modal[aria-hidden="false"] { display: flex !important; align-items: center; justify-content: center; }
#mcc-modal .mcc-modal-overlay { position: absolute; inset: 0; }
#mcc-modal .mcc-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 660px;
    max-height: calc(100dvh - 48px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--mcc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 48px rgb(16 28 32 / 18%);
}
#mcc-modal .mcc-modal-header { display: flex; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 24px 28px 18px; border-bottom: 1px solid var(--mcc-line); }
#mcc-modal .mcc-modal-header > div { min-width: 0; }
#mcc-modal .mcc-modal-logo { display: block; width: 112px; height: auto; margin-bottom: 16px; }
#mcc-modal .mcc-modal-kicker { display: none; }
#mcc-modal .mcc-modal-header h3 { font-size: 22px; margin-bottom: 8px; }
#mcc-modal .mcc-modal-intro { max-width: 56ch; }
#mcc-modal .mcc-modal-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--mcc-line); border-radius: 5px; background: #fff; color: var(--mcc-muted); font: 24px/1 var(--mcc-font); cursor: pointer; box-shadow: none; }
#mcc-modal .mcc-modal-close:is(:hover,:focus) { background: var(--mcc-soft); color: var(--mcc-ink); box-shadow: none; }
#mcc-modal .mcc-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px; }
#mcc-modal .mcc-option { position: relative; padding: 17px 0; border-bottom: 1px solid var(--mcc-line); }
#mcc-modal .mcc-option-header label { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
#mcc-modal .mcc-category-copy { display: flex; align-items: center; gap: 10px; order: 0; }
#mcc-modal .mcc-category-title { color: var(--mcc-ink); font-weight: 650; font-size: 14px; }
#mcc-modal .mcc-category-status { font-size: 11px; color: #647175; font-weight: 400; }
#mcc-modal .mcc-switch { position: relative; order: 1; flex: 0 0 38px; width: 38px; height: 22px; }
#mcc-modal .mcc-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#mcc-modal .mcc-switch-ui { position: absolute; inset: 0; border: 1px solid #98a9af; border-radius: 20px; background: #e8edef; transition: background-color 120ms ease; pointer-events: none; }
#mcc-modal .mcc-switch-ui::after { content: ""; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: transform 120ms ease; }
#mcc-modal .mcc-switch input:checked + .mcc-switch-ui { background: #167557; border-color: #167557; }
#mcc-modal .mcc-switch input:checked + .mcc-switch-ui::after { transform: translateX(16px); }
#mcc-modal .mcc-switch input:disabled { cursor: not-allowed; }
#mcc-modal .mcc-switch input:disabled + .mcc-switch-ui { background: #687b80; border-color: #687b80; }
#mcc-modal .mcc-switch input:focus-visible + .mcc-switch-ui { outline: 2px solid var(--mcc-ink); outline-offset: 3px; }
#mcc-modal .mcc-option .mcc-desc { margin-top: 6px; padding-right: 52px; font-size: 12px; line-height: 1.6; }
#mcc-modal .mcc-details-toggle { padding: 16px 0; }
#mcc-modal .mcc-details-content { padding-bottom: 18px; }
#mcc-modal .mcc-detail-group { padding: 12px; margin: 0 0 10px; background: var(--mcc-soft); border-radius: 4px; }
#mcc-modal .mcc-detail-group h4 { margin: 0 0 8px; font-size: 13px; }
#mcc-modal .mcc-detail-list { margin: 0; padding-left: 18px; font-size: 12px; }
#mcc-modal .mcc-detail-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
#mcc-modal .mcc-modal-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 28px 20px; flex: 0 0 auto; border-top: 1px solid var(--mcc-line); background: #fff; }
#mcc-modal .mcc-modal-footer-note { grid-column: 1 / -1; font-size: 11px; }
#mcc-modal .mcc-consent-meta { margin-top: 12px; color: var(--mcc-muted); font-size: 11px; }
#mcc-modal .mcc-consent-meta-title { cursor: pointer; font-weight: 600; }
#mcc-modal .mcc-consent-meta dl { margin: 8px 0 0; }
#mcc-modal .mcc-consent-meta dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
#mcc-modal .mcc-consent-meta dt, #mcc-modal .mcc-consent-meta dd { margin: 0; overflow-wrap: anywhere; }

/* These classes are enforcement contracts. Never reset original iframe or restored content. */
.mcc-blocked-embed { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 260px; margin-bottom: 20px; overflow: hidden; border: 1px solid #d8e0e2; border-radius: 6px; background: #f2f5f5; }
.mcc-blocked-embed iframe { display: none; }
.mcc-blocked-embed.mcc-unblocked iframe { display: block; }
.mcc-blocked-embed.mcc-unblocked .mcc-blocked-overlay { display: none; }
.mcc-blocked-embed .mcc-blocked-overlay { position: relative; z-index: 10; width: 100%; padding: 28px; color: var(--mcc-ink); font: 400 14px/1.6 var(--mcc-font); text-align: center; }
.mcc-blocked-embed .mcc-blocked-overlay p { max-width: 48ch; margin: 0 auto 16px; font: inherit; text-transform: none; }
.mcc-blocked-embed.mcc-is-absolute { position: absolute; inset: 0; height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.mcc-cookie-policy { margin: 20px 0; font-family: inherit; }
.mcc-policy-intro { margin-bottom: 20px; }
.mcc-table-responsive { overflow-x: auto; }
.mcc-cookie-table { width: 100%; border-collapse: collapse; border: 1px solid #d8e0e2; background: #fff; }
.mcc-cookie-table th, .mcc-cookie-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #d8e0e2; overflow-wrap: anywhere; }
.mcc-cookie-table th { background: #f4f7f7; font-weight: 650; }
@media (max-width: 820px) {
    #mcc-banner.mcc-style-bar .mcc-wrapper { grid-template-columns: 1fr; gap: 0; }
    #mcc-banner.mcc-style-bar .mcc-actions { margin-top: 18px; }
}
@media (max-width: 540px) {
    #mcc-banner.mcc-style-overlay { padding: 12px; align-items: end; }
    #mcc-banner.mcc-style-overlay .mcc-wrapper { padding: 22px; max-height: calc(100dvh - 24px); }
    #mcc-banner .mcc-banner-logo { width: 106px; margin-bottom: 18px; }
    #mcc-banner h3 { font-size: 22px; }
    #mcc-banner .mcc-actions { grid-template-columns: 1fr; margin-top: 18px; }
    #mcc-banner .mcc-actions:not(:has(.mcc-btn-reject:not([hidden]))) { grid-template-columns: 1fr; }
    #mcc-banner .mcc-actions .mcc-btn { min-height: 42px; }
    #mcc-banner.mcc-style-bar { inset: auto 10px 10px; }
    #mcc-banner.mcc-style-bar .mcc-wrapper { padding: 18px; max-height: calc(100dvh - 20px); overflow-y: auto; }
    #mcc-modal { padding: 10px; }
    #mcc-modal[aria-hidden="false"] { align-items: end; }
    #mcc-modal .mcc-modal-content { max-height: calc(100dvh - 20px); }
    #mcc-modal .mcc-modal-header { padding: 18px 18px 14px; gap: 12px; }
    #mcc-modal .mcc-modal-header h3 { font-size: 21px; }
    #mcc-modal .mcc-modal-logo { width: 96px; margin-bottom: 12px; }
    #mcc-modal .mcc-modal-body { padding: 0 18px; }
    #mcc-modal .mcc-category-copy { display: block; }
    #mcc-modal .mcc-category-status { display: block; margin-top: 2px; }
    #mcc-modal .mcc-modal-footer { padding: 12px 18px 16px; }
    #mcc-modal .mcc-modal-footer-note { font-size: 10px; }
    #mcc-modal .mcc-btn { font-size: 12px; padding: 10px; }
    #mcc-reopen { bottom: max(12px, env(safe-area-inset-bottom)); }
    #mcc-reopen.mcc-pos-bottom-left { left: 12px; right: auto; }
    #mcc-reopen.mcc-pos-bottom-right { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #mcc-banner, #mcc-modal .mcc-switch-ui, #mcc-modal .mcc-switch-ui::after, :is(#mcc-banner, #mcc-modal) .mcc-btn { transition: none; }
}
@media (forced-colors: active) {
    #mcc-banner :focus-visible, #mcc-modal :focus-visible, #mcc-reopen:focus-visible, #mcc-modal .mcc-switch input:focus-visible + .mcc-switch-ui { outline-color: CanvasText; }
    #mcc-modal .mcc-switch input { opacity: 1; appearance: auto; position: relative; }
    #mcc-modal .mcc-switch-ui { display: none; }
}
