/**
 * Quick Order - Styles
 *
 * Suporta 3 layouts:
 * - Drawer: Painel lateral (desktop) / Bottom sheet (mobile)
 * - Modal: Caixa centralizada (estilo Pede Ai)
 * - Fullscreen: Tela inteira (estilo Anota Ai)
 */

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
    --qo-width: 420px;
    --qo-modal-width: 500px;
    --qo-max-height: 90vh;
    --qo-bg: #ffffff;
    --qo-overlay-bg: rgba(0, 0, 0, 0.5);
    --qo-primary: #10B981;
    --qo-primary-hover: #059669;
    --qo-text: #1F2937;
    --qo-text-muted: #6B7280;
    --qo-border: #E5E7EB;
    --qo-radius: 12px;
    --qo-radius-lg: 16px;
    --qo-radius-sm: 8px;
    --qo-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --qo-shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    --qo-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --qo-header-height: 60px;
    --qo-footer-height: 80px;
}

/* =====================================================
   OVERLAY (Shared)
   ===================================================== */
.tuh-quick-order-overlay {
    position: fixed;
    inset: 0;
    background: var(--qo-overlay-bg);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--qo-transition), visibility var(--qo-transition);
}

.tuh-quick-order-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   BASE CONTAINER
   ===================================================== */
.tuh-quick-order {
    position: fixed;
    z-index: 99999;
    background: var(--qo-bg);
    display: flex;
    flex-direction: column;
    contain: layout style;
}

.tuh-quick-order[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}

.tuh-quick-order[aria-hidden="false"],
.tuh-quick-order.active {
    visibility: visible;
    pointer-events: auto;
}

/* =====================================================
   HEADER (Shared)
   ===================================================== */
.tuh-quick-order__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--qo-header-height);
    min-height: var(--qo-header-height);
    border-bottom: 1px solid var(--qo-border);
    background: var(--qo-bg);
    flex-shrink: 0;
}

.tuh-quick-order__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--qo-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.tuh-quick-order__close,
.tuh-quick-order__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--qo-text-muted);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.tuh-quick-order__close:hover,
.tuh-quick-order__back:hover {
    background: var(--qo-border);
    color: var(--qo-text);
}

/* =====================================================
   BODY (Shared)
   ===================================================== */
.tuh-quick-order__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* =====================================================
   FOOTER (Shared)
   ===================================================== */
.tuh-quick-order__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    min-height: var(--qo-footer-height);
    border-top: 1px solid var(--qo-border);
    background: var(--qo-bg);
    flex-shrink: 0;
}

.tuh-quick-order__total {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tuh-quick-order__total-label {
    font-size: 0.75rem;
    color: var(--qo-text-muted);
}

.tuh-quick-order__total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--qo-text);
}

.tuh-quick-order__submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--qo-primary);
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
}

.tuh-quick-order__submit:hover:not(:disabled) {
    background: var(--qo-primary-hover);
}

.tuh-quick-order__submit:active:not(:disabled) {
    transform: scale(0.98);
}

.tuh-quick-order__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tuh-quick-order__submit-loading {
    display: none;
}

.tuh-quick-order__submit.loading .tuh-quick-order__submit-text {
    display: none;
}

.tuh-quick-order__submit.loading .tuh-quick-order__submit-loading {
    display: flex;
}

.tuh-quick-order__submit .spinner {
    animation: qo-spin 1s linear infinite;
}

@keyframes qo-spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   LAYOUT: DRAWER
   ===================================================== */
.tuh-quick-order--drawer {
    top: 0;
    right: 0;
    width: var(--qo-width);
    max-width: 100%;
    height: 100%;
    box-shadow: var(--qo-shadow);
    transform: translateX(100%);
    transition: transform var(--qo-transition);
}

