/* Shared cart dismissal controls for app.html and pedidos.html. */
#sheet-carrinho .bottom-sheet {
    padding-top: 0;
    overscroll-behavior-y: contain;
    max-height: 90vh;
    max-height: 90dvh;
}

.cart-sheet-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f5f4f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d4d1c9;
}

.cart-sheet-grip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.cart-sheet-grip:active { cursor: grabbing; }
.cart-sheet-grip .handle { margin: 0; pointer-events: none; }
.cart-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-sheet-heading h3 { margin: 0; font: 700 26px/1.2 'DM Serif Display', serif; text-transform: uppercase; }
.cart-sheet-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--nc-blue); border-radius: 8px; background: white; color: var(--nc-blue); font: 700 13px 'Space Grotesk', sans-serif; flex-shrink: 0; }
.cart-sheet-close span[aria-hidden] { font: 24px/1 Arial, sans-serif; }
.cart-sheet-continue { display: block; min-height: 44px; margin: 10px 0 0; padding: 8px 0; border: 0; background: transparent; color: var(--nc-blue); text-align: left; font: 700 14px/1.4 'Space Grotesk', sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.cart-sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.cart-sheet-clear { min-height: 44px; margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: var(--nc-red); font: 700 14px/1.4 'Space Grotesk', sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.cart-sheet-header button:focus-visible { outline: 3px solid var(--nc-red); outline-offset: 2px; }
.cart-sheet-close:hover { background: #edf2ff; }
#sheet-carrinho .bottom-sheet.is-dragging { transition: none; }

@media (prefers-reduced-motion: reduce) {
    #sheet-carrinho .bottom-sheet { transition: none; }
}
