.payment-liquid-root {
    --payment-ink: #121212;
    --payment-muted: rgba(18, 18, 18, 0.52);
    --payment-red: #a20f17;
    --payment-line: rgba(255, 255, 255, 0.72);
    --payment-dark-line: rgba(18, 18, 18, 0.12);
    --payment-ease: cubic-bezier(0.16, 1, 0.3, 1);
    position: fixed;
    inset: 0;
    z-index: 4000;
    pointer-events: none;
}

.payment-liquid-root [hidden] {
    display: none !important;
}

.payment-liquid-root.is-visible .payment-liquid-island {
    opacity: 1;
    pointer-events: auto;
    transform: translate(50%, 0);
}

body.payment-panel-open .payment-liquid-root.is-visible .payment-liquid-island {
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 14px);
}

.payment-liquid-island {
    --payment-progress: 0;
    --payment-handle-shift: 0px;
    --payment-fill-width: 68px;
    position: absolute;
    right: 50%;
    bottom: calc(var(--order-footer-space) + 14px);
    width: min(560px, calc(100vw - 32px));
    height: 82px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38) 48%, rgba(255, 255, 255, 0.58)),
        rgba(244, 244, 244, 0.52);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
    box-shadow:
        0 18px 46px rgba(20, 20, 20, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(255, 255, 255, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 18px);
    transition:
        opacity 420ms ease,
        transform 560ms var(--payment-ease);
    isolation: isolate;
}

.payment-liquid-island::before {
    content: "";
    position: absolute;
    top: 3px;
    right: 14%;
    left: 12%;
    z-index: 2;
    height: 1px;
    background: rgba(255, 255, 255, 0.84);
    opacity: 0.9;
    pointer-events: none;
}

.payment-liquid-island::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 16px 0 24px rgba(255, 255, 255, 0.22),
        inset -14px 0 24px rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

@keyframes payment-island-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-liquid-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 7px;
    padding: 7px;
}

.payment-liquid-track::after {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: 5;
    border-radius: 999px;
    background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.74) 44%, transparent 68%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-130%) skewX(-14deg);
}

.payment-liquid-island[data-payment-state="idle"]:not([data-payment-locked="true"]) .payment-liquid-track::after {
    animation: payment-track-shine 5.8s ease-in-out 3.4s infinite;
}

.payment-liquid-progress {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 7px;
    z-index: 3;
    width: var(--payment-fill-width);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.98) 48%, rgba(162, 15, 23, 0.2)),
        #ffffff;
    box-shadow:
        inset -1px 0 0 rgba(162, 15, 23, 0.2),
        10px 0 32px rgba(255, 255, 255, 0.32),
        0 8px 22px rgba(18, 18, 18, 0.08);
    opacity: 0;
    transition:
        width 260ms var(--payment-ease),
        opacity 220ms ease,
        box-shadow 260ms ease;
    pointer-events: none;
    will-change: width;
}

.payment-liquid-island[data-payment-state="pressed"] .payment-liquid-progress,
.payment-liquid-island[data-payment-state="dragging"] .payment-liquid-progress,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-liquid-progress {
    opacity: 0.98;
}

.payment-drag-handle,
.payment-cart-button {
    position: relative;
    z-index: 4;
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    color: var(--payment-ink);
    font: inherit;
    cursor: pointer;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
        0 5px 16px rgba(18, 18, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition:
        color 240ms ease,
        background 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease,
        transform 360ms var(--payment-ease);
}

.payment-drag-handle {
    touch-action: pan-y;
    user-select: none;
    transform: translate3d(var(--payment-handle-shift), 0, 0);
    will-change: transform;
}

.payment-liquid-island[data-payment-state="idle"]:not([data-payment-locked="true"]) .payment-drag-handle {
    animation: payment-handle-nudge 5.8s var(--payment-ease) 3.7s infinite;
}

.payment-handle-percent,
.payment-handle-arrow {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    transition:
        opacity 220ms ease,
        transform 360ms var(--payment-ease);
}

.payment-handle-arrow {
    font-size: 25px;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-12px) scale(0.82);
    transition: none;
}

.payment-liquid-island[data-payment-state="pressed"] .payment-handle-percent,
.payment-liquid-island[data-payment-state="dragging"] .payment-handle-percent,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-handle-percent {
    opacity: 0;
    transform: translateX(12px) scale(0.72);
}

