/* Mobile cart and compact catalogue refinements shared by Product, Food and Service. */
body.customer-checkout-open {
  overflow: hidden !important;
}

body.customer-checkout-open .sf-header-wrap,
body.customer-checkout-open .mobile-category-bar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.customer-checkout-open .customer-method-backdrop,
body.customer-checkout-open .customer-details-backdrop,
body.customer-checkout-open .modal-backdrop {
  z-index: 21000 !important;
}

body.customer-checkout-open .cart-fab,
body.customer-checkout-open .customer-wa-float,
body.customer-checkout-open .active-order-float,
body.customer-checkout-open .appointment-status-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.customer-status-open {
  overflow: hidden !important;
}

body.customer-status-open .sf-header-wrap,
body.customer-status-open .mobile-category-bar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.customer-status-open .active-order-backdrop,
body.customer-status-open .appointment-status-backdrop {
  z-index: 21000 !important;
}

body.customer-status-open .cart-fab,
body.customer-status-open .customer-wa-float,
body.customer-status-open .active-order-float,
body.customer-status-open .appointment-status-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Compact checkout cards across desktop and mobile. */
body.storefront-product .customer-method-card,
body.storefront-food .customer-method-card {
  max-width: 540px !important;
  border-radius: 20px !important;
}

body.storefront-product .customer-details-modal-card,
body.storefront-food .customer-details-modal-card {
  max-width: 500px !important;
  border-radius: 20px !important;
}

body.storefront-product .customer-method-head,
body.storefront-product .customer-details-head,
body.storefront-food .customer-method-head,
body.storefront-food .customer-details-head {
  padding: 12px 14px !important;
}

body.storefront-product .customer-method-head > div,
body.storefront-product .customer-details-head > div,
body.storefront-food .customer-method-head > div,
body.storefront-food .customer-details-head > div {
  min-height: 34px !important;
}

body.storefront-product .customer-method-head h3,
body.storefront-product .customer-details-head h3,
body.storefront-food .customer-method-head h3,
body.storefront-food .customer-details-head h3 {
  font-size: 17px !important;
  line-height: 1.2 !important;
}

body.storefront-product .customer-method-head .pretty-x-btn,
body.storefront-product .customer-details-head .pretty-x-btn,
body.storefront-food .customer-method-head .pretty-x-btn,
body.storefront-food .customer-details-head .pretty-x-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  font-size: 18px !important;
}

body.storefront-product .customer-method-body,
body.storefront-product .customer-details-body,
body.storefront-food .customer-method-body,
body.storefront-food .customer-details-body {
  padding: 13px !important;
}

body.storefront-product .method-group,
body.storefront-food .method-group {
  margin-bottom: 11px !important;
}

body.storefront-product .method-group > strong,
body.storefront-food .method-group > strong {
  margin-bottom: 7px !important;
  font-size: 13px !important;
}

body.storefront-product .method-choice-grid,
body.storefront-food .method-choice-grid {
  gap: 8px !important;
}

body.storefront-product .method-choice,
body.storefront-food .method-choice {
  min-height: 92px !important;
  padding: 9px 10px !important;
  gap: 4px !important;
  border-radius: 14px !important;
}

body.storefront-product .method-choice span,
body.storefront-food .method-choice span {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

body.storefront-product .method-choice b,
body.storefront-food .method-choice b {
  font-size: 12.5px !important;
}

body.storefront-product .method-choice small,
body.storefront-food .method-choice small {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

body.storefront-product .method-done-btn,
body.storefront-product .customer-details-save-btn,
body.storefront-food .method-done-btn,
body.storefront-food .customer-details-save-btn {
  min-height: 42px !important;
  border-radius: 13px !important;
  font-size: 12.5px !important;
}

body.storefront-product .customer-form-floating,
body.storefront-food .customer-form-floating {
  gap: 9px !important;
}

body.storefront-product .customer-form-floating label,
body.storefront-food .customer-form-floating label {
  font-size: 10.5px !important;
}

body.storefront-product .customer-form-floating input,
body.storefront-product .customer-form-floating textarea,
body.storefront-food .customer-form-floating input,
body.storefront-food .customer-form-floating textarea {
  margin-top: 4px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  line-height: 1.3 !important;
}

body.storefront-product .customer-form-floating textarea,
body.storefront-food .customer-form-floating textarea {
  min-height: 72px !important;
}

body.storefront-food .customer-form-floating .customer-kitchen-note {
  min-height: 58px !important;
}

body.storefront-product .old-customer-box,
body.storefront-food .old-customer-box {
  margin-top: 9px !important;
  padding: 9px 10px !important;
  border-radius: 13px !important;
  font-size: 11px !important;
}

body.storefront-product .customer-live-location-btn,
body.storefront-food .customer-live-location-btn {
  min-height: 40px !important;
  font-size: 11.5px !important;
}

body.storefront-service #bookingModal .modal-card {
  width: min(500px, calc(100% - 20px)) !important;
  border-radius: 20px !important;
}

body.storefront-service #bookingModal .modal-head {
  padding: 12px 13px !important;
}

