/* =========================================================
   Rajmudra Jewellery Cart + Wishlist Drawer v6 CSS
   Full replacement for: assets/css/cart-wishlist-drawer.css
   Scoped to #rmcw-v5 / .rmcw5-* to avoid product/header/modal conflicts.
   ========================================================= */

#rmcw-v5,
.rmcw5-toast-zone {
  --rmcw-cream: #fff8ed;
  --rmcw-cream-2: #fff3e2;
  --rmcw-paper: #fffdf8;
  --rmcw-card: #fff7eb;
  --rmcw-chip: #f8e5c9;
  --rmcw-border: #e3c39c;
  --rmcw-border-2: #efd7b6;
  --rmcw-brown: #7b4a1f;
  --rmcw-brown-2: #9b6a35;
  --rmcw-dark: #2a1b12;
  --rmcw-muted: #7b6048;
  --rmcw-soft-muted: #9b7a5e;
  --rmcw-danger: #a92318;
  --rmcw-success: #1e7a45;
  --rmcw-blue: #2382df;
  --rmcw-shadow: 0 24px 75px rgba(42, 27, 18, .26);
  --rmcw-card-shadow: 0 16px 38px rgba(106, 70, 34, .11);
  --rmcw-radius-xl: 24px;
  --rmcw-radius-lg: 18px;
  --rmcw-radius-md: 14px;
  font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rmcw-dark);
  box-sizing: border-box;
}

#rmcw-v5,
#rmcw-v5 *,
#rmcw-v5 *::before,
#rmcw-v5 *::after,
.rmcw5-toast-zone,
.rmcw5-toast-zone *,
.rmcw5-toast-zone *::before,
.rmcw5-toast-zone *::after {
  box-sizing: border-box;
}

#rmcw-v5 button,
#rmcw-v5 input,
#rmcw-v5 select,
#rmcw-v5 textarea {
  font: inherit;
}

#rmcw-v5 button {
  -webkit-tap-highlight-color: transparent;
}

#rmcw-v5 [hidden] {
  display: none !important;
}

/* ---------- shell ---------- */
.rmcw5-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(33, 22, 14, .46);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

#rmcw-v5.is-cart-open .rmcw5-overlay,
#rmcw-v5.is-wishlist-open .rmcw5-overlay {
  opacity: 1;
  visibility: visible;
}

.rmcw5-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99990;
  width: min(520px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(246, 217, 177, .58), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #fff4e7 100%);
  border-left: 1px solid var(--rmcw-border-2);
  box-shadow: var(--rmcw-shadow);
  transform: translateX(106%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

#rmcw-v5.is-cart-open .rmcw5-cart,
#rmcw-v5.is-wishlist-open .rmcw5-wishlist {
  transform: translateX(0);
}

/* ---------- drawer header ---------- */
.rmcw5-head {
  height: 78px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  background: rgba(255, 250, 241, .96);
  border-bottom: 1px solid var(--rmcw-border-2);
  backdrop-filter: blur(14px);
}

.rmcw5-head-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rmcw5-head-dot {
  width: 43px;
  height: 43px;
  min-width: 43px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #f7e4ca, #fff8ec);
  border: 1px solid var(--rmcw-border);
  color: var(--rmcw-brown);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.rmcw5-head-title strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
  color: var(--rmcw-dark);
  letter-spacing: .01em;
}

.rmcw5-head-title small {
  display: block;
  max-width: 220px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--rmcw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rmcw5-head-actions {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rmcw5-icon-btn,
.rmcw5-count-pill {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.rmcw5-icon-btn {
  appearance: none;
  border: 1px solid var(--rmcw-border-2) !important;
  background: var(--rmcw-paper) !important;
  color: var(--rmcw-brown) !important;
  cursor: pointer;
  font-size: 16px !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.rmcw5-icon-btn:hover,
.rmcw5-icon-btn:focus-visible {
  background: #fff0dc !important;
  border-color: #d5a874 !important;
  color: var(--rmcw-dark) !important;
  transform: translateY(-1px);
  outline: none;
}

.rmcw5-count-pill {
  border: 1px solid var(--rmcw-border) !important;
  background: linear-gradient(135deg, #f5dfc0, #fff7ec) !important;
  color: #4d2c12 !important;
  font-weight: 950 !important;
  font-size: 15px !important;
}

/* ---------- body/cards ---------- */
.rmcw5-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf1 0%, #fff4e7 100%);
  scrollbar-width: thin;
  scrollbar-color: #c99b66 transparent;
}

.rmcw5-body::-webkit-scrollbar { width: 7px; }
.rmcw5-body::-webkit-scrollbar-thumb { background: #c99b66; border-radius: 20px; }

.rmcw5-loading,
.rmcw5-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 9px;
  text-align: center;
  color: var(--rmcw-muted);
}

.rmcw5-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #ecd3b6;
  border-top-color: var(--rmcw-brown);
  border-radius: 50%;
  animation: rmcw-spin .8s linear infinite;
}

@keyframes rmcw-spin { to { transform: rotate(360deg); } }

.rmcw5-empty i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 22px;
  background: #f2dec3;
  color: var(--rmcw-brown);
  font-size: 24px;
}

.rmcw5-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rmcw5-item {
  overflow: hidden;
  border-radius: 24px;
  background: var(--rmcw-paper);
  border: 1px solid var(--rmcw-border-2);
  box-shadow: var(--rmcw-card-shadow);
}

.rmcw5-item-top {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.rmcw5-img-box {
  position: relative;
  width: 96px;
  height: 96px;
  min-width: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid #e2c19b;
  background: linear-gradient(135deg, #f3dec1, #fff8ed);
}

.rmcw5-img-box img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 17px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.rmcw5-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rmcw5-code {
  max-width: 100%;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--rmcw-border-2);
  border-radius: 13px;
  background: #fff8ef;
  color: #684019;
  font-weight: 950;
  font-size: 14px;
}

.rmcw5-code span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rmcw5-qty {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--rmcw-border);
  background: #fff7eb;
}

.rmcw5-qty button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #f1d4ad;
  color: #5d3514;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.rmcw5-qty b {
  min-width: 17px;
  text-align: center;
  font-weight: 950;
}

.rmcw5-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.rmcw5-price {
  color: #19130e;
  font-size: 18px;
  font-weight: 1000;
  white-space: nowrap;
}

.rmcw5-add-same {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--rmcw-border);
  background: #fff9f1;
  color: #17100b;
  font-weight: 950;
  font-size: 14px;
  cursor: pointer;
}

.rmcw5-add-same i,
.rmcw5-add-same .fa-info,
.rmcw5-add-same .fa-circle-info {
  display: none !important;
}

.rmcw5-mini-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rmcw5-remove,
.rmcw5-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--rmcw-border-2);
  background: #fff8ee;
  color: var(--rmcw-brown);
  cursor: pointer;
}

.rmcw5-remove {
  color: var(--rmcw-danger);
  border-color: #efc1b7;
  background: #fff4f1;
}

.rmcw5-toggle i { transition: transform .2s ease; }
.rmcw5-item.is-open .rmcw5-toggle i { transform: rotate(180deg); }

/* ---------- accordion panel ---------- */
.rmcw5-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--rmcw-border-2);
  background: linear-gradient(180deg, #fff8ed 0%, #fff3e3 100%);
}

.rmcw5-item.is-open .rmcw5-panel { display: block; }

.rmcw5-panel h4 {
  margin: 0 0 14px;
  color: var(--rmcw-dark);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .01em;
}

.rmcw5-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.rmcw5-field,
.rmcw5-field-full {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rmcw5-field label,
.rmcw5-form-label,
.rmcw5-field-full,
.rmcw5-modal-grid label {
  color: #80562c;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rmcw5-select,
.rmcw5-input,
.rmcw5-field-full input,
.rmcw5-modal-grid select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d6ac78;
  border-radius: 15px;
  outline: none;
  background: var(--rmcw-paper);
  color: var(--rmcw-dark);
  font-size: 15px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.rmcw5-select:focus,
.rmcw5-input:focus,
.rmcw5-field-full input:focus,
.rmcw5-modal-grid select:focus {
  border-color: #9b642a;
  box-shadow: 0 0 0 3px rgba(155,100,42,.13);
}

.rmcw5-readonly {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 15px;
  border: 1px dashed #d8b487;
  background: #fff9f0;
  color: #6d461e;
  font-weight: 850;
}

.rmcw5-summary {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fffaf2;
  border: 1px dashed #dcc09b;
  color: #654521;
  font-size: 13px;
  line-height: 1.45;
}

.rmcw5-summary b { color: var(--rmcw-dark); }

.rmcw5-line-total {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  border: 1px dashed #d3ad7d;
  background: #f7e4ca;
  color: var(--rmcw-dark);
  font-size: 17px;
  font-weight: 1000;
}

.rmcw5-coin-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rmcw5-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--rmcw-border);
  background: #fff7eb;
  color: #6d461e;
  font-size: 12px;
  font-weight: 950;
}

/* ---------- engraving / ring box compact cards in accordion ---------- */
.rmcw5-checks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rmcw5-check-card {
  border: 1px solid #e7ccb0;
  background: var(--rmcw-paper);
  border-radius: 17px;
  padding: 12px;
}

.rmcw5-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rmcw5-check-head label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #3b291b;
  font-size: 14px;
  font-weight: 900;
}

.rmcw5-check-head input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1px solid #c59762;
  background: #fffaf3;
  display: inline-grid;
  place-items: center;
}

.rmcw5-check-head input[type="checkbox"]:checked {
  background: var(--rmcw-brown);
  border-color: var(--rmcw-brown);
}

.rmcw5-check-head input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}

.rmcw5-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--rmcw-brown);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  padding: 5px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rmcw5-muted {
  color: var(--rmcw-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------- footer ---------- */
.rmcw5-foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--rmcw-border-2);
  background: rgba(255,253,248,.98);
}

.rmcw5-bill-toggle {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid var(--rmcw-border);
  background: #fff8ef;
  color: var(--rmcw-dark);
  font-weight: 950;
  cursor: pointer;
}

.rmcw5-bill {
  margin-top: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 17px;
  border: 1px solid #e6cbaa;
  background: #fffaf2;
}

.rmcw5-bill-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6d461e;
  font-size: 13px;
}

.rmcw5-bill-row strong { color: var(--rmcw-dark); }

.rmcw5-checkout {
  position: relative;
  width: 100%;
  min-height: 58px;
  margin-top: 11px;
  border: 0;
  border-radius: 18px;
  background: #050505;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
  overflow: hidden;
  isolation: isolate;
}

.rmcw5-checkout::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.05) 35%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.05) 65%, transparent 100%);
  transform: translateX(-120%);
  animation: rmcw5CheckoutSheen 3.9s cubic-bezier(.22,1,.36,1) infinite;
  z-index: 0;
}

.rmcw5-checkout span,
.rmcw5-checkout i {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #fff;
  white-space: nowrap;
  will-change: transform, opacity, letter-spacing;
}

.rmcw5-checkout span {
  animation: rmcw5CheckoutTextPremium 3.9s cubic-bezier(.22,1,.36,1) infinite;
}

.rmcw5-checkout i {
  font-size: 17px;
  animation: rmcw5CheckoutArrowPremium 3.9s cubic-bezier(.22,1,.36,1) infinite;
}

@keyframes rmcw5CheckoutTextPremium {
  0%, 24%, 100% { transform: translateX(0); letter-spacing: 0; opacity: 1; }
  39% { transform: translateX(7px); letter-spacing: .15px; opacity: .98; }
  52% { transform: translateX(7px); letter-spacing: .15px; opacity: 1; }
  70% { transform: translateX(0); letter-spacing: 0; opacity: 1; }
}

@keyframes rmcw5CheckoutArrowPremium {
  0%, 24%, 100% { transform: translateX(0); opacity: 1; }
  39% { transform: translateX(12px); opacity: .55; }
  52% { transform: translateX(12px); opacity: 1; }
  70% { transform: translateX(0); opacity: 1; }
}

@keyframes rmcw5CheckoutSheen {
  0%, 28%, 100% { transform: translateX(-120%); opacity: 0; }
  40% { opacity: 1; }
  58% { transform: translateX(120%); opacity: .65; }
  72% { transform: translateX(120%); opacity: 0; }
}

/* =========================================================
   MODALS - redesigned from the provided inquiry modal style
   ========================================================= */
.rmcw5-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 24, 16, .50);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

#rmcw-v5.is-modal-open .rmcw5-modal-layer {
  opacity: 1;
  visibility: visible;
}

.rmcw5-modal {
  display: none;
  position: relative;
  width: min(520px, calc(100vw - 26px));
  max-height: calc(100dvh - 34px);
  overflow: auto;
  padding: 24px;
  border-radius: 15px 15px 23px 23px;
  border: 1px solid rgba(184, 140, 87, .38);
  background: #fff8ed;
  color: var(--rmcw-dark);
  box-shadow: 0 30px 85px rgba(42, 27, 18, .34);
}

.rmcw5-modal.is-active { display: block; }

.rmcw5-modal::-webkit-scrollbar { width: 6px; }
.rmcw5-modal::-webkit-scrollbar-thumb { background: #c99b66; border-radius: 30px; }

.rmcw5-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid #e4c6a2;
  background: #fffdf8;
  color: #3a281a;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(75, 46, 22, .10);
}