.payment-liquid-island[data-payment-state="pressed"] .payment-handle-arrow,
.payment-liquid-island[data-payment-state="dragging"] .payment-handle-arrow,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-handle-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.payment-cart-button svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.payment-cart-button > span {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: var(--payment-red);
    color: #ffffff;
    font-size: 9px;
    font-weight: 500;
    box-shadow: 0 3px 9px rgba(162, 15, 23, 0.24);
}

.payment-drag-handle:hover,
.payment-drag-handle:focus-visible,
.payment-cart-button:hover,
.payment-cart-button:focus-visible {
    border-color: rgba(162, 15, 23, 0.28);
    background: rgba(255, 255, 255, 0.68);
    color: var(--payment-red);
    outline: none;
    box-shadow:
        0 8px 22px rgba(18, 18, 18, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.payment-drag-handle:active,
.payment-cart-button:active {
    transform: scale(0.96);
}

.payment-drag-handle:active {
    transform: scaleX(1.04) scaleY(0.96);
}

.payment-liquid-island[data-payment-state="pressed"] .payment-drag-handle,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-drag-handle {
    border-color: rgba(162, 15, 23, 0.3);
    color: var(--payment-red);
    box-shadow:
        0 0 0 7px rgba(162, 15, 23, 0.06),
        0 8px 22px rgba(18, 18, 18, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.payment-liquid-island[data-payment-state="pressed"] .payment-drag-handle,
.payment-liquid-island[data-payment-state="dragging"] .payment-drag-handle,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-drag-handle {
    transform: translate3d(var(--payment-handle-shift), 0, 0);
}

.payment-liquid-island[data-payment-state="dragging"] .payment-drag-handle {
    color: var(--payment-red);
    transition:
        box-shadow 240ms ease,
        transform 180ms var(--payment-ease);
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.26),
        0 10px 24px rgba(18, 18, 18, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.payment-liquid-island[data-payment-state="readyToPay"] .payment-liquid-progress {
    box-shadow:
        inset -1px 0 0 rgba(162, 15, 23, 0.24),
        14px 0 36px rgba(162, 15, 23, 0.14),
        0 8px 24px rgba(18, 18, 18, 0.1);
}

.payment-liquid-island[data-payment-state="success"] {
    animation: payment-success-pulse 720ms var(--payment-ease);
}

.payment-liquid-island[data-payment-locked="true"] {
    border-color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3) 48%, rgba(255, 255, 255, 0.5)),
        rgba(238, 238, 238, 0.48);
}

.payment-liquid-island[data-payment-locked="true"] .payment-drag-handle {
    border-color: rgba(18, 18, 18, 0.08);
    color: rgba(18, 18, 18, 0.36);
    cursor: pointer;
    box-shadow:
        0 4px 14px rgba(18, 18, 18, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.payment-liquid-island[data-payment-locked="true"] .payment-liquid-center strong {
    color: rgba(18, 18, 18, 0.62);
}

.payment-primary-action.is-locked {
    border-color: rgba(18, 18, 18, 0.1);
    background: rgba(18, 18, 18, 0.06);
    color: rgba(18, 18, 18, 0.48);
}

@keyframes payment-success-pulse {
    0%,
    100% {
        box-shadow:
            0 18px 46px rgba(20, 20, 20, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.96);
    }

    50% {
        box-shadow:
            0 18px 56px rgba(42, 117, 76, 0.18),
            0 0 0 8px rgba(42, 117, 76, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.96);
    }
}

@keyframes payment-track-shine {
    0%,
    58% {
        opacity: 0;
        transform: translateX(-130%) skewX(-14deg);
    }

    66% {
        opacity: 0.36;
    }

    82%,
    100% {
        opacity: 0;
        transform: translateX(130%) skewX(-14deg);
    }
}

@keyframes payment-handle-nudge {
    0%,
    62%,
    100% {
        transform: translate3d(var(--payment-handle-shift), 0, 0);
    }

    70% {
        transform: translate3d(calc(var(--payment-handle-shift) + 7px), 0, 0);
    }

    78% {
        transform: translate3d(calc(var(--payment-handle-shift) + 2px), 0, 0);
    }
}

.payment-liquid-center {
    position: relative;
    z-index: 2;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: var(--payment-ink);
    font: inherit;
    text-align: center;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    transition: transform 220ms var(--payment-ease);
    will-change: transform;
}

.payment-liquid-center:focus-visible {
    border-radius: 999px;
    outline: 1px solid rgba(162, 15, 23, 0.34);
    outline-offset: -5px;
}

.payment-liquid-center small,
.payment-liquid-center span {
    max-width: 100%;
    overflow: hidden;
    color: var(--payment-muted);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-liquid-center small {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-liquid-center strong {
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 400;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition:
        color 260ms ease,
        transform 340ms var(--payment-ease),
        opacity 260ms ease;
}

.payment-liquid-center span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: rgba(18, 18, 18, 0.6);
    font-size: clamp(13px, 1.6vw, 18px);
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(7px) scale(0.98);
    transition:
        color 260ms ease,
        opacity 260ms ease,
        transform 360ms var(--payment-ease);
}

.payment-liquid-island[data-payment-state="pressed"] .payment-liquid-center strong,
.payment-liquid-island[data-payment-state="dragging"] .payment-liquid-center strong,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-liquid-center strong {
    color: var(--payment-red);
    opacity: 0;
    transform: translateY(-7px) scale(0.94);
}

.payment-liquid-island[data-payment-state="pressed"] .payment-liquid-center span,
.payment-liquid-island[data-payment-state="dragging"] .payment-liquid-center span,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-liquid-center span {
    color: var(--payment-red);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.payment-liquid-island[data-payment-state="dragging"] .payment-liquid-center,
.payment-liquid-island[data-payment-state="readyToPay"] .payment-liquid-center {
    cursor: grabbing;
    transform: translateX(0);
}

.payment-liquid-island[data-payment-state="readyToPay"] .payment-liquid-center strong {
    transform: translateY(-7px) scale(0.94);
}

.payment-panel[hidden] {
    display: none !important;
}

.payment-panel {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: auto;
}

.payment-panel-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(248, 248, 248, 0.76);
    cursor: default;
    -webkit-backdrop-filter: blur(8px) saturate(102%);
    backdrop-filter: blur(8px) saturate(102%);
    animation: payment-fade-in 300ms ease both;
}

@keyframes payment-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.payment-panel-surface,
.payment-confirmation-surface,
.payment-status-surface {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 246, 246, 0.92)),
        rgba(248, 248, 248, 0.94);
    color: var(--payment-ink);
    -webkit-backdrop-filter: blur(12px) saturate(112%);
    backdrop-filter: blur(12px) saturate(112%);
    box-shadow:
        0 28px 90px rgba(18, 18, 18, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.payment-drawer .payment-panel-surface {
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: min(520px, calc(100vw - 24px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    animation: payment-drawer-in 480ms var(--payment-ease) both;
}

@keyframes payment-drawer-in {
    from {
        opacity: 0;
        transform: translateX(34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.payment-panel-header {
    position: relative;
    inset: auto;
    z-index: 2;
    width: auto;
    height: auto;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--payment-dark-line);
}

.payment-panel-header::before,
.payment-panel-header::after {
    content: none;
}

.payment-panel-header span,
.payment-confirmation-surface > span {
    color: var(--payment-red);
    font-size: 9px;
    font-weight: 500;
}

.payment-panel-header h2,
.payment-confirmation-surface h2,
.payment-status-surface h2 {
    margin: 5px 0 0;
    font-size: clamp(27px, 3.3vw, 42px);
    font-weight: 200;
    line-height: 0.98;
}

.payment-close-button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(18, 18, 18, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    color: var(--payment-ink);
    font: inherit;
    font-size: 30px;
    font-weight: 200;
    cursor: pointer;
    box-shadow:
        0 6px 18px rgba(18, 18, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.payment-close-button:hover,
.payment-close-button:focus-visible {
    border-color: rgba(162, 15, 23, 0.28);
    background: #ffffff;
    color: var(--payment-red);
    outline: none;
}

.payment-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 9px 10px;
    border-bottom: 1px solid var(--payment-dark-line);
    scrollbar-width: none;
    scroll-behavior: auto;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.payment-tabs::-webkit-scrollbar {
    display: none;
}

.payment-tabs button {
    min-width: 0;
    min-height: 40px;
    padding: 0 9px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--payment-muted);
    font: inherit;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    touch-action: pan-x;
    transition:
        color 220ms ease,
        background 220ms ease;
}

.payment-tabs button:hover,
.payment-tabs button:focus-visible,
.payment-tabs button.is-active {
    background: rgba(162, 15, 23, 0.07);
    color: var(--payment-red);
    outline: none;
}

.payment-panel-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 18, 18, 0.2) transparent;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.payment-cart-list,
.payment-history {
    display: grid;
}

.payment-cart-row,
.payment-history-row {
    min-width: 0;
    display: grid;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--payment-dark-line);
}

.payment-cart-row {
    transform-origin: center;
    will-change: transform;
}

.payment-cart-row.is-reordering {
    position: relative;
    z-index: 1;
}

.payment-cart-row:first-child,
.payment-history-row:first-child {
    padding-top: 2px;
}

.payment-cart-row:last-child,
.payment-history-row:last-child {
    border-bottom: 0;
}

.payment-cart-copy {
    min-width: 0;
}

.payment-cart-copy strong,
.payment-cart-copy span {
    display: block;
}

.payment-cart-copy strong,
.payment-history-row strong {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

.payment-cart-copy span,
.payment-history-row span,
.payment-history-row small {
    margin-top: 4px;
    color: var(--payment-muted);
    font-size: 10px;
    line-height: 1.35;
}

.payment-cart-meta {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) 34px;
    align-items: center;
    gap: 12px;
}

.payment-cart-row.is-unit .payment-cart-meta {
    grid-template-columns: 34px minmax(86px, 1fr) 34px 34px;
}

.payment-cart-unit {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--payment-dark-line);
    border-radius: 999px;
    color: var(--payment-red);
    font-size: 10px;
}

.payment-cart-meta > strong {
    justify-self: end;
    font-size: 13px;
    font-weight: 400;
}

.payment-quantity {
    height: 34px;
    display: inline-grid;
    grid-template-columns: 34px 30px 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--payment-dark-line);
    border-radius: 6px;
}

.payment-cart-calc-button,
.payment-quantity button,
.payment-remove {
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--payment-ink);
    font: inherit;
    cursor: pointer;
}

.payment-cart-calc-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(162, 15, 23, 0.26);
    border-radius: 999px;
    color: var(--payment-red);
    background: rgba(255, 255, 255, 0.52);
}

.payment-cart-calc-button.is-complete {
    border-color: var(--payment-red);
    background: var(--payment-red);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(162, 15, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.payment-cart-calc-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payment-quantity button:hover,
.payment-quantity button:focus-visible,
.payment-cart-calc-button:hover,
.payment-cart-calc-button:focus-visible,
.payment-remove:hover,
.payment-remove:focus-visible {
    color: var(--payment-red);
    outline: none;
}

.payment-cart-calc-button.is-complete:hover,
.payment-cart-calc-button.is-complete:focus-visible {
    color: #fff;
}

.payment-quantity span {
    color: var(--payment-ink);
    font-size: 11px;
    text-align: center;
}

.payment-remove {
    width: 34px;
    font-size: 22px;
    font-weight: 200;
}

.payment-empty-state {
    min-height: 220px;
    display: grid;
    place-content: center;
    gap: 8px;
    color: var(--payment-muted);
    text-align: center;
}

.payment-empty-state strong {
    color: var(--payment-ink);
    font-size: 22px;
    font-weight: 300;
}

.payment-empty-state span {
    max-width: 260px;
    font-size: 11px;
    line-height: 1.4;
}

.payment-promo {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--payment-dark-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
}

.payment-quantity {
    grid-template-columns: 32px 28px 32px;
}

.payment-quantity button {
    font-size: 9px;
}

@media (max-width: 680px) {
    .payment-quantity {
        height: 36px;
        grid-template-columns: 34px 28px 34px;
    }
}

.payment-promo-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.payment-promo-heading > div {
    display: grid;
    gap: 3px;
}

.payment-promo-heading span {
    color: var(--payment-red);
    font-size: 8px;
    font-weight: 500;
}

.payment-promo-heading strong {
    font-size: 18px;
    font-weight: 350;
}

.payment-promo-remove {
    min-height: 32px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--payment-muted);
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}

.payment-promo-remove:hover,
.payment-promo-remove:focus-visible {
    color: var(--payment-red);
    outline: none;
}

.payment-promo-control {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.payment-promo-control input {
    min-width: 0;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--payment-dark-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--payment-ink);
    font: inherit;
    font-size: 12px;
    text-transform: uppercase;
}

.payment-promo-control input:focus {
    border-color: rgba(162, 15, 23, 0.34);
    outline: none;
    box-shadow: 0 0 0 4px rgba(162, 15, 23, 0.045);
}

.payment-promo-control button {
    min-width: 92px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(162, 15, 23, 0.24);
    border-radius: 7px;
    background: rgba(162, 15, 23, 0.07);
    color: var(--payment-red);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.payment-promo-control button:hover,
.payment-promo-control button:focus-visible {
    border-color: rgba(162, 15, 23, 0.4);
    background: rgba(162, 15, 23, 0.11);
    outline: none;
}

.payment-promo-status {
    min-height: 14px;
    margin: 0;
    color: var(--payment-muted);
    font-size: 9px;
    line-height: 1.35;
}

.payment-promo-status[data-status="applied"],
.payment-promo-status[data-status="already"] {
    color: #286848;
}

.payment-promo-status[data-status="invalid"],
.payment-promo-status[data-status="empty"] {
    color: var(--payment-red);
}

.payment-promo-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--payment-dark-line);
    border-radius: 7px;
}

.payment-promo-summary > div {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 11px;
    border-right: 1px solid var(--payment-dark-line);
}

.payment-promo-summary > div:last-child {
    border-right: 0;
}

.payment-promo-summary span {
    color: var(--payment-muted);
    font-size: 8px;
}

.payment-promo-summary strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-promo-summary > div:nth-child(2) strong {
    color: var(--payment-red);
}

.payment-history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.payment-history-row > div:last-child {
    display: grid;
    justify-items: end;
}

.payment-status-chip {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(42, 117, 76, 0.18);
    border-radius: 999px;
    background: rgba(42, 117, 76, 0.07);
    color: #286848 !important;
    font-size: 9px !important;
}

.payment-drawer-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--payment-dark-line);
    background: rgba(255, 255, 255, 0.34);
}

.payment-drawer-footer > div {
    min-width: 0;
    display: grid;
    align-content: center;
    grid-row: span 2;
}

.payment-drawer-footer span,
.payment-total-line span,
.payment-calculation span {
    color: var(--payment-muted);
    font-size: 9px;
}

.payment-drawer-footer strong {
    margin-top: 3px;
    font-size: 19px;
    font-weight: 400;
}

.payment-primary-action,
.payment-secondary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--payment-dark-line);
    border-radius: 7px;
    color: var(--payment-ink);
    font: inherit;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition:
        color 220ms ease,
        background 220ms ease,
        border-color 220ms ease,
        transform 280ms var(--payment-ease);
}

.payment-primary-action {
    border-color: rgba(162, 15, 23, 0.24);
    background: var(--payment-red);
    color: #ffffff;
}

.payment-secondary-action {
    background: rgba(255, 255, 255, 0.42);
}

.payment-primary-action:hover,
.payment-primary-action:focus-visible,
.payment-secondary-action:hover,
.payment-secondary-action:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.payment-primary-action:hover,
.payment-primary-action:focus-visible {
    background: #890c13;
}

.payment-secondary-action:hover,
.payment-secondary-action:focus-visible {
    border-color: rgba(162, 15, 23, 0.25);
    color: var(--payment-red);
}

.payment-primary-action:disabled {
    opacity: 0.38;
    cursor: default;
    transform: none;
}

.payment-promo-panel {
    display: grid;
    place-items: center;
    padding: 16px;
}

.payment-promo-surface {
    position: relative;
    width: min(620px, calc(100vw - 32px));
    max-height: min(86dvh, 680px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    animation: payment-modal-in 460ms var(--payment-ease) both;
}

.payment-promo-surface > .payment-panel-header {
    grid-row: 1;
}

.payment-promo-surface > .payment-panel-scroll {
    position: relative;
    grid-row: 2;
}

.payment-promo-panel .payment-promo {
    margin-top: 0;
}

.payment-promo-note {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 14px 4px 0;
    border-top: 1px solid var(--payment-dark-line);
}

.payment-promo-note span {
    color: var(--payment-muted);
    font-size: 8px;
    text-transform: uppercase;
}

.payment-promo-note strong {
    color: var(--payment-ink);
    font-size: 11px;
    font-weight: 400;
}

@keyframes payment-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--payment-dark-line);
}

