.fgnoh-notice,
.fgnoh-widget,
.fgnoh-schedule {
    box-sizing: border-box;
    font-size: var(--fgnoh-font-size, 16px);
    line-height: 1.5;
}

.fgnoh-notice *,
.fgnoh-widget *,
.fgnoh-schedule * {
    box-sizing: border-box;
}

.fgnoh-notice[hidden],
.fgnoh-widget[hidden] {
    display: none !important;
}

.fgnoh-notice-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99989;
    pointer-events: none;
    background: var(--fgnoh-backdrop-color, #000000);
    opacity: var(--fgnoh-backdrop-opacity, 0.65);
}

.fgnoh-notice-backdrop[hidden] {
    display: none !important;
}

.fgnoh-notice {
    --fgnoh-background: #ffffff;
    --fgnoh-foreground: #1d2327;
    --fgnoh-border: #1d2327;
    --fgnoh-radius: 8px;
    position: fixed;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(var(--fgnoh-box-width, 416px), calc(100vw - 2rem));
    padding: 1rem 1.25rem;
    border: 1px solid var(--fgnoh-border);
    border-radius: var(--fgnoh-radius);
    color: var(--fgnoh-foreground);
    background: var(--fgnoh-background);
    box-shadow: 0 8px 28px rgb(0 0 0 / 16%);
}

.fgnoh-notice--box {
    width: var(--fgnoh-box-width, 416px);
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 1rem;
}

.fgnoh-notice--box-bottom-right {
    right: 1rem;
    left: auto;
}

.fgnoh-notice--box-top-left,
.fgnoh-notice--box-top-right {
    top: max(1rem, env(safe-area-inset-top));
    bottom: auto;
}

.fgnoh-notice--box-top-right {
    right: 1rem;
    left: auto;
}

.fgnoh-notice--box-center {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    max-height: min(85vh, calc(100dvh - 2rem));
    overflow: auto;
    transform: translate(-50%, -50%);
}

.admin-bar .fgnoh-notice--box-top-left,
.admin-bar .fgnoh-notice--box-top-right {
    top: 48px;
}

.fgnoh-notice--bar {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    justify-content: center;
}

.fgnoh-notice--bar-top {
    top: 0;
    bottom: auto;
    padding-top: max(1rem, env(safe-area-inset-top));
    border-top: 0;
    border-bottom: 1px solid var(--fgnoh-border);
}

.admin-bar .fgnoh-notice--bar-top {
    top: 32px;
}