.rmcw5-modal-x:hover { background: #fff0df; color: var(--rmcw-danger); }

.rmcw5-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 6px 58px 7px 108px;
  color: #996022;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.rmcw5-kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: #c99652;
}

.rmcw5-modal h3 {
  margin: 0 58px 8px 108px;
  color: #2c1b11;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

.rmcw5-modal-copy,
.rmcw5-confirm p,
.rmcw5-inquiry p {
  margin: 0 0 22px;
  color: #766252;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.rmcw5-modal-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #eed1a9, #fff7eb);
  border: 1px solid rgba(184, 140, 87, .28);
  color: var(--rmcw-brown);
  font-size: 30px;
}

.rmcw5-modal-icon img,
.rmcw5-inquiry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* confirmation modal has no product image, keep icon centered */
.rmcw5-confirm .rmcw5-modal-icon {
  position: static;
  width: 58px;
  height: 58px;
  margin: 0 0 14px;
  border-radius: 18px;
  font-size: 24px;
}

.rmcw5-confirm h3,
.rmcw5-confirm p {
  margin-left: 0;
  margin-right: 0;
}

.rmcw5-confirm h3 {
  font-family: Inter, Montserrat, system-ui, sans-serif;
  font-size: 25px;
  letter-spacing: -.02em;
}

.rmcw5-confirm p {
  font-size: 15px;
  font-weight: 750;
}

.rmcw5-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.rmcw5-confirm .rmcw5-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.rmcw5-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid #e4c6a2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
  line-height: 1;
}

.rmcw5-btn-light {
  background: var(--rmcw-paper);
  color: #281a11;
}

.rmcw5-btn-light:hover { background: #fff0df; }

.rmcw5-btn-dark {
  background: #2d1d13;
  border-color: #2d1d13;
  color: #fff;
  box-shadow: 0 15px 28px rgba(45,29,19,.20);
}

.rmcw5-btn-dark:hover { background: #4a2f1c; }

/* inquiry modal follows screenshot layout */
.rmcw5-inquiry {
  width: min(520px, calc(100vw - 26px));
}

.rmcw5-inquiry .rmcw5-modal-copy,
.rmcw5-inquiry p {
  margin-top: 18px;
  margin-bottom: 24px;
  color: #7b6a5b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.rmcw5-inquiry .rmcw5-modal-actions {
  margin-top: 10px;
}

/* engraving modal */
.rmcw5-engrave {
  width: min(610px, calc(100vw - 26px));
  border-radius: 22px;
}

.rmcw5-engrave .rmcw5-kicker,
.rmcw5-engrave h3,
.rmcw5-engrave .rmcw5-modal-copy {
  margin-left: 0;
  margin-right: 58px;
}

.rmcw5-engrave h3 {
  font-size: 34px;
}

.rmcw5-engrave .rmcw5-modal-copy {
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 16px;
}

.rmcw5-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin: 16px 0;
  border-radius: 16px;
  border: 1px solid #e3c39c;
  background: #f5dfc0;
}

.rmcw5-tabs button {
  height: 43px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--rmcw-brown);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.rmcw5-tabs button.is-active {
  background: var(--rmcw-paper);
  color: var(--rmcw-dark);
  box-shadow: 0 7px 18px rgba(80,48,20,.12);
}

.rmcw5-tab-panel {
  display: none;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 22px;
  border: 1px solid #ead0ad;
  background: #fffaf2;
}

.rmcw5-tab-panel.is-active { display: block; }

.rmcw5-field-full small {
  align-self: flex-end;
  margin-top: -22px;
  color: #9a7350;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.rmcw5-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.rmcw5-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rmcw5-preview-band {
  min-height: 62px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed #d4ad7d;
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.65) 50%, transparent 100%),
    linear-gradient(135deg, #f1ddc0, #fff8ed);
  color: #3a281a;
  font-weight: 1000;
  letter-spacing: .14em;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.45);
}

.rmcw5-upload {
  min-height: 154px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1.5px dashed #d4ad7d;
  background: linear-gradient(135deg, #fffdf8, #f5dfc0);
  color: var(--rmcw-brown);
  text-align: center;
  cursor: pointer;
}

.rmcw5-upload input { display: none !important; }
.rmcw5-upload i { font-size: 29px; }
.rmcw5-upload strong { color: var(--rmcw-dark); font-size: 16px; }
.rmcw5-upload span { color: var(--rmcw-muted); font-size: 12px; }

.rmcw5-form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #f0beb8;
  background: #fff1ef;
  color: var(--rmcw-danger);
  font-size: 13px;
  font-weight: 900;
}

/* ring box modal */
.rmcw5-box-modal {
  width: min(660px, calc(100vw - 26px));
  border-radius: 22px;
}

.rmcw5-box-modal .rmcw5-kicker,
.rmcw5-box-modal h3 {
  margin-left: 0;
  margin-right: 58px;
}

.rmcw5-box-modal h3 { font-size: 34px; }

.rmcw5-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.rmcw5-box-card {
  position: relative;
  min-height: 188px;
  padding: 12px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #e0c09a;
  background: var(--rmcw-paper);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.rmcw5-box-card:hover {
  transform: translateY(-2px);
  border-color: #b98043;
  box-shadow: 0 16px 34px rgba(99,60,25,.14);
}

.rmcw5-box-card.is-selected {
  border-color: #2d1d13 !important;
  box-shadow: 0 0 0 4px rgba(45,29,19,.12), 0 18px 38px rgba(99,60,25,.14);
}

.rmcw5-box-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #2d1d13;
  color: #fff;
  font-weight: 1000;
}

.rmcw5-box-card img {
  display: block;
  width: 100% !important;
  height: 108px !important;
  object-fit: cover;
  object-position: center;
  border-radius: 16px !important;
  background: #f3dfc3;
}

.rmcw5-box-card strong {
  display: block;
  margin-top: 10px;
  color: var(--rmcw-dark);
  font-size: 14px;
  font-weight: 1000;
}

.rmcw5-box-card small {
  display: block;
  margin-top: 4px;
  color: var(--rmcw-brown);
  font-size: 12px;
  font-weight: 950;
}

/* ---------- wishlist ---------- */
.rmcw5-wish-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--rmcw-border-2);
  background: var(--rmcw-paper);
  box-shadow: var(--rmcw-card-shadow);
}

/* ---------- toast like product section ---------- */
.rmcw5-toast-zone,
.rmp-toast-stack {
  position: fixed !important;
  left: 12px !important;
  right: auto !important;
  bottom: 18px !important;
  top: auto !important;
  z-index: 2147483000 !important;
  width: min(420px, calc(100vw - 24px)) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  pointer-events: none !important;
}

.rmcw5-toast,
.rmp-toast {
  pointer-events: auto !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0,1fr) 46px !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 92px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(156,108,55,.28) !important;
  border-left: 3px solid var(--rmcw-blue) !important;
  background: var(--rmcw-cream) !important;
  box-shadow: 0 18px 45px rgba(30,20,12,.20) !important;
  color: var(--rmcw-dark) !important;
  opacity: 0 !important;
  transform: translateY(14px) !important;
  transition: opacity .22s ease, transform .22s ease !important;
}

.rmcw5-toast.is-visible,
.rmp-toast.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.rmcw5-toast-img,
.rmp-toast__image {
  width: 60px !important;
  height: 60px !important;
  display: block !important;
  flex: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 9px !important;
  border: 1px solid rgba(122,75,32,.18) !important;
  background: #efd7b8 !important;
}

.rmcw5-toast-img--icon {
  display: grid !important;
  place-items: center !important;
  color: var(--rmcw-brown) !important;
  font-size: 20px !important;
}

.rmcw5-toast-content,
.rmp-toast__content {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
}

.rmcw5-toast-content b,
.rmp-toast__title {
  display: block !important;
  margin: 0 !important;
  color: var(--rmcw-dark) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rmcw5-toast-content span,
.rmp-toast__message {
  display: block !important;
  margin: 0 !important;
  color: #705741 !important;
  font-size: 15px !important;
  line-height: 1.28 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rmcw5-toast-status,
.rmp-toast__status {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: end !important;
  border-radius: 50% !important;
  border: 2px solid #b8874f !important;
  background: #0b0b0b !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.18) !important;
  font-size: 16px !important;
}

.rmcw5-toast--error .rmcw5-toast-status,
.rmp-toast--error .rmp-toast__status {
  background: #8f1d15 !important;
  border-color: #e6b9ae !important;
}

.rmcw5-toast--info .rmcw5-toast-status,
.rmp-toast--info .rmp-toast__status {
  background: #2d2118 !important;
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .rmcw5-drawer { width: 100vw; }
  .rmcw5-head { padding: 12px; height: 72px; min-height: 72px; }
  .rmcw5-head-title small { max-width: 145px; }
  .rmcw5-body { padding: 10px; }
  .rmcw5-item-top { grid-template-columns: 82px minmax(0,1fr); }
  .rmcw5-img-box { width: 82px; height: 82px; min-width: 82px; }
  .rmcw5-item-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .rmcw5-mini-actions { justify-content: flex-end; }
  .rmcw5-grid,
  .rmcw5-modal-grid,
  .rmcw5-box-grid { grid-template-columns: 1fr; }
  .rmcw5-modal-layer { padding: 12px; }
  .rmcw5-modal { padding: 18px; width: calc(100vw - 24px); }
  .rmcw5-kicker,
  .rmcw5-modal h3,
  .rmcw5-engrave .rmcw5-kicker,
  .rmcw5-engrave h3,
  .rmcw5-engrave .rmcw5-modal-copy,
  .rmcw5-box-modal .rmcw5-kicker,
  .rmcw5-box-modal h3 {
    margin-left: 0;
    margin-right: 54px;
  }
  .rmcw5-modal-icon {
    position: static;
    width: 74px;
    height: 74px;
    margin-bottom: 10px;
  }
  .rmcw5-modal h3 { font-size: 32px; }
  .rmcw5-inquiry .rmcw5-modal-copy,
  .rmcw5-inquiry p { font-size: 15px; }
  .rmcw5-modal-actions { grid-template-columns: 1fr; }
  .rmcw5-confirm .rmcw5-modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .rmcw5-btn { min-height: 52px; font-size: 13px; letter-spacing: .12em; }
  .rmcw5-toast-zone,
  .rmp-toast-stack { left: 10px !important; bottom: 12px !important; width: calc(100vw - 20px) !important; }
  .rmcw5-toast,
  .rmp-toast { grid-template-columns: 58px minmax(0,1fr) 38px !important; min-height: 78px !important; gap: 10px !important; }
  .rmcw5-toast-img,
  .rmp-toast__image { width: 50px !important; height: 50px !important; }
  .rmcw5-toast-status,
  .rmp-toast__status { width: 36px !important; height: 36px !important; font-size: 14px !important; }
}

/* =========================================================
   Premium compact-radius + add-same drawer polish update
   ========================================================= */
#rmcw-v5,
.rmcw5-toast-zone {
  --rmcw-radius-xl: 16px;
  --rmcw-radius-lg: 13px;
  --rmcw-radius-md: 10px;
}

#rmcw-v5 .rmcw5-drawer { border-radius: 0; }
#rmcw-v5 .rmcw5-head {
  position: relative;
  height: 86px;
  min-height: 86px;
  padding: 17px 18px;
  overflow: hidden;
  background:
    linear-gradient(115deg,
      rgba(255, 246, 218, .96) 0%,
      rgba(246, 246, 246, .94) 34%,
      rgba(255, 237, 226, .96) 67%,
      rgba(255, 248, 235, .96) 100%);
  background-size: 260% 260%;
  animation: rmcw5-premium-head-shade 9s ease-in-out infinite;
}
#rmcw-v5 .rmcw5-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(235, 190, 92, .14), transparent 32%),
    radial-gradient(circle at 74% 12%, rgba(210, 210, 210, .16), transparent 30%),
    radial-gradient(circle at 95% 80%, rgba(220, 143, 118, .13), transparent 32%);
  opacity: .75;
}
#rmcw-v5 .rmcw5-head > * { position: relative; z-index: 1; }
@keyframes rmcw5-premium-head-shade {
  0%, 100% { background-position: 0% 45%; }
  50% { background-position: 100% 55%; }
}

#rmcw-v5 .rmcw5-head-dot {
  width: 47px;
  height: 47px;
  min-width: 47px;
  border-radius: 12px;
}
#rmcw-v5 .rmcw5-head-dot i { font-size: 18px; }
#rmcw-v5 .rmcw5-head-title strong { font-size: 19px; }
#rmcw-v5 .rmcw5-head-title small { font-size: 12.5px; }
#rmcw-v5 .rmcw5-head-actions { gap: 9px; }

