.flr-cart-fab.vg-palette-fab {
    position: fixed;
    bottom: calc(var(--vg-orbit-h) + 0.75rem + var(--vg-safe-bottom));
    left: calc(1rem + env(safe-area-inset-left, 0px));
    z-index: 4000;
    width: 58px;
    height: 58px;
    border: 2px solid var(--vg-gold);
    background: var(--vg-deep);
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: var(--flr-shadow-gold);
    transition: var(--vg-transition);
}

.vg-palette-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--vg-midnight);
    background: var(--vg-moon);
    display: grid;
    place-items: center;
    border-radius: var(--vg-r-pill);
}

.flr-order-drawer.vg-atelier-sheet {
    position: fixed;
    inset: 0;
    z-index: 5000;
    pointer-events: none;
    isolation: isolate;
}

.flr-order-drawer.vg-atelier-sheet.is-open { pointer-events: auto; }

.vg-atelier-sheet__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--flr-overlay);
    opacity: 0;
    transition: opacity var(--vg-transition);
}

.flr-order-drawer.is-open .vg-atelier-sheet__veil { opacity: 1; }

.flr-order-drawer__panel.vg-atelier-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    max-height: min(90dvh, 680px);
    background: linear-gradient(180deg, var(--vg-deep), var(--vg-midnight));
    border: 2px solid var(--vg-border);
    border-bottom: none;
    border-radius: var(--vg-r-xl) var(--vg-r-xl) 0 0;
    transform: translateY(100%);
    transition: transform var(--vg-transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flr-order-drawer.is-open .vg-atelier-sheet__panel { transform: translateY(0); }

.vg-atelier-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-bottom: 1px dashed var(--vg-border);
    flex-shrink: 0;
}

.vg-atelier-sheet__kicker {
    font-family: var(--vg-font-display);
    font-style: italic;
    font-size: 0.8rem;
    color: var(--vg-gold);
}

.vg-atelier-sheet__head h2 {
    margin: 0.15rem 0 0;
    font-family: var(--vg-font-display);
    font-size: 1.2rem;
    color: var(--vg-moon);
}

.vg-atelier-sheet__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--vg-border);
    background: var(--vg-prussian);
    color: var(--vg-moon);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--vg-transition);
}

.vg-atelier-sheet__close:hover,
.vg-atelier-sheet__close:focus-visible {
    border-color: var(--vg-gold);
    background: var(--vg-gold);
    color: var(--vg-midnight);
    box-shadow: var(--flr-shadow-gold);
}

.flr-cart-fab.vg-palette-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--flr-shadow-gold), 0 0 24px color-mix(in srgb, var(--vg-gold) 35%, transparent);
}

.vg-atelier-sheet__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem calc(1.25rem + var(--vg-safe-bottom));
}

.flr-order-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem;
    margin-bottom: 0.5rem;
    border: 1px dashed var(--vg-border);
    background: color-mix(in srgb, var(--vg-prussian) 50%, transparent);
    border-radius: var(--vg-r-md);
}

.flr-order-item__img { width: 52px; height: 52px; overflow: hidden; border: 1px solid var(--vg-border); border-radius: var(--vg-r-sm); }
.flr-order-item__img img { width: 100%; height: 100%; object-fit: cover; }
.flr-order-item__title { margin: 0; font-family: var(--vg-font-display); font-size: 0.92rem; color: var(--vg-moon); }
.flr-order-item__price { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--vg-gold); font-style: italic; }
.flr-order-item__meta { min-width: 0; }

/* Cart qty buttons */
.flr-order-drawer.vg-atelier-sheet .flr-order-item .flr-qty.vg-qty,
.flr-order-drawer.vg-atelier-sheet .vg-order-card__qty {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem;
    border: 1px solid var(--vg-border);
    background: var(--vg-midnight);
    border-radius: var(--vg-r-pill);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--vg-cream) 8%, transparent);
}

.flr-order-drawer.vg-atelier-sheet .flr-order-item .flr-qty__btn.vg-qty__btn,
.flr-order-drawer.vg-atelier-sheet .vg-order-card__qty .flr-qty__btn {
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--vg-cobalt) 55%, transparent);
    color: var(--vg-moon);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--vg-transition);
    -webkit-tap-highlight-color: transparent;
}