.fgnoh-notice__body {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.fgnoh-notice__status {
    display: block;
    font-weight: 700;
}

.fgnoh-notice__message {
    display: block;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.fgnoh-notice__logo {
    display: inline-flex;
    flex: 0 0 auto;
    width: var(--fgnoh-logo-size, 80px);
    height: var(--fgnoh-logo-size, 80px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fgnoh-notice__logo--top {
    align-self: flex-start;
}

.fgnoh-notice__logo--middle {
    align-self: center;
}

.fgnoh-notice__logo--bottom {
    align-self: flex-end;
}

.fgnoh-notice__logo--circle {
    border-radius: 50%;
}

.fgnoh-notice__logo--square {
    border-radius: 0.25rem;
}

.fgnoh-notice__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fgnoh-notice__links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.fgnoh-notice__links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.fgnoh-notice__quick-links {
    margin-top: 0.3rem;
}

.fgnoh-notice__quick-links summary {
    width: fit-content;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.fgnoh-notice__quick-links-close,
.fgnoh-notice__quick-links[open] .fgnoh-notice__quick-links-open {
    display: none;
}

.fgnoh-notice__quick-links[open] .fgnoh-notice__quick-links-close {
    display: inline;
}

.fgnoh-notice__close {
    flex: 0 0 auto;
    align-self: flex-start;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    margin: -0.5rem -0.65rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.fgnoh-notice__close:hover {
    background: rgb(127 127 127 / 16%);
}

.fgnoh-notice__close--text {
    width: auto;
    max-width: min(12rem, 38vw);
    padding: 0.2rem 0.4rem;
    font-size: 0.875em;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.fgnoh-notice :focus-visible,
.fgnoh-widget :focus-visible,
.fgnoh-schedule :focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.fgnoh-widget {
    --fgnoh-background: #ffffff;
    --fgnoh-foreground: #1d2327;
    --fgnoh-border: #1d2327;
    --fgnoh-radius: 8px;
    width: var(--fgnoh-width, 320px);
    max-width: min(var(--fgnoh-width, 320px), calc(100vw - 2rem));
    border: 1px solid var(--fgnoh-border);
    border-radius: var(--fgnoh-radius);
    color: var(--fgnoh-foreground);
    background: var(--fgnoh-background);
    box-shadow: 0 8px 28px rgb(0 0 0 / 16%);
}

.fgnoh-widget--floating {
    position: fixed;
    z-index: 99980;
    bottom: max(1rem, env(safe-area-inset-bottom));
}

.fgnoh-widget--bottom-right {
    right: 1rem;
}

.fgnoh-widget--bottom-left {
    left: 1rem;
}

.fgnoh-widget--top-right,
.fgnoh-widget--top-left {
    top: max(1rem, env(safe-area-inset-top));
    bottom: auto;
}

.fgnoh-widget--top-right {
    right: 1rem;
}

.fgnoh-widget--top-left {
    left: 1rem;
}

.admin-bar .fgnoh-widget--top-right,
.admin-bar .fgnoh-widget--top-left {
    top: 48px;
}

body:has(.fgnoh-notice--bar-bottom:not([hidden])) .fgnoh-widget--bottom-right,
body:has(.fgnoh-notice--bar-bottom:not([hidden])) .fgnoh-widget--bottom-left,
body:has(.fgnoh-notice--box-bottom-right:not([hidden])) .fgnoh-widget--bottom-right,
body:has(.fgnoh-notice--box-bottom-left:not([hidden])) .fgnoh-widget--bottom-left {
    bottom: var(--fgnoh-bottom-bar-offset, 5rem);
}

body:has(.fgnoh-notice--bar-top:not([hidden])) .fgnoh-widget--top-right,
body:has(.fgnoh-notice--bar-top:not([hidden])) .fgnoh-widget--top-left,
body:has(.fgnoh-notice--box-top-right:not([hidden])) .fgnoh-widget--top-right,
body:has(.fgnoh-notice--box-top-left:not([hidden])) .fgnoh-widget--top-left {
    top: var(--fgnoh-top-bar-offset, 5rem);
}

.fgnoh-widget--inline {
    position: relative;
    width: min(100%, var(--fgnoh-width, 320px));
    margin: 1rem 0;
}

.fgnoh-widget__trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: inherit;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.fgnoh-widget__trigger::after {
    content: '▾';
    margin-left: auto;
}

.fgnoh-widget__trigger[aria-expanded='true']::after {
    content: '▴';
}

.fgnoh-widget__indicator {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 0.75rem;
    border-radius: 50%;
    background: #bd313b;
}

.fgnoh-widget[data-open='1'] .fgnoh-widget__indicator {
    background: #168451;
}

.fgnoh-widget__countdown {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fgnoh-modal {
    box-sizing: border-box;
    position: fixed;
    width: min(var(--fgnoh-width, 640px), calc(100vw - 2rem));
    max-width: 100%;
    max-height: min(85vh, calc(100dvh - 2rem));
    margin: auto;
    padding: 1.25rem;
    overflow: auto;
    border: 1px solid var(--fgnoh-border, #dcdcde);
    border-radius: var(--fgnoh-radius, 8px);
    color: var(--fgnoh-foreground, #1d2327);
    background: var(--fgnoh-background, #ffffff);
    box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
    font-size: var(--fgnoh-font-size, 16px);
    line-height: 1.5;
}

.fgnoh-modal:not([open]) {
    display: none;
}

.fgnoh-modal::backdrop {
    background: var(--fgnoh-backdrop-color, #000000);
    opacity: var(--fgnoh-backdrop-opacity, 0.65);
}

.fgnoh-modal__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fgnoh-modal__status {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: 1.25em;
    overflow-wrap: anywhere;
}

.fgnoh-modal__close {
    flex: 0 0 auto;
    width: 2.5rem;
    min-height: 2.5rem;
    border: 1px solid currentColor;
    border-radius: 0.25rem;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 1.5em;
    line-height: 1;
}

.fgnoh-modal__logo {
    display: inline-flex;
    flex: 0 0 auto;
    width: var(--fgnoh-logo-size, 80px);
    height: var(--fgnoh-logo-size, 80px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.fgnoh-modal__logo--circle {
    border-radius: 50%;
}

.fgnoh-modal__logo--square {
    border-radius: 0.25rem;
}

.fgnoh-modal__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fgnoh-modal__countdown {
    margin: 0 0 0.75rem;
    font-variant-numeric: tabular-nums;
}

.fgnoh-modal__countdown[hidden],
.fgnoh-widget__countdown[hidden] {
    display: none !important;
}

.fgnoh-modal :focus-visible,
.fgnoh-widget__trigger:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.fgnoh-schedule {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0.75rem;
    border: 1px solid var(--fgnoh-border, #dcdcde);
    border-radius: 0.5rem;
    color: var(--fgnoh-foreground, #1d2327);
    background: var(--fgnoh-background, #ffffff);
}

.fgnoh-schedule h3,
.fgnoh-schedule h4 {
    margin: 0.5rem 0;
    color: inherit;
    font-size: 1em;
    line-height: 1.4;
}

.fgnoh-schedule dl {
    margin: 0;
}

.fgnoh-schedule__row {
    display: grid;
    grid-template-columns: minmax(7rem, 42%) 1fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--fgnoh-border, #dcdcde);
}

.fgnoh-schedule__row dt {
    font-weight: 600;
}

.fgnoh-schedule__row dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.fgnoh-schedule__exceptions ul {
    margin: 0.4rem 0;
    padding-left: 1.25rem;
}

.fgnoh-checkout-alert {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fgnoh-checkout-foreground, #1d2327);
    border-radius: 0.4rem;
    color: var(--fgnoh-checkout-foreground, #1d2327);
    background: var(--fgnoh-checkout-background, #fff4f4);
    font-size: var(--fgnoh-checkout-font-size, 16px);
    line-height: 1.5;
    overflow-wrap: anywhere;
    opacity: 1;
    cursor: not-allowed;
}

.fgnoh-checkout-alert[hidden] {
    display: none !important;
}

.fgnoh-cart-notice {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--fgnoh-cart-border, #d63638);
    color: var(--fgnoh-cart-text, #1d2327);
    background: var(--fgnoh-cart-bg, #fff4f4);
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fgnoh-cart-notice[hidden] {
    display: none !important;
}

.fgnoh-product-message {
    box-sizing: border-box;
    display: block;
    flex: 1 1 18rem;
    width: fit-content;
    max-width: 100%;
    margin: 0.5rem 0;
    padding: 0.65rem 0.85rem;
    border-inline-start: 4px solid var(--fgnoh-product-border, #d63638);
    color: var(--fgnoh-product-text, #1d2327);
    background: var(--fgnoh-product-bg, #fff4f4);
    font: inherit;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.fgnoh-product-message[hidden] {
    display: none !important;
}

.fgnoh-orders-closed .single_add_to_cart_button,
.fgnoh-orders-closed .add_to_cart_button,
.fgnoh-orders-closed .wc-block-components-product-button__button {
    display: none !important;
}

.fgnoh-checkout-closed.woocommerce-cart .checkout-button,
.fgnoh-checkout-closed .woocommerce-cart .checkout-button,
.fgnoh-checkout-closed .wc-block-cart__submit-button,
.fgnoh-checkout-closed .woocommerce-mini-cart__buttons .checkout,
.fgnoh-checkout-closed .wc-block-mini-cart__footer-checkout {
    display: none !important;
}

.fgnoh-payment-hidden:not(.fgnoh-order-pay) #payment .payment_methods,
.fgnoh-payment-hidden:not(.fgnoh-order-pay) .wc-block-checkout__payment-method,
.fgnoh-payment-hidden:not(.fgnoh-order-pay) .wc-block-components-payment-methods {
    display: none !important;
}

@media (max-width: 600px) {
    .fgnoh-notice--box {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: none;
    }

    .fgnoh-notice--box-top-left,
    .fgnoh-notice--box-top-right {
        top: max(0.5rem, env(safe-area-inset-top));
        bottom: auto;
    }

    .fgnoh-notice--box-center {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        width: calc(100vw - 1rem);
    }

    .fgnoh-notice--bar {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .fgnoh-notice--bar-top {
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }

    .fgnoh-notice--bar-bottom {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .fgnoh-notice__logo {
        max-width: 3rem;
        max-height: 3rem;
    }

    .fgnoh-notice__close--text {
        max-width: 6rem;
    }

    .fgnoh-widget--floating {
        width: min(19rem, calc(100vw - 1rem));
        max-width: none;
    }

    .fgnoh-modal {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        padding: 0.8rem;
    }

    .fgnoh-modal__logo {
        max-width: 3rem;
        max-height: 3rem;
    }

    .fgnoh-widget--bottom-right,
    .fgnoh-widget--bottom-left {
        bottom: 0.5rem;
    }

    .fgnoh-widget--bottom-right,
    .fgnoh-widget--top-right {
        right: 0.5rem;
        left: auto;
    }

    .fgnoh-widget--bottom-left,
    .fgnoh-widget--top-left {
        left: 0.5rem;
        right: auto;
    }

    body:has(.fgnoh-notice--bar-bottom:not([hidden])) .fgnoh-widget--bottom-right,
    body:has(.fgnoh-notice--bar-bottom:not([hidden])) .fgnoh-widget--bottom-left,
    body:has(.fgnoh-notice--box-bottom-right:not([hidden])) .fgnoh-widget--bottom-right,
    body:has(.fgnoh-notice--box-bottom-right:not([hidden])) .fgnoh-widget--bottom-left,
    body:has(.fgnoh-notice--box-bottom-left:not([hidden])) .fgnoh-widget--bottom-right,
    body:has(.fgnoh-notice--box-bottom-left:not([hidden])) .fgnoh-widget--bottom-left {
        bottom: var(--fgnoh-bottom-bar-offset, 6rem);
    }

    body:has(.fgnoh-notice--box-top-right:not([hidden])) .fgnoh-widget--top-right,
    body:has(.fgnoh-notice--box-top-right:not([hidden])) .fgnoh-widget--top-left,
    body:has(.fgnoh-notice--box-top-left:not([hidden])) .fgnoh-widget--top-right,
    body:has(.fgnoh-notice--box-top-left:not([hidden])) .fgnoh-widget--top-left {
        top: var(--fgnoh-top-bar-offset, 6rem);
    }

    .fgnoh-schedule__row {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
}

@media (max-width: 782px) {
    .admin-bar .fgnoh-notice--bar-top {
        top: 46px;
    }

    .admin-bar .fgnoh-widget--top-right,
    .admin-bar .fgnoh-widget--top-left {
        top: 62px;
    }

    .admin-bar .fgnoh-notice--box-top-left,
    .admin-bar .fgnoh-notice--box-top-right {
        top: 62px;
    }
}

@media (max-width: 380px) {
    .fgnoh-notice {
        gap: 0.4rem;
        padding: 0.65rem;
    }

    .fgnoh-notice__close {
        margin: -0.3rem -0.3rem 0 0;
    }

    .fgnoh-widget--floating {
        width: calc(100vw - 1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fgnoh-notice,
    .fgnoh-widget {
        scroll-behavior: auto;
    }
}
