:root {
  --r7-bg:#fff8ec;
  --r7-card:#fffdf8;
  --r7-line:#ead7b9;
  --r7-line2:#d7b17a;
  --r7-text:#21140b;
  --r7-muted:#7a6650;
  --r7-dark:#130905;
  --r7-gold:#9a6a2d;
  --r7-green:#087a43;
  --r7-red:#b3261e;
  --r7-shadow:0 24px 70px rgba(70,38,12,.14)
}

* {
  box-sizing:border-box
}

body {
  background:radial-gradient(circle at 10% 0,rgba(226,182,111,.28),transparent 25%),linear-gradient(135deg,#fffdf8,#f6ead8)!important;
  color:var(--r7-text)
}

.rmco7-page {
  min-height:100vh;
  padding:22px 480px 42px 24px;
  font-family:Inter,Montserrat,Arial,sans-serif
}

.rmco7-main-area {
  max-width:1180px
}

.rmco7-head {
  padding:16px 4px 22px;
  border-bottom:1px solid rgba(215,177,122,.55);
  margin-bottom:22px
}

.rmco7-head span {
  display:block;
  color:var(--r7-gold);
  font-weight:950;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:8px
}

.rmco7-head h1 {
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(36px,4vw,60px);
  font-weight:600;
  letter-spacing:-1.4px
}

.rmco7-head p {
  margin:9px 0 0;
  color:var(--r7-muted);
  font-weight:800;
  line-height:1.45
}

.rmco7-form {
  display:grid;
  gap:18px
}

.rmco7-card,.rmco7-empty {
  background:linear-gradient(145deg,#fffdf8,#fff7ec);
  border:1px solid var(--r7-line);
  border-radius:26px;
  box-shadow:var(--r7-shadow);
  padding:20px
}

.rmco7-card-title {
  display:flex;
  gap:13px;
  align-items:center;
  margin-bottom:16px
}

.rmco7-card-title>i {
  width:44px;
  height:44px;
  border-radius:15px;
  background:#f4e3ca;
  color:var(--r7-gold);
  display:grid;
  place-items:center
}

.rmco7-card-title b {
  display:block;
  font-size:19px
}

.rmco7-card-title small {
  display:block;
  color:var(--r7-muted);
  font-weight:800;
  margin-top:2px
}

.rmco7-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:14px
}

.rmco7-grid.three {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.rmco7-grid label,.rmco7-select-label,.rmco7-code-label {
  display:grid;
  gap:8px;
  color:var(--r7-muted);
  font-size:13px;
  font-weight:950
}

.rmco7-grid input,.rmco7-select-label select,.rmco7-code-label input,.rmco7-center-line select,.rmco7-coupon input {
  width:100%;
  height:50px;
  border:1px solid var(--r7-line);
  background:#fffdf8;
  border-radius:15px;
  padding:0 15px;
  color:var(--r7-text);
  font-weight:900;
  outline:0
}

.rmco7-grid input[readonly] {
  cursor:no-drop;
  background:#fff7ea
}

.rmco7-grid input:focus,.rmco7-select-label select:focus,.rmco7-code-label input:focus,.rmco7-center-line select:focus,.rmco7-coupon input:focus {
  border-color:var(--r7-line2);
  box-shadow:0 0 0 4px rgba(215,177,122,.20)
}

.input-error {
  border-color:var(--r7-red)!important;
  box-shadow:0 0 0 4px rgba(179,38,30,.15)!important
}

.rmco7-note {
  display:flex;
  gap:12px;
  margin-top:14px;
  padding:13px 14px;
  border:1px solid rgba(154,106,45,.22);
  border-radius:18px;
  background:#fffaf2;
  color:var(--r7-muted);
  font-weight:800
}

.rmco7-note i {
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:12px;
  background:var(--r7-dark);
  color:#fff;
  display:grid;
  place-items:center
}

.rmco7-note p {
  margin:0;
  line-height:1.45
}

.rmco7-locations {
  display:grid;
  gap:14px
}

.rmco7-loc {
  position:relative;
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:14px;
  align-items:start;
  border:1px solid var(--r7-line);
  border-radius:22px;
  background:#fffaf2;
  padding:15px;
  cursor:pointer;
  transition:.18s
}

.rmco7-loc input[type=radio] {
  position:absolute;
  opacity:0;
  pointer-events:none
}

.rmco7-loc-icon {
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid var(--r7-line);
  background:#fffdf8;
  color:var(--r7-gold);
  display:grid;
  place-items:center;
  font-size:20px
}

.rmco7-loc-body b {
  display:block;
  font-size:17px
}

.rmco7-loc-body small {
  display:block;
  color:var(--r7-muted);
  font-weight:800;
  line-height:1.45;
  margin-top:4px
}

.rmco7-loc.active {
  border-color:var(--r7-dark);
  box-shadow:0 0 0 3px rgba(17,9,5,.08);
  background:#fffdf8
}

.rmco7-loc.active .rmco7-loc-icon {
  background:var(--r7-dark);
  color:#fff;
  border-color:var(--r7-dark)
}

.rmco7-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-style:normal;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-left:7px;
  vertical-align:middle
}

.rmco7-badge:before {
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor
}

.rmco7-badge.is-open {
  background:#e7f7ef;
  color:var(--r7-green)
}

.rmco7-badge.is-closed {
  background:#fff0ed;
  color:var(--r7-red)
}

.rmco7-inner-panel {
  margin-top:14px;
  border:1px dashed var(--r7-line2);
  border-radius:18px;
  background:#fff7ec;
  padding:14px;
  display:grid;
  gap:14px
}

.rmco7-inner-panel[hidden],.rmco7-selected-center[hidden],.rmco7-code-label[hidden],.rmco7-coupon[hidden],.rmco7-modal[hidden] {
  display:none!important
}

.rmco7-place-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center
}

.rmco7-place-row strong,.rmco7-selected-center b {
  display:block;
  color:var(--r7-text);
  font-weight:950
}

.rmco7-place-row span,.rmco7-selected-center span,.rmco7-selected-center small {
  display:block;
  color:var(--r7-muted);
  font-weight:800;
  line-height:1.45;
  margin-top:3px
}

.rmco7-center-line {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:end
}

.rmco7-center-line label {
  display:grid;
  gap:8px;
  color:var(--r7-muted);
  font-size:13px;
  font-weight:950
}

.rmco7-selected-center {
  border:1px solid var(--r7-line);
  border-radius:16px;
  background:#fffdf8;
  padding:12px
}

.rmco7-map-btn {
  min-height:50px;
  border:0;
  border-radius:15px;
  background:var(--r7-dark);
  color:#fff;
  font-weight:950;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  white-space:nowrap
}

.rmco7-payments {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}

.rmco7-payments label {
  position:relative;
  display:grid;
  grid-template-columns:54px 1fr;
  gap:13px;
  align-items:center;
  border:2px solid var(--r7-line);
  border-radius:22px;
  background:#fffaf2;
  padding:17px;
  cursor:pointer;
  min-height:92px;
  transition:.18s
}

.rmco7-payments label input {
  position:absolute;
  opacity:0
}

.rmco7-payments label i {
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#f4e3ca;
  color:var(--r7-gold);
  font-size:21px
}

.rmco7-payments b {
  display:block;
  font-size:17px
}

.rmco7-payments small {
  display:block;
  color:var(--r7-muted);
  font-weight:800;
  margin-top:4px
}

.rmco7-payments label.active {
  border-color:var(--r7-dark);
  background:#fffdf8
}

.rmco7-payments label.active i {
  background:var(--r7-dark);
  color:#fff
}

