.storefront-order-notice-panel {
    position: fixed;
    right: 35px;
    bottom: 65px;
    max-width: calc(100% - 70px);
    max-height: calc(100% - 80px);
    padding: 15px;
    overflow: auto;
    overflow-wrap: anywhere;
    background: var(--omni-ui-surface, white);
    border: 1px solid var(--omni-ui-line, #d6d6d6);
    color: var(--omni-ui-ink, inherit);
}

.storefront-order-notice-close {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.storefront-order-notice-table {
    margin-right: 25px;
}

.storefront-order-notice-table th {
    font-weight: inherit;
}

@media screen {
    .storefront-order-notice-panel:has([data-omni-adaptive-records="public-order-notice"]) {
        inline-size: min(600px, calc(100vw - 2rem));
        padding-block-start: 2rem;
    }

    [data-omni-adaptive-records="public-order-notice"] .storefront-order-notice-table {
        margin: 0;
        inline-size: 100%;
    }

    [data-omni-adaptive-records="public-order-notice"][data-omni-records-layout="table"] :is(th, td) {
        overflow-wrap: normal;
        text-align: start;
    }

    [data-omni-adaptive-records="public-order-notice"][data-omni-records-layout="table"] td:is(:first-child, :nth-child(3)) {
        white-space: nowrap;
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table {
        overflow: hidden;
        border: 1px solid var(--omni-ui-line);
        border-radius: 12px;
        border-collapse: separate;
        border-spacing: 0;
        background: var(--omni-ui-surface);
        color: var(--omni-ui-ink);
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table :is(th, td) {
        padding: 7px clamp(4px, 1.25vw, 14px);
        border: 0;
        border-block-end: 1px solid var(--omni-ui-line);
        text-align: start;
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table thead th {
        background: var(--omni-ui-table-heading);
        color: var(--omni-ui-date-metadata);
        font-size: 13px;
        font-weight: 600;
        overflow-wrap: normal;
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table .omni-table-amount {
        text-align: end;
        font-variant-numeric: tabular-nums;
        overflow-wrap: normal;
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table tbody td:first-child {
        white-space: nowrap;
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table tbody td:last-child {
        overflow-wrap: normal;
    }

    .omni-public-shell .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table tbody tr:last-child td {
        border-block-end: 0;
    }
}

.storefront-order-notice-button {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    right: 35px;
    bottom: 55px;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    background: var(--omni-ui-surface, white);
    border: 1px solid var(--omni-ui-line, #e5e2da);
    border-radius: 50%;
    color: var(--omni-ui-ink, inherit);
}

.storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-button {
    box-shadow: 10px 10px 5px var(--omni-order-notice-shadow, #e5e2da);
}

.storefront-order-notice[data-theme="magnatus"] :is(.storefront-order-notice-panel, .storefront-order-notice-button) {
    z-index: 9999;
}

@media (min-width: 1024px) {
    .storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-panel {
        box-sizing: border-box;
        max-width: min(600px, calc(100% - 70px));
    }
}

.storefront-order-notice [hidden] {
    display: none;
}

.storefront-order-notice-label {
    display: none;
}

.exchangex-menu-notice {
    display: none;
}

@media (width > 700px) {
    .storefront-order-notice-panel.exchangex-empty-notice {
        box-sizing: border-box;
        max-width: min(600px, calc(100% - 70px));
        padding-inline-end: 2.5rem;
    }

    .omni-public-header__tools > .storefront-order-notice[data-theme="exchangex"] {
        display: contents;
    }

    [data-desktop-order-notice] .omni-public-header__tools {
        position: relative;
    }

    [data-desktop-order-notice] .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-button {
        position: static;
        inline-size: var(--omni-ui-control-height);
        block-size: var(--omni-ui-control-height);
        border-radius: var(--omni-ui-control-radius);
        box-shadow: none;
    }

    [data-desktop-order-notice] .storefront-order-notice-panel {
        position: absolute;
        inset: calc(100% + var(--omni-ui-space-2)) 0 auto auto;
        z-index: 10;
        box-sizing: border-box;
        width: min(600px, calc(100vw - 2 * var(--public-gutter)));
        max-width: none;
        max-height: calc(100dvh - var(--omni-ui-control-height) - 2rem);
        border-radius: var(--omni-ui-control-radius);
        overscroll-behavior: contain;
    }
}

@media (max-width: 700px) {
    .omni-public-header .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-button {
        position: static;
        inline-size: var(--omni-ui-control-height);
        block-size: var(--omni-ui-control-height);
        border-radius: var(--omni-ui-control-radius);
        box-shadow: none;
    }

    .omni-public-header .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-panel {
        position: absolute;
        z-index: 10;
        inset: 100% 0 auto auto;
        inline-size: min(32rem, 100%);
        max-width: none;
        max-height: calc(100dvh - 5rem);
        padding: 1rem;
        padding-block-start: var(--omni-ui-control-height);
        border-radius: var(--omni-ui-control-radius);
        overscroll-behavior: contain;
    }

    .omni-public-header .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-close {
        box-sizing: border-box;
        inline-size: var(--omni-ui-control-height);
        block-size: var(--omni-ui-control-height);
    }

    .omni-public-header .storefront-order-notice[data-theme="exchangex"] .storefront-order-notice-table {
        margin: 0;
    }
}

@media (max-width: 350px) {
    .omni-public-header__tools > .storefront-order-notice[data-theme="exchangex"] {
        display: contents;
    }

    .omni-public-header__tools > .storefront-order-notice[data-theme="exchangex"] > .storefront-order-notice-button {
        display: none;
    }

    .exchangex-menu-notice {
        display: block;
    }

    .exchangex-menu-notice .storefront-order-notice-button {
        position: static;
        justify-content: start;
        inline-size: 100%;
        block-size: var(--omni-ui-control-height);
        gap: var(--omni-ui-space-2);
        padding-inline: var(--omni-ui-space-2);
        border: 0;
        border-radius: var(--omni-ui-control-radius);
    }

    .exchangex-menu-notice .storefront-order-notice-label {
        display: inline;
    }
}

:is(.storefront-order-notice, .exchangex-menu-notice) :is(.storefront-order-notice-button img, .storefront-order-notice-close) {
    filter: var(--omni-order-notice-icon-filter, none);
}

[data-omni-theme="dark"] :is(.storefront-order-notice, .exchangex-menu-notice) {
    --omni-order-notice-shadow: #0006;
    --omni-order-notice-icon-filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-omni-theme]) :is(.storefront-order-notice, .exchangex-menu-notice) {
        --omni-order-notice-shadow: #0006;
        --omni-order-notice-icon-filter: invert(1);
    }
}

.omni-public-header__tools > .storefront-order-notice[data-theme="magnatus"] {
    position: relative;
    inline-size: var(--omni-ui-control-height);
}

.omni-public-header__tools > .storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-button {
    position: static;
    inline-size: var(--omni-ui-control-height);
    block-size: var(--omni-ui-control-height);
    border-radius: var(--omni-ui-control-radius);
    color: var(--omni-ui-accent);
}

.storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-button img {
    display: none;
}

.storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-button::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url("../img/magnatus/home-chat-outline.svg") center / contain no-repeat;
}

.omni-public-header__tools > .storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-button:hover {
    background: var(--omni-ui-hover);
}

@media (width > 700px) {
    .omni-public-header__tools > .storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-panel {
        position: absolute;
        top: calc(100% + var(--omni-ui-space-2));
        right: 0;
        bottom: auto;
        width: min(600px, calc(100vw - 2 * var(--public-gutter)));
        max-width: none;
        max-height: calc(100dvh - var(--omni-ui-control-height) - 2rem);
        border-radius: var(--omni-ui-control-radius);
    }
}

.omni-public-header__tools > .storefront-order-notice[data-theme="magnatus"] .storefront-order-notice-panel.magnatus-chat-card {
    box-sizing: border-box;
    position: absolute;
    inset: calc(100% + var(--omni-ui-space-2)) 0 auto auto;
    width: min(432px, calc(100vw - 2 * var(--public-gutter)));
    max-width: 600px;
    max-height: calc(100dvh - var(--magnatus-menu-inset, 63px) - var(--omni-ui-space-2) - var(--public-gutter));
    padding: var(--omni-ui-space-4);
    overscroll-behavior-y: contain;
    background: var(--omni-ui-surface);
    border-radius: var(--omni-ui-panel-radius);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--omni-ui-backdrop) 24%, transparent);
}

.magnatus-chat-card .storefront-order-notice-close.btn-close {
    box-sizing: border-box;
    top: var(--omni-ui-space-1);
    right: var(--omni-ui-space-2);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--omni-ui-control-radius);
    background: none;
    color: var(--omni-ui-muted);
    opacity: 1;
    filter: none;
    box-shadow: none;
}

.magnatus-chat-card .storefront-order-notice-close::before,
.magnatus-chat-card .storefront-order-notice-close::after {
    content: "";
    grid-area: 1 / 1;
    width: 14px;
    border-block-start: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.magnatus-chat-card .storefront-order-notice-close::after {
    transform: rotate(-45deg);
}

.magnatus-chat-card .storefront-order-notice-close.btn-close:hover {
    background: var(--omni-ui-hover);
    color: var(--omni-ui-ink);
}

.magnatus-chat-card .storefront-order-notice-close.btn-close:focus-visible {
    outline: var(--omni-ui-focus-width) solid var(--omni-ui-accent);
    outline-offset: var(--omni-ui-focus-offset-inset);
}

.magnatus-chat-card .magnatus-chat-card__title {
    margin: 0 0 var(--omni-ui-space-2);
    padding-inline-end: 44px;
    color: var(--omni-ui-ink);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.magnatus-chat-card .magnatus-chat-card__intro {
    margin: 0 0 var(--omni-ui-space-3);
    color: var(--omni-ui-muted);
}

.magnatus-chat-card .magnatus-chat-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--omni-ui-space-2) var(--omni-ui-space-3);
}

.magnatus-chat-card .magnatus-chat-card__primary.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--omni-ui-control-height-compact);
    max-inline-size: 100%;
    padding: var(--omni-ui-space-1) var(--omni-ui-space-3);
    border-color: var(--omni-ui-accent);
    border-radius: var(--omni-ui-control-radius);
    background: var(--omni-ui-accent);
    color: var(--omni-ui-surface);
    font-size: inherit;
    font-weight: 600;
    white-space: normal;
}

.magnatus-chat-card .magnatus-chat-card__primary.btn-primary:hover {
    border-color: var(--omni-ui-ink);
    background: var(--omni-ui-ink);
}

.magnatus-chat-card .magnatus-chat-card__contact {
    color: var(--omni-ui-accent);
    text-underline-offset: .15em;
}

.magnatus-chat-card .magnatus-chat-card__details {
    margin-block-start: var(--omni-ui-space-3);
    padding-block-start: var(--omni-ui-space-2);
    border-block-start: 1px solid var(--omni-ui-line);
    color: var(--omni-ui-muted);
    font-size: var(--omni-ui-help-size);
}

.magnatus-chat-card .magnatus-chat-card__details > summary {
    display: list-item;
    color: var(--omni-ui-accent);
    cursor: pointer;
}

.magnatus-chat-card .magnatus-chat-card__details > p {
    margin: var(--omni-ui-space-2) 0 0;
}

@media (max-width: 700px) {
    .omni-terms-order-notice {
        display: flex;
        justify-content: flex-end;
        margin-block-start: var(--omni-ui-space-2);
    }

    .omni-terms-order-notice .storefront-order-notice {
        min-inline-size: 0;
        max-inline-size: 100%;
    }

    .omni-terms-order-notice .storefront-order-notice :is(.storefront-order-notice-button, .storefront-order-notice-panel) {
        position: static;
        z-index: auto;
        background: var(--omni-ui-surface);
        border: 1px solid var(--omni-ui-line);
        border-radius: var(--omni-ui-control-radius);
        color: var(--omni-ui-ink);
        box-shadow: none;
    }

    .omni-terms-order-notice .storefront-order-notice-button {
        gap: var(--omni-ui-space-2);
        inline-size: auto;
        block-size: auto;
        min-block-size: var(--omni-ui-control-height);
        padding: var(--omni-ui-space-2) var(--omni-ui-space-3);
    }

    .omni-terms-order-notice .storefront-order-notice-label {
        display: inline;
    }

    .omni-terms-order-notice .storefront-order-notice .storefront-order-notice-panel {
        position: relative;
        inset: auto;
        max-inline-size: 100%;
        max-block-size: min(65vh, 24rem);
        padding-block-start: calc(var(--omni-ui-control-height) + var(--omni-ui-space-2));
    }

    .omni-terms-order-notice .storefront-order-notice-close {
        box-sizing: border-box;
        inline-size: var(--omni-ui-control-height);
        block-size: var(--omni-ui-control-height);
    }

    .omni-terms-order-notice .storefront-order-notice-table {
        margin-inline-end: 0;
    }
}