.payment-total-line strong {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 300;
}

.payment-option-grid,
.payment-method-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.payment-option-grid legend,
.payment-method-list legend {
    grid-column: 1 / -1;
    margin-bottom: 3px;
    color: var(--payment-muted);
    font-size: 10px;
}

.payment-option-grid label,
.payment-method-list label {
    position: relative;
    min-width: 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--payment-dark-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition:
        border-color 220ms ease,
        background 220ms ease,
        transform 280ms var(--payment-ease);
}

.payment-option-grid label:hover,
.payment-method-list label:hover,
.payment-option-grid label:has(input:focus-visible),
.payment-method-list label:has(input:focus-visible),
.payment-option-grid label:has(input:checked),
.payment-method-list label:has(input:checked) {
    border-color: rgba(162, 15, 23, 0.28);
    background: rgba(162, 15, 23, 0.055);
    transform: translateY(-1px);
}

.payment-option-grid input,
.payment-method-list input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.payment-option-grid span,
.payment-method-list span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.payment-option-grid strong,
.payment-method-list strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-option-grid small,
.payment-method-list small {
    overflow: hidden;
    color: var(--payment-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-option-grid label::after,
.payment-method-list i {
    content: "";
    width: 16px;
    height: 16px;
    border: 1px solid rgba(18, 18, 18, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.74);
    transition:
        border-color 220ms ease,
        background 220ms ease;
}

.payment-option-grid label:has(input:checked)::after,
.payment-method-list label:has(input:checked) i {
    border-color: var(--payment-red);
    background: var(--payment-red);
}

.payment-custom-amount {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.payment-custom-amount span {
    color: var(--payment-muted);
    font-size: 10px;
}

.payment-custom-amount input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--payment-dark-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--payment-ink);
    font: inherit;
    font-size: 14px;
}

.payment-custom-amount input:focus {
    border-color: rgba(162, 15, 23, 0.32);
    outline: none;
}

.payment-calculation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--payment-dark-line);
    border-radius: 7px;
    background: var(--payment-dark-line);
}