.rmco7-payments label.disabled {
  opacity:.56;
  cursor:not-allowed
}

.rmco7-check {
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--r7-line);
  border-radius:999px;
  background:#fffaf2;
  padding:11px 14px;
  font-weight:950
}

.rmco7-coupon {
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border:1px dashed var(--r7-line2);
  border-radius:18px;
  background:#fffaf2
}

.rmco7-coupon button {
  border:0;
  border-radius:15px;
  background:var(--r7-dark);
  color:#fff;
  padding:0 18px;
  font-weight:950
}

.rmco7-coupon p {
  grid-column:1/-1;
  margin:0;
  font-weight:900
}

.rmco7-coupon p.ok {
  color:var(--r7-green)
}

.rmco7-coupon p.bad {
  color:var(--r7-red)
}

.rmco7-summary {
  position:fixed;
  right:20px;
  top:112px;
  width:430px;
  height:calc(100vh - 132px);
  z-index:20
}

.rmco7-summary-card {
  height:100%;
  display:flex;
  flex-direction:column;
  background:linear-gradient(145deg,#fffdf8,#fff7ec);
  border:1px solid var(--r7-line);
  border-radius:26px;
  box-shadow:var(--r7-shadow);
  padding:18px;
  overflow:hidden
}

.rmco7-summary-card h2 {
  margin:0 0 14px;
  font-family:Georgia,serif;
  font-size:27px;
  display:flex;
  align-items:center;
  gap:10px
}

.rmco7-items {
  display:grid;
  gap:12px;
  overflow:auto;
  min-height:160px;
  flex:1 1 auto;
  padding-right:5px
}

.rmco7-items::-webkit-scrollbar {
  width:7px
}

.rmco7-items::-webkit-scrollbar-thumb {
  background:rgba(122,102,80,.30);
  border-radius:999px
}

.rmco7-item {
  display:grid;
  grid-template-columns:62px minmax(0,1fr) 38px;
  gap:10px;
  align-items:center;
  border:1px solid var(--r7-line);
  border-radius:18px;
  background:#fffdf8;
  padding:10px
}

.rmco7-item img {
  width:62px;
  height:62px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--r7-line);
  background:#fff
}

.rmco7-item div {
  min-width:0
}

.rmco7-item b,.rmco7-item span,.rmco7-item small {
  display:block;
  line-height:1.35
}

.rmco7-item span,.rmco7-item small {
  font-size:12px;
  color:var(--r7-muted);
  font-weight:800
}

.rmco7-item button {
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--r7-line);
  background:#fff;
  color:var(--r7-dark);
  cursor:pointer
}

.rmco7-item strong {
  grid-column:2/4;
  text-align:right;
  font-size:13px
}

.rmco7-policy {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:12px
}

.rmco7-policy p {
  margin:0;
  border:1px solid rgba(154,106,45,.20);
  border-radius:15px;
  background:#fffaf2;
  padding:10px;
  color:var(--r7-muted);
  font-size:11px;
  font-weight:800
}

.rmco7-policy i {
  display:block;
  color:var(--r7-gold);
  margin-bottom:5px
}

.rmco7-policy b {
  display:block;
  color:var(--r7-text);
  font-size:12px
}

.rmco7-policy span {
  display:block;
  margin-top:2px;
  line-height:1.35
}

.rmco7-lines {
  display:grid;
  gap:9px;
  margin:14px 0
}

.rmco7-lines div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:850;
  color:var(--r7-muted)
}

.rmco7-lines b {
  color:var(--r7-text)
}

.discount-line b {
  color:var(--r7-green)!important
}

.rmco7-grand {
  border-radius:20px;
  background:linear-gradient(145deg,#111,#2b1a0f);
  color:#fff;
  padding:17px;
  display:flex;
  justify-content:space-between;
  align-items:center
}

.rmco7-grand span {
  font-weight:950;
  color:#ead7b9
}

.rmco7-grand strong {
  font-size:23px
}

.rmco7-place {
  width:100%;
  height:56px;
  margin-top:13px;
  border:0;
  border-radius:17px;
  background:var(--r7-dark);
  color:#fff;
  font-weight:950;
  font-size:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(19,9,5,.18)
}

.rmco7-place:disabled {
  opacity:.72;
  cursor:wait
}

.rmco7-alert {
  display:none;
  margin-bottom:4px;
  border:1px solid rgba(179,38,30,.20);
  background:#fff1ed;
  color:var(--r7-red);
  border-radius:16px;
  padding:13px 15px;
  font-weight:900
}

.rmco7-alert.show {
  display:block
}

.rmco7-empty {
  text-align:center;
  padding:52px
}

.rmco7-empty i {
  font-size:46px;
  color:var(--r7-gold)
}

.rmco7-empty h2 {
  font-family:Georgia,serif;
  font-size:34px;
  margin:14px 0 6px
}

.rmco7-empty p {
  color:var(--r7-muted);
  font-weight:800
}

.rmco7-empty a {
  display:inline-flex;
  margin-top:12px;
  background:var(--r7-dark);
  color:#fff;
  border-radius:14px;
  padding:13px 18px;
  text-decoration:none;
  font-weight:950
}

.rmco7-modal {
  position:fixed;
  inset:0;
  background:rgba(19,9,5,.55);
  z-index:999999;
  display:grid;
  place-items:center;
  padding:18px;
  backdrop-filter:blur(6px)
}

.rmco7-modal-box {
  position:relative;
  width:min(760px,100%);
  max-height:88vh;
  overflow:auto;
  background:linear-gradient(145deg,#fffaf2,#fffdf8);
  border-radius:28px;
  border:1px solid #fff;
  box-shadow:0 35px 100px rgba(0,0,0,.28);
  padding:26px
}

.rmco7-modal-box>button {
  position:absolute;
  right:14px;
  top:14px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--r7-line);
  background:#fff;
  cursor:pointer
}

.rmco7-detail-head {
  display:grid;
  grid-template-columns:96px 1fr;
  gap:15px;
  align-items:center;
  margin-right:44px
}

.rmco7-detail-head img {
  width:96px;
  height:96px;
  border-radius:20px;
  object-fit:cover;
  border:1px solid var(--r7-line)
}

.rmco7-detail-head span {
  color:var(--r7-gold);
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px
}

.rmco7-detail-head h2 {
  font-family:Georgia,serif;
  font-size:30px;
  margin:4px 0
}

.rmco7-detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px
}

.rmco7-detail-grid div {
  background:#fffaf2;
  border:1px solid var(--r7-line);
  border-radius:16px;
  padding:12px
}

.rmco7-detail-grid b {
  display:block
}

.rmco7-detail-grid span {
  color:var(--r7-muted);
  font-weight:800
}

.rmco7-modal-policy {
  margin-top:15px;
  display:flex;
  gap:10px;
  flex-wrap:wrap
}

.rmco7-modal-policy b {
  background:var(--r7-dark);
  color:#fff;
  border-radius:999px;
  padding:9px 12px
}

.rmco7-map-modal h2,.rmco7-tax-modal h2 {
  font-family:Georgia,serif;
  font-size:34px;
  margin:0 46px 10px 0
}

.rmco7-map-modal p,.rmco7-tax-modal p {
  color:var(--r7-muted);
  font-weight:850;
  line-height:1.6
}

.rmco7-map-frame {
  height:360px;
  border:1px solid var(--r7-line);
  border-radius:20px;
  overflow:hidden;
  background:#fff
}

.rmco7-map-frame iframe {
  width:100%;
  height:100%;
  border:0
}

.rmco7-map-open,.rmco7-tax-modal a {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  background:var(--r7-dark);
  color:#fff;
  border-radius:16px;
  padding:14px 18px;
  text-decoration:none;
  font-weight:950
}

