@layer reset, base, components, utilities, sections, snippets, overrides;
@layer snippets{
  #cart[popover] [ui-slot=sheet-body]{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }
  #cart[popover] [ui-slot=sheet-footer]{
    display:flex;
    gap:var(--spacing-16);
    flex-direction:column;
  }
  #cart[popover] [ui-slot=sheet-footer] .footer{
    display:grid;
    grid-template-columns:repeat(2, auto);
    grid-gap:var(--spacing-16);
    gap:var(--spacing-16);
  }
  #cart[popover] [ui-slot=sheet-footer] .footer .label,
  #cart[popover] [ui-slot=sheet-footer] .footer .value{
    font:var(--font-label-md);
  }
  #cart[popover] [ui-slot=sheet-footer] .footer .value{
    display:flex;
    justify-content:flex-end;
  }
  #cart[popover] [ui-slot=sheet-footer] .footer [ui-slot=divider]{
    grid-column:1/3;
  }
  #cart[popover] [ui-slot=sheet-footer] .footer .description{
    grid-column:1/3;
    opacity:0.66;
    font:var(--font-label-sm);
  }
  #cart[popover] [ui-slot=sheet-footer] .navigation{
    display:grid;
    grid-gap:var(--spacing-16);
    gap:var(--spacing-16);
    grid-template-columns:1fr auto;
  }
  #cart[popover] ui-cart-remove [ui-slot=button]{
    min-width:44px;
    min-height:44px;
  }
  #cart .tamzera-cart-close{
    font-size:28px;
    line-height:1;
    font-weight:300;
  }
  @media (max-width:769px){
    #cart[popover]{
      --margin:8px;
      --sheet-width:calc(100% - 16px);
      width:calc(100% - 16px);
      height:auto;
      max-height:min(72dvh, 680px);
      margin:0;
      inset:auto 8px 8px 8px !important;
      transform:translateY(calc(100% + 16px));
      border-radius:24px;
      transition:transform var(--transition-standard-slow-effects), visibility var(--transition-standard-slow-effects);
    }
    #cart[popover]:popover-open{
      visibility:visible;
      inset:auto 8px 8px 8px !important;
      transform:translateY(0);
    }
    #cart[popover] [ui-slot=sheet-header]{
      padding:18px 18px 10px;
    }
    #cart[popover] [ui-slot=sheet-body]{
      flex:0 1 auto;
      max-height:40dvh;
      padding:8px 18px 12px;
      overflow:auto;
    }
    #cart[popover] [ui-slot=sheet-footer]{
      position:static;
      padding:12px 18px 18px;
      background:var(--sheet-background);
    }
    #cart[popover] [ui-slot=sheet-footer] .footer{
      gap:8px 12px;
    }
    #cart[popover] [ui-slot=sheet-footer] .navigation{
      grid-template-columns:1fr;
      gap:8px;
    }
    #cart[popover] [ui-slot=sheet-footer] .navigation [ui-slot=button]{
      width:100%;
      min-height:48px;
    }
    #cart[popover] [ui-slot=sheet-footer] .navigation [data-variant=secondary]{
      min-height:42px;
      opacity:.78;
    }
    #cart[popover]:has(ui-empty:not([hidden])) [ui-slot=sheet-body]{
      max-height:none;
      padding-bottom:18px;
    }
  }
}