.flr-order-drawer.vg-atelier-sheet .flr-order-item .flr-qty__btn.vg-qty__btn:hover,
.flr-order-drawer.vg-atelier-sheet .flr-order-item .flr-qty__btn.vg-qty__btn:focus-visible,
.flr-order-drawer.vg-atelier-sheet .vg-order-card__qty .flr-qty__btn:hover,
.flr-order-drawer.vg-atelier-sheet .vg-order-card__qty .flr-qty__btn:focus-visible {
    background: var(--vg-gold);
    color: var(--vg-midnight);
}

.flr-order-drawer.vg-atelier-sheet .flr-order-item .flr-qty__value.vg-qty__val,
.flr-order-drawer.vg-atelier-sheet .vg-order-card__qty .flr-qty__value {
    min-width: 1.5rem;
    text-align: center;
    font-family: var(--vg-font-ui);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--vg-moon);
}

.flr-order-drawer.vg-atelier-sheet .flr-qty__btn i {
    pointer-events: none;
    font-size: 0.68rem;
}

.vg-atelier-sheet__empty {
    padding: 1rem 0;
    text-align: center;
    font-style: italic;
    color: var(--vg-muted);
}

.vg-atelier-sheet__total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1rem;
    border: 2px solid var(--vg-gold);
    font-family: var(--vg-font-display);
    border-radius: var(--vg-r-md);
}

.vg-atelier-sheet__total strong { color: var(--vg-moon); font-size: 1.05rem; }

/* Form fields */
.flr-order-drawer.vg-atelier-sheet .vg-field {
    margin-bottom: 1rem;
}

.flr-order-drawer.vg-atelier-sheet .vg-field label,
.flr-order-drawer.vg-atelier-sheet .flr-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--vg-font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vg-muted);
}

.flr-order-drawer.vg-atelier-sheet .vg-input {
    width: 100%;
    padding: 0.72rem 1rem;
    font-family: var(--vg-font-ui);
    font-size: 0.95rem;
    color: var(--vg-cream);
    background: color-mix(in srgb, var(--vg-deep) 92%, black);
    border: 2px solid var(--vg-border);
    border-radius: var(--vg-r-md);
    outline: none;
    transition: border-color var(--vg-transition), box-shadow var(--vg-transition), background var(--vg-transition);
}

.flr-order-drawer.vg-atelier-sheet .vg-input::placeholder {
    color: color-mix(in srgb, var(--vg-muted) 80%, transparent);
}

.flr-order-drawer.vg-atelier-sheet .vg-input:focus {
    border-color: var(--vg-gold);
    background: color-mix(in srgb, var(--vg-prussian) 85%, black);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vg-gold) 18%, transparent);
}

.flr-order-drawer.vg-atelier-sheet .vg-input--area {
    resize: vertical;
    min-height: 72px;
}

/* Order type radios */
.flr-order-drawer.vg-atelier-sheet .flr-order-types.vg-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.65rem;
    border: 1px dashed var(--vg-border);
    border-radius: var(--vg-r-lg);
    background: color-mix(in srgb, var(--vg-prussian) 65%, transparent);
}

.flr-order-drawer.vg-atelier-sheet .flr-order-type.vg-mode {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.flr-order-drawer.vg-atelier-sheet .flr-order-type__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    appearance: none;
    -webkit-appearance: none;
}

.flr-order-drawer.vg-atelier-sheet .flr-order-type__face,
.flr-order-drawer.vg-atelier-sheet .vg-mode__face {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0.62rem 0.4rem;
    text-align: center;
    font-family: var(--vg-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--vg-cream);
    border: 1px solid var(--vg-border);
    background: var(--vg-prussian);
    cursor: pointer;
    user-select: none;
    border-radius: var(--vg-r-md);
    transition: var(--vg-transition);
}

.flr-order-drawer.vg-atelier-sheet .flr-order-type:hover .vg-mode__face,
.flr-order-drawer.vg-atelier-sheet .flr-order-type:hover .flr-order-type__face {
    border-color: color-mix(in srgb, var(--vg-gold) 55%, var(--vg-border));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vg-gold) 25%, transparent);
    transform: translateY(-1px);
}

.flr-order-drawer.vg-atelier-sheet .flr-order-type__input:checked + .vg-mode__face,
.flr-order-drawer.vg-atelier-sheet .flr-order-type__input:checked + .flr-order-type__face {
    border-color: var(--vg-gold);
    background: linear-gradient(135deg, color-mix(in srgb, var(--vg-gold) 28%, var(--vg-prussian)), var(--vg-prussian));
    color: var(--vg-moon);
    box-shadow: var(--flr-shadow-gold);
    transform: none;
}