.rmco7-tax-icon {
  width:58px;
  height:58px;
  border-radius:20px;
  background:var(--r7-dark);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:24px;
  margin-bottom:12px
}

@media(max-width:1180px) {
  .rmco7-page {
    padding:18px
  }

  .rmco7-summary {
    position:static;
    width:auto;
    height:auto;
    margin-top:20px
  }

  .rmco7-summary-card {
    height:auto;
    max-height:none
  }

  .rmco7-items {
    max-height:420px
  }

  .rmco7-grid.three {
    grid-template-columns:1fr 1fr
  }
}

@media(max-width:700px) {
  .rmco7-grid.three,.rmco7-payments,.rmco7-policy,.rmco7-detail-grid {
    grid-template-columns:1fr
  }

  .rmco7-place-row,.rmco7-center-line {
    grid-template-columns:1fr
  }

  .rmco7-loc {
    grid-template-columns:46px 1fr;
    padding:12px
  }

  .rmco7-loc-icon {
    width:46px;
    height:46px
  }

  .rmco7-modal-box {
    padding:22px
  }

  .rmco7-item {
    grid-template-columns:56px 1fr 38px
  }

  .rmco7-head h1 {
    font-size:34px
  }
}

/* =========================================================
   Checkout layout fix
   - 60% checkout details / 40% order summary on desktop
   - Summary stays inside checkout page using sticky, so it
     does not overlap the site header or footer.
   ========================================================= */

.rmco7-page {
  width: 100%;
  max-width: 1760px;
  min-height: auto;
  margin: 0 auto;
  padding: 24px clamp(18px, 2vw, 34px) 48px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}

.rmco7-main-area {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.rmco7-summary {
  position: sticky;
  top: var(--r7-header-offset, 126px);
  right: auto;
  z-index: 5;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--r7-header-offset, 126px) - 24px);
  align-self: start;
}

.rmco7-summary-card {
  width: 100%;
  height: auto;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rmco7-items {
  flex: 1 1 auto;
  min-height: 130px;
  overflow-y: auto;
  overflow-x: hidden;
}

.rmco7-form,
.rmco7-card,
.rmco7-summary-card {
  min-width: 0;
}

/* Keep desktop ratio, but make the summary safer on medium screens. */
@media (max-width: 1360px) {
  .rmco7-page {
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
    gap: 24px;
  }

  .rmco7-summary-card {
    padding: 16px;
  }

  .rmco7-summary-card h2 {
    font-size: 24px;
  }
}

/* Tablet and mobile: stack columns to avoid squeezing form fields. */
@media (max-width: 1180px) {
  .rmco7-page {
    display: block;
    max-width: 100%;
    padding: 18px;
  }

  .rmco7-summary {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    margin-top: 20px;
  }

  .rmco7-summary-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .rmco7-items {
    max-height: 420px;
  }
}

/* Small phone polish. */
@media (max-width: 700px) {
  .rmco7-page {
    padding: 14px;
  }

  .rmco7-head {
    padding-top: 10px;
  }

  .rmco7-summary-card {
    border-radius: 22px;
    padding: 14px;
  }
}

/* =========================================================
   Product detail modal fix
   - Fixes eye-button popup layout.
   - Gives product image/details a clean responsive structure.
   - Prevents plain modal content from sticking together.
   ========================================================= */

.rmco7-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(19, 9, 5, .58);
  backdrop-filter: blur(7px);
  overflow-y: auto;
}

.rmco7-modal[hidden] {
  display: none !important;
}

.rmco7-modal-box {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: min(86vh, 780px);
  overflow: auto;
  background: linear-gradient(145deg, #fffdf8, #fff8ee);
  border: 1px solid rgba(234, 215, 185, .95);
  border-radius: 30px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, .34);
  padding: 0;
}

.rmco7-modal-box > button {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: 14px 14px 0 0;
  border-radius: 50%;
  border: 1px solid var(--r7-line);
  background: rgba(255, 253, 248, .96);
  color: var(--r7-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(19, 9, 5, .12);
}

.rmco7-modal-box > button:hover {
  background: var(--r7-dark);
  color: #fff;
}

[data-product-modal-content] {
  clear: both;
  padding: 30px;
  color: var(--r7-text);
  font-family: Inter, Montserrat, Arial, sans-serif;
}

/* Preferred JS layout support */
.rmco7-detail-head {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin: 0;
}

.rmco7-detail-head img,
[data-product-modal-content] > img:first-child {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--r7-line);
  background: #fff;
  box-shadow: 0 18px 45px rgba(70, 38, 12, .14);
}

.rmco7-detail-head span,
[data-product-modal-content] > span:first-of-type {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f4e3ca;
  color: var(--r7-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rmco7-detail-head h2,
[data-product-modal-content] h2 {
  margin: 4px 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.7px;
  color: var(--r7-text);
}

.rmco7-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.rmco7-detail-grid div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--r7-line);
  border-radius: 16px;
  background: #fffaf2;
  color: var(--r7-muted);
  font-weight: 850;
  line-height: 1.35;
}

.rmco7-detail-grid b,
[data-product-modal-content] b {
  display: inline-block;
  margin-right: 6px;
  color: var(--r7-text);
  font-weight: 950;
}

.rmco7-detail-grid span {
  color: var(--r7-muted);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rmco7-modal-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rmco7-modal-policy b,
[data-product-modal-content] > p:last-child,
[data-product-modal-content] > strong:last-child {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--r7-dark);
  color: #fff;
  font-weight: 950;
  line-height: 1.25;
}

/* Fallback for old/plain product modal HTML */
[data-product-modal-content] > img:first-child:not(.rmco7-detail-head img) {
  display: block;
  float: left;
  margin: 0 28px 18px 0;
}

[data-product-modal-content] br {
  line-height: 1.8;
}

[data-product-modal-content] p,
[data-product-modal-content] div {
  line-height: 1.55;
}

/* Map/tax modal content still needs normal padding. */
.rmco7-map-modal,
.rmco7-tax-modal {
  padding: 26px;
}

.rmco7-map-modal > button,
.rmco7-tax-modal > button {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  float: none;
}