.payment-calculation > div {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.payment-calculation strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-partial-footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--payment-dark-line);
}

.payment-partial-footer .payment-primary-action {
    min-width: 210px;
}

.payment-confirmation,
.payment-status-panel {
    display: grid;
    place-items: center;
    padding: 16px;
}

.payment-confirmation-surface,
.payment-status-surface {
    position: relative;
    width: min(460px, calc(100vw - 32px));
    padding: clamp(24px, 5vw, 42px);
    text-align: center;
    animation: payment-modal-in 420ms var(--payment-ease) both;
}

.payment-confirmation-surface h2 {
    margin-top: 8px;
}

.payment-confirmation-amount {
    margin: 28px 0 12px;
    color: var(--payment-red);
    font-size: clamp(38px, 7vw, 58px);
    font-weight: 200;
    line-height: 0.95;
}

.payment-confirmation-surface p,
.payment-status-surface p {
    margin: 8px 0 0;
    color: var(--payment-muted);
    font-size: 11px;
    line-height: 1.45;
}

.payment-confirmation-surface p strong {
    color: var(--payment-ink);
    font-weight: 400;
}

.payment-demo-note {
    max-width: 340px;
    margin: 20px auto 0 !important;
}

.payment-legal-consent {
    max-width: 360px;
    display: grid;
    gap: 10px;
    margin: 18px auto 0;
    padding: 12px;
    border: 1px solid var(--payment-dark-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    text-align: left;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.payment-legal-consent.is-error {
    border-color: rgba(162, 15, 23, 0.58);
    background: rgba(255, 248, 248, 0.74);
    box-shadow: 0 0 0 4px rgba(162, 15, 23, 0.08);
}

.payment-legal-consent-control {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--payment-ink);
    font-size: 11px;
    line-height: 1.35;
    cursor: pointer;
}

.payment-legal-consent-control input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--payment-red);
    cursor: pointer;
}