#rmcw-v5 .rmcw5-icon-btn,
#rmcw-v5 .rmcw5-count-pill {
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  border-radius: 11px !important;
  font-size: 17px !important;
  overflow: hidden;
  transition: width .22s ease, max-width .22s ease, background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease !important;
}
#rmcw-v5 .rmcw5-icon-btn::after,
#rmcw-v5 .rmcw5-count-pill::after,
#rmcw-v5 .rmcw5-remove::after {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .01em;
  transition: max-width .22s ease, opacity .16s ease, margin-left .22s ease;
}
#rmcw-v5 .rmcw5-icon-btn[data-rmcw5-clear-cart]::after { content: "Delete"; }
#rmcw-v5 .rmcw5-icon-btn[data-rmcw5-close]::after { content: "Close"; }
#rmcw-v5 .rmcw5-count-pill::after { content: "Items"; }
#rmcw-v5 .rmcw5-icon-btn:hover,
#rmcw-v5 .rmcw5-icon-btn:focus-visible,
#rmcw-v5 .rmcw5-count-pill:hover {
  width: 98px !important;
  max-width: 98px !important;
  display: inline-flex !important;
  gap: 7px;
  place-items: initial !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-1px);
}
#rmcw-v5 .rmcw5-icon-btn[data-rmcw5-clear-cart]:hover,
#rmcw-v5 .rmcw5-icon-btn[data-rmcw5-clear-cart]:focus-visible {
  background: var(--rmcw-danger) !important;
}
#rmcw-v5 .rmcw5-icon-btn[data-rmcw5-close]:hover,
#rmcw-v5 .rmcw5-icon-btn[data-rmcw5-close]:focus-visible,
#rmcw-v5 .rmcw5-count-pill:hover {
  background: #17100b !important;
}
#rmcw-v5 .rmcw5-icon-btn:hover::after,
#rmcw-v5 .rmcw5-icon-btn:focus-visible::after,
#rmcw-v5 .rmcw5-count-pill:hover::after {
  max-width: 58px;
  opacity: 1;
  margin-left: 1px;
}

#rmcw-v5 .rmcw5-item,
#rmcw-v5 .rmcw5-empty i,
#rmcw-v5 .rmcw5-check-card,
#rmcw-v5 .rmcw5-modal-card,
#rmcw-v5 .rmcw5-box-card,
#rmcw-v5 .rmcw5-toast {
  border-radius: 14px !important;
}
#rmcw-v5 .rmcw5-img-box,
#rmcw-v5 .rmcw5-head-dot,
#rmcw-v5 .rmcw5-add-same,
#rmcw-v5 .rmcw5-link-btn,
#rmcw-v5 .rmcw5-confirm-card,
#rmcw-v5 .rmcw5-summary,
#rmcw-v5 .rmcw5-tag,
#rmcw-v5 .rmcw5-readonly {
  border-radius: 11px !important;
}
#rmcw-v5 .rmcw5-qty,
#rmcw-v5 .rmcw5-qty button,
#rmcw-v5 .rmcw5-remove,
#rmcw-v5 .rmcw5-toggle,
#rmcw-v5 .rmcw5-select,
#rmcw-v5 .rmcw5-input,
#rmcw-v5 .rmcw5-field-full input,
#rmcw-v5 .rmcw5-modal-grid select {
  border-radius: 10px !important;
}

#rmcw-v5 .rmcw5-remove {
  position: relative;
  overflow: hidden;
  transition: width .2s ease, background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
#rmcw-v5 .rmcw5-remove::after { content: "Delete"; }
#rmcw-v5 .rmcw5-remove:hover,
#rmcw-v5 .rmcw5-remove:focus-visible {
  width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--rmcw-danger);
  color: #fff;
  border-color: var(--rmcw-danger);
  transform: translateY(-1px);
  outline: none;
}
#rmcw-v5 .rmcw5-remove:hover::after,
#rmcw-v5 .rmcw5-remove:focus-visible::after {
  max-width: 56px;
  opacity: 1;
  margin-left: 1px;
}

#rmcw-v5 .rmcw5-select,
#rmcw-v5 .rmcw5-modal-grid select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(135deg, rgba(245, 223, 192, .65), rgba(255, 253, 248, .95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%237b4a1f' d='M5.5 7.5 10 12l4.5-4.5 1.3 1.3L10 14.6 4.2 8.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: 100% 100%, 14px 14px;
  border-color: rgba(190, 143, 87, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 7px 18px rgba(126, 83, 41, .07);
}
#rmcw-v5 .rmcw5-select:hover,
#rmcw-v5 .rmcw5-modal-grid select:hover {
  border-color: #b9854a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 9px 22px rgba(126, 83, 41, .10);
}
#rmcw-v5 .rmcw5-select option,
#rmcw-v5 .rmcw5-modal-grid select option {
  background: #fffaf1;
  color: #2a1b12;
  font-weight: 800;
}

/* =========================================================
   Fix Set: Wishlist drawer alignment + action buttons
   - Keeps cart functionality unchanged
   - Adds heartbreak remove action in wishlist
   ========================================================= */
#rmcw-v5 .rmcw5-item-top {
  grid-template-columns: 96px minmax(0, 1fr) 118px !important;
  align-items: center !important;
}

#rmcw-v5 .rmcw5-item-side {
  width: 118px !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 10px !important;
}

#rmcw-v5 .rmcw5-add-same {
  width: 112px !important;
  justify-content: center !important;
  padding: 0 12px !important;
  min-height: 38px !important;
}

#rmcw-v5 .rmcw5-mini-actions {
  width: 100% !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
}

#rmcw-v5 .rmcw5-remove,
#rmcw-v5 .rmcw5-toggle {
  flex: 0 0 40px !important;
}

#rmcw-v5 .rmcw5-wish-card {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 13px !important;
  min-height: 132px !important;
  padding: 13px !important;
  border-radius: 14px !important;
  border: 1px solid var(--rmcw-border-2) !important;
  background:
    radial-gradient(circle at 0 0, rgba(246, 217, 177, .32), transparent 38%),
    var(--rmcw-paper) !important;
  box-shadow: var(--rmcw-card-shadow) !important;
}

#rmcw-v5 .rmcw5-wish-img {
  width: 96px !important;
  height: 96px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 11px !important;
  border: 1px solid #e2c19b !important;
  background: linear-gradient(135deg, #f3dec1, #fff8ed) !important;
}

#rmcw-v5 .rmcw5-wish-img img,
#rmcw-v5 .rmcw5-wish-card > img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 10px !important;
  margin: 0 !important;
}

#rmcw-v5 .rmcw5-wish-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 9px !important;
}

#rmcw-v5 .rmcw5-wish-title {
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 5px !important;
  line-height: 1.2 !important;
}

#rmcw-v5 .rmcw5-wish-title strong,
#rmcw-v5 .rmcw5-wish-card strong {
  color: #17100b !important;
  font-size: 15px !important;
  font-weight: 1000 !important;
  letter-spacing: .01em !important;
}

#rmcw-v5 .rmcw5-wish-title span,
#rmcw-v5 .rmcw5-wish-card small {
  min-width: 0 !important;
  color: var(--rmcw-muted) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: .025em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#rmcw-v5 .rmcw5-wish-main > small {
  display: block !important;
  max-width: 100% !important;
  color: var(--rmcw-soft-muted) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#rmcw-v5 .rmcw5-wish-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-top: 2px !important;
}

#rmcw-v5 .rmcw5-wish-view {
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 15px !important;
  border-radius: 10px !important;
  border: 1px solid var(--rmcw-border) !important;
  background: #fff9f1 !important;
  color: #17100b !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#rmcw-v5 .rmcw5-wish-view:hover,
#rmcw-v5 .rmcw5-wish-view:focus-visible {
  background: #17100b !important;
  border-color: #17100b !important;
  color: #fff !important;
  outline: none !important;
}

#rmcw-v5 .rmcw5-wish-remove {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid #efc1b7 !important;
  background: #fff4f1 !important;
  color: var(--rmcw-danger) !important;
  cursor: pointer !important;
  font-size: 15px !important;
  transition: width .2s ease, max-width .2s ease, background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease !important;
}

#rmcw-v5 .rmcw5-wish-remove span {
  max-width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  transition: max-width .2s ease, opacity .16s ease !important;
}

#rmcw-v5 .rmcw5-wish-remove:hover,
#rmcw-v5 .rmcw5-wish-remove:focus-visible {
  width: 104px !important;
  max-width: 104px !important;
  background: var(--rmcw-danger) !important;
  border-color: var(--rmcw-danger) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

#rmcw-v5 .rmcw5-wish-remove:hover span,
#rmcw-v5 .rmcw5-wish-remove:focus-visible span {
  max-width: 64px !important;
  opacity: 1 !important;
}

@media (max-width: 420px) {
  #rmcw-v5 .rmcw5-item-top {
    grid-template-columns: 84px minmax(0, 1fr) !important;
  }
  #rmcw-v5 .rmcw5-item-side {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
  }
  #rmcw-v5 .rmcw5-price { justify-self: start !important; }
  #rmcw-v5 .rmcw5-add-same { justify-self: center !important; }
  #rmcw-v5 .rmcw5-mini-actions { width: auto !important; justify-self: end !important; }
  #rmcw-v5 .rmcw5-wish-card {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    min-height: 112px !important;
  }
  #rmcw-v5 .rmcw5-wish-img {
    width: 82px !important;
    height: 82px !important;
  }
}

/* =========================================================
   FINAL ALIGNMENT FIX - header icons, count pill, cart delete,
   wishlist heartbreak remove
   Purpose: keep every icon/number perfectly centered in normal
   square state, then expand cleanly on hover.
   ========================================================= */
#rmcw-v5 .rmcw5-head-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

#rmcw-v5 .rmcw5-icon-btn,
#rmcw-v5 .rmcw5-count-pill {
  position: relative !important;
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1 !important;
  gap: 0 !important;
}

#rmcw-v5 .rmcw5-icon-btn > i,
#rmcw-v5 .rmcw5-icon-btn svg,
#rmcw-v5 .rmcw5-count-pill > i,
#rmcw-v5 .rmcw5-count-pill svg,
#rmcw-v5 .rmcw5-remove > i,
#rmcw-v5 .rmcw5-remove svg,
#rmcw-v5 .rmcw5-wish-remove > i,
#rmcw-v5 .rmcw5-wish-remove svg,
#rmcw-v5 .rmcw5-toggle > i,
#rmcw-v5 .rmcw5-toggle svg {
  flex: 0 0 auto !important;
  width: 1em !important;
  height: 1em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

#rmcw-v5 .rmcw5-count-pill {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  letter-spacing: 0 !important;
}

#rmcw-v5 .rmcw5-icon-btn::after,
#rmcw-v5 .rmcw5-count-pill::after {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  line-height: 1 !important;
}

#rmcw-v5 .rmcw5-icon-btn:hover,
#rmcw-v5 .rmcw5-icon-btn:focus-visible,
#rmcw-v5 .rmcw5-count-pill:hover {
  width: 98px !important;
  max-width: 98px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
}

#rmcw-v5 .rmcw5-icon-btn:hover::after,
#rmcw-v5 .rmcw5-icon-btn:focus-visible::after,
#rmcw-v5 .rmcw5-count-pill:hover::after {
  margin-left: 0 !important;
}

#rmcw-v5 .rmcw5-mini-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

#rmcw-v5 .rmcw5-remove,
#rmcw-v5 .rmcw5-toggle,
#rmcw-v5 .rmcw5-wish-remove {
  position: relative !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1 !important;
  gap: 0 !important;
}

#rmcw-v5 .rmcw5-remove::after {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  line-height: 1 !important;
}

#rmcw-v5 .rmcw5-remove:hover,
#rmcw-v5 .rmcw5-remove:focus-visible {
  width: 92px !important;
  max-width: 92px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
}

#rmcw-v5 .rmcw5-wish-remove span {
  flex: 0 0 auto !important;
  margin: 0 !important;
  line-height: 1 !important;
}

#rmcw-v5 .rmcw5-wish-remove:hover,
#rmcw-v5 .rmcw5-wish-remove:focus-visible {
  width: 104px !important;
  max-width: 104px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
}

#rmcw-v5 .rmcw5-wish-actions {
  display: flex !important;
  align-items: center !important;
}

/* =========================================================
   FINAL CART ITEM DELETE EXPAND FIX
   Keeps trash icon perfectly centered normally, then expands
   wide enough for full Delete text without clipping.
   ========================================================= */
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove {
  box-sizing: border-box !important;
  position: relative !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  text-align: center !important;
}

