/* Red Moon–style delivery, PDP, quick order (scoped to minimal-store) */

body.minimal-store:has(.rm-qo-page) {
  background: #F6F8FE !important;
  color: #1a1a1a;
}

body.minimal-store .rm-checkout-panel {
  background: #fff;
  border-top: 1px solid #DCE4FC;
  padding: 0 16px 20px;
}

body.minimal-store .cart-tray .rm-delivery-card {
  margin-top: 12px;
  padding: 16px;
  background: #F6F8FE;
  border: 1px solid #DCE4FC;
  border-radius: 10px;
}

body.minimal-store .rm-delivery-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #3D65F8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.minimal-store .rm-delivery-note {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.45;
}

body.minimal-store .rm-delivery-form {
  display: grid;
  gap: 10px;
}

body.minimal-store .rm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.minimal-store .rm-field label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

body.minimal-store .rm-field input,
body.minimal-store .rm-field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
  background: #fff !important;
  color: #000;
  -webkit-text-fill-color: #000;
}

body.minimal-store .rm-field input:focus,
body.minimal-store .rm-field textarea:focus {
  outline: none;
  border-color: #3D65F8;
  box-shadow: 0 0 0 2px rgba(183, 28, 28, 0.12);
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000;
}

body.minimal-store .rm-delivery-modal-card .rm-field label {
  color: #000 !important;
}

body.minimal-store .rm-delivery-modal-card .rm-field input,
body.minimal-store .rm-delivery-modal-card .rm-field textarea {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff !important;
}

body.minimal-store .rm-delivery-modal-card .rm-field input::placeholder,
body.minimal-store .rm-delivery-modal-card .rm-field textarea::placeholder {
  color: #555;
  opacity: 1;
}

body.minimal-store .rm-delivery-modal-card {
  color: #000;
}

body.minimal-store .rm-field-full {
  grid-column: 1 / -1;
}

body.minimal-store .rm-delivery--locked .rm-delivery-form {
  opacity: 0.55;
  pointer-events: none;
}

