/** Popup presentation only; native visibility, configuration, and consent state remain authoritative. */
body .modal-popup.wp-google-consent-modal {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 0;
}
body .modal-popup.wp-google-consent-modal .modal-inner-wrap {
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid var(--wp-consent-accent-top);
    box-shadow: 0 14px 50px rgba(35, 31, 32, .15);
    box-sizing: border-box;
    color: var(--wp-consent-text);
    display: flex;
    flex-direction: column;
    font-family: var(--wp-consent-body-font);
    font-size: 15px;
    height: auto;
    margin: 24px auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    max-width: 560px;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: calc(100% - 32px);
}
body .modal-popup.wp-google-consent-modal .modal-header {
    border: 0;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 53px 66px 16px 30px;
}
body .modal-popup.wp-google-consent-modal .modal-title {
    border: 0;
    color: var(--wp-consent-text);
    font-family: var(--wp-consent-heading-font);
    font-size: 29px;
    font-weight: var(--wp-consent-heading-weight);
    letter-spacing: -.3px;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 0;
    text-transform: none;
}
body .modal-popup.wp-google-consent-modal .modal-content {
    border: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 30px 27px;
}
body .modal-popup.wp-google-consent-modal .wp-google-consent-mode-container {
    padding: 0;
}
body .modal-popup.wp-google-consent-modal .wp-consent-eyebrow {
    color: var(--wp-consent-accent);
    font-family: var(--wp-consent-body-font);
    font-size: 11px;
    font-weight: 600;
    left: 30px;
    letter-spacing: 1.6px;
    line-height: 16px;
    position: absolute;
    right: 66px;
    text-transform: uppercase;
    top: 25px;
}
body .modal-popup.wp-google-consent-modal .consent-description {
    color: var(--wp-consent-muted);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    padding: 0 0 23px;
}
body .modal-popup.wp-google-consent-modal .consent-description > :first-child {
    margin-top: 0;
}
body .modal-popup.wp-google-consent-modal .consent-description > :last-child {
    margin-bottom: 0;
}
body .modal-popup.wp-google-consent-modal .consent-description a {
    color: var(--wp-consent-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}
body .modal-popup.wp-google-consent-modal .field {
    border-bottom: 1px solid #e6e2e4;
    box-sizing: border-box;
    clear: both;
    gap: 24px;
    margin: 0;
    min-height: 78px;
    padding: 16px 0;
}
body .modal-popup.wp-google-consent-modal .field:first-child {
    border-top: 1px solid #e6e2e4;
}
body .modal-popup.wp-google-consent-modal .field.show-state-options {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
body .modal-popup.wp-google-consent-modal .field .consent-state-label {
    color: var(--wp-consent-text);
    flex: 1 1 auto;
    float: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    width: auto;
}
body .modal-popup.wp-google-consent-modal .field .switch-container {
    flex: 0 0 50px;
    width: 50px;
}
body .modal-popup.wp-google-consent-modal .field .switch {
    display: block;
    height: 44px;
    margin: 0;
    position: relative;
    width: 50px;
}
body .modal-popup.wp-google-consent-modal .field .switch input {
    cursor: pointer;
    height: 44px;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 50px;
    z-index: 1;
}
body .modal-popup.wp-google-consent-modal .field .switch .slider {
    background: #b8b4b6;
    border-radius: 20px;
    bottom: 8px;
    left: 0;
    pointer-events: none;
    right: 0;
    top: 8px;
    transition: background-color .15s ease;
}
body .modal-popup.wp-google-consent-modal .field .switch .slider::before {
    background: #fff;
    border-radius: 50%;
    bottom: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
    height: 20px;
    left: 4px;
    top: 4px;
    transition: transform .15s ease;
    width: 20px;
}
body .modal-popup.wp-google-consent-modal .field input:checked + .slider {
    background: var(--wp-consent-accent);
}
body .modal-popup.wp-google-consent-modal .field input:checked + .slider::before {
    transform: translateX(22px);
}
body .modal-popup.wp-google-consent-modal .field input:focus + .slider {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--wp-consent-focus);
}
body .modal-popup.wp-google-consent-modal .actions {
    box-sizing: border-box;
    float: none;
    gap: 18px;
    margin: 25px 0 0;
    padding: 0;
    width: 100%;
}
body .modal-popup.wp-google-consent-modal .actions.show-state-options {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
body .modal-popup.wp-google-consent-modal .wp-consent-policy {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    color: var(--wp-consent-accent);
    gap: 6px;
    line-height: 1.5;
    min-height: 44px;
    overflow-wrap: anywhere;
    text-decoration: none;
}
body .modal-popup.wp-google-consent-modal .wp-consent-policy-label {
    text-decoration: underline;
    text-underline-offset: 4px;
}
body .modal-popup.wp-google-consent-modal .actions .action.primary {
    align-items: center;
    background: var(--wp-consent-accent);
    border: 1px solid var(--wp-consent-accent);
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    display: inline-flex;
    flex: 0 1 auto;
    font-family: var(--wp-consent-button-font);
    font-size: 14px;
    font-weight: var(--wp-consent-button-weight);
    gap: 20px;
    justify-content: center;
    letter-spacing: .55px;
    line-height: 1.5;
    margin: 0;
    min-height: 46px;
    overflow-wrap: anywhere;
    padding: 12px 22px;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
}
body .modal-popup.wp-google-consent-modal .actions .action.primary:hover,
body .modal-popup.wp-google-consent-modal .actions .action.primary:active {
    background: var(--wp-consent-hover);
    border-color: var(--wp-consent-hover);
    color: #fff;
}
body .modal-popup.wp-google-consent-modal .wp-consent-save-label {
    display: block;
    line-height: inherit;
    margin: 0;
    min-width: 0;
    padding: 0;
}
body .modal-popup.wp-google-consent-modal .wp-consent-icon {
    align-self: center;
    display: block;
    fill: none;
    flex: 0 0 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 18px;
}
body .modal-popup.wp-google-consent-modal .wp-consent-policy .wp-consent-icon {
    flex-basis: 14px;
    height: 14px;
    width: 14px;
}
body .modal-popup.wp-google-consent-modal .modal-header .action-close {
    background: transparent;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--wp-consent-muted);
    height: 32px;
    line-height: 1;
    margin: 0;
    min-height: 0;
    min-width: 0;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 19px;
    width: 32px;
}
body .modal-popup.wp-google-consent-modal .modal-header .action-close::before,
body .modal-popup.wp-google-consent-modal .modal-header .action-close::after {
    background: currentColor;
    border: 0;
    border-radius: 1px;
    color: inherit;
    content: '';
    display: block;
    height: 2px;
    left: 50%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    width: 16px;
}
body .modal-popup.wp-google-consent-modal .modal-header .action-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
body .modal-popup.wp-google-consent-modal .modal-header .action-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
body .modal-popup.wp-google-consent-modal .modal-header .action-close:hover {
    color: var(--wp-consent-accent);
}
body .modal-popup.wp-google-consent-modal .action-close:focus-visible,
body .modal-popup.wp-google-consent-modal .action.primary:focus-visible,
body .modal-popup.wp-google-consent-modal a:focus-visible {
    outline: 2px solid var(--wp-consent-focus);
    outline-offset: 3px;
}
@media (max-width: 767px) {
    body .modal-popup.wp-google-consent-modal .modal-inner-wrap {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        margin: 16px auto;
    }
    body .modal-popup.wp-google-consent-modal .modal-header {
        padding: 51px 60px 16px 21px;
    }
    body .modal-popup.wp-google-consent-modal .modal-title {
        font-size: 27px;
    }
    body .modal-popup.wp-google-consent-modal .modal-content {
        padding: 0 21px 23px;
    }
    body .modal-popup.wp-google-consent-modal .wp-consent-eyebrow {
        left: 21px;
        right: 60px;
    }
    body .modal-popup.wp-google-consent-modal .field {
        gap: 14px;
    }
    body .modal-popup.wp-google-consent-modal .actions.show-state-options {
        flex-direction: column-reverse;
        gap: 9px;
    }
    body .modal-popup.wp-google-consent-modal .actions .action.primary {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    body .modal-popup.wp-google-consent-modal .field .switch .slider,
    body .modal-popup.wp-google-consent-modal .field .switch .slider::before {
        transition: none;
    }
}

/** Keep the native consent popup accessible after a visitor saves or dismisses it. */
body .wp-consent-settings {
    align-items: center;
    background: var(--wp-consent-accent);
    border: 1px solid var(--wp-consent-accent);
    border-radius: 24px;
    bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--wp-consent-button-font);
    font-size: 12px;
    font-weight: var(--wp-consent-button-weight);
    gap: 8px;
    justify-content: center;
    left: max(16px, env(safe-area-inset-left));
    letter-spacing: .4px;
    line-height: 1.4;
    margin: 0;
    max-width: calc(100% - 32px);
    min-height: 44px;
    padding: 10px 14px;
    position: fixed;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
    width: auto;
    z-index: 99;
}
body .wp-consent-settings:hover,
body .wp-consent-settings:active {
    background: var(--wp-consent-hover);
    border-color: var(--wp-consent-hover);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    color: #fff;
}
body .wp-consent-settings:focus-visible {
    outline: 2px solid var(--wp-consent-focus);
    outline-offset: 3px;
}
body .wp-consent-settings svg {
    display: block;
    fill: none;
    flex: 0 0 20px;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 20px;
}
body .wp-consent-settings span {
    line-height: inherit;
}