#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove > i,
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove svg {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove::after {
  content: "Delete" !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
  width: 0 !important;
  max-width: 0 !important;
  margin-left: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  transition: width .22s ease, max-width .22s ease, opacity .16s ease, margin-left .22s ease !important;
}

#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove:hover,
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove:focus-visible {
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  background: var(--rmcw-danger) !important;
  border-color: var(--rmcw-danger) !important;
  color: #fff !important;
  overflow: hidden !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove:hover::after,
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove:focus-visible::after {
  width: 44px !important;
  max-width: 44px !important;
  margin-left: 7px !important;
  opacity: 1 !important;
}

/* Customer coin/box checkout drawer polish */
.rmcw5-box-chip{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px;border:1px solid rgba(117,82,44,.18);border-radius:14px;background:#fffaf1}
.rmcw5-box-chip img{width:52px;height:52px;object-fit:cover;border-radius:12px;background:#f7efe1}
.rmcw5-box-chip div{flex:1;min-width:0}.rmcw5-box-chip b{display:block;font-size:12px;color:#24170f}.rmcw5-box-chip span{display:block;font-size:11px;color:#765f45;margin-top:2px}.rmcw5-box-chip.is-only{margin:0;background:#fff;border-style:dashed}.rmcw5-add-box{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:999px;padding:8px 12px;background:#21150f;color:#fff;font-weight:800;font-size:11px;cursor:pointer}.rmcw5-box-card small{line-height:1.35}.rmcw5-box-card:disabled{opacity:.45;cursor:not-allowed}.rmcw5-coin-meta{align-items:center;flex-wrap:wrap}.rmcw5-item[data-rmcw5-item] .rmcw5-img-box img{object-fit:cover}.rmcw5-wishlist .rmcw5-body{background:linear-gradient(180deg,#fffaf1,#fff)}

@media (prefers-reduced-motion: reduce) {
  .rmcw5-checkout::before,
  .rmcw5-checkout span,
  .rmcw5-checkout i { animation: none; }
}

/* Rajmudra Jewellery linked coin-box cart flow */
#rmcw-v5 .rmcw5-item-top{grid-template-columns:76px minmax(0,1fr) auto;align-items:center}
#rmcw-v5 .rmcw5-item-main{align-self:center}
#rmcw-v5 .rmcw5-item-side{display:flex;align-items:center;justify-content:flex-end;gap:12px}
#rmcw-v5 .rmcw5-mini-actions{display:flex;align-items:center;gap:7px}
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove:hover,
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove:focus-visible{width:38px!important;min-width:38px!important;max-width:38px!important;padding:0!important;gap:0!important}
#rmcw-v5 .rmcw5-mini-actions .rmcw5-remove::after{display:none!important;content:none!important}
#rmcw-v5 .rmcw5-toggle i{transition:transform .2s ease}
#rmcw-v5 .rmcw5-panel.rmcw5-coin-panel{padding:14px;background:linear-gradient(180deg,#fffdf9,#fff8ec)}
#rmcw-v5 .rmcw5-detail-box{overflow:hidden;border:1px solid rgba(92,62,31,.16);border-radius:15px;background:#fff;box-shadow:0 8px 20px rgba(65,39,17,.05)}
#rmcw-v5 .rmcw5-detail-box + .rmcw5-detail-box{margin-top:12px}
#rmcw-v5 .rmcw5-info-row{display:grid;grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr);align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid rgba(92,62,31,.11)}
#rmcw-v5 .rmcw5-info-row:last-child{border-bottom:0}
#rmcw-v5 .rmcw5-info-row span{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#8b6d4a}
#rmcw-v5 .rmcw5-info-row strong{text-align:right;font-size:13px;font-weight:900;color:#26180f;word-break:break-word}
#rmcw-v5 .rmcw5-calc-box .rmcw5-info-row:last-child{background:#21150f}
#rmcw-v5 .rmcw5-calc-box .rmcw5-info-row:last-child span,
#rmcw-v5 .rmcw5-calc-box .rmcw5-info-row:last-child strong{color:#fff}
#rmcw-v5 .rmcw5-box-area{margin-top:13px}
#rmcw-v5 .rmcw5-add-box--animated{width:100%;min-height:48px;justify-content:center;border:1px solid #c39348;background:linear-gradient(100deg,#20140d,#6e431c,#20140d);background-size:220% 100%;box-shadow:0 8px 20px rgba(92,54,20,.2);animation:rmcw5BoxPulse 2s ease-in-out infinite}
#rmcw-v5 .rmcw5-add-box--animated i{animation:rmcw5BoxFloat 1.1s ease-in-out infinite}
#rmcw-v5 .rmcw5-box-chip{margin:0;padding:12px;align-items:center}
#rmcw-v5 .rmcw5-box-chip img{width:68px;height:68px}
#rmcw-v5 .rmcw5-box-chip strong{display:block;margin-top:5px;color:#5b3519;font-size:12px}
#rmcw-v5 .rmcw5-box-chip-actions{display:flex!important;flex:0 0 auto!important;flex-direction:column;gap:5px}
#rmcw-v5 .rmcw5-box-modal{width:min(980px,calc(100vw - 28px));max-width:980px;max-height:min(86vh,820px);overflow:auto;padding:30px}
#rmcw-v5 .rmcw5-box-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;max-height:none;overflow:visible}
#rmcw-v5 .rmcw5-box-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;width:100%;min-height:210px;padding:12px;text-align:left;border:1px solid rgba(95,61,28,.18);border-radius:18px;background:#fff;cursor:default;box-shadow:0 8px 22px rgba(54,34,16,.06)}
#rmcw-v5 .rmcw5-box-card:hover{transform:none}
#rmcw-v5 .rmcw5-box-card.is-selected{border-color:#9b642d;box-shadow:0 0 0 2px rgba(155,100,45,.16),0 12px 26px rgba(70,42,17,.12)}
#rmcw-v5 .rmcw5-box-card.is-selected::after{content:'✓';position:absolute;top:10px;right:10px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#21150f;color:#fff;font-weight:900}
#rmcw-v5 .rmcw5-box-card-image{min-width:0;height:100%;border-radius:14px;overflow:hidden;background:#f7efe1}
#rmcw-v5 .rmcw5-box-card-image img{width:100%;height:100%;min-height:180px;object-fit:cover;border-radius:0}
#rmcw-v5 .rmcw5-box-card-info{display:flex;min-width:0;flex-direction:column}
#rmcw-v5 .rmcw5-box-card-info>strong{font-size:16px;color:#21150f;padding-right:30px}
#rmcw-v5 .rmcw5-box-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0}
#rmcw-v5 .rmcw5-box-specs span{display:flex;flex-direction:column;gap:2px;padding:7px 8px;border-radius:9px;background:#faf5ec;color:#493522;font-size:11px}
#rmcw-v5 .rmcw5-box-specs b{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#967650}
#rmcw-v5 .rmcw5-box-price{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px dashed rgba(92,62,31,.18)}
#rmcw-v5 .rmcw5-box-price span{font-size:11px;color:#765f45}
#rmcw-v5 .rmcw5-box-price strong{font-size:15px;color:#21150f}
#rmcw-v5 .rmcw5-box-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
#rmcw-v5 .rmcw5-box-qty{display:inline-grid;grid-template-columns:30px 35px 30px;align-items:center;border:1px solid rgba(92,62,31,.2);border-radius:999px;overflow:hidden}
#rmcw-v5 .rmcw5-box-qty button{height:32px;border:0;background:#f5ead9;color:#21150f;font-size:17px;cursor:pointer}
#rmcw-v5 .rmcw5-box-qty b{text-align:center;font-size:12px}
#rmcw-v5 .rmcw5-box-select{min-width:92px;height:34px;border:0;border-radius:999px;background:#21150f;color:#fff;font-size:11px;font-weight:900;cursor:pointer}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-select{background:#aa742f}
#rmcw-v5 .rmcw5-box-empty{grid-column:1/-1;display:flex;min-height:220px;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px dashed rgba(92,62,31,.25);border-radius:18px;background:#fffaf1;text-align:center;color:#765f45}
#rmcw-v5 .rmcw5-box-empty i{font-size:30px;color:#a77539}
#rmcw-v5 .rmcw5-box-empty b{color:#21150f}
#rmcw-v5 .rmcw5-btn-animated{position:relative;overflow:hidden;animation:rmcw5BoxPulse 2s ease-in-out infinite}
@keyframes rmcw5BoxPulse{0%,100%{background-position:0 50%;transform:translateY(0)}50%{background-position:100% 50%;transform:translateY(-1px)}}
@keyframes rmcw5BoxFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:760px){
  #rmcw-v5 .rmcw5-item-top{grid-template-columns:68px minmax(0,1fr) auto!important}
  #rmcw-v5 .rmcw5-item-side{grid-column:auto!important;display:flex!important;flex-direction:column;align-items:flex-end;gap:7px}
  #rmcw-v5 .rmcw5-info-row{grid-template-columns:100px minmax(0,1fr)}
  #rmcw-v5 .rmcw5-box-modal{padding:22px 14px}
  #rmcw-v5 .rmcw5-box-grid{grid-template-columns:1fr}
  #rmcw-v5 .rmcw5-box-card{grid-template-columns:110px minmax(0,1fr);min-height:190px}
  #rmcw-v5 .rmcw5-box-card-image img{min-height:165px}
}
@media(max-width:470px){
  #rmcw-v5 .rmcw5-item-top{grid-template-columns:58px minmax(0,1fr) auto!important;gap:8px}
  #rmcw-v5 .rmcw5-item-side .rmcw5-price{font-size:13px}
  #rmcw-v5 .rmcw5-box-card{grid-template-columns:92px minmax(0,1fr);gap:9px;padding:9px}
  #rmcw-v5 .rmcw5-box-card-image img{min-height:160px}
  #rmcw-v5 .rmcw5-box-specs{grid-template-columns:1fr 1fr}
}

/* 2026-07-15: connected box selector, box breakup, and cart total refinements */
#rmcw-v5 .rmcw5-coin-panel > .rmcw5-box-area:first-child{
  margin:0 0 12px;
}
#rmcw-v5 .rmcw5-coin-panel > .rmcw5-box-area:first-child + .rmcw5-detail-box{
  margin-top:0;
}
#rmcw-v5 .rmcw5-bill-toggle{
  border-color:#21150f;
  background:#21150f;
  color:#fff;
  box-shadow:0 8px 20px rgba(33,21,15,.16);
}
#rmcw-v5 .rmcw5-bill-toggle strong,
#rmcw-v5 .rmcw5-bill-toggle i{
  color:#fff;
}
#rmcw-v5 .rmcw5-bill-row.is-total{
  margin:4px -4px -4px;
  padding:11px 12px;
  border-radius:12px;
  background:#21150f;
  color:#fff;
  font-weight:900;
}
#rmcw-v5 .rmcw5-bill-row.is-total strong{
  color:#fff;
}

/* Selected box summary inside the coin card */
#rmcw-v5 .rmcw5-box-chip{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:0;
  padding:12px;
  border:1px solid rgba(117,82,44,.22);
  border-radius:16px;
  background:linear-gradient(135deg,#fffdf8,#fff7eb);
  box-shadow:0 7px 18px rgba(78,47,20,.06);
}
#rmcw-v5 .rmcw5-box-chip img{
  display:block;
  width:82px;
  height:82px;
  padding:0;
  border:1px solid rgba(117,82,44,.14);
  border-radius:13px;
  background:#f7eddf;
  object-fit:cover!important;
  object-position:center!important;
  overflow:hidden;
}
#rmcw-v5 .rmcw5-box-chip>div:not(.rmcw5-box-chip-actions){
  min-width:0;
}
#rmcw-v5 .rmcw5-box-chip b{
  display:block;
  color:#21150f;
  font-size:13px;
  font-weight:950;
  line-height:1.3;
}
#rmcw-v5 .rmcw5-box-chip span{
  display:block;
  margin-top:3px;
  color:#765f45;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#rmcw-v5 .rmcw5-box-chip strong{
  display:block;
  margin-top:5px;
  color:#6a3c17;
  font-size:12px;
  font-weight:950;
}
#rmcw-v5 .rmcw5-box-chip-actions{
  display:flex!important;
  flex:0 0 auto!important;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
#rmcw-v5 .rmcw5-box-chip-actions .rmcw5-link-btn{
  min-width:64px;
  padding:2px 0;
  text-align:right;
}