.tuh-quick-order--drawer.tuh-quick-order--left {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

.tuh-quick-order--drawer.active,
.tuh-quick-order--drawer[aria-hidden="false"] {
    transform: translateX(0);
}

/* Drawer Mobile - Bottom Sheet */
@media (max-width: 640px) {
    .tuh-quick-order--drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: var(--qo-max-height);
        border-radius: var(--qo-radius-lg) var(--qo-radius-lg) 0 0;
        transform: translateY(100%);
    }

    .tuh-quick-order--drawer.tuh-quick-order--left {
        transform: translateY(100%);
    }

    .tuh-quick-order--drawer.active,
    .tuh-quick-order--drawer[aria-hidden="false"] {
        transform: translateY(0);
    }

    /* Handle bar */
    .tuh-quick-order--drawer .tuh-quick-order__header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--qo-border);
        border-radius: 9999px;
    }

    .tuh-quick-order--drawer .tuh-quick-order__header {
        position: relative;
        padding-top: 24px;
    }

    .tuh-quick-order--drawer .tuh-quick-order__body {
        max-height: calc(var(--qo-max-height) - var(--qo-header-height) - var(--qo-footer-height));
    }

    .tuh-quick-order--drawer .tuh-quick-order__footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* =====================================================
   LAYOUT: MODAL
   ===================================================== */
.tuh-quick-order--modal {
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--qo-transition);
}

.tuh-quick-order--modal.active,
.tuh-quick-order--modal[aria-hidden="false"] {
    opacity: 1;
}

.tuh-quick-order--modal .tuh-quick-order__modal-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--qo-modal-width);
    max-height: var(--qo-max-height);
    background: var(--qo-bg);
    border-radius: var(--qo-radius-lg);
    box-shadow: var(--qo-shadow-modal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--qo-transition);
}

.tuh-quick-order--modal.active .tuh-quick-order__modal-wrapper,
.tuh-quick-order--modal[aria-hidden="false"] .tuh-quick-order__modal-wrapper {
    transform: scale(1);
}

.tuh-quick-order--modal .tuh-quick-order__close--corner {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tuh-quick-order--modal .tuh-quick-order__header {
    padding-right: 60px; /* Space for close button */
}

.tuh-quick-order--modal .tuh-quick-order__body {
    flex: 1;
    overflow-y: auto;
}

/* Modal Mobile */
@media (max-width: 640px) {
    .tuh-quick-order--modal {
        padding: 0;
        align-items: flex-end;
    }

    .tuh-quick-order--modal .tuh-quick-order__modal-wrapper {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--qo-radius-lg) var(--qo-radius-lg) 0 0;
        transform: translateY(100%);
    }

    .tuh-quick-order--modal.active .tuh-quick-order__modal-wrapper,
    .tuh-quick-order--modal[aria-hidden="false"] .tuh-quick-order__modal-wrapper {
        transform: translateY(0);
    }

    /* Handle bar */
    .tuh-quick-order--modal .tuh-quick-order__header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--qo-border);
        border-radius: 9999px;
    }

    .tuh-quick-order--modal .tuh-quick-order__header {
        position: relative;
        padding-top: 24px;
    }

    .tuh-quick-order--modal .tuh-quick-order__close--corner {
        top: 20px;
    }

    .tuh-quick-order--modal .tuh-quick-order__footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* =====================================================
   LAYOUT: FULLSCREEN
   ===================================================== */
.tuh-quick-order--fullscreen {
    inset: 0;
    transform: translateY(100%);
    transition: transform var(--qo-transition);
}

.tuh-quick-order--fullscreen.active,
.tuh-quick-order--fullscreen[aria-hidden="false"] {
    transform: translateY(0);
}

.tuh-quick-order--fullscreen .tuh-quick-order__header {
    position: sticky;
    top: 0;
    z-index: 10;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--qo-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tuh-quick-order--fullscreen .tuh-quick-order__back {
    margin-left: -8px;
}

.tuh-quick-order--fullscreen .tuh-quick-order__title {
    flex: 1;
    text-align: center;
    padding-right: 0;
}

.tuh-quick-order--fullscreen .tuh-quick-order__header-actions {
    display: flex;
    gap: 4px;
}

.tuh-quick-order--fullscreen .tuh-quick-order__share,
.tuh-quick-order--fullscreen .tuh-quick-order__search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--qo-text-muted);
    transition: background 0.2s, color 0.2s;
}

.tuh-quick-order--fullscreen .tuh-quick-order__share:hover,
.tuh-quick-order--fullscreen .tuh-quick-order__search:hover {
    background: var(--qo-border);
    color: var(--qo-text);
}