.payment-legal-consent-control span {
    min-width: 0;
}

.payment-legal-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-left: 28px;
}

.payment-legal-consent-links button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--payment-red);
    font: inherit;
    font-size: 10px;
    line-height: 1.2;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.payment-legal-consent-links button:hover,
.payment-legal-consent-links button:focus-visible {
    color: #6f050c;
}

.payment-legal-consent-status {
    margin: 0 !important;
    padding-left: 28px;
    color: var(--payment-red) !important;
    font-size: 10px !important;
}

.payment-confirmation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 28px;
}

.payment-status-surface {
    display: grid;
    justify-items: center;
}

.payment-status-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(162, 15, 23, 0.18);
    border-radius: 50%;
    background: rgba(162, 15, 23, 0.055);
}

.payment-status-mark span {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(162, 15, 23, 0.18);
    border-top-color: var(--payment-red);
    border-radius: 50%;
    animation: payment-spin 800ms linear infinite;
}

.payment-status-panel[data-status="success"] .payment-status-mark {
    border-color: rgba(42, 117, 76, 0.18);
    background: rgba(42, 117, 76, 0.07);
}

.payment-status-panel[data-status="success"] .payment-status-mark span {
    width: 20px;
    height: 11px;
    border: 0;
    border-bottom: 2px solid #286848;
    border-left: 2px solid #286848;
    border-radius: 0;
    transform: rotate(-45deg) translate(1px, -2px);
    animation: none;
}