/* Large connected-box modal with two options per desktop row */
#rmcw-v5 .rmcw5-box-modal{
  width:min(1360px,calc(100vw - 32px));
  max-width:1360px;
  max-height:min(94dvh,940px);
  padding:28px 30px 24px;
  overflow:hidden;
  border-radius:24px;
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-kicker,
#rmcw-v5 .rmcw5-box-modal h3{
  margin-left:0;
}
#rmcw-v5 .rmcw5-box-modal h3{
  font-size:clamp(31px,3vw,42px);
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-modal-copy{
  margin-right:60px;
  margin-bottom:16px;
}
#rmcw-v5 .rmcw5-box-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  max-height:calc(94dvh - 250px);
  margin-top:16px;
  padding:3px 7px 5px 3px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:#aa742f #f6ead9;
}
#rmcw-v5 .rmcw5-box-grid::-webkit-scrollbar{width:7px}
#rmcw-v5 .rmcw5-box-grid::-webkit-scrollbar-track{background:#f6ead9;border-radius:999px}
#rmcw-v5 .rmcw5-box-grid::-webkit-scrollbar-thumb{background:#aa742f;border-radius:999px}
#rmcw-v5 .rmcw5-box-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(245px,1.08fr) minmax(190px,.92fr);
  grid-template-areas:
    "boximage boxinfo"
    "boxfooter boxfooter";
  align-items:stretch;
  gap:14px 16px;
  width:100%;
  min-width:0;
  min-height:360px;
  padding:13px;
  overflow:hidden;
  border:1px solid rgba(95,61,28,.22);
  border-radius:19px;
  background:#fff;
  text-align:left;
  cursor:default;
  box-shadow:0 9px 24px rgba(54,34,16,.07);
  transition:border-color .16s ease,box-shadow .16s ease;
}
#rmcw-v5 .rmcw5-box-card:hover{
  transform:none;
  border-color:#b98043;
  box-shadow:0 14px 30px rgba(78,47,20,.11);
}
#rmcw-v5 .rmcw5-box-card.is-selected{
  border-color:#8d5725;
  box-shadow:0 0 0 3px rgba(155,100,45,.15),0 14px 30px rgba(70,42,17,.12);
}
#rmcw-v5 .rmcw5-box-card.is-selected::after{
  content:'✓';
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:50%;
  background:#21150f;
  color:#fff;
  font-size:17px;
  font-weight:950;
}
#rmcw-v5 .rmcw5-box-card-image{
  grid-area:boximage;
  display:grid;
  place-items:center;
  width:100%;
  height:270px;
  min-width:0;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(91,55,25,.14);
  border-radius:16px;
  background:linear-gradient(145deg,#fffaf1,#f7eddf);
}
#rmcw-v5 .rmcw5-box-card-image img{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  border-radius:15px!important;
  background:#f7eddf!important;
  object-fit:cover!important;
  object-position:center!important;
}
#rmcw-v5 .rmcw5-box-card-info{
  grid-area:boxinfo;
  display:flex;
  min-width:0;
  height:270px;
  flex-direction:column;
  gap:10px;
  align-self:stretch;
}
#rmcw-v5 .rmcw5-box-card-info>strong{
  display:block;
  margin:0;
  padding:3px 38px 0 2px;
  color:#21150f;
  font-size:18px;
  font-weight:950;
  line-height:1.25;
  overflow-wrap:anywhere;
}
#rmcw-v5 .rmcw5-box-specs{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:repeat(3,minmax(0,1fr));
  flex:1;
  gap:9px;
  min-height:0;
  margin:0;
}
#rmcw-v5 .rmcw5-box-specs span{
  display:flex;
  min-height:0;
  height:100%;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:10px 12px;
  border:1px solid rgba(92,62,31,.09);
  border-radius:12px;
  background:#faf5ec;
}
#rmcw-v5 .rmcw5-box-specs small{
  display:block;
  margin:0;
  color:#8b6d4a;
  font-size:11px;
  font-weight:500;
  letter-spacing:.01em;
  line-height:1.2;
  text-transform:none;
}
#rmcw-v5 .rmcw5-box-specs strong{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  margin:0;
  color:#21150f;
  font-size:14px;
  font-weight:950;
  line-height:1.3;
  overflow-wrap:anywhere;
}
#rmcw-v5 .rmcw5-box-color-dot{
  width:14px;
  height:14px;
  flex:0 0 14px;
  border:1px solid rgba(33,21,15,.24);
  border-radius:50%;
  background:var(--rmcw-box-color,#6f315f);
  box-shadow:0 0 0 2px #fff;
}
#rmcw-v5 .rmcw5-box-card-footer{
  grid-area:boxfooter;
  display:grid;
  grid-template-columns:auto minmax(160px,1fr) auto;
  align-items:center;
  gap:12px;
  padding-top:1px;
}
#rmcw-v5 .rmcw5-box-qty{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:5px;
  border:1px solid var(--rmcw-border);
  border-radius:14px;
  background:#fff7eb;
  overflow:visible;
}
#rmcw-v5 .rmcw5-box-qty button{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  padding:0;
  border:0;
  border-radius:9px;
  background:#f1d4ad;
  color:#5d3514;
  font-size:18px;
  font-weight:950;
  line-height:1;
  cursor:pointer;
}
#rmcw-v5 .rmcw5-box-qty b{
  min-width:18px;
  margin:0;
  color:#21150f;
  text-align:center;
  font-size:14px;
  font-weight:950;
}
#rmcw-v5 .rmcw5-box-price{
  display:flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:0;
  padding:8px 13px;
  border:0;
  border-radius:13px;
  background:#21150f;
  color:#fff;
}
#rmcw-v5 .rmcw5-box-price span{
  color:#ead9c8;
  font-size:11px;
  font-weight:700;
}
#rmcw-v5 .rmcw5-box-price strong{
  margin:0;
  color:#fff;
  font-size:16px;
  font-weight:950;
}
#rmcw-v5 .rmcw5-box-select{
  min-width:104px;
  height:48px;
  border:0;
  border-radius:13px;
  background:#21150f;
  color:#fff;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-select{
  background:#aa742f;
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions{
  margin-top:16px;
}
#rmcw-v5 .rmcw5-btn:disabled{
  cursor:not-allowed;
  opacity:.5;
  animation:none!important;
  transform:none!important;
}

@media(max-width:1100px){
  #rmcw-v5 .rmcw5-box-modal{
    width:min(1040px,calc(100vw - 24px));
    padding:24px 20px 20px;
  }
  #rmcw-v5 .rmcw5-box-card{
    grid-template-columns:minmax(220px,1fr) minmax(180px,1fr);
  }
  #rmcw-v5 .rmcw5-box-card-image{
    height:250px;
  }
}
@media(max-width:900px){
  #rmcw-v5 .rmcw5-box-grid{
    grid-template-columns:minmax(0,1fr);
    max-height:calc(94dvh - 245px);
  }
  #rmcw-v5 .rmcw5-box-card{
    grid-template-columns:minmax(260px,1.05fr) minmax(220px,.95fr);
  }
}
@media(max-width:680px){
  #rmcw-v5 .rmcw5-box-chip{
    grid-template-columns:68px minmax(0,1fr) auto;
    gap:9px;
    padding:10px;
  }
  #rmcw-v5 .rmcw5-box-chip img{
    width:68px;
    height:68px;
  }
  #rmcw-v5 .rmcw5-box-modal{
    width:calc(100vw - 16px);
    padding:20px 12px 16px;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-copy{
    margin-right:0;
    font-size:14px;
  }
  #rmcw-v5 .rmcw5-box-grid{
    gap:12px;
    max-height:calc(94dvh - 230px);
    padding-right:4px;
  }
  #rmcw-v5 .rmcw5-box-card{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "boximage"
      "boxinfo"
      "boxfooter";
    min-height:0;
    gap:12px;
    padding:10px;
  }
  #rmcw-v5 .rmcw5-box-card-image{
    height:240px;
  }
  #rmcw-v5 .rmcw5-box-specs{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #rmcw-v5 .rmcw5-box-specs span{
    min-height:58px;
    padding:9px;
  }
  #rmcw-v5 .rmcw5-box-card-footer{
    grid-template-columns:auto minmax(130px,1fr) auto;
    gap:8px;
  }
}
@media(max-width:500px){
  #rmcw-v5 .rmcw5-box-chip{
    grid-template-columns:62px minmax(0,1fr);
  }
  #rmcw-v5 .rmcw5-box-chip img{
    width:62px;
    height:62px;
  }
  #rmcw-v5 .rmcw5-box-chip-actions{
    grid-column:2;
    flex-direction:row;
    justify-content:flex-end;
  }
  #rmcw-v5 .rmcw5-box-card-image{
    height:210px;
  }
  #rmcw-v5 .rmcw5-box-specs{
    grid-template-columns:minmax(0,1fr);
  }
  #rmcw-v5 .rmcw5-box-card-footer{
    grid-template-columns:1fr 1fr;
  }
  #rmcw-v5 .rmcw5-box-price{
    grid-column:1/-1;
    grid-row:1;
  }
  #rmcw-v5 .rmcw5-box-qty{
    grid-column:1;
    grid-row:2;
  }
  #rmcw-v5 .rmcw5-box-select{
    grid-column:2;
    grid-row:2;
    width:100%;
    min-width:0;
  }
}

/* Image-fill and vertical-alignment refinement */
@media(max-width:1100px) and (min-width:901px){
  #rmcw-v5 .rmcw5-box-card-info{height:250px}
}
@media(max-width:900px) and (min-width:681px){
  #rmcw-v5 .rmcw5-box-card-info{height:270px}
}
@media(max-width:680px){
  #rmcw-v5 .rmcw5-box-card-info{height:auto}
  #rmcw-v5 .rmcw5-box-specs{grid-template-rows:none}
}

/* Dynamic product + connected-box label in the cart total breakdown */
#rmcw-v5 .rmcw5-bill-row > span{
  min-width:0;
  line-height:1.4;
  overflow-wrap:anywhere;
}
#rmcw-v5 .rmcw5-bill-row > strong{
  flex:0 0 auto;
  white-space:nowrap;
}

/* 2026-07-15 cart focus, connected multi-box, and static total update */
#rmcw-v5 .rmcw5-head-title > div{
  display:flex;
  align-items:center;
}
#rmcw-v5 .rmcw5-head-actions{
  margin-left:auto;
}
#rmcw-v5 .rmcw5-list.is-focused{
  min-height:100%;
}
#rmcw-v5 .rmcw5-list.is-focused .rmcw5-item{
  margin-bottom:0;
}
#rmcw-v5 .rmcw5-item-controls{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
#rmcw-v5 .rmcw5-item-controls .rmcw5-qty{
  margin-top:0;
}
#rmcw-v5 .rmcw5-attached-box{
  position:relative;
  display:inline-flex;
  min-width:54px;
  height:38px;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:3px 7px 3px 3px;
  overflow:hidden;
  border:1px solid #e0b778;
  border-radius:12px;
  background:linear-gradient(120deg,#fff8ec,#f5d7ad,#fff8ec);
  background-size:220% 100%;
  color:#5b3519;
  cursor:pointer;
  box-shadow:0 5px 12px rgba(91,53,25,.1);
  animation:rmcw5AttachedBoxGlow 2.2s ease-in-out infinite;
}
#rmcw-v5 .rmcw5-attached-box-img{
  display:block;
  width:30px;
  height:30px;
  flex:0 0 30px;
  overflow:hidden;
  border-radius:9px;
  background:#fff;
}
#rmcw-v5 .rmcw5-attached-box-img img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
#rmcw-v5 .rmcw5-attached-box > i{
  font-size:12px;
}
#rmcw-v5 .rmcw5-attached-box > b{
  min-width:14px;
  font-size:12px;
  font-weight:950;
  text-align:center;
}
@keyframes rmcw5AttachedBoxGlow{
  0%,100%{background-position:0 50%;transform:translateY(0)}
  50%{background-position:100% 50%;transform:translateY(-1px)}
}
#rmcw-v5 .rmcw5-add-box--animated .rmcw5-add-box-icon{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border-radius:10px;
  background:rgba(255,255,255,.13);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
#rmcw-v5 .rmcw5-box-area--selected{
  display:grid;
  gap:9px;
}
#rmcw-v5 .rmcw5-product-color{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
#rmcw-v5 .rmcw5-product-color-dot{
  display:inline-block;
  width:14px;
  height:14px;
  flex:0 0 14px;
  border:1px solid rgba(33,21,15,.25);
  border-radius:50%;
  background:var(--rmcw-product-color,#d3a51d);
  box-shadow:0 0 0 2px #fff;
}
#rmcw-v5 .rmcw5-money-row > span{
  line-height:1.35;
  overflow-wrap:anywhere;
}
#rmcw-v5 .rmcw5-grand-total{
  display:flex;
  min-height:50px;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 15px;
  border:1px solid #21150f;
  border-radius:16px;
  background:#21150f;
  color:#fff;
  box-shadow:0 8px 20px rgba(48,29,15,.14);
}
#rmcw-v5 .rmcw5-grand-total span,
#rmcw-v5 .rmcw5-grand-total strong{
  color:#fff;
  font-size:16px;
  font-weight:950;
}
#rmcw-v5 .rmcw5-bill{
  display:none!important;
}
#rmcw-v5 .rmcw5-box-limit{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  margin-top:-4px;
  padding:7px 11px;
  border:1px solid rgba(138,91,42,.2);
  border-radius:11px;
  background:#fff8ec;
  color:#6c4a2d;
  font-size:12px;
  font-weight:750;
}
#rmcw-v5 .rmcw5-box-limit i{
  color:#a3692d;
}
#rmcw-v5 .rmcw5-box-limit b{
  color:#21150f;
  font-weight:950;
}
#rmcw-v5 .rmcw5-box-limit.is-full{
  border-color:#b77b39;
  background:#f8e6cb;
}
#rmcw-v5 .rmcw5-box-warning{
  position:absolute;
  top:18px;
  left:18px;
  z-index:1000002;
  display:flex;
  width:min(390px,calc(100vw - 36px));
  min-height:58px;
  align-items:center;
  gap:11px;
  padding:9px 14px 9px 9px;
  border:1px solid rgba(184,32,32,.24);
  border-radius:14px;
  background:#fff;
  color:#b51f1f;
  font-size:13px;
  font-weight:850;
  line-height:1.4;
  box-shadow:0 16px 36px rgba(71,27,18,.22);
  opacity:0;
  transform:translateY(-12px);
  transition:opacity .2s ease,transform .2s ease;
}
#rmcw-v5 .rmcw5-box-warning[hidden]{
  display:none!important;
}
#rmcw-v5 .rmcw5-box-warning.is-visible{
  opacity:1;
  transform:translateY(0);
}
#rmcw-v5 .rmcw5-box-warning-icon{
  display:grid;
  width:40px;
  height:40px;
  flex:0 0 40px;
  place-items:center;
  border-radius:11px;
  background:#c92323;
  color:#fff;
  font-size:18px;
  box-shadow:0 6px 14px rgba(201,35,35,.23);
}
#rmcw-v5 .rmcw5-box-card.is-selected::after{
  content:'✓';
}
#rmcw-v5 .rmcw5-box-select[aria-pressed="true"]{
  background:#aa742f;
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-btn-animated i{
  animation:rmcw5BoxFloat 1.1s ease-in-out infinite;
}
@media(max-width:680px){
  #rmcw-v5 .rmcw5-item-controls{gap:6px}
  #rmcw-v5 .rmcw5-attached-box{min-width:50px;height:36px}
  #rmcw-v5 .rmcw5-attached-box-img{width:28px;height:28px;flex-basis:28px}
  #rmcw-v5 .rmcw5-grand-total{min-height:48px;border-radius:14px}
  #rmcw-v5 .rmcw5-box-warning{top:10px;left:10px;width:calc(100vw - 20px)}
}
@media(prefers-reduced-motion:reduce){
  #rmcw-v5 .rmcw5-attached-box,
  #rmcw-v5 .rmcw5-add-box--animated,
  #rmcw-v5 .rmcw5-add-box--animated i,
  #rmcw-v5 .rmcw5-box-modal .rmcw5-btn-animated i{animation:none!important}
}