.tuh-quick-order--fullscreen .tuh-quick-order__body {
    flex: 1;
    overflow-y: auto;
}

.tuh-quick-order--fullscreen .tuh-quick-order__footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 16px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tuh-quick-order--fullscreen .tuh-quick-order__submit--full {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.125rem;
}

.tuh-quick-order--fullscreen .tuh-quick-order__submit-price {
    margin-left: 8px;
    opacity: 0.9;
}

/* Fullscreen Mobile */
@media (max-width: 640px) {
    .tuh-quick-order--fullscreen .tuh-quick-order__footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* =====================================================
   IMAGE RESPONSIVE LIMITS
   ===================================================== */

/* Fullscreen: limitar imagem em telas grandes */
.tuh-quick-order--fullscreen .tuh-quick-order-product__image {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tuh-quick-order--fullscreen .tuh-quick-order-product__img {
    max-height: 40vh; /* Máximo 40% da altura da tela */
    width: 100%;
    aspect-ratio: auto; /* Deixar proporção natural */
    object-fit: contain; /* Mostrar imagem completa */
}

/* Modal: imagem proporcional ao modal */
.tuh-quick-order--modal .tuh-quick-order-product__image {
    max-width: 100%;
}

.tuh-quick-order--modal .tuh-quick-order-product__img {
    max-height: 35vh; /* Máximo 35% da altura da tela */
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

/* Desktop grande: limites mais restritivos */
@media (min-width: 1200px) {
    .tuh-quick-order--fullscreen .tuh-quick-order-product__img {
        max-height: 350px;
    }

    .tuh-quick-order--modal .tuh-quick-order-product__img {
        max-height: 280px;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1199px) {
    .tuh-quick-order--fullscreen .tuh-quick-order-product__img {
        max-height: 300px;
    }

    .tuh-quick-order--modal .tuh-quick-order-product__img {
        max-height: 250px;
    }
}

/* Mobile: imagem pode ser maior proporcionalmente */
@media (max-width: 767px) {
    .tuh-quick-order--fullscreen .tuh-quick-order-product__image,
    .tuh-quick-order--modal .tuh-quick-order-product__image {
        max-width: 100%;
    }

    .tuh-quick-order--fullscreen .tuh-quick-order-product__img,
    .tuh-quick-order--modal .tuh-quick-order-product__img {
        max-height: 45vh;
        aspect-ratio: 4/3; /* Proporção mais larga no mobile */
        object-fit: cover;
    }
}

/* Drawer: manter comportamento atual (imagem quadrada) */
.tuh-quick-order--drawer .tuh-quick-order-product__img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* =====================================================
   SKELETON LOADING
   ===================================================== */
.tuh-quick-order__skeleton {
    padding: 20px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: qo-shimmer 1.5s infinite;
    border-radius: var(--qo-radius);
    margin-bottom: 16px;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: qo-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text--title {
    width: 70%;
    height: 24px;
}

.skeleton-text--price {
    width: 40%;
    height: 28px;
}

.skeleton-text--short {
    width: 90%;
}

.skeleton-divider {
    height: 1px;
    background: var(--qo-border);
    margin: 8px 0;
}

.skeleton-options {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.skeleton-option {
    width: 80px;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: qo-shimmer 1.5s infinite;
    border-radius: 9999px;
}

@keyframes qo-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   PRODUCT CONTENT
   ===================================================== */
.tuh-quick-order-product {
    padding: 20px;
}

/* Image */
.tuh-quick-order-product__image {
    position: relative;
    margin-bottom: 16px;
}

.tuh-quick-order-product__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--qo-radius);
}

.tuh-quick-order-product__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tuh-quick-order-product__badge--sale {
    background: #EF4444;
    color: white;
}

.tuh-quick-order-product__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tuh-quick-order-product__thumb {
    width: 60px;
    height: 60px;
    border: 2px solid var(--qo-border);
    border-radius: var(--qo-radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s;
}

.tuh-quick-order-product__thumb.active {
    border-color: var(--qo-primary);
}

.tuh-quick-order-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.tuh-quick-order-product__info {
    margin-bottom: 20px;
}

.tuh-quick-order-product__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--qo-text);
    margin: 0 0 8px;
}

.tuh-quick-order-product__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--qo-primary);
    margin-bottom: 8px;
}

.tuh-quick-order-product__price del {
    font-size: 1rem;
    color: var(--qo-text-muted);
    font-weight: 400;
}

.tuh-quick-order-product__description {
    font-size: 0.875rem;
    color: var(--qo-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tuh-quick-order-product__description p {
    margin: 0;
}

/* Rating */
.tuh-quick-order-product__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tuh-quick-order-product__stars {
    display: flex;
    gap: 2px;
}

.tuh-quick-order-product__stars .star {
    font-size: 14px;
    line-height: 1;
}

.tuh-quick-order-product__stars .star--full {
    color: #F59E0B;
}

.tuh-quick-order-product__stars .star--half {
    color: #F59E0B;
}

.tuh-quick-order-product__stars .star--empty {
    color: #D1D5DB;
}

.tuh-quick-order-product__rating-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--qo-text);
}

.tuh-quick-order-product__rating-count {
    color: var(--qo-text-muted);
    font-weight: 400;
}

/* Installments */
.tuh-quick-order-product__installments {
    margin-top: 4px;
    margin-bottom: 8px;
}

.tuh-quick-order-product__installments-text {
    font-size: 13px;
    color: var(--qo-text-muted);
}

.tuh-quick-order-product__installments-text strong {
    color: var(--qo-text);
}

/* Stock */
.tuh-quick-order-product__stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: var(--qo-radius-sm);
    width: fit-content;
}