.flr-order-drawer.vg-atelier-sheet .flr-order-type__input:focus-visible + .vg-mode__face,
.flr-order-drawer.vg-atelier-sheet .flr-order-type__input:focus-visible + .flr-order-type__face {
    outline: 2px solid var(--vg-gold);
    outline-offset: 2px;
}

/* Numeric stepper */
.flr-order-drawer.vg-atelier-sheet .vg-number-stepper {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    border: 2px solid var(--vg-border);
    border-radius: var(--vg-r-md);
    overflow: hidden;
    background: color-mix(in srgb, var(--vg-deep) 92%, black);
}

.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__btn {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: color-mix(in srgb, var(--vg-cobalt) 45%, var(--vg-deep));
    color: var(--vg-moon);
    font-family: var(--vg-font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--vg-transition);
    -webkit-tap-highlight-color: transparent;
}

.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__btn:hover,
.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__btn:focus-visible {
    background: var(--vg-gold);
    color: var(--vg-midnight);
}

.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.65rem 0.35rem;
    border: none;
    border-radius: 0;
    border-inline: 1px solid var(--vg-border);
    background: transparent;
    text-align: center;
    font-family: var(--vg-font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vg-cream);
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__input:focus {
    outline: none;
    background: color-mix(in srgb, var(--vg-prussian) 70%, transparent);
    box-shadow: inset 0 0 0 1px var(--vg-gold);
}

.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__input::-webkit-outer-spin-button,
.flr-order-drawer.vg-atelier-sheet .vg-number-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Captcha row + action buttons */
.flr-order-drawer.vg-atelier-sheet .vg-captcha {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.flr-order-drawer.vg-atelier-sheet .vg-captcha__refresh {
    min-height: 44px;
    min-width: 44px;
    width: auto;
    padding: 0 0.9rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.flr-order-drawer.vg-atelier-sheet .vg-atelier-sheet__form .flr-order-submit {
    width: 100%;
    margin-top: 0.65rem;
}

.flr-order-drawer.vg-atelier-sheet .flr-order-form__note {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--vg-muted);
    font-style: italic;
    line-height: 1.55;
}

.flr-order-drawer.vg-atelier-sheet .flr-order-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vg-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.vg-mode__face {
    display: block;
    padding: 0.55rem 0.35rem;
    text-align: center;
    font-size: 0.78rem;
    border: 1px solid var(--vg-border);
    background: var(--vg-prussian);
    cursor: pointer;
    border-radius: var(--vg-r-md);
    transition: var(--vg-transition);
}

.flr-order-type:has(input:checked) .vg-mode__face {
    border-color: var(--vg-gold);
    background: color-mix(in srgb, var(--vg-gold) 15%, var(--vg-prussian));
    color: var(--vg-moon);
}

.vg-captcha { display: flex; gap: 0.5rem; }
.vg-captcha .vg-input { flex: 1; }

.vg-note.is-error {
    padding: 0.65rem;
    border: 1px solid #c45c26;
    color: #f0c0a0;
    font-style: italic;
    border-radius: var(--vg-r-md);
}

.vg-note.is-success {
    padding: 0.65rem;
    border: 1px solid var(--vg-emerald);
    color: #a8e0b8;
    border-radius: var(--vg-r-md);
}

.flr-order-toast.vg-toast {
    position: fixed;
    bottom: calc(var(--vg-orbit-h) + 5rem + var(--vg-safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 5100;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--vg-gold);
    background: var(--vg-deep);
    color: var(--vg-moon);
    font-style: italic;
    opacity: 0;
    transition: opacity var(--vg-transition);
    border-radius: var(--vg-r-pill);
}

.flr-order-toast.vg-toast.is-visible { opacity: 1; }

.is-hidden { display: none !important; }

@media (max-width: 480px) {
    .flr-order-drawer.vg-atelier-sheet .flr-order-types.vg-modes,
    .vg-modes { grid-template-columns: 1fr; }
    .flr-order-item {
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
    }
    .flr-order-item__img { grid-row: 1 / 3; }
    .flr-order-item .flr-qty { grid-column: 2; justify-self: end; }
}