/* Connected-box visibility and Add Box button refinement */
#rmcw-v5 .rmcw5-add-box--animated{
  border:1.5px solid #d91f26!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:0 7px 18px rgba(114,27,27,.10)!important;
  animation:none!important;
  transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
#rmcw-v5 .rmcw5-add-box--animated .rmcw5-add-box-icon{
  background:#fff!important;
  color:#111!important;
  box-shadow:inset 0 0 0 1px rgba(217,31,38,.25)!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
#rmcw-v5 .rmcw5-add-box--animated:hover,
#rmcw-v5 .rmcw5-add-box--animated:focus-visible{
  border-color:#111!important;
  background:#111!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(17,17,17,.20)!important;
  transform:translateY(-1px);
}
#rmcw-v5 .rmcw5-add-box--animated:hover .rmcw5-add-box-icon,
#rmcw-v5 .rmcw5-add-box--animated:focus-visible .rmcw5-add-box-icon{
  background:#fff!important;
  color:#111!important;
  box-shadow:none!important;
}
#rmcw-v5 .rmcw5-add-box--animated i{animation:rmcw5BoxFloat 1.1s ease-in-out infinite}
#rmcw-v5 .rmcw5-box-card.is-unavailable{
  opacity:.72;
  border-style:dashed;
  background:#fbf7f1;
}
#rmcw-v5 .rmcw5-box-card.is-unavailable::after{
  content:'Out of stock';
  width:auto;
  min-width:82px;
  height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#c92323;
  color:#fff;
  font-size:10px;
  letter-spacing:.03em;
}
#rmcw-v5 .rmcw5-box-card.is-unavailable .rmcw5-box-card-image img{filter:saturate(.65)}
#rmcw-v5 .rmcw5-box-card.is-unavailable button:disabled{cursor:not-allowed;opacity:.55}
#rmcw-v5 .rmcw5-box-stock-note{color:#b51f1f!important;font-weight:900!important}

/* =========================================================
   CART CARD ALIGNMENT + TRICOLOUR PRICE + BOX CTA (2026-07-17)
========================================================= */
#rmcw-v5 .rmcw5-item-main{
  width:100%;
  gap:8px;
}
#rmcw-v5 .rmcw5-item-headline{
  display:flex;
  width:100%;
  min-width:0;
  align-items:stretch;
  gap:8px;
}
#rmcw-v5 .rmcw5-item-headline .rmcw5-code{
  flex:1 1 auto;
  min-width:0;
  align-self:stretch;
  justify-content:flex-start;
  box-sizing:border-box;
}
#rmcw-v5 .rmcw5-item-controls{
  display:block;
  width:100%;
  margin-top:0;
}
#rmcw-v5 .rmcw5-item-controls .rmcw5-qty{
  width:100%;
  min-height:38px;
  justify-content:space-between;
  box-sizing:border-box;
}
#rmcw-v5 .rmcw5-item-controls .rmcw5-qty b{
  flex:1 1 auto;
}

/* Attached box now shows only the moving box icon and count. */
#rmcw-v5 .rmcw5-attached-box{
  width:auto;
  min-width:58px;
  height:auto;
  min-height:38px;
  flex:0 0 auto;
  padding:5px 11px;
  gap:7px;
  overflow:visible;
  border:1px solid #e0b778;
  background:#fff8ec;
  background-size:auto;
  color:#5b3519;
  box-shadow:none;
  animation:none!important;
  transform:none!important;
}
#rmcw-v5 .rmcw5-attached-box:hover,
#rmcw-v5 .rmcw5-attached-box:focus-visible{
  border-color:#9b642d;
  background:#f7dfba;
  color:#21150f;
  transform:none!important;
}
#rmcw-v5 .rmcw5-attached-box > i{
  font-size:15px;
  animation:rmcw5BoxFloat 1.1s ease-in-out infinite!important;
}
#rmcw-v5 .rmcw5-attached-box > b{
  min-width:14px;
  font-size:13px;
}
#rmcw-v5 .rmcw5-attached-box-img{
  display:none!important;
}

/* Indian-flag rupee mark used for every amount in the drawer cards. */
#rmcw-v5 .rmcw5-money{
  display:inline-flex;
  align-items:baseline;
  white-space:nowrap;
}
#rmcw-v5 .rmcw5-rupee{
  display:inline-block;
  margin-right:6px;
  font-weight:1000;
  line-height:1;
  color:transparent;
  background:linear-gradient(to bottom,#ff9933 0 33.333%,#ffffff 33.333% 66.666%,#138808 66.666% 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke:.35px rgba(33,21,15,.34);
  filter:drop-shadow(0 1px 0 rgba(33,21,15,.12));
}
#rmcw-v5 .rmcw5-amount{
  color:inherit;
}

/* Strong red Add Box state; moving icon only. */
#rmcw-v5 .rmcw5-add-box--animated{
  border:2px solid #d91f26!important;
  background:#fff!important;
  color:#d91f26!important;
  box-shadow:0 7px 18px rgba(114,27,27,.10)!important;
  animation:none!important;
}
#rmcw-v5 .rmcw5-add-box--animated .rmcw5-add-box-icon{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
}
#rmcw-v5 .rmcw5-add-box--animated i{
  color:inherit!important;
  animation:rmcw5BoxFloat 1.1s ease-in-out infinite!important;
}
#rmcw-v5 .rmcw5-add-box--animated:hover,
#rmcw-v5 .rmcw5-add-box--animated:focus-visible{
  border-color:#111!important;
  background:#d91f26!important;
  color:#111!important;
  box-shadow:0 10px 24px rgba(17,17,17,.18)!important;
}
#rmcw-v5 .rmcw5-add-box--animated:hover .rmcw5-add-box-icon,
#rmcw-v5 .rmcw5-add-box--animated:focus-visible .rmcw5-add-box-icon{
  border:0!important;
  background:transparent!important;
  color:#111!important;
  box-shadow:none!important;
}

@media(max-width:680px){
  #rmcw-v5 .rmcw5-item-headline{gap:6px}
  #rmcw-v5 .rmcw5-attached-box{min-width:52px;min-height:36px;padding:4px 9px}
  #rmcw-v5 .rmcw5-item-controls .rmcw5-qty{min-height:36px}
}
@media(prefers-reduced-motion:reduce){
  #rmcw-v5 .rmcw5-attached-box > i,
  #rmcw-v5 .rmcw5-add-box--animated i{animation:none!important}
}


/* 2026-07-17: in-stock lot boxes only + selected box summary alignment */
#rmcw-v5 .rmcw5-box-card.is-unavailable{
  display:none!important;
}
#rmcw-v5 .rmcw5-box-chip{
  grid-template-columns:76px minmax(0,1fr) 72px!important;
  align-items:center!important;
  column-gap:12px!important;
}
#rmcw-v5 .rmcw5-box-chip img{
  width:76px!important;
  height:76px!important;
  align-self:center!important;
}
#rmcw-v5 .rmcw5-box-chip-copy{
  display:flex!important;
  min-width:0!important;
  height:100%;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
}
#rmcw-v5 .rmcw5-box-chip-copy > b,
#rmcw-v5 .rmcw5-box-chip-copy > .rmcw5-box-chip-meta{
  width:100%;
}
#rmcw-v5 .rmcw5-box-chip-price{
  display:flex!important;
  width:100%;
  min-width:0;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:5px;
  margin-top:6px;
  color:#6a3c17;
  font-size:12px;
  font-weight:950;
  line-height:1.2;
  white-space:nowrap;
}
#rmcw-v5 .rmcw5-box-chip-price > span{
  display:inline-flex!important;
  width:auto!important;
  margin:0!important;
  align-items:center!important;
  color:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
  white-space:nowrap!important;
}
#rmcw-v5 .rmcw5-box-chip-price .rmcw5-money{
  display:inline-flex!important;
  align-items:baseline!important;
  flex-direction:row!important;
  gap:0!important;
  margin:0!important;
}
#rmcw-v5 .rmcw5-box-chip-price .rmcw5-rupee{
  margin-right:4px!important;
}
#rmcw-v5 .rmcw5-box-chip-actions{
  align-self:stretch!important;
  justify-content:center!important;
}
#rmcw-v5 .rmcw5-box-chip-actions .rmcw5-link-btn{
  width:100%;
  min-width:0!important;
  text-align:right!important;
}
@media(max-width:500px){
  #rmcw-v5 .rmcw5-box-chip{
    grid-template-columns:62px minmax(0,1fr)!important;
  }
  #rmcw-v5 .rmcw5-box-chip img{
    width:62px!important;
    height:62px!important;
  }
  #rmcw-v5 .rmcw5-box-chip-actions{
    grid-column:1/-1!important;
    align-self:auto!important;
    flex-direction:row!important;
    justify-content:flex-end!important;
  }
  #rmcw-v5 .rmcw5-box-chip-actions .rmcw5-link-btn{
    width:auto;
  }
  #rmcw-v5 .rmcw5-box-chip-price{
    flex-wrap:wrap!important;
    row-gap:3px;
  }
}

/* =========================================================
   FINAL CART CHIP WIDTH FIX (2026-07-17)
   Keep the lot chip and attached-box chip compact, then make
   the quantity control exactly as wide as those two chips.
========================================================= */
#rmcw-v5 .rmcw5-item-main{
  display:grid!important;
  grid-template-columns:max-content max-content!important;
  grid-template-rows:auto auto!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  justify-self:start!important;
  align-items:stretch!important;
  gap:6px!important;
}
#rmcw-v5 .rmcw5-item-headline{
  display:contents!important;
}
#rmcw-v5 .rmcw5-item-headline .rmcw5-code{
  grid-column:1!important;
  grid-row:1!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  align-self:stretch!important;
  justify-content:flex-start!important;
}
#rmcw-v5 .rmcw5-item-headline .rmcw5-attached-box{
  grid-column:2!important;
  grid-row:1!important;
  align-self:stretch!important;
  margin:0!important;
}
#rmcw-v5 .rmcw5-item-controls{
  grid-column:1 / -1!important;
  grid-row:2!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
#rmcw-v5 .rmcw5-item-controls .rmcw5-qty{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-content:space-between!important;
  margin:0!important;
}
#rmcw-v5 .rmcw5-item-controls .rmcw5-qty b{
  flex:1 1 auto!important;
}
@media(max-width:480px){
  #rmcw-v5 .rmcw5-item-main{gap:5px!important}
  #rmcw-v5 .rmcw5-item-headline .rmcw5-code{padding-inline:10px!important}
}

/* 2026-07-23: final mobile cart item header alignment. */
@media(max-width:680px){
  #rmcw-v5 .rmcw5-item-top{
    box-sizing:border-box!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:start!important;
    gap:9px 10px!important;
    width:100%!important;
    padding:11px!important;
  }
  #rmcw-v5 .rmcw5-img-box{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    width:64px!important;
    height:64px!important;
    min-width:64px!important;
    min-height:64px!important;
    border-radius:15px!important;
  }
  #rmcw-v5 .rmcw5-img-box img{border-radius:13px!important}
  #rmcw-v5 .rmcw5-item-main{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:8px!important;
  }
  #rmcw-v5 .rmcw5-item-headline{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    min-width:0!important;
  }
  #rmcw-v5 .rmcw5-code{
    min-width:0!important;
    max-width:100%!important;
    padding:7px 9px!important;
  }
  #rmcw-v5 .rmcw5-code span{
    min-width:0!important;
    overflow-wrap:anywhere!important;
    white-space:normal!important;
  }
  #rmcw-v5 .rmcw5-item-controls{
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
  }
  #rmcw-v5 .rmcw5-item-side{
    grid-column:2!important;
    grid-row:2!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }
  #rmcw-v5 .rmcw5-item-side .rmcw5-price{
    min-width:0!important;
    max-width:calc(100% - 82px)!important;
    font-size:14px!important;
    line-height:1.2!important;
    overflow-wrap:anywhere!important;
    white-space:normal!important;
  }
  #rmcw-v5 .rmcw5-mini-actions{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
  }
  #rmcw-v5 .rmcw5-remove,
  #rmcw-v5 .rmcw5-toggle{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
  }
}