.tuh-quick-order-product__stock--in {
    background: #ECFDF5;
    color: #047857;
}

.tuh-quick-order-product__stock--in svg {
    stroke: #047857;
}

.tuh-quick-order-product__stock-low {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #D97706;
    padding: 6px 10px;
    border-radius: var(--qo-radius-sm);
    margin: -6px -10px;
}

.tuh-quick-order-product__stock-low svg {
    stroke: #D97706;
}

.tuh-quick-order-product__stock--out {
    background: #FEF2F2;
    color: #DC2626;
}

.tuh-quick-order-product__stock--out svg {
    stroke: #DC2626;
}

/* Share */
.tuh-quick-order-product__share {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--qo-border);
}

.tuh-quick-order-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #F3F4F6;
    border: none;
    border-radius: var(--qo-radius-sm);
    font-size: 13px;
    color: var(--qo-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tuh-quick-order-share-btn:hover {
    background: #E5E7EB;
    color: var(--qo-text);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.tuh-quick-order-section {
    padding: 16px 0;
    border-top: 1px solid var(--qo-border);
}

.tuh-quick-order-section__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--qo-text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tuh-quick-order-section__hint {
    font-weight: 400;
    color: var(--qo-text-muted);
    font-size: 0.75rem;
}

/* =====================================================
   VARIATIONS
   ===================================================== */
.tuh-quick-order-variation {
    margin-bottom: 16px;
}

.tuh-quick-order-variation:last-child {
    margin-bottom: 0;
}

.tuh-quick-order-variation__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--qo-text);
    margin-bottom: 8px;
}

.tuh-quick-order-variation__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tuh-quick-order-variation__option {
    padding: 8px 16px;
    border: 2px solid var(--qo-border);
    border-radius: 9999px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tuh-quick-order-variation__option:hover {
    border-color: var(--qo-primary);
}

.tuh-quick-order-variation__option.selected {
    border-color: var(--qo-primary);
    background: var(--qo-primary);
    color: white;
}

.tuh-quick-order-variation__option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* =====================================================
   ADDONS
   ===================================================== */
.tuh-quick-order-addons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .tuh-quick-order-addons {
        grid-template-columns: 1fr;
    }
}

.tuh-quick-order-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--qo-border);
    border-radius: var(--qo-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.tuh-quick-order-addon:hover {
    border-color: var(--qo-primary);
}

.tuh-quick-order-addon:has(.tuh-quick-order-addon__check:checked) {
    border-color: var(--qo-primary);
    background: rgba(16, 185, 129, 0.05);
}

.tuh-quick-order-addon__check {
    display: none;
}

.tuh-quick-order-addon__visual {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.tuh-quick-order-addon__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--qo-radius-sm);
}

