/* Ava Panel - delivery module and mobile inset refinements */
#ava-panel-root[data-mobile-mode="inset"] .ava-overlay{cursor:pointer}
@media (max-width:768px){
  #ava-panel-root[data-mobile-mode="inset"].is-open .ava-sheet{
    left:var(--ava-mobile-side,8px);right:var(--ava-mobile-side,8px);bottom:var(--ava-mobile-side,8px);top:var(--ava-mobile-top,18px);
    width:auto;max-width:none;height:auto;max-height:calc(100dvh - var(--ava-mobile-top,18px) - var(--ava-mobile-side,8px));
    border-radius:calc(var(--ava-radius,20px) + 4px);overflow:hidden;box-shadow:0 22px 60px rgba(15,23,42,.22);
  }
  #ava-panel-root[data-mobile-mode="inset"] .ava-content{max-height:calc(100dvh - var(--ava-mobile-top,18px) - var(--ava-mobile-side,8px) - 34px);overflow:auto;overscroll-behavior:contain}
  #ava-panel-root[data-mobile-mode="inset"] .ava-floating-actions{left:calc(var(--ava-mobile-side,8px) + 10px)!important;right:calc(var(--ava-mobile-side,8px) + 10px)!important;bottom:calc(var(--ava-mobile-side,8px) + 10px + env(safe-area-inset-bottom))!important}
}
.ava-delivery{margin:12px 0;border:1px solid var(--ava-border);border-radius:16px;background:linear-gradient(180deg,#fff,var(--ava-surface));overflow:hidden;max-width:100%}
.ava-delivery-head{width:100%;border:0;background:transparent;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:right;color:var(--ava-text);cursor:pointer;font:inherit}
.ava-delivery-head b{display:block;font-size:14px;margin-bottom:3px}.ava-delivery-head small{display:block;color:var(--ava-muted);font-size:12px;line-height:1.8}.ava-delivery-head em{font-style:normal;white-space:nowrap;font-size:11px;color:var(--ava-primary);background:rgba(22,163,74,.08);border:1px solid rgba(22,163,74,.16);border-radius:999px;padding:6px 9px}
.ava-delivery-body{padding:0 10px 10px;display:grid;gap:8px}.ava-delivery-option{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--ava-border);border-radius:14px;background:#fff;padding:10px;cursor:pointer;transition:.18s ease;max-width:100%}.ava-delivery-option.is-selected{border-color:var(--ava-primary);box-shadow:0 8px 22px rgba(22,163,74,.10)}.ava-delivery-option input{margin-top:4px;flex:0 0 auto}.ava-delivery-option span{min-width:0}.ava-delivery-option strong{display:block;font-size:13px;color:var(--ava-text);line-height:1.8}.ava-delivery-option small{display:block;color:var(--ava-muted);font-size:11.5px;line-height:1.9}.ava-delivery-detail{padding:0 32px 4px 0}.ava-delivery-detail input{width:100%;max-width:100%;box-sizing:border-box;border:1px solid var(--ava-border);border-radius:12px;padding:10px 12px;background:#fff;color:var(--ava-text);font:inherit;font-size:13px}.ava-continue-shopping{text-align:center;margin:12px 0 4px}.ava-continue-shopping-btn{font-size:13px;text-decoration:none;color:var(--ava-primary);background:rgba(22,163,74,.07);border:1px solid rgba(22,163,74,.15);border-radius:999px;padding:8px 12px}.ava-qty-notice{margin-top:8px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:8px 10px;font-size:12px;line-height:1.8}
@media (max-width:480px){.ava-delivery-head{padding:11px 12px}.ava-delivery-head{align-items:flex-start}.ava-delivery-head em{white-space:normal;text-align:center}.ava-delivery-detail{padding-right:0}.ava-delivery-option{padding:9px}.ava-qty-notice{font-size:11.5px}}

/* Ava Panel delivery patch: compact shipping-step accordion + mobile safe layout */
#ava-panel-root,
#ava-panel-root *{box-sizing:border-box}
#ava-panel-root .ava-delivery-compact{margin:10px 0 14px!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important;max-width:100%!important;min-width:0!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-head{min-height:48px!important;padding:9px 11px!important;gap:8px!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-head b{font-size:13px!important;line-height:1.5!important;margin:0!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-head small{font-size:11px!important;line-height:1.7!important;white-space:normal!important;overflow-wrap:anywhere!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-head em{font-size:10.5px!important;padding:5px 8px!important;flex:0 0 auto!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-body{padding:0 8px 8px!important;gap:6px!important;min-width:0!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option{display:block!important;padding:0!important;border-radius:12px!important;overflow:hidden!important;min-width:0!important;max-width:100%!important;background:#fff!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-head{display:grid!important;grid-template-columns:auto minmax(0,1fr) 18px!important;align-items:center!important;gap:7px!important;width:100%!important;padding:8px 9px!important;cursor:pointer!important;margin:0!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-head input{width:14px!important;height:14px!important;margin:0!important;position:static!important;opacity:1!important;pointer-events:auto!important;accent-color:var(--ava-primary)!important;flex:0 0 auto!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-head span{min-width:0!important;display:block!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-head strong{font-size:12.5px!important;line-height:1.65!important;white-space:normal!important;overflow-wrap:anywhere!important;color:var(--ava-text)!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-head i::before{content:'⌄';display:block;text-align:center;color:var(--ava-muted);font-style:normal;transition:.15s ease}
#ava-panel-root .ava-delivery-compact .ava-delivery-option.is-selected .ava-delivery-option-head i::before{transform:rotate(180deg);color:var(--ava-primary)}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-panel{padding:0 30px 9px 9px!important;display:grid!important;gap:7px!important;min-width:0!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-panel[hidden]{display:none!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-panel small{display:block!important;font-size:11px!important;line-height:1.8!important;color:var(--ava-muted)!important;overflow-wrap:anywhere!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-option-panel input{width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;border:1px solid var(--ava-border)!important;border-radius:11px!important;padding:9px 10px!important;font-size:16px!important;background:#fff!important;color:var(--ava-text)!important;position:relative!important;z-index:2!important;pointer-events:auto!important;touch-action:manipulation!important}

@media(max-width:768px){
  #ava-panel-root .ava-sheet{left:10px!important;right:10px!important;width:auto!important;max-width:calc(100vw - 20px)!important;transform:none!important;margin:0!important;overflow-x:hidden!important}
  #ava-panel-root[data-mobile-full="yes"] .ava-sheet{left:0!important;right:0!important;width:auto!important;max-width:100vw!important}
  #ava-panel-root[data-mobile-mode="inset"].is-open .ava-sheet{left:max(var(--ava-mobile-side,8px),env(safe-area-inset-left))!important;right:max(var(--ava-mobile-side,8px),env(safe-area-inset-right))!important;max-width:none!important}
  #ava-panel-root .ava-content,#ava-panel-root .ava-form-panel,#ava-panel-root .ava-shipping-form,#ava-panel-root .ava-payment-summary,#ava-panel-root .ava-quick-items,#ava-panel-root .ava-quick-item-row{max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  #ava-panel-root .ava-payment-summary{padding:11px!important;margin-left:0!important;margin-right:0!important}
  #ava-panel-root .ava-quick-items-detailed .ava-quick-item-row{grid-template-columns:38px minmax(0,1fr) auto!important;gap:7px!important;padding:7px!important;width:100%!important}
  #ava-panel-root .ava-quick-thumb img{width:38px!important;height:38px!important}
  #ava-panel-root .ava-quick-items-detailed span,#ava-panel-root .ava-quick-items-detailed a{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.55!important}
  #ava-panel-root .ava-quick-items-detailed b{font-size:11px!important;white-space:nowrap!important}
  #ava-panel-root input,#ava-panel-root textarea,#ava-panel-root select{pointer-events:auto!important;touch-action:manipulation!important;position:relative!important;z-index:2!important}
  #ava-panel-root.ava-keyboard-open[data-mobile-sticky="yes"] > .ava-floating-actions{display:none!important;pointer-events:none!important}
}
@media(max-width:380px){#ava-panel-root .ava-quick-items-detailed .ava-quick-item-row{grid-template-columns:34px minmax(0,1fr)!important}#ava-panel-root .ava-quick-items-detailed b{grid-column:2;text-align:right}.ava-delivery-head{flex-wrap:wrap!important}.ava-delivery-head em{margin-right:auto!important}}


/* Ava Panel v2.1: collapsed secure-delivery + sticky action safe area */
#ava-panel-root .ava-delivery .ava-delivery-body[hidden],
#ava-panel-root .ava-delivery-compact .ava-delivery-body[hidden]{display:none!important}
#ava-panel-root .ava-delivery-compact:not(.is-open) .ava-delivery-body{display:none!important}
#ava-panel-root .ava-delivery-compact:not(.is-open) .ava-delivery-option-panel{display:none!important}
#ava-panel-root .ava-delivery-compact .ava-delivery-head{position:relative!important;z-index:3!important}
@media(max-width:768px){
  #ava-panel-root[data-mobile-sticky="yes"] .ava-content{
    padding-bottom:calc(150px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(150px + env(safe-area-inset-bottom))!important;
  }
  #ava-panel-root[data-mobile-mode="inset"][data-mobile-sticky="yes"] .ava-content{
    max-height:calc(100dvh - var(--ava-mobile-top,18px) - var(--ava-mobile-side,8px) - 34px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  #ava-panel-root[data-mobile-sticky="yes"] .ava-sheet{
    padding-bottom:0!important;
    overflow:hidden!important;
  }
  #ava-panel-root[data-mobile-sticky="yes"] .ava-content::after{
    content:"";display:block;height:22px;flex:0 0 auto;
  }
}