@media(max-width:420px){
  #rmcw-v5 .rmcw5-item-top{
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:8px!important;
    padding:9px!important;
  }
  #rmcw-v5 .rmcw5-img-box{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
  }
  #rmcw-v5 .rmcw5-code{font-size:11px!important}
  #rmcw-v5 .rmcw5-item-side .rmcw5-price{font-size:13px!important}
}

/* =========================================================
   2026-07-27 — CONNECTED BOX MODAL + MOBILE CART FINAL POLISH
   - Dark, clearly selected box cards; light unselected cards.
   - Fixed modal information/actions with only the box list scrolling.
   - Desktop-style cart item alignment retained on mobile screens.
========================================================= */

/* Keep the modal title/details and both action buttons visible at all times. */
#rmcw-v5 .rmcw5-box-modal.is-active{
  display:flex!important;
  width:min(1360px,calc(100vw - 32px));
  height:min(94dvh,940px);
  max-width:1360px;
  max-height:min(94dvh,940px);
  min-height:0;
  flex-direction:column;
  overflow:hidden!important;
}
#rmcw-v5 .rmcw5-box-modal>.rmcw5-kicker,
#rmcw-v5 .rmcw5-box-modal>h3,
#rmcw-v5 .rmcw5-box-modal>.rmcw5-modal-copy,
#rmcw-v5 .rmcw5-box-modal>.rmcw5-box-limit,
#rmcw-v5 .rmcw5-box-modal>.rmcw5-form-error,
#rmcw-v5 .rmcw5-box-modal>.rmcw5-modal-actions{
  flex:0 0 auto;
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-box-grid{
  flex:1 1 auto;
  min-height:0;
  max-height:none!important;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions{
  position:relative;
  z-index:4;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px;
  margin:12px 0 0!important;
  padding:12px 0 0;
  border-top:1px solid rgba(156,100,45,.22);
  background:#fff8ed;
}
#rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions .rmcw5-btn{
  width:100%;
  min-width:0;
}

/* Unselected cards stay light; selected cards change to the dark Rajmudra Jewellery theme. */
#rmcw-v5 .rmcw5-box-card{
  background:linear-gradient(145deg,#fffdf9 0%,#fff8ed 100%);
  border-color:rgba(126,79,34,.23);
  box-shadow:0 9px 24px rgba(54,34,16,.07);
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease;
}
#rmcw-v5 .rmcw5-box-card.is-selected{
  border-color:#bc8640!important;
  background:linear-gradient(145deg,#21150f 0%,#382318 100%)!important;
  color:#fff8eb;
  box-shadow:0 0 0 2px rgba(188,134,64,.34),0 18px 38px rgba(38,22,12,.28)!important;
}
#rmcw-v5 .rmcw5-box-card.is-selected:hover{
  border-color:#d29d58!important;
  box-shadow:0 0 0 2px rgba(210,157,88,.42),0 20px 42px rgba(38,22,12,.32)!important;
}
#rmcw-v5 .rmcw5-box-card.is-selected::after{
  background:#c58a3c!important;
  color:#21150f!important;
  box-shadow:0 6px 15px rgba(0,0,0,.24);
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-card-image{
  border-color:rgba(226,181,113,.68);
  background:#17100c;
  box-shadow:0 0 0 1px rgba(226,181,113,.16);
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-card-info>strong{
  color:#fff8eb!important;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-specs span{
  border-color:rgba(255,236,207,.14);
  background:rgba(255,255,255,.075);
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-specs small{
  color:#dec3a1;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-specs strong{
  color:#fff9ef;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-color-dot{
  border-color:rgba(255,255,255,.75);
  box-shadow:0 0 0 2px rgba(255,255,255,.18);
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-qty{
  border-color:rgba(226,181,113,.6);
  background:#fff5e6;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-price{
  background:#c0873b;
  color:#21150f;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-price span,
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-price strong{
  color:#21150f;
}
#rmcw-v5 .rmcw5-box-card.is-selected .rmcw5-box-select,
#rmcw-v5 .rmcw5-box-select[aria-pressed="true"]{
  background:#c0873b!important;
  color:#21150f!important;
}

/* Tablet/modal sizing: preserve the fixed header/footer and scroll only the cards. */
@media(max-width:1100px){
  #rmcw-v5 .rmcw5-box-modal.is-active{
    width:min(1040px,calc(100vw - 24px));
  }
}

/* Mobile box modal: compact fixed information area and two always-visible buttons. */
@media(max-width:680px){
  #rmcw-v5 .rmcw5-modal-layer{
    padding:6px!important;
  }
  #rmcw-v5 .rmcw5-box-modal.is-active{
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px);
    max-height:calc(100dvh - 12px);
    padding:16px 10px 10px!important;
    border-radius:18px;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-x{
    top:10px;
    right:10px;
    width:40px;
    height:40px;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-kicker{
    margin:2px 48px 4px 0!important;
    font-size:10px;
    letter-spacing:.18em;
  }
  #rmcw-v5 .rmcw5-box-modal h3{
    margin:0 48px 5px 0!important;
    font-size:30px!important;
    line-height:1.02;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-copy{
    margin:0 0 8px!important;
    font-size:12.5px!important;
    line-height:1.35;
  }
  #rmcw-v5 .rmcw5-box-limit{
    min-height:30px;
    margin:0!important;
    padding:6px 9px;
    font-size:11px;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-grid{
    gap:10px;
    margin-top:9px;
    padding:2px 4px 4px 1px;
  }
  #rmcw-v5 .rmcw5-box-card{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"boximage" "boxinfo" "boxfooter"!important;
    gap:9px!important;
    min-height:0!important;
    padding:9px!important;
    border-radius:15px;
  }
  #rmcw-v5 .rmcw5-box-card-image{
    height:190px!important;
    border-radius:13px;
  }
  #rmcw-v5 .rmcw5-box-card-image img{
    border-radius:12px!important;
  }
  #rmcw-v5 .rmcw5-box-card-info{
    height:auto!important;
    gap:7px;
  }
  #rmcw-v5 .rmcw5-box-card-info>strong{
    padding:0 34px 0 1px;
    font-size:16px;
  }
  #rmcw-v5 .rmcw5-box-specs{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:none!important;
    gap:6px;
  }
  #rmcw-v5 .rmcw5-box-specs span{
    min-height:54px!important;
    height:auto;
    padding:7px!important;
    border-radius:10px;
  }
  #rmcw-v5 .rmcw5-box-specs small{
    font-size:9px;
  }
  #rmcw-v5 .rmcw5-box-specs strong{
    gap:5px;
    font-size:11px;
    line-height:1.2;
  }
  #rmcw-v5 .rmcw5-box-color-dot{
    width:11px;
    height:11px;
    flex-basis:11px;
  }
  #rmcw-v5 .rmcw5-box-card-footer{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  #rmcw-v5 .rmcw5-box-price{
    grid-column:1/-1!important;
    grid-row:1!important;
    min-height:42px;
    padding:7px 9px;
  }
  #rmcw-v5 .rmcw5-box-qty{
    grid-column:1!important;
    grid-row:2!important;
    width:100%;
    min-height:42px;
    justify-content:space-between;
  }
  #rmcw-v5 .rmcw5-box-select{
    grid-column:2!important;
    grid-row:2!important;
    width:100%;
    min-width:0;
    height:42px;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px;
    margin-top:8px!important;
    padding-top:8px;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions .rmcw5-btn{
    min-height:48px;
    padding:0 8px;
    font-size:11px;
    letter-spacing:.08em;
  }
}