body.minimal-store .rm-btn-place-order {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #3D65F8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

body.minimal-store .rm-btn-place-order:disabled,
body.minimal-store .rm-btn-place-order.rm-btn--disabled {
  background: #ccc;
  cursor: not-allowed;
}

body.minimal-store .rm-delivery-urgency {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: #3D65F8;
  background: #E0E4FD;
  border: 1px solid #DCE4FC;
  border-radius: 8px;
}

body.minimal-store .rm-delivery-urgency i {
  margin-right: 6px;
  color: #3D65F8;
}

body.minimal-store .rm-min-order-banner {
  margin: 10px 0 0;
}

body.minimal-store .rm-min-order-banner .minimum-order-message {
  background: #E0E4FD;
  border: 1px solid #DCE4FC;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #5D6BF6;
}

body.minimal-store .rm-min-order-banner .minimum-order-message p {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* Enquiry drawer — Red Moon mobile-first */
body.minimal-store .rm-cart-tray.cart-tray {
  background: #fff !important;
  color: #1a1a1a;
}

body.minimal-store .cart-tray-header {
  padding: 14px 16px 10px !important;
  background: #fff;
}

body.minimal-store .cart-items-scroll {
  background: #f7f7f7;
  padding: 8px 12px 10px !important;
}

@media (max-width: 1023px) {
  /* Bottom nav is z-index 1300 — cart + delivery must sit above it */
  body.minimal-store .cart-tray.active {
    z-index: 1400 !important;
  }

  body.minimal-store .rm-delivery-modal:not([hidden]) {
    z-index: 1500 !important;
  }

  body.minimal-store.cart-open .ps-mobile-nav {
    visibility: hidden;
    pointer-events: none;
  }

  body.minimal-store .cart-tray-body {
    min-height: 0;
  }

  body.minimal-store .cart-items-scroll {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto;
  }

  body.minimal-store .cart-checkout-panel {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    max-height: none !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }

  body.minimal-store .rm-btn-continue {
    position: relative;
    z-index: 1;
  }
}

body.minimal-store .rm-btn-continue {
  margin-top: 12px;
}

body.minimal-store .cart-items-toolbar {
  color: #555;
  background: #f7f7f7;
}

body.minimal-store .cart-items-scroll-hint {
  color: #3D65F8;
  font-size: 0.72rem;
}

/* Delivery modal (after Continue) */
body.minimal-store .rm-delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

body.minimal-store .rm-delivery-modal[hidden] {
  display: none !important;
}

body.minimal-store .rm-delivery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

body.minimal-store .rm-delivery-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  body.minimal-store .rm-delivery-modal {
    align-items: center;
    padding: 20px;
  }

  body.minimal-store .rm-delivery-modal-card {
    border-radius: 12px;
    max-height: 88vh;
  }
}

body.minimal-store .rm-delivery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid #DCE4FC;
  border-radius: 8px;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

body.minimal-store .rm-field--error,
body.minimal-store .rm-field input.rm-field--error,
body.minimal-store .rm-field textarea.rm-field--error {
  border-color: #3D65F8 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
}

body.minimal-store .validation-error {
  color: #3D65F8;
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 500;
}

body.minimal-store.rm-delivery-open {
  overflow: hidden;
}

/* ——— PDP ——— */
body.minimal-store .rm-pdp-page {
  padding-bottom: 100px;
}

body.minimal-store .rm-pdp-grid {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

@media (min-width: 768px) {
  body.minimal-store .rm-pdp-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

body.minimal-store .rm-pdp-media {
  background: #F6F8FE;
  border: 1px solid #DCE4FC;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

body.minimal-store .rm-pdp-media img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

body.minimal-store .rm-pdp-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  background: #3D65F8;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

body.minimal-store .rm-pdp-info h1 {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

body.minimal-store .rm-pdp-code {
  font-size: 0.75rem;
  color: #888;
  margin: 0 0 12px;
}

body.minimal-store .rm-pdp-prices {
  background: #fff;
  border: 1px solid #DCE4FC;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0 16px;
}

body.minimal-store .rm-pdp-prices .rm-mrp-line,
body.minimal-store .rm-pdp-prices .rm-sale-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  margin: 4px 0;
}

body.minimal-store .rm-pdp-prices .rm-lbl {
  color: #666;
  font-weight: 500;
}

body.minimal-store .rm-pdp-prices .rm-sale {
  color: #3D65F8;
  font-weight: 700;
  font-size: 1.15rem;
}

body.minimal-store .rm-pdp-pack {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 16px;
}

body.minimal-store .rm-pdp-actions .rm-qty {
  max-width: 100%;
  margin-bottom: 12px;
}

body.minimal-store .rm-pdp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.minimal-store .rm-pdp-links a {
  font-size: 0.85rem;
  color: #3D65F8;
  font-weight: 600;
}

/* ——— Quick order (light shell inside main layout) ——— */
body.minimal-store .rm-qo-page .qo-nav,
body.minimal-store .rm-qo-page .qo-menu,
body.minimal-store .rm-qo-page .qo-menu-overlay {
  display: none !important;
}

body.minimal-store .rm-qo-page .qo-wrap {
  padding: 24px 16px 140px;
  max-width: 1100px;
  color: #1a1a1a;
}

body.minimal-store .rm-qo-page .qo-head h1 {
  color: #3D65F8;
  font-size: 1.5rem;
}

body.minimal-store .rm-qo-page .qo-head h1 span {
  color: #1a1a1a;
  background: none;
  -webkit-text-fill-color: inherit;
}

body.minimal-store .rm-qo-page .qo-head p {
  color: #666;
}

body.minimal-store .rm-qo-page .qo-search {
  background: #fff !important;
  border: 1px solid #ddd;
}

body.minimal-store .rm-qo-page .qo-search input {
  background: #fff !important;
  color: #111 !important;
  -webkit-text-fill-color: #111;
}

body.minimal-store .rm-qo-page .qo-search input::placeholder {
  color: #888;
  opacity: 1;
}

body.minimal-store .rm-qo-page .qo-bar {
  z-index: 1310 !important;
  background: #fff !important;
  border-top: 1px solid #DCE4FC !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08) !important;
  color: #111 !important;
}

@media (max-width: 1023px) {
  body.minimal-store .rm-qo-page .qo-bar {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  body.minimal-store .rm-qo-page .qo-wrap {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

body.minimal-store .rm-qo-page .qo-bar-info {
  color: #555 !important;
}

body.minimal-store .rm-qo-page .qo-btn-go {
  background: #3D65F8 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(198, 40, 40, 0.35) !important;
}

body.minimal-store .rm-qo-page .qo-btn-go:disabled {
  background: #bdbdbd !important;
  color: #fff !important;
  opacity: 1 !important;
}

body.minimal-store .rm-qo-page .qo-order-modal {
  z-index: 1500;
}

body.minimal-store .rm-qo-page .qo-order-modal .rm-btn-place-order {
  width: 100%;
  background: #3D65F8;
  color: #fff;
}

body.minimal-store .rm-qo-page .qo-order-modal .rm-btn-place-order:disabled {
  background: #bdbdbd;
}

body.minimal-store .rm-qo-page .qo-table-box {
  background: #fff;
  border: 1px solid #DCE4FC;
  border-radius: 10px;
  overflow: hidden;
}

body.minimal-store .rm-qo-page .qo-table th {
  background: #3D65F8;
  color: #fff;
}

body.minimal-store .rm-qo-page .qo-cat td {
  background: #E0E4FD;
  color: #3D65F8;
  font-weight: 700;
}

body.minimal-store .rm-qo-page .qo-checkout {
  background: #F6F8FE;
  border: 1px solid #DCE4FC;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

body.minimal-store .rm-qo-page .qo-checkout h3 {
  color: #3D65F8;
  font-size: 1rem;
  margin: 0 0 12px;
}

body.minimal-store .rm-qo-page .qo-field input,
body.minimal-store .rm-qo-page .qo-field textarea {
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
}

body.minimal-store .rm-qo-page .qo-bar {
  background: #fff;
  border-top: 2px solid #3D65F8;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

body.minimal-store .rm-qo-page .qo-btn-main,
body.minimal-store .rm-qo-page .qo-btn-go {
  background: #3D65F8;
  color: #fff;
}

body.minimal-store .rm-qo-page .mj-page-banner {
  display: none;
}

@media (max-width: 1023px) {
  body.minimal-store .ps-mobile-nav {
    grid-template-columns: repeat(6, 1fr);
    font-size: 0.55rem;
  }

  body.minimal-store .ps-mobile-nav-item span {
    font-size: 0.55rem;
  }
}