body.storefront-service #bookingModal .modal-head h3 {
  font-size: 17px !important;
}

body.storefront-service #bookingModal .modal-body {
  padding: 12px !important;
}

body.storefront-service #bookingModal .form-grid {
  gap: 8px !important;
}

body.storefront-service #bookingModal .field {
  gap: 4px !important;
}

body.storefront-service #bookingModal .field label {
  font-size: 10.5px !important;
}

body.storefront-service #bookingModal .field input,
body.storefront-service #bookingModal .field select,
body.storefront-service #bookingModal .field textarea {
  padding: 9px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
}

body.storefront-service #bookingModal .field textarea {
  min-height: 64px !important;
}

body.storefront-service #bookingModal .primary-btn {
  min-height: 42px !important;
  margin-top: 9px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
}

/* Desktop uses the same full-width title band and edge alignment as mobile. */
@media (min-width: 641px) {
  body.storefront-product .item-summary-title > div:last-child,
  body.storefront-food .item-summary-title > div:last-child,
  body.storefront-service .item-summary-title > div:last-child {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
  }

  body.storefront-product .item-name,
  body.storefront-food .item-name,
  body.storefront-service .item-name {
    width: 100% !important;
    min-width: 100% !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 0 6px !important;
    padding: 6px 8px !important;
    align-self: stretch !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #f1f3f5 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.storefront-product .quick-price-line,
  body.storefront-food .quick-price-line,
  body.storefront-service .quick-price-line {
    width: 100% !important;
    min-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  body.storefront-product .quick-price-pill,
  body.storefront-food .quick-price-pill,
  body.storefront-service .quick-price-pill {
    margin-right: auto !important;
  }

  body.storefront-product .quick-price-line > .qty-controls,
  body.storefront-food .quick-price-line > .qty-controls,
  body.storefront-service .quick-price-line > .qty-controls {
    margin-left: auto !important;
  }

  body.storefront-product .variation-starting-line,
  body.storefront-food .variation-starting-line {
    justify-content: center !important;
  }

  body.storefront-product .variation-starting-line .quick-price-pill,
  body.storefront-food .variation-starting-line .quick-price-pill {
    width: 100% !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  body.storefront-service .variation-item-card .quick-price-line {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body.customer-cart-open {
    overflow: hidden !important;
  }

  body.customer-cart-open .sf-header-wrap,
  body.customer-cart-open .mobile-category-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.customer-cart-open .cart-drawer {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 20000 !important;
    width: 100% !important;
    max-width: none !important;
    border-left: 0 !important;
  }

  body.customer-cart-open .cart-backdrop {
    z-index: 19990 !important;
  }

  body.customer-cart-open .cart-fab,
  body.customer-cart-open .customer-wa-float,
  body.customer-cart-open .active-order-float,
  body.customer-cart-open .appointment-status-float {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.storefront-modern .cart-head {
    min-height: 56px !important;
    padding: 9px 12px !important;
  }

  body.storefront-modern .cart-head h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  body.storefront-modern .cart-head .close-btn,
  body.storefront-modern .cart-head .pretty-x-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 19px !important;
  }

  body.storefront-modern .cart-body {
    padding: 9px !important;
  }

  body.storefront-modern .cart-item {
    gap: 7px !important;
    margin: 0 0 7px !important;
    padding: 9px !important;
    border-radius: 13px !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  body.storefront-modern .cart-item > div:first-child {
    min-width: 0 !important;
  }

  body.storefront-modern .cart-item strong {
    font-size: 11.5px !important;
    line-height: 1.28 !important;
  }

  body.storefront-modern .cart-item small,
  body.storefront-modern .cart-item span,
  body.storefront-modern .cart-item b {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  body.storefront-modern .cart-item .qty-controls {
    flex: 0 0 auto !important;
    gap: 2px !important;
    padding: 1px !important;
  }

  body.storefront-modern .cart-item .qty-btn,
  body.storefront-modern .cart-item .small-btn {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }

  body.storefront-modern .cart-item .qty-count {
    min-width: 14px !important;
    font-size: 10px !important;
  }

  body.storefront-modern .cart-foot {
    padding: 10px 11px 12px !important;
  }

  body.storefront-modern .summary-row {
    gap: 7px !important;
    margin: 5px 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  body.storefront-modern .summary-row strong {
    font-size: 12px !important;
  }

  body.storefront-modern .delivery-charge-input-wrap {
    min-width: 110px !important;
    height: 35px !important;
    padding: 0 8px !important;
  }

  body.storefront-modern .delivery-charge-input-wrap span,
  body.storefront-modern .delivery-charge-input-wrap input {
    font-size: 11px !important;
  }

  body.storefront-modern .checkout-btn {
    min-height: 43px !important;
    margin-top: 7px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 640px) {
  body.storefront-product .customer-method-card,
  body.storefront-product .customer-details-modal-card,
  body.storefront-food .customer-method-card,
  body.storefront-food .customer-details-modal-card {
    width: min(100%, 500px) !important;
    border-radius: 17px !important;
  }

  body.storefront-product .method-choice,
  body.storefront-food .method-choice {
    min-height: 64px !important;
    padding: 8px 9px !important;
  }

  body.storefront-product .customer-form-floating textarea,
  body.storefront-food .customer-form-floating textarea {
    min-height: 64px !important;
  }

  body.storefront-food .customer-form-floating .customer-kitchen-note {
    min-height: 52px !important;
  }

  body.storefront-product .item-list,
  body.storefront-food .item-list,
  body.storefront-service .item-list {
    gap: 7px !important;
  }

  body.storefront-product .item-card,
  body.storefront-food .item-card,
  body.storefront-service .item-card {
    border-radius: 13px !important;
  }

  body.storefront-product .item-image,
  body.storefront-food .item-image,
  body.storefront-service .item-image-frame {
    aspect-ratio: 16 / 11 !important;
  }

  body.storefront-product .item-image,
  body.storefront-food .item-image {
    height: auto !important;
    object-fit: contain !important;
    padding: 5px !important;
  }

  body.storefront-service .item-image-frame .item-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 5px !important;
  }

  body.storefront-product .item-summary-title > div:last-child,
  body.storefront-food .item-summary-title > div:last-child,
  body.storefront-service .item-summary-title > div:last-child {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 6px 7px 7px !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
  }

  body.storefront-product .item-name,
  body.storefront-food .item-name,
  body.storefront-service .item-name {
    width: 100% !important;
    min-width: 100% !important;
    align-self: stretch !important;
    min-height: 22px !important;
    max-height: 36px !important;
    margin: 0 0 4px !important;
    padding: 3px 5px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    background: #f1f3f5 !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.storefront-product .item-name.long-item-name,
  body.storefront-food .item-name.long-item-name,
  body.storefront-service .item-name.long-item-name {
    font-size: 10.7px !important;
  }

  body.storefront-modern .quick-meta {
    margin: 0 0 2px !important;
    font-size: 9.5px !important;
    line-height: 1.25 !important;
  }

  body.storefront-product .quick-price-line,
  body.storefront-food .quick-price-line,
  body.storefront-service .quick-price-line {
    width: 100% !important;
    min-width: 100% !important;
    min-height: 25px !important;
    margin: 0 !important;
    padding: 1px 0 0 !important;
    gap: 3px !important;
    display: flex !important;
    align-items: center !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  body.storefront-product .quick-price-pill,
  body.storefront-food .quick-price-pill,
  body.storefront-service .quick-price-pill {
    margin-right: auto !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.storefront-product .quick-price-line > .qty-controls,
  body.storefront-food .quick-price-line > .qty-controls,
  body.storefront-service .quick-price-line > .qty-controls {
    margin-left: auto !important;
  }

  body.storefront-product .qty-controls,
  body.storefront-food .qty-controls,
  body.storefront-service .qty-controls {
    gap: 2px !important;
    padding: 1px !important;
  }

  body.storefront-product .qty-btn,
  body.storefront-food .qty-btn,
  body.storefront-service .qty-btn {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }

  body.storefront-product .qty-count,
  body.storefront-food .qty-count,
  body.storefront-service .qty-count {
    min-width: 13px !important;
    font-size: 9.5px !important;
  }

  body.storefront-product .catalog-card-view,
  body.storefront-food .catalog-card-view,
  body.storefront-service .catalog-card-view {
    min-width: 48px !important;
    min-height: 21px !important;
    margin-top: -10px !important;
    margin-bottom: 1px !important;
    padding: 3px 8px !important;
    font-size: 8px !important;
  }

  body.storefront-product .variation-item-card .variation-starting-line,
  body.storefront-food .variation-item-card .variation-starting-line {
    display: flex !important;
    justify-content: center !important;
  }

  body.storefront-product .variation-starting-line .quick-price-pill,
  body.storefront-food .variation-starting-line .quick-price-pill {
    width: 100% !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  body.storefront-service .variation-item-card .quick-price-line {
    display: none !important;
  }
}