/* Mobile cart: keep the desktop three-column alignment, scaled to the drawer. */
@media(max-width:680px){
  #rmcw-v5 .rmcw5-cart .rmcw5-body{
    padding:10px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item{
    border-radius:17px;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-top{
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    padding:10px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-img-box{
    grid-column:1!important;
    grid-row:1!important;
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    border-radius:13px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-img-box img{
    border-radius:11px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-main{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:6px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-headline{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-code{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:32px;
    padding:6px 8px!important;
    border-radius:10px;
    font-size:11px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-code span{
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-attached-box{
    flex:0 0 auto!important;
    min-width:42px!important;
    min-height:32px!important;
    height:32px!important;
    padding:3px 7px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls{
    grid-column:1!important;
    grid-row:2!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls .rmcw5-qty{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    min-height:32px!important;
    padding:3px!important;
    justify-content:space-between!important;
    border-radius:10px;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls .rmcw5-qty button{
    width:25px;
    height:25px;
    border-radius:8px;
    font-size:15px;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-side{
    grid-column:3!important;
    grid-row:1!important;
    display:flex!important;
    width:auto!important;
    min-width:74px!important;
    max-width:none!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    gap:7px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-side .rmcw5-price{
    min-width:0!important;
    max-width:none!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-mini-actions{
    display:flex!important;
    width:auto!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-remove,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    border-radius:10px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-panel{
    padding:12px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-foot{
    flex:0 0 auto;
    padding:10px 12px 12px;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-checkout{
    min-height:52px;
    margin-top:9px;
    border-radius:15px;
  }
  /* Hover expansion is useful on desktop, but must not disturb touch alignment. */
  #rmcw-v5 .rmcw5-cart .rmcw5-remove:hover,
  #rmcw-v5 .rmcw5-cart .rmcw5-remove:focus-visible,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle:hover,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle:focus-visible{
    width:32px!important;
    max-width:32px!important;
    gap:0!important;
  }
  #rmcw-v5 .rmcw5-head .rmcw5-icon-btn:hover,
  #rmcw-v5 .rmcw5-head .rmcw5-icon-btn:focus-visible,
  #rmcw-v5 .rmcw5-head .rmcw5-count-pill:hover{
    width:45px!important;
    max-width:45px!important;
    gap:0!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-remove::after,
  #rmcw-v5 .rmcw5-head .rmcw5-icon-btn::after,
  #rmcw-v5 .rmcw5-head .rmcw5-count-pill::after{
    display:none!important;
  }
}

@media(max-width:420px){
  #rmcw-v5 .rmcw5-cart .rmcw5-item-top{
    grid-template-columns:50px minmax(0,1fr) auto!important;
    gap:7px!important;
    padding:8px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-img-box{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-code{
    padding-inline:7px!important;
    font-size:10px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-side{
    min-width:69px!important;
    gap:5px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-side .rmcw5-price{
    font-size:12px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-remove,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    max-width:30px!important;
  }
}

/* =========================================================
   2026-07-27 — MOBILE CONNECTED-BOX CARD DESKTOP-UI MATCH
   Keep the same image + details + footer structure used on desktop,
   scaled to fit inside the mobile modal.
========================================================= */
@media (max-width:680px){
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-grid{
    grid-template-columns:minmax(0,1fr)!important;
    align-content:start;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    display:grid!important;
    grid-template-columns:minmax(112px,42%) minmax(0,58%)!important;
    grid-template-areas:
      "boximage boxinfo"
      "boxfooter boxfooter"!important;
    align-items:stretch!important;
    gap:8px 10px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:8px!important;
    overflow:hidden!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image{
    grid-area:boximage!important;
    display:grid!important;
    width:100%!important;
    height:180px!important;
    min-height:180px!important;
    max-height:180px!important;
    align-self:stretch!important;
    overflow:hidden!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:cover!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info{
    grid-area:boxinfo!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:100%!important;
    height:180px!important;
    min-width:0!important;
    min-height:0!important;
    max-height:180px!important;
    flex-direction:column!important;
    gap:6px!important;
    overflow:visible!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info>strong{
    display:block!important;
    flex:0 0 auto;
    margin:0!important;
    padding:1px 31px 0 1px!important;
    font-size:14px!important;
    line-height:1.2!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    flex:1 1 auto!important;
    gap:5px!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs span{
    display:flex!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    justify-content:center!important;
    gap:2px!important;
    padding:5px 7px!important;
    border-radius:9px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs small{
    display:block!important;
    font-size:8.5px!important;
    line-height:1.05!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs strong{
    display:flex!important;
    gap:4px!important;
    font-size:10.5px!important;
    line-height:1.12!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-color-dot{
    width:10px!important;
    height:10px!important;
    flex:0 0 10px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-footer{
    grid-area:boxfooter!important;
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    grid-template-columns:88px minmax(0,1fr) 72px!important;
    grid-template-rows:minmax(40px,auto)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    padding-top:0!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    width:88px!important;
    min-width:88px!important;
    min-height:40px!important;
    justify-content:space-between!important;
    gap:3px!important;
    padding:4px!important;
    border-radius:11px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty button{
    width:25px!important;
    height:25px!important;
    font-size:15px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty b{
    min-width:14px!important;
    font-size:12px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    height:40px!important;
    justify-content:center!important;
    gap:5px!important;
    padding:5px 6px!important;
    border-radius:11px!important;
    overflow:hidden!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price span{
    min-width:0!important;
    font-size:9px!important;
    white-space:nowrap!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price strong{
    min-width:0!important;
    font-size:11px!important;
    white-space:nowrap!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-select{
    grid-column:3!important;
    grid-row:1!important;
    display:block!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 5px!important;
    border-radius:11px!important;
    font-size:10px!important;
  }
}

@media (max-width:420px){
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(106px,41%) minmax(0,59%)!important;
    gap:7px 8px!important;
    padding:7px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image,
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info{
    height:164px!important;
    min-height:164px!important;
    max-height:164px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info>strong{
    padding-right:28px!important;
    font-size:12.5px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs{
    gap:4px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs span{
    padding:4px 6px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs small{
    font-size:8px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs strong{
    font-size:9.5px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-footer{
    grid-template-columns:82px minmax(0,1fr) 66px!important;
    gap:5px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty{
    width:82px!important;
    min-width:82px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price{
    gap:3px!important;
    padding-inline:4px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price span{
    font-size:8px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price strong{
    font-size:10px!important;
  }
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-select{
    width:66px!important;
    min-width:66px!important;
    max-width:66px!important;
    font-size:9px!important;
  }
}

/* =========================================================
   2026-07-27 — MOBILE BOX IMAGE WIDTH + BOTTOM SPACING POLISH
   - Gives the box photo more horizontal room on phones.
   - Shows the complete box image without edge cropping.
   - Keeps the fixed modal action row clear of the bottom edge.
========================================================= */
@media (max-width:680px){
  #rmcw-v5 .rmcw5-box-modal.is-active{
    padding-bottom:max(14px,env(safe-area-inset-bottom))!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-grid{
    padding-bottom:10px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(142px,48%) minmax(0,52%)!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image{
    height:172px!important;
    min-height:172px!important;
    max-height:172px!important;
    background:#1b100b!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info{
    height:172px!important;
    min-height:172px!important;
    max-height:172px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions{
    margin-bottom:2px!important;
    padding-bottom:2px!important;
  }
}

@media (max-width:420px){
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(138px,47%) minmax(0,53%)!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image,
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info{
    height:158px!important;
    min-height:158px!important;
    max-height:158px!important;
  }
}

@media (max-width:360px){
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(128px,46%) minmax(0,54%)!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image,
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info{
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }
}

/* =========================================================
   2026-07-27 — MOBILE CONNECTED-BOX FINAL RESPONSIVE FIT
   - Wider 4:3 image column without top/bottom letterboxing.
   - Image and details share one exact-height desktop-style row.
   - Footer actions remain fully visible above the modal border.
========================================================= */
@media (max-width:680px){
  #rmcw-v5 .rmcw5-modal-layer{
    padding:8px!important;
  }

  #rmcw-v5 .rmcw5-box-modal.is-active{
    width:calc(100vw - 16px)!important;
    height:calc(100dvh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    padding:16px 10px max(18px,calc(env(safe-area-inset-bottom) + 12px))!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-grid{
    min-height:0!important;
    margin-top:9px!important;
    padding:2px 4px 12px 1px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(0,54%) minmax(0,46%)!important;
    grid-template-areas:
      "boximage boxinfo"
      "boxfooter boxfooter"!important;
    column-gap:8px!important;
    row-gap:7px!important;
    padding:7px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:4/3!important;
    align-self:stretch!important;
    background:#1b100b!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-image img{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:cover!important;
    object-position:center!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-self:stretch!important;
    gap:4px!important;
    overflow:hidden!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info>strong{
    flex:0 0 auto!important;
    padding:0 27px 0 1px!important;
    font-size:12px!important;
    line-height:1.15!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs{
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    flex:1 1 auto!important;
    min-height:0!important;
    gap:4px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs span{
    min-height:0!important;
    height:auto!important;
    justify-content:center!important;
    gap:1px!important;
    padding:4px 6px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs small{
    font-size:7.5px!important;
    line-height:1!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs strong{
    gap:3px!important;
    font-size:9px!important;
    line-height:1.05!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-color-dot{
    width:9px!important;
    height:9px!important;
    flex-basis:9px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-footer{
    grid-template-columns:76px minmax(0,1fr) 62px!important;
    gap:5px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty{
    width:76px!important;
    min-width:76px!important;
    min-height:36px!important;
    height:36px!important;
    padding:3px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty button{
    width:24px!important;
    height:24px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price{
    min-height:36px!important;
    height:36px!important;
    padding:4px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price span{
    font-size:7.5px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-price strong{
    font-size:9px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-select{
    width:62px!important;
    min-width:62px!important;
    max-width:62px!important;
    height:36px!important;
    min-height:36px!important;
    font-size:8.5px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions{
    flex:0 0 auto!important;
    margin:9px 0 0!important;
    padding:9px 1px 5px!important;
    gap:8px!important;
    background:#fff8ed!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-modal-actions .rmcw5-btn{
    min-height:46px!important;
    height:46px!important;
  }
}

@media (max-width:380px){
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(0,53%) minmax(0,47%)!important;
    column-gap:6px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-info>strong{
    padding-right:25px!important;
    font-size:11px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card-footer{
    grid-template-columns:72px minmax(0,1fr) 58px!important;
    gap:4px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-qty{
    width:72px!important;
    min-width:72px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-select{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    font-size:8px!important;
  }
}

@media (max-width:340px){
  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-card{
    grid-template-columns:minmax(0,52%) minmax(0,48%)!important;
    padding:6px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs span{
    padding:3px 5px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs small{
    font-size:7px!important;
  }

  #rmcw-v5 .rmcw5-box-modal .rmcw5-box-specs strong{
    font-size:8px!important;
  }
}

/* =========================================================
   2026-07-27 — MOBILE CART SINGLE-ROW PROPORTION FIX
   - Larger square product thumbnail matching the two control rows.
   - Compact code + attached-box row with equal-width quantity row.
   - Price, delete and dropdown stay in the same desktop-style row.
   - Delete and dropdown controls use identical square dimensions.
========================================================= */
@media (max-width:680px){
  #rmcw-v5 .rmcw5-cart .rmcw5-item-top{
    --rmcw5-mobile-thumb:clamp(66px,19vw,76px);
    --rmcw5-mobile-controls:clamp(124px,39vw,150px);
    --rmcw5-mobile-control-h:clamp(30px,8.7vw,35px);
    --rmcw5-mobile-row-gap:6px;
    display:grid!important;
    grid-template-columns:var(--rmcw5-mobile-thumb) var(--rmcw5-mobile-controls) minmax(0,1fr)!important;
    grid-template-rows:var(--rmcw5-mobile-thumb)!important;
    align-items:center!important;
    justify-content:stretch!important;
    column-gap:7px!important;
    row-gap:0!important;
    padding:9px!important;
    overflow:hidden!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-img-box{
    grid-column:1!important;
    grid-row:1!important;
    width:var(--rmcw5-mobile-thumb)!important;
    height:var(--rmcw5-mobile-thumb)!important;
    min-width:var(--rmcw5-mobile-thumb)!important;
    min-height:var(--rmcw5-mobile-thumb)!important;
    max-width:var(--rmcw5-mobile-thumb)!important;
    max-height:var(--rmcw5-mobile-thumb)!important;
    align-self:center!important;
    border-radius:14px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-img-box img{
    border-radius:12px!important;
    object-fit:cover!important;
    object-position:center!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-item-main{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:var(--rmcw5-mobile-control-h) var(--rmcw5-mobile-control-h)!important;
    align-content:center!important;
    align-items:stretch!important;
    justify-self:start!important;
    width:var(--rmcw5-mobile-controls)!important;
    min-width:0!important;
    max-width:var(--rmcw5-mobile-controls)!important;
    height:calc((var(--rmcw5-mobile-control-h) * 2) + var(--rmcw5-mobile-row-gap))!important;
    gap:var(--rmcw5-mobile-row-gap)!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-item-headline{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) clamp(39px,11vw,45px)!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    height:var(--rmcw5-mobile-control-h)!important;
    gap:5px!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-code{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:var(--rmcw5-mobile-control-h)!important;
    min-height:var(--rmcw5-mobile-control-h)!important;
    align-items:center!important;
    align-self:stretch!important;
    gap:5px!important;
    padding:0 7px!important;
    border-radius:10px!important;
    font-size:clamp(9px,2.8vw,11px)!important;
    line-height:1!important;
    overflow:hidden!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-code > i{
    flex:0 0 auto!important;
    font-size:.92em!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-code span{
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-attached-box{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:var(--rmcw5-mobile-control-h)!important;
    min-height:var(--rmcw5-mobile-control-h)!important;
    align-self:stretch!important;
    justify-content:center!important;
    gap:4px!important;
    margin:0!important;
    padding:0 5px!important;
    border-radius:10px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-attached-box > i{
    font-size:clamp(10px,3vw,13px)!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-attached-box > b{
    min-width:10px!important;
    font-size:clamp(9px,2.8vw,11px)!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls{
    grid-column:1!important;
    grid-row:2!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:var(--rmcw5-mobile-control-h)!important;
    margin:0!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls .rmcw5-qty{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:var(--rmcw5-mobile-control-h)!important;
    min-height:var(--rmcw5-mobile-control-h)!important;
    align-items:center!important;
    justify-content:space-between!important;
    margin:0!important;
    padding:3px!important;
    border-radius:10px!important;
    box-sizing:border-box!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls .rmcw5-qty button{
    width:calc(var(--rmcw5-mobile-control-h) - 7px)!important;
    height:calc(var(--rmcw5-mobile-control-h) - 7px)!important;
    min-width:calc(var(--rmcw5-mobile-control-h) - 7px)!important;
    padding:0!important;
    border-radius:8px!important;
    font-size:clamp(14px,4vw,17px)!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-controls .rmcw5-qty b{
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:clamp(12px,3.6vw,15px)!important;
    line-height:1!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-item-side{
    grid-column:3!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:var(--rmcw5-mobile-control-h) var(--rmcw5-mobile-control-h)!important;
    align-content:center!important;
    align-items:center!important;
    justify-items:end!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:calc((var(--rmcw5-mobile-control-h) * 2) + var(--rmcw5-mobile-row-gap))!important;
    gap:var(--rmcw5-mobile-row-gap)!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-side .rmcw5-price{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    height:var(--rmcw5-mobile-control-h)!important;
    align-items:center!important;
    justify-content:flex-end!important;
    font-size:clamp(11px,3.25vw,13px)!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }

  #rmcw-v5 .rmcw5-cart .rmcw5-mini-actions{
    grid-column:1!important;
    grid-row:2!important;
    display:grid!important;
    grid-template-columns:repeat(2,var(--rmcw5-mobile-control-h))!important;
    width:auto!important;
    height:var(--rmcw5-mobile-control-h)!important;
    align-items:center!important;
    justify-content:end!important;
    gap:5px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-remove,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle,
  #rmcw-v5 .rmcw5-cart .rmcw5-remove:hover,
  #rmcw-v5 .rmcw5-cart .rmcw5-remove:focus-visible,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle:hover,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle:focus-visible{
    display:grid!important;
    place-items:center!important;
    width:var(--rmcw5-mobile-control-h)!important;
    height:var(--rmcw5-mobile-control-h)!important;
    min-width:var(--rmcw5-mobile-control-h)!important;
    max-width:var(--rmcw5-mobile-control-h)!important;
    min-height:var(--rmcw5-mobile-control-h)!important;
    max-height:var(--rmcw5-mobile-control-h)!important;
    aspect-ratio:1/1!important;
    flex:0 0 var(--rmcw5-mobile-control-h)!important;
    padding:0!important;
    gap:0!important;
    border-radius:10px!important;
    box-sizing:border-box!important;
    transform:none!important;
    overflow:hidden!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-remove::after,
  #rmcw-v5 .rmcw5-cart .rmcw5-toggle::after{
    display:none!important;
    content:none!important;
  }
}

@media (max-width:360px){
  #rmcw-v5 .rmcw5-cart .rmcw5-item-top{
    column-gap:6px!important;
    padding:8px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-mini-actions{
    gap:4px!important;
  }
  #rmcw-v5 .rmcw5-cart .rmcw5-item-side .rmcw5-price{
    font-size:11px!important;
  }
}

/* Drawer v126: keep every connected-box Select button visually active. */
@keyframes rmcw5BoxSelectPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(122,59,16,.42)}50%{transform:scale(1.045);box-shadow:0 0 0 9px rgba(122,59,16,0)}}
[data-rmcw5-box] .rmcw5-box-select{animation:rmcw5BoxSelectPulse 1.05s ease-in-out infinite!important;will-change:transform,box-shadow!important}
[data-rmcw5-box] .rmcw5-box-card.is-selected .rmcw5-box-select{animation:rmcw5BoxSelectPulse 1.05s ease-in-out infinite!important}

/* Drawer v6: immediate non-destructive feedback while Add to Cart is validating stock. */
.rmcw5-adding{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 0 10px;
  padding:11px 12px;
  border:1px solid #e5cda9;
  border-radius:12px;
  background:#fff8ec;
  color:#24160f;
}
.rmcw5-adding-spinner{
  width:22px;
  height:22px;
  flex:0 0 22px;
  border:3px solid #ead8bd;
  border-top-color:#21140b;
  border-radius:50%;
  animation:rmcw5AddingSpin .7s linear infinite;
}
.rmcw5-adding div{min-width:0;display:grid;gap:2px}
.rmcw5-adding b{font-size:11px;font-weight:900}
.rmcw5-adding small{color:#80664d;font-size:9px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes rmcw5AddingSpin{to{transform:rotate(360deg)}}