.payment-status-panel[data-status="error"] .payment-status-mark span {
    width: 2px;
    height: 24px;
    border: 0;
    border-radius: 2px;
    background: var(--payment-red);
    animation: none;
}

.payment-status-panel[data-status="error"] .payment-status-mark span::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 24px;
    border-radius: 2px;
    background: var(--payment-red);
    transform: rotate(90deg);
}

@keyframes payment-spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-status-surface .payment-primary-action,
.payment-status-surface .payment-secondary-action {
    min-width: 170px;
    margin-top: 24px;
}

body.payment-panel-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .payment-liquid-island {
        width: min(600px, calc(100vw - 28px));
        bottom: calc(var(--order-footer-space) + 12px);
    }

    .payment-liquid-island {
        height: 86px;
    }

    .payment-liquid-track {
        grid-template-columns: 72px minmax(0, 1fr) 72px;
    }

    .payment-drag-handle,
    .payment-cart-button {
        width: 72px;
        height: 72px;
    }

    .payment-tabs {
        grid-auto-columns: max-content;
        justify-content: start;
        gap: 8px;
        padding-inline: 8px;
    }

    .payment-tabs button {
        min-width: 112px;
        min-height: 34px;
        padding-inline: 13px;
        touch-action: pan-x;
    }

    .payment-panel-scroll,
    .payment-panel-scroll * {
        touch-action: pan-y pinch-zoom;
    }
}