@media (max-width: 760px) {
  .rmco7-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .rmco7-modal-box {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  [data-product-modal-content] {
    padding: 22px;
  }

  .rmco7-detail-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rmco7-detail-head img,
  [data-product-modal-content] > img:first-child {
    max-width: 100%;
  }

  [data-product-modal-content] > img:first-child:not(.rmco7-detail-head img) {
    float: none;
    margin: 0 0 16px;
  }

  .rmco7-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RMCO7 v3 - final product eye modal layout override
   Put this at the END of checkout-redesign.css.
   Fixes plain/old modal HTML by forcing a real 2-column product view.
   ========================================================= */

[data-product-modal] {
  align-items: center !important;
  justify-content: center !important;
}

[data-product-modal] .rmco7-modal-box {
  width: min(860px, calc(100vw - 34px)) !important;
  max-height: min(88vh, 760px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #fffdf8, #fff8ee) !important;
}

[data-product-modal] .rmco7-modal-box > button {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10 !important;
  float: none !important;
  margin: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid var(--r7-line) !important;
  background: #fffdf8 !important;
  color: var(--r7-dark) !important;
  box-shadow: 0 10px 24px rgba(19, 9, 5, .12) !important;
}

[data-product-modal] .rmco7-modal-box > button:hover {
  background: var(--r7-dark) !important;
  color: #fff !important;
}

[data-product-modal-content] {
  clear: none !important;
  height: 100%;
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 32px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  column-gap: 28px !important;
  row-gap: 10px !important;
  align-items: start !important;
  color: var(--r7-text) !important;
  font-family: Inter, Montserrat, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

[data-product-modal-content]::-webkit-scrollbar {
  width: 7px;
}

[data-product-modal-content]::-webkit-scrollbar-thumb {
  background: rgba(122, 102, 80, .28);
  border-radius: 999px;
}

/* Old/plain HTML image */
[data-product-modal-content] > img:first-child {
  grid-column: 1 !important;
  grid-row: 1 / span 12 !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 330px !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 24px !important;
  border: 1px solid var(--r7-line) !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(70, 38, 12, .14) !important;
}

/* Old/plain HTML text elements */
[data-product-modal-content] > :not(img):not(button),
[data-product-modal-content] > br {
  grid-column: 2 !important;
}

[data-product-modal-content] > br {
  display: none !important;
}

[data-product-modal-content] > span:first-of-type,
.rmco7-detail-head span {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 2px 56px 0 0 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #f4e3ca !important;
  color: var(--r7-gold) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

[data-product-modal-content] h2,
.rmco7-detail-head h2 {
  margin: 0 56px 4px 0 !important;
  font-family: Georgia, serif !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.7px !important;
  color: var(--r7-text) !important;
}

/* If JS outputs label/value inside a grid */
.rmco7-detail-grid {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.rmco7-detail-grid div {
  padding: 12px 13px !important;
  border: 1px solid var(--r7-line) !important;
  border-radius: 15px !important;
  background: #fffaf2 !important;
  color: var(--r7-muted) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.rmco7-detail-grid b {
  display: block !important;
  margin: 0 0 3px !important;
  color: var(--r7-text) !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

.rmco7-detail-grid span {
  color: var(--r7-muted) !important;
  overflow-wrap: anywhere !important;
}

/* If JS outputs raw lines with <b>Variant</b>Value, make labels readable. */
[data-product-modal-content] b {
  display: inline-block !important;
  min-width: 92px !important;
  margin: 0 8px 0 0 !important;
  color: var(--r7-text) !important;
  font-weight: 950 !important;
}

[data-product-modal-content] b::after {
  content: ':';
}

[data-product-modal-content] > p,
[data-product-modal-content] > div:not(.rmco7-detail-head):not(.rmco7-detail-grid):not(.rmco7-modal-policy) {
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid var(--r7-line) !important;
  border-radius: 14px !important;
  background: #fffaf2 !important;
  color: var(--r7-muted) !important;
  font-weight: 850 !important;
  overflow-wrap: anywhere !important;
}

/* Policy pills */
.rmco7-modal-policy {
  grid-column: 2 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.rmco7-modal-policy b,
[data-product-modal-content] > strong:last-child,
[data-product-modal-content] > p:last-child {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--r7-dark) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

/* Preferred structured JS layout still works */
[data-product-modal-content] .rmco7-detail-head {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

[data-product-modal-content] .rmco7-detail-head img {
  grid-column: 1 !important;
  grid-row: auto !important;
}

@media (max-width: 820px) {
  [data-product-modal] {
    align-items: flex-start !important;
    padding: 12px !important;
  }

  [data-product-modal] .rmco7-modal-box {
    width: 100% !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 22px !important;
  }

  [data-product-modal-content] {
    max-height: calc(100vh - 24px) !important;
    grid-template-columns: 1fr !important;
    padding: 22px !important;
    row-gap: 10px !important;
  }

  [data-product-modal-content] > img:first-child,
  [data-product-modal-content] > :not(img):not(button),
  [data-product-modal-content] .rmco7-detail-head,
  .rmco7-detail-grid,
  .rmco7-modal-policy {
    grid-column: 1 !important;
  }

  [data-product-modal-content] > img:first-child {
    grid-row: auto !important;
    max-width: 100% !important;
  }

  [data-product-modal-content] .rmco7-detail-head {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .rmco7-detail-grid {
    grid-template-columns: 1fr !important;
  }

  [data-product-modal-content] b {
    min-width: 84px !important;
  }
}

/* =========================================================
   RMCO7 v4 - Product eye modal full layout fix
   Purpose: remove empty left area, use full modal width,
   image + product header + two-column detail field boxes.
   ========================================================= */
[data-product-modal] {
  padding: 24px !important;
  align-items: center !important;
  justify-items: center !important;
}

[data-product-modal] .rmco7-modal-box {
  width: min(980px, calc(100vw - 48px)) !important;
  max-height: min(88vh, 820px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg, #fffdf8, #fff7ec) !important;
  border: 1px solid var(--r7-line) !important;
  box-shadow: 0 34px 100px rgba(19, 9, 5, .34) !important;
}

[data-product-modal] .rmco7-modal-box > button {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 20 !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 1px solid var(--r7-line2) !important;
  background: #fffdf8 !important;
  color: var(--r7-dark) !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 12px 28px rgba(70, 38, 12, .16) !important;
}

[data-product-modal-content] {
  width: 100% !important;
  max-height: min(88vh, 820px) !important;
  overflow: auto !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 40%) minmax(0, 60%) !important;
  grid-auto-rows: auto !important;
  gap: 18px 22px !important;
  align-items: start !important;
  padding: 26px !important;
  margin: 0 !important;
}

/* Structured JS output: let image/title/details become real grid children. */
[data-product-modal-content] > .rmco7-detail-head {
  display: contents !important;
}

[data-product-modal-content] .rmco7-detail-head img,
[data-product-modal-content] > img:first-child {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 24px !important;
  border: 1px solid var(--r7-line) !important;
  background: #fff !important;
  box-shadow: 0 16px 45px rgba(70, 38, 12, .14) !important;
  margin: 0 !important;
}

[data-product-modal-content] .rmco7-detail-head > div {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid var(--r7-line) !important;
  border-radius: 22px !important;
  background: #fffaf2 !important;
}

[data-product-modal-content] .rmco7-detail-head span,
[data-product-modal-content] > span:first-of-type {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 0 8px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #f4e3ca !important;
  color: var(--r7-gold) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

[data-product-modal-content] .rmco7-detail-head h2,
[data-product-modal-content] > h2 {
  margin: 0 54px 8px 0 !important;
  font-family: Georgia, serif !important;
  font-size: clamp(32px, 3.4vw, 48px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.9px !important;
  color: var(--r7-text) !important;
  overflow-wrap: anywhere !important;
}

[data-product-modal-content] .rmco7-detail-head p,
[data-product-modal-content] .rmco7-detail-head small {
  margin: 0 !important;
  color: var(--r7-muted) !important;
  font-weight: 950 !important;
  font-size: 15px !important;
}

/* Details field boxes: two columns */
[data-product-modal-content] .rmco7-detail-grid {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
}

[data-product-modal-content] .rmco7-detail-grid div {
  min-height: 70px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--r7-line) !important;
  border-radius: 16px !important;
  background: #fffdf8 !important;
  color: var(--r7-muted) !important;
  box-shadow: 0 8px 22px rgba(70, 38, 12, .06) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
}

[data-product-modal-content] .rmco7-detail-grid b {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--r7-gold) !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

[data-product-modal-content] .rmco7-detail-grid b::after {
  content: '' !important;
}

[data-product-modal-content] .rmco7-detail-grid span {
  display: block !important;
  color: var(--r7-text) !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 950 !important;
  overflow-wrap: anywhere !important;
}

/* Policy / delivery boxes under the product area */
[data-product-modal-content] .rmco7-modal-policy {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 2px 0 0 !important;
}

[data-product-modal-content] .rmco7-modal-policy b {
  width: 100% !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--r7-line) !important;
  border-radius: 16px !important;
  background: #fffaf2 !important;
  color: var(--r7-text) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
}

/* Fallback cleanup for raw/plain modal text. */
[data-product-modal-content] > br {
  display: none !important;
}

[data-product-modal-content] > p,
[data-product-modal-content] > div:not(.rmco7-detail-head):not(.rmco7-detail-grid):not(.rmco7-modal-policy) {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--r7-line) !important;
  border-radius: 16px !important;
  background: #fffdf8 !important;
  color: var(--r7-muted) !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  [data-product-modal] {
    padding: 12px !important;
    align-items: flex-start !important;
  }

  [data-product-modal] .rmco7-modal-box {
    width: 100% !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 24px !important;
  }

  [data-product-modal-content] {
    grid-template-columns: 1fr !important;
    max-height: calc(100vh - 24px) !important;
    padding: 18px !important;
    gap: 14px !important;
  }

  [data-product-modal-content] .rmco7-detail-head img,
  [data-product-modal-content] > img:first-child,
  [data-product-modal-content] .rmco7-detail-head > div,
  [data-product-modal-content] .rmco7-detail-grid,
  [data-product-modal-content] .rmco7-modal-policy,
  [data-product-modal-content] > p,
  [data-product-modal-content] > div:not(.rmco7-detail-head):not(.rmco7-detail-grid):not(.rmco7-modal-policy) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  [data-product-modal-content] .rmco7-detail-grid,
  [data-product-modal-content] .rmco7-modal-policy {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  [data-product-modal-content] .rmco7-detail-grid,
  [data-product-modal-content] .rmco7-modal-policy {
    grid-template-columns: 1fr !important;
  }

  [data-product-modal-content] .rmco7-detail-head h2,
  [data-product-modal-content] > h2 {
    font-size: 30px !important;
    margin-right: 48px !important;
  }
}

/* =========================================================
   RMCO7 v5 FINAL - Eye button product modal clean layout
   Put this at the VERY END of checkout-redesign.css.
   This removes the blank left area and shows details as field boxes.
   ========================================================= */
body .rmco7-modal[data-product-modal]{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:grid !important;
  place-items:center !important;
  padding:24px !important;
  background:rgba(19,9,5,.58) !important;
  backdrop-filter:blur(7px) !important;
}

body .rmco7-modal[data-product-modal][hidden]{
  display:none !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-box{
  width:min(980px,calc(100vw - 48px)) !important;
  max-width:980px !important;
  max-height:calc(100vh - 48px) !important;
  min-height:0 !important;
  overflow:auto !important;
  padding:28px !important;
  border-radius:28px !important;
  border:1px solid var(--r7-line) !important;
  background:linear-gradient(145deg,#fffdf8,#fff8ee) !important;
  box-shadow:0 34px 110px rgba(0,0,0,.34) !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-box > button{
  position:absolute !important;
  right:16px !important;
  top:16px !important;
  z-index:10 !important;
  width:46px !important;
  height:46px !important;
  border-radius:50% !important;
  border:1px solid var(--r7-line2) !important;
  background:#fffdf8 !important;
  color:var(--r7-dark) !important;
  box-shadow:0 12px 30px rgba(70,38,12,.16) !important;
}

/* Stop old modal grid rules from pushing content to right side */
body .rmco7-modal[data-product-modal] [data-product-modal-content]{
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  overflow:visible !important;
  display:block !important;
  padding:0 !important;
  margin:0 !important;
}

/* Top product block: image left, product title right */
body .rmco7-modal[data-product-modal] .rmco7-detail-head{
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(260px,38%) minmax(0,1fr) !important;
  gap:24px !important;
  align-items:stretch !important;
  margin:0 0 18px 0 !important;
  padding:0 !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-head img{
  width:100% !important;
  height:100% !important;
  min-height:330px !important;
  max-height:420px !important;
  aspect-ratio:1/1 !important;
  object-fit:cover !important;
  border-radius:22px !important;
  border:1px solid var(--r7-line) !important;
  background:#fff !important;
  box-shadow:0 16px 45px rgba(70,38,12,.12) !important;
  margin:0 !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-head > div{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  padding:24px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:22px !important;
  background:#fffaf2 !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-head span{
  display:inline-flex !important;
  width:max-content !important;
  max-width:100% !important;
  margin:0 0 12px 0 !important;
  padding:7px 13px !important;
  border-radius:999px !important;
  background:#f4e3ca !important;
  color:var(--r7-gold) !important;
  font-size:12px !important;
  font-weight:950 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-head h2{
  margin:0 52px 12px 0 !important;
  color:var(--r7-text) !important;
  font-family:Georgia,serif !important;
  font-size:clamp(34px,4vw,58px) !important;
  line-height:1.02 !important;
  letter-spacing:-1px !important;
  overflow-wrap:anywhere !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-head p,
body .rmco7-modal[data-product-modal] .rmco7-detail-head small{
  margin:0 !important;
  color:var(--r7-muted) !important;
  font-size:17px !important;
  line-height:1.35 !important;
  font-weight:950 !important;
}

/* Detail fields exactly like checkout inputs: label on top, value in rounded field */
body .rmco7-modal[data-product-modal] .rmco7-detail-grid{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
  margin:0 !important;
  padding:0 !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-grid div{
  min-width:0 !important;
  min-height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  align-items:start !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-grid b{
  display:block !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--r7-muted) !important;
  font-size:13px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-grid b::after{
  content:'' !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-grid span{
  width:100% !important;
  min-height:50px !important;
  display:flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:0 15px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:15px !important;
  background:#fffdf8 !important;
  color:var(--r7-text) !important;
  font-size:15px !important;
  line-height:1.35 !important;
  font-weight:900 !important;
  overflow-wrap:anywhere !important;
  box-shadow:none !important;
}

body .rmco7-modal[data-product-modal] .rmco7-detail-grid span:empty::before{
  content:'—';
  color:var(--r7-muted);
}

/* Policy boxes below details */
body .rmco7-modal[data-product-modal] .rmco7-modal-policy{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:16px !important;
  margin:18px 0 0 0 !important;
  padding:0 !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-policy b{
  width:100% !important;
  min-height:52px !important;
  display:flex !important;
  align-items:center !important;
  margin:0 !important;
  padding:0 16px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:15px !important;
  background:#fffaf2 !important;
  color:var(--r7-text) !important;
  font-size:14px !important;
  font-weight:950 !important;
  line-height:1.35 !important;
  box-shadow:none !important;
}

/* If any raw text/old generated tags appear, don't let them create a side gap */
body .rmco7-modal[data-product-modal] [data-product-modal-content] > br{
  display:none !important;
}

@media (max-width: 760px){
  body .rmco7-modal[data-product-modal]{
    padding:12px !important;
    place-items:start center !important;
  }

  body .rmco7-modal[data-product-modal] .rmco7-modal-box{
    width:100% !important;
    max-height:calc(100vh - 24px) !important;
    padding:18px !important;
    border-radius:24px !important;
  }

  body .rmco7-modal[data-product-modal] .rmco7-detail-head,
  body .rmco7-modal[data-product-modal] .rmco7-detail-grid,
  body .rmco7-modal[data-product-modal] .rmco7-modal-policy{
    grid-template-columns:1fr !important;
  }

  body .rmco7-modal[data-product-modal] .rmco7-detail-head img{
    min-height:auto !important;
    max-height:none !important;
  }

  body .rmco7-modal[data-product-modal] .rmco7-detail-head > div{
    padding:18px !important;
  }

  body .rmco7-modal[data-product-modal] .rmco7-detail-head h2{
    font-size:32px !important;
    margin-right:52px !important;
  }
}

/* =========================================================
   PRODUCT EYE MODAL FINAL FIX v6
   This block works with checkout-product-modal-fix-v6.js.
   It makes the popup full-width, no blank space, and field-box style.
   ========================================================= */
body .rmco7-modal[data-product-modal]{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  background:rgba(19,9,5,.58) !important;
  backdrop-filter:blur(7px) !important;
}

body .rmco7-modal[data-product-modal][hidden]{display:none !important;}

body .rmco7-modal[data-product-modal] .rmco7-modal-box{
  width:min(1080px,calc(100vw - 48px)) !important;
  max-width:1080px !important;
  max-height:calc(100vh - 48px) !important;
  overflow:auto !important;
  padding:26px !important;
  border-radius:30px !important;
  background:linear-gradient(145deg,#fffdf8,#fff7ec) !important;
  border:1px solid var(--r7-line) !important;
  box-shadow:0 35px 100px rgba(0,0,0,.30) !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-box > button{
  position:absolute !important;
  right:18px !important;
  top:18px !important;
  z-index:5 !important;
  width:46px !important;
  height:46px !important;
  border-radius:50% !important;
  border:1px solid var(--r7-line2) !important;
  background:#fffdf8 !important;
  color:var(--r7-dark) !important;
  display:grid !important;
  place-items:center !important;
  box-shadow:0 12px 28px rgba(70,38,12,.18) !important;
}

body .rmco7-modal[data-product-modal] [data-product-modal-content]{
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  display:block !important;
}

body .rmco7-product-modal-v6{
  width:100% !important;
  display:grid !important;
  gap:16px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-top{
  display:grid !important;
  grid-template-columns:minmax(280px,42%) minmax(0,1fr) !important;
  gap:18px !important;
  align-items:stretch !important;
  width:100% !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-image-wrap,
body .rmco7-product-modal-v6 .rmco7-modal-title-box{
  border:1px solid var(--r7-line) !important;
  border-radius:22px !important;
  background:#fffaf2 !important;
  overflow:hidden !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-image-wrap img{
  width:100% !important;
  height:100% !important;
  min-height:330px !important;
  object-fit:cover !important;
  display:block !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-no-image{
  min-height:330px !important;
  display:grid !important;
  place-items:center !important;
  color:var(--r7-muted) !important;
  font-weight:950 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box{
  padding:28px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box span{
  width:max-content !important;
  max-width:100% !important;
  display:inline-flex !important;
  padding:7px 13px !important;
  border-radius:999px !important;
  background:#f4e3ca !important;
  color:var(--r7-gold) !important;
  font-size:12px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.12em !important;
  margin:0 0 14px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box h2{
  margin:0 48px 12px 0 !important;
  font-family:Georgia,serif !important;
  font-size:clamp(38px,4vw,64px) !important;
  line-height:1 !important;
  color:var(--r7-text) !important;
  letter-spacing:-1.2px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box p{
  margin:0 !important;
  color:var(--r7-muted) !important;
  font-size:18px !important;
  font-weight:950 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-fields{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
  width:100% !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-field{
  min-width:0 !important;
  display:grid !important;
  gap:8px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-field label{
  color:var(--r7-muted) !important;
  font-size:13px !important;
  font-weight:950 !important;
  line-height:1.15 !important;
  margin:0 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-input{
  width:100% !important;
  min-height:50px !important;
  display:flex !important;
  align-items:center !important;
  padding:0 15px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:15px !important;
  background:#fffdf8 !important;
  color:var(--r7-text) !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.35 !important;
  overflow-wrap:anywhere !important;
  cursor: no-drop;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 div{
  min-height:64px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:15px !important;
  background:#fffaf2 !important;
  padding:12px 15px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 b,
body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 span{
  display:block !important;
  line-height:1.35 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 b{
  color:var(--r7-text) !important;
  font-weight:950 !important;
  font-size:14px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 span{
  margin-top:3px !important;
  color:var(--r7-muted) !important;
  font-weight:850 !important;
  font-size:12px !important;
}

@media(max-width:760px){
  body .rmco7-modal[data-product-modal]{padding:12px !important;align-items:flex-start !important;}
  body .rmco7-modal[data-product-modal] .rmco7-modal-box{width:100% !important;max-height:calc(100vh - 24px) !important;padding:18px !important;border-radius:24px !important;}
  body .rmco7-product-modal-v6 .rmco7-modal-top,
  body .rmco7-product-modal-v6 .rmco7-modal-fields,
  body .rmco7-product-modal-v6 .rmco7-modal-policy-v6{grid-template-columns:1fr !important;}
  body .rmco7-product-modal-v6 .rmco7-modal-image-wrap img,
  body .rmco7-product-modal-v6 .rmco7-modal-no-image{min-height:auto !important;aspect-ratio:1/1 !important;}
  body .rmco7-product-modal-v6 .rmco7-modal-title-box{padding:20px !important;}
  body .rmco7-product-modal-v6 .rmco7-modal-title-box h2{font-size:34px !important;margin-right:48px !important;}
}


/* =========================================================
   PRODUCT EYE MODAL FINAL FIX v7
   - Keeps current modal design/structure.
   - Makes image square and same visual height as title box.
   - Uses object-fit: contain so full product image is visible.
   - Slightly reduces modal width/height to avoid scrollbar.
   Put this block at the VERY END of checkout-redesign.css.
   ========================================================= */
body .rmco7-modal[data-product-modal]{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px !important;
  background:rgba(19,9,5,.58) !important;
  backdrop-filter:blur(7px) !important;
  overflow:hidden !important;
}

body .rmco7-modal[data-product-modal][hidden]{
  display:none !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-box{
  width:min(960px,calc(100vw - 44px)) !important;
  max-width:960px !important;
  max-height:calc(100vh - 44px) !important;
  overflow:auto !important;
  padding:22px !important;
  border-radius:28px !important;
  background:linear-gradient(145deg,#fffdf8,#fff7ec) !important;
  border:1px solid var(--r7-line) !important;
  box-shadow:0 35px 100px rgba(0,0,0,.30) !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-box > button{
  position:absolute !important;
  right:16px !important;
  top:16px !important;
  z-index:10 !important;
  width:44px !important;
  height:44px !important;
  border-radius:50% !important;
  border:1px solid var(--r7-line2) !important;
  background:#fffdf8 !important;
  color:var(--r7-dark) !important;
  display:grid !important;
  place-items:center !important;
  box-shadow:0 12px 28px rgba(70,38,12,.18) !important;
}

body .rmco7-modal[data-product-modal] .rmco7-modal-box > button:hover{
  background:var(--r7-dark) !important;
  color:#fff !important;
}

body .rmco7-modal[data-product-modal] [data-product-modal-content]{
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  display:block !important;
}

body .rmco7-product-modal-v6{
  width:100% !important;
  display:grid !important;
  gap:14px !important;
}

/* Top area: square image + title box equal height */
body .rmco7-product-modal-v6 .rmco7-modal-top{
  --rmco7-modal-top-size:252px;
  display:grid !important;
  grid-template-columns:var(--rmco7-modal-top-size) minmax(0,1fr) !important;
  gap:16px !important;
  align-items:stretch !important;
  width:100% !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-image-wrap,
body .rmco7-product-modal-v6 .rmco7-modal-title-box{
  min-height:var(--rmco7-modal-top-size) !important;
  height:var(--rmco7-modal-top-size) !important;
  border:1px solid var(--r7-line) !important;
  border-radius:20px !important;
  background:#fffaf2 !important;
  overflow:hidden !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-image-wrap{
  width:var(--rmco7-modal-top-size) !important;
  aspect-ratio:1/1 !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-image-wrap img{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:1/1 !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
  background:#fffaf2 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-no-image{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  aspect-ratio:1/1 !important;
  display:grid !important;
  place-items:center !important;
  color:var(--r7-muted) !important;
  font-weight:950 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box{
  padding:24px 26px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box span{
  width:max-content !important;
  max-width:100% !important;
  display:inline-flex !important;
  padding:7px 13px !important;
  border-radius:999px !important;
  background:#f4e3ca !important;
  color:var(--r7-gold) !important;
  font-size:11px !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.12em !important;
  margin:0 0 12px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box h2{
  margin:0 44px 12px 0 !important;
  font-family:Georgia,serif !important;
  font-size:clamp(36px,3.6vw,56px) !important;
  line-height:1 !important;
  color:var(--r7-text) !important;
  letter-spacing:-1.1px !important;
  overflow-wrap:anywhere !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-title-box p{
  margin:0 !important;
  color:var(--r7-muted) !important;
  font-size:17px !important;
  font-weight:950 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-fields{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px 14px !important;
  width:100% !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-field{
  min-width:0 !important;
  display:grid !important;
  gap:7px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-field label{
  color:var(--r7-muted) !important;
  font-size:13px !important;
  font-weight:950 !important;
  line-height:1.15 !important;
  margin:0 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-input{
  width:100% !important;
  min-height:46px !important;
  display:flex !important;
  align-items:center !important;
  padding:9px 14px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:14px !important;
  background:#fffdf8 !important;
  color:var(--r7-text) !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.3 !important;
  overflow-wrap:anywhere !important;
  cursor:no-drop !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 div{
  min-height:58px !important;
  border:1px solid var(--r7-line) !important;
  border-radius:14px !important;
  background:#fffaf2 !important;
  padding:10px 14px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 b,
body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 span{
  display:block !important;
  line-height:1.32 !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 b{
  color:var(--r7-text) !important;
  font-weight:950 !important;
  font-size:14px !important;
}

body .rmco7-product-modal-v6 .rmco7-modal-policy-v6 span{
  margin-top:3px !important;
  color:var(--r7-muted) !important;
  font-weight:850 !important;
  font-size:12px !important;
}

@media(max-width:980px){
  body .rmco7-product-modal-v6 .rmco7-modal-top{
    --rmco7-modal-top-size:230px;
    grid-template-columns:var(--rmco7-modal-top-size) minmax(0,1fr) !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-title-box h2{
    font-size:clamp(32px,4.5vw,46px) !important;
  }
}

@media(max-width:760px){
  body .rmco7-modal[data-product-modal]{
    padding:12px !important;
    align-items:flex-start !important;
    overflow:auto !important;
  }

  body .rmco7-modal[data-product-modal] .rmco7-modal-box{
    width:100% !important;
    max-height:calc(100vh - 24px) !important;
    padding:16px !important;
    border-radius:24px !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-top{
    --rmco7-modal-top-size:min(100%,320px);
    grid-template-columns:1fr !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-image-wrap,
  body .rmco7-product-modal-v6 .rmco7-modal-title-box{
    width:100% !important;
    height:auto !important;
    min-height:auto !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-image-wrap{
    aspect-ratio:1/1 !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-image-wrap img,
  body .rmco7-product-modal-v6 .rmco7-modal-no-image{
    min-height:auto !important;
    aspect-ratio:1/1 !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-title-box{
    padding:18px !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-title-box h2{
    font-size:32px !important;
    margin-right:48px !important;
  }

  body .rmco7-product-modal-v6 .rmco7-modal-fields,
  body .rmco7-product-modal-v6 .rmco7-modal-policy-v6{
    grid-template-columns:1fr !important;
  }
}

/* Collection center map modal perfect layout */
[data-map-modal] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(19, 9, 5, 0.58) !important;
  backdrop-filter: blur(7px) !important;
}

[data-map-modal][hidden] {
  display: none !important;
}

[data-map-modal] .rmco7-modal-box,
[data-map-modal] .rmco6-modal-box {
  position: relative !important;
  width: min(760px, calc(100vw - 32px)) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  background: linear-gradient(145deg, #fffdf8, #fff7ec) !important;
  border: 1px solid #ead7b9 !important;
  border-radius: 28px !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34) !important;
  padding: 28px !important;
}

[data-map-modal] button[data-close-map-modal] {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #ead7b9 !important;
  border-radius: 50% !important;
  background: #fffdf8 !important;
  color: #130905 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 28px rgba(19, 9, 5, 0.12) !important;
}

[data-map-modal] button[data-close-map-modal]:hover {
  background: #130905 !important;
  color: #fff !important;
}

[data-map-modal-content] h2 {
  margin: 0 60px 8px 0 !important;
  font-family: Georgia, serif !important;
  font-size: clamp(30px, 4vw, 46px) !important;
  line-height: 1.05 !important;
  color: #21140b !important;
}

[data-map-modal-content] p {
  margin: 0 0 16px !important;
  color: #7a6650 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.5 !important;
}

.rmco6-map-frame,
.rmco7-map-frame {
  width: 100% !important;
  height: 380px !important;
  border: 1px solid #ead7b9 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(234, 215, 185, 0.35) !important;
}

.rmco6-map-frame iframe,
.rmco7-map-frame iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

.rmco6-map-open,
.rmco7-map-open {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  margin-top: 16px !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  border-radius: 15px !important;
  background: #130905 !important;
  color: #fff !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

.rmco6-map-open:hover,
.rmco7-map-open:hover {
  opacity: 0.9 !important;
}

@media (max-width: 700px) {
  [data-map-modal] {
    align-items: flex-start !important;
    padding: 12px !important;
  }

  [data-map-modal] .rmco7-modal-box,
  [data-map-modal] .rmco6-modal-box {
    width: 100% !important;
    max-height: calc(100vh - 24px) !important;
    padding: 22px !important;
    border-radius: 22px !important;
  }

  [data-map-modal-content] h2 {
    font-size: 32px !important;
  }

  .rmco6-map-frame,
  .rmco7-map-frame {
    height: 320px !important;
  }
}

/* =========================================================
   Checkout fixes: fixed service location, terms link, modal polish,
   and scroll unlock safety after Razorpay/modal overlays.
   ========================================================= */
html.rm-modal-open,
body.rm-modal-open {
  overflow: hidden !important;
}

.rmco7-location-fixed {
  margin-top: 14px;
}

.rmco7-location-fixed select:disabled {
  cursor: not-allowed;
  background: #fff7ea;
  color: var(--r7-text);
  opacity: 1;
}

.rmco7-service-note {
  border-color: rgba(8, 122, 67, .22);
}

.rmco7-terms-line {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.rmco7-terms-line a {
  color: var(--r7-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CSS aliases for older JS class names still used inside checkout.js. */
.rmco6-detail-head,
.rmco7-modal-top {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0 58px 20px 0;
}

.rmco6-detail-head img,
.rmco7-modal-image-wrap img,
.rmco7-modal-no-image {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--r7-line);
  background: #fff;
  box-shadow: 0 18px 45px rgba(70, 38, 12, .14);
}

.rmco7-modal-no-image {
  display: grid;
  place-items: center;
  color: var(--r7-muted);
  font-weight: 950;
}

.rmco6-detail-head span,
.rmco7-modal-title-box span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4e3ca;
  color: var(--r7-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rmco6-detail-head h2,
.rmco7-modal-title-box h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  color: var(--r7-text);
}

.rmco6-detail-head p,
.rmco7-modal-title-box p {
  margin: 0;
  color: var(--r7-muted);
  font-weight: 900;
}

.rmco6-detail-grid,
.rmco7-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rmco6-detail-grid div,
.rmco7-modal-field {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--r7-line);
  border-radius: 16px;
  background: #fffaf2;
  color: var(--r7-muted);
  font-weight: 850;
}

.rmco7-modal-field label,
.rmco6-detail-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--r7-text);
  font-weight: 950;
}

.rmco7-modal-input,
.rmco6-detail-grid span {
  overflow-wrap: anywhere;
}

.rmco6-modal-policy,
.rmco7-modal-policy-v6 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rmco6-modal-policy b,
.rmco7-modal-policy-v6 div {
  border-radius: 18px;
  background: var(--r7-dark);
  color: #fff;
  padding: 12px 14px;
  font-weight: 950;
}

.rmco7-modal-policy-v6 span {
  display: block;
  color: #ead7b9;
  font-size: 12px;
  margin-top: 3px;
}

.rmco6-map-frame,
.rmco7-map-frame {
  height: 360px;
  border: 1px solid var(--r7-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.rmco6-map-frame iframe,
.rmco7-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rmco6-map-open,
.rmco7-map-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--r7-dark);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 950;
}

.rmco7-tax-modal {
  padding: 34px 28px 28px !important;
  overflow: visible !important;
}

.rmco7-tax-modal .rmco7-tax-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 20px;
  background: var(--r7-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  margin: 0 0 14px;
  overflow: visible;
}

.rmco7-tax-modal h2 {
  margin-right: 54px !important;
}

.rmco7-tax-modal > button,
.rmco7-map-modal > button,
[data-tax-modal] .rmco7-modal-box > button {
  line-height: 1;
  display: grid;
  place-items: center;
}

@media (max-width: 760px) {
  .rmco6-detail-head,
  .rmco7-modal-top,
  .rmco6-detail-grid,
  .rmco7-modal-fields {
    grid-template-columns: 1fr;
  }

  .rmco6-detail-head,
  .rmco7-modal-top {
    margin-right: 48px;
  }
}


/* =========================================================
   Checkout coupon/design final patch
   - Terms line is above Grand Total in checkout.php.
   - Prevents place-order button overflow on narrow summary widths.
   - Keeps fixed service dropdowns clean and aligned.
   ========================================================= */
.rmco7-summary-card,
.rmco7-summary-card * {
  box-sizing: border-box;
}

.rmco7-summary-card {
  min-width: 0;
}

.rmco7-terms-line {
  margin: 8px 0 10px !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.rmco7-grand {
  margin-top: 0;
}

.rmco7-place {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 56px;
  padding: 14px 18px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  flex-wrap: wrap;
  overflow: hidden;
}

.rmco7-place span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rmco7-coupon {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rmco7-coupon input {
  min-width: 0;
}

.rmco7-location-fixed select {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 520px) {
  .rmco7-coupon {
    grid-template-columns: 1fr;
  }

  .rmco7-place {
    font-size: 14px !important;
    border-radius: 15px;
  }

  .rmco7-grand {
    padding: 15px;
    border-radius: 18px;
  }
}

/* =========================================================
   V3 checkout summary/design patch
   - Adds inner scroll to order summary on desktop if content is tall.
   - Prevents place-order button overflow on all widths.
   - Keeps terms link before grand total and aligned.
   - Cleans fixed country/state/city dropdown design.
   ========================================================= */
.rmco7-summary,
.rmco7-summary-card,
.rmco7-summary-card * {
  box-sizing: border-box !important;
  min-width: 0;
}

.rmco7-summary {
  overflow: visible !important;
}

.rmco7-summary-card {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@media (min-width: 981px) {
  .rmco7-summary-card {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 104px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 14px;
  }

  .rmco7-summary-card::-webkit-scrollbar {
    width: 6px;
  }

  .rmco7-summary-card::-webkit-scrollbar-thumb {
    background: rgba(122, 87, 49, .32);
    border-radius: 999px;
  }
}

.rmco7-terms-line {
  order: 98;
  width: 100%;
  margin: 8px 0 10px !important;
  padding: 0 8px;
  text-align: center !important;
  font-size: clamp(12px, 1.8vw, 14px) !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

.rmco7-terms-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
}

.rmco7-grand {
  order: 99;
  width: 100%;
  max-width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  overflow: hidden !important;
}

.rmco7-grand span,
.rmco7-grand strong {
  min-width: 0 !important;
}

.rmco7-grand strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.rmco7-place {
  order: 100;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 13px 14px !important;
  border-radius: 17px !important;
  font-size: clamp(14px, 1.5vw, 18px) !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-align: center !important;
  overflow: hidden !important;
}

.rmco7-place i {
  flex: 0 0 auto;
}

.rmco7-place span {
  flex: 0 1 auto;
  min-width: 0 !important;
  max-width: 100%;
  overflow-wrap: anywhere !important;
  word-break: normal;
}

.rmco7-location-fixed {
  align-items: end;
}

.rmco7-location-fixed label {
  min-width: 0;
}

.rmco7-location-fixed select[disabled] {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  padding: 0 38px 0 14px !important;
  border: 1px solid rgba(189, 148, 92, .45) !important;
  border-radius: 14px !important;
  background-color: rgba(255,255,255,.62) !important;
  color: #1d100b !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  text-overflow: ellipsis;
}

.rmco7-service-note {
  align-items: flex-start !important;
}

.rmco7-service-note i {
  flex: 0 0 auto;
}

.rmco7-coupon {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
}

.rmco7-coupon input,
.rmco7-coupon button {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  .rmco7-summary-card {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: inherit;
  }

  .rmco7-location-fixed {
    grid-template-columns: 1fr !important;
  }

  .rmco7-coupon {
    grid-template-columns: 1fr !important;
  }

  .rmco7-grand {
    padding: 15px 16px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 420px) {
  .rmco7-place {
    gap: 7px !important;
    padding: 12px 10px !important;
    border-radius: 15px !important;
  }
}


/* =========================================================
   RMCO7 V5 final checkout stability/design overrides
   ========================================================= */
.rmco7-summary-card{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
}
.rmco7-summary-card::-webkit-scrollbar{width:7px}
.rmco7-summary-card::-webkit-scrollbar-thumb{background:rgba(122,102,80,.30);border-radius:999px}
.rmco7-items{
  flex:0 1 auto !important;
  max-height:min(34vh,360px) !important;
}
.rmco7-terms-line{
  margin:8px 0 10px !important;
  text-align:center !important;
  font-size:13px !important;
  font-weight:900 !important;
}
.rmco7-terms-line a{
  color:#9a6a2d !important;
  text-decoration:underline !important;
  text-underline-offset:3px;
}
.rmco7-grand{
  flex-shrink:0;
  gap:12px;
}
.rmco7-grand strong{
  white-space:nowrap;
  font-size:clamp(19px,2.1vw,26px) !important;
}
.rmco7-place{
  flex-shrink:0;
  min-height:54px !important;
  height:auto !important;
  padding:14px 16px !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:center !important;
}
.rmco7-place span{
  min-width:0;
  overflow-wrap:anywhere;
}
.rmco7-coupon{
  grid-template-columns:minmax(0,1fr) auto !important;
}
.rmco7-coupon input{min-width:0}
.rmco7-location-fixed select:disabled{
  opacity:1 !important;
  color:#120704 !important;
  -webkit-text-fill-color:#120704 !important;
}
@media(max-width:520px){
  .rmco7-coupon{grid-template-columns:1fr !important}
  .rmco7-coupon button{width:100%}
  .rmco7-grand{padding:15px !important}
  .rmco7-place{font-size:14px !important}
}