.tuh-quick-order-addon__checkmark {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--qo-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.tuh-quick-order-addon:has(.tuh-quick-order-addon__check:checked) .tuh-quick-order-addon__checkmark {
    opacity: 1;
    transform: scale(1);
}

.tuh-quick-order-addon__info {
    flex: 1;
    min-width: 0;
}

.tuh-quick-order-addon__name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--qo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tuh-quick-order-addon__price {
    font-size: 0.75rem;
    color: var(--qo-primary);
    font-weight: 600;
}

/* =====================================================
   UPSELLS
   ===================================================== */
.tuh-quick-order-section--upsells {
    background: #F9FAFB;
    margin: 0 -20px;
    padding: 16px 20px;
}

.tuh-quick-order-upsells {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.tuh-quick-order-upsells::-webkit-scrollbar {
    height: 4px;
}

.tuh-quick-order-upsells::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 2px;
}

.tuh-quick-order-upsells::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 2px;
}

.tuh-quick-order-upsell {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    max-width: 120px;
    background: white;
    border-radius: var(--qo-radius-sm);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tuh-quick-order-upsell:hover {
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tuh-quick-order-upsell__image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.tuh-quick-order-upsell__info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tuh-quick-order-upsell__name {
    font-size: 12px;
    font-weight: 500;
    color: var(--qo-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuh-quick-order-upsell__price {
    font-size: 12px;
    color: var(--qo-primary);
    font-weight: 600;
}

/* =====================================================
   QUANTITY
   ===================================================== */
.tuh-quick-order-quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--qo-border);
    border-radius: 9999px;
    overflow: hidden;
}

.tuh-quick-order-quantity__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--qo-text);
    transition: background 0.2s;
}

.tuh-quick-order-quantity__btn:hover {
    background: var(--qo-border);
}

.tuh-quick-order-quantity__input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.tuh-quick-order-quantity__input::-webkit-outer-spin-button,
.tuh-quick-order-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =====================================================
   NOTES
   ===================================================== */
.tuh-quick-order-notes {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--qo-border);
    border-radius: var(--qo-radius-sm);
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.tuh-quick-order-notes:focus {
    outline: none;
    border-color: var(--qo-primary);
}

/* =====================================================
   SUCCESS STATE
   ===================================================== */
.tuh-quick-order-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 300px;
}

.tuh-quick-order-success__icon {
    width: 80px;
    height: 80px;
    background: var(--qo-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: qo-pop 0.4s ease;
}

.tuh-quick-order-success__icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes qo-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.tuh-quick-order-success__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--qo-text);
    margin: 0 0 8px;
}

.tuh-quick-order-success__message {
    font-size: 0.875rem;
    color: var(--qo-text-muted);
    margin: 0 0 24px;
}

.tuh-quick-order-success__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.tuh-quick-order-success__btn {
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tuh-quick-order-success__btn--primary {
    background: var(--qo-primary);
    color: white;
    border: none;
}

.tuh-quick-order-success__btn--primary:hover {
    background: var(--qo-primary-hover);
}

.tuh-quick-order-success__btn--secondary {
    background: transparent;
    color: var(--qo-text);
    border: 2px solid var(--qo-border);
}

.tuh-quick-order-success__btn--secondary:hover {
    border-color: var(--qo-text);
}

/* =====================================================
   TRIGGER BUTTON
   ===================================================== */
.tuh-quick-order-trigger {
    position: relative;
}

/* =====================================================
   TOUCH IMPROVEMENTS
   ===================================================== */
@media (hover: none) {
    .tuh-quick-order-variation__option:hover,
    .tuh-quick-order-addon:hover {
        border-color: var(--qo-border);
    }

    .tuh-quick-order-variation__option.selected {
        border-color: var(--qo-primary);
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .tuh-quick-order-overlay,
    .tuh-quick-order,
    .tuh-quick-order--drawer,
    .tuh-quick-order--modal,
    .tuh-quick-order--modal .tuh-quick-order__modal-wrapper,
    .tuh-quick-order--fullscreen,
    .tuh-quick-order__submit,
    .tuh-quick-order-variation__option,
    .tuh-quick-order-addon,
    .skeleton-image,
    .skeleton-text,
    .skeleton-option {
        transition: none;
        animation: none;
    }
}