@media (max-width: 680px) {
    .payment-liquid-island {
        bottom: calc(var(--order-footer-space) + 8px);
        width: calc(100vw - 20px);
    }

    .payment-liquid-island {
        height: 76px;
    }

    .payment-liquid-track {
        grid-template-columns: 62px minmax(0, 1fr) 62px;
        gap: 5px;
        padding: 6px;
    }

    .payment-drag-handle,
    .payment-cart-button {
        width: 62px;
        height: 62px;
    }

    .payment-handle-percent {
        font-size: 19px;
    }

    .payment-handle-arrow {
        font-size: 25px;
    }

    .payment-cart-button svg {
        width: 24px;
        height: 24px;
    }

    .payment-liquid-center {
        padding-inline: 3px;
    }

    .payment-liquid-center strong {
        font-size: clamp(17px, 5.4vw, 22px);
    }

    .payment-liquid-center small,
    .payment-liquid-center span {
        font-size: clamp(10px, 2.8vw, 12px);
    }

    .payment-drawer .payment-panel-surface,
    .payment-promo-surface {
        top: auto;
        right: 6px;
        bottom: 6px;
        left: 6px;
        width: auto;
        max-height: calc(100dvh - 12px);
        border-radius: 8px;
        background: #ffffff;
        animation-name: payment-sheet-in;
    }

    .payment-drawer .payment-panel-surface {
        height: min(88dvh, 760px);
    }

    .payment-promo-surface {
        height: auto;
    }

    @keyframes payment-sheet-in {
        from {
            opacity: 0;
            transform: translateY(34px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .payment-panel-header {
        min-height: 78px;
        padding: 14px 16px;
    }

    .payment-panel-header h2 {
        font-size: 28px;
    }

    .payment-close-button {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }

    .payment-panel-scroll {
        padding: 18px 16px 24px;
    }

    .payment-promo {
        margin-top: 18px;
        padding: 14px;
    }

    .payment-promo-summary {
        grid-template-columns: 1fr;
    }

    .payment-promo-summary > div {
        grid-template-columns: 1fr auto;
        align-items: baseline;
        border-right: 0;
        border-bottom: 1px solid var(--payment-dark-line);
    }

    .payment-promo-summary > div:last-child {
        border-bottom: 0;
    }

    .payment-cart-meta {
        grid-template-columns: 32px minmax(72px, 1fr) 32px 32px;
        gap: 8px;
    }

    .payment-cart-row.is-unit .payment-cart-meta {
        grid-template-columns: 32px minmax(72px, 1fr) 32px 32px;
    }

    .payment-cart-calc-button,
    .payment-remove,
    .payment-cart-unit {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    .payment-quantity {
        grid-template-columns: 31px 27px 31px;
    }

    .payment-drawer-footer {
        grid-template-columns: 1fr 1fr;
        padding-inline: 12px;
    }

    .payment-drawer-footer > div {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: 1fr auto;
        align-items: baseline;
        padding: 0 4px 4px;
    }

    .payment-option-grid,
    .payment-method-list {
        grid-template-columns: 1fr;
    }

    .payment-partial-footer {
        padding-inline: 16px;
    }

    .payment-partial-footer .payment-primary-action {
        width: 100%;
    }

    .payment-calculation strong {
        font-size: 15px;
    }

    .order-cookie {
        bottom: var(--order-cookie-bottom);
    }
}

@media (max-width: 390px) {
    .payment-liquid-island {
        width: calc(100vw - 14px);
    }

    .payment-liquid-track {
        grid-template-columns: 58px minmax(0, 1fr) 58px;
    }

    .payment-drag-handle,
    .payment-cart-button {
        width: 58px;
        height: 58px;
    }

    .payment-liquid-center strong {
        font-size: 17px;
    }

    .payment-liquid-center span {
        display: flex;
        font-size: clamp(9.5px, 3vw, 11px);
        letter-spacing: 0;
    }

    .payment-tabs {
        gap: 6px;
        padding-inline: 6px;
    }

    .payment-tabs button {
        min-width: 96px;
        min-height: 32px;
        padding-inline: 10px;
        font-size: 8px;
    }

    .payment-confirmation-actions,
    .payment-calculation {
        grid-template-columns: 1fr;
    }

    .payment-promo-control {
        grid-template-columns: 1fr;
    }

    .payment-promo-control button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .payment-liquid-root,
    .payment-liquid-island,
    .payment-liquid-track::after,
    .payment-liquid-progress,
    .payment-drag-handle,
    .payment-cart-button,
    .payment-panel-backdrop,
    .payment-panel-surface,
    .payment-confirmation-surface,
    .payment-status-surface,
    .payment-primary-action,
    .payment-secondary-action,
    .payment-option-grid label,
    .payment-method-list label {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }

    .payment-liquid-track::after,
    .payment-liquid-island[data-payment-state="idle"] .payment-drag-handle {
        animation: none !important;
    }

    .payment-status-mark span {
        animation-duration: 1.8s;
    }
}

.payment-quantity {
    grid-template-columns: 32px 28px 32px;
}

@media (max-width: 680px) {
    .payment-quantity {
        height: 36px;
        grid-template-columns: 34px 28px 34px;
    }
}

@media (max-width: 390px) and (max-height: 700px) {
    .order-cookie {
        top: auto;
        bottom: var(--order-cookie-bottom);
    }

    .payment-liquid-island {
        bottom: calc(var(--order-footer-space) + 4px);
        width: calc(100vw - 12px);
        height: 64px;
    }

    .payment-liquid-track {
        grid-template-columns: 50px minmax(0, 1fr) 50px;
        gap: 4px;
        padding: 5px;
    }

    .payment-drag-handle,
    .payment-cart-button {
        width: 50px;
        height: 50px;
    }

    .payment-handle-percent {
        font-size: 16px;
    }

    .payment-handle-arrow {
        font-size: 21px;
    }

    .payment-cart-button svg {
        width: 21px;
        height: 21px;
    }

    .payment-cart-button > span {
        min-width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .payment-liquid-center strong {
        font-size: 15px;
    }

    .payment-liquid-center small,
    .payment-liquid-center span {
        font-size: 8.5px;
    }
}
