/* =========================================================
   Rajmudra 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 {
  width: 100%;
  min-height: 54px;
  margin-top: 11px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2d2118, #704217);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(45,33,24,.22);
}

/* =========================================================
   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;
}
