.ro-bag-dialog {
  --ro-bag-ink: #2c2826;
  --ro-bag-muted: #6d655e;
  --ro-bag-paper: #f6f2ed;
  --ro-bag-line: #d8d0c7;
  --ro-bag-accent: #ad424b;
  box-sizing: border-box;
  width: min(1020px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  border: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ro-bag-paper);
  color: var(--ro-bag-ink);
  font: 400 16px/1.4 "DM Sans", Arial, sans-serif;
}

.ro-bag-dialog::backdrop {
  background: rgb(36 32 29 / 51%);
}

body:has(.ro-bag-dialog[open]) {
  overflow: hidden;
}

.ro-bag-panel {
  padding: clamp(30px, 4vw, 56px);
}

.ro-bag-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(20px, 3.1vw, 34px);
}

.ro-bag-dialog #ro-bag-heading {
  margin: 0;
  padding: 0;
  color: inherit;
  font: 500 clamp(37px, 4.35vw, 61px)/0.99 "Cormorant Garamond", Georgia, serif;
  text-transform: none;
}

.ro-bag-dialog svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ro-bag-dialog .ro-bag-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ro-bag-accent);
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.ro-bag-dialog .ro-bag-close:hover {
  background: #eee5de;
}

.ro-bag-dialog :is(.ro-bag-close, .ro-bag-action):focus-visible {
  outline: 2px solid var(--ro-bag-accent);
  outline-offset: 2px;
}

.ro-bag-product {
  display: grid;
  grid-template-columns: clamp(58px, 7vw, 96px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.7vw, 20px);
}

.ro-bag-image {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e8e3dd;
}

.ro-bag-dialog .ro-bag-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ro-bag-product-copy {
  min-width: 0;
  color: var(--ro-bag-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ro-bag-dialog .ro-bag-product-copy p {
  margin: 0;
  padding: 0;
}

.ro-bag-dialog .ro-bag-product-copy .ro-bag-name {
  margin-bottom: 4px;
  color: var(--ro-bag-ink);
  font-size: 17px;
  font-weight: 600;
}

.ro-bag-price,
.ro-bag-subtotal > span:last-child {
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}

.ro-bag-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--ro-bag-line);
  padding-top: 21px;
  font-weight: 500;
}

.ro-bag-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3.5vw, 38px);
}

.ro-bag-dialog .ro-bag-action {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  min-height: 68px;
  border: 1px solid var(--ro-bag-line);
  padding: 10px 16px;
  background: transparent;
  color: var(--ro-bag-ink);
  font: 600 16px/1.25 "DM Sans", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

.ro-bag-dialog .ro-bag-action-primary {
  border-color: var(--ro-bag-ink);
  background: var(--ro-bag-ink);
  color: #fff;
}

.ro-bag-dialog .ro-bag-action:hover {
  border-color: var(--ro-bag-accent);
}

.ro-bag-dialog .ro-bag-action-primary:hover {
  background: var(--ro-bag-accent);
}

.et_pb_wc_add_to_cart .single_add_to_cart_button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

.et_pb_wc_add_to_cart .ro-bag-error {
  margin-bottom: 15px;
  border-inline-start: 2px solid #ad424b;
  padding-inline-start: 10px;
  color: #754048;
}

.et_pb_wc_add_to_cart .ro-bag-error a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .ro-bag-dialog {
    width: calc(100% - 24px);
    font-size: 14px;
  }

  .ro-bag-panel {
    padding: 20px;
  }

  .ro-bag-heading-row {
    align-items: center;
    gap: 10px;
  }

  .ro-bag-dialog .ro-bag-close {
    width: 44px;
    height: 44px;
  }

  .ro-bag-dialog .ro-bag-product-copy .ro-bag-name {
    font-size: 15px;
  }

  .ro-bag-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ro-bag-dialog .ro-bag-action {
    min-height: 48px;
    font-size: 14px;
  }
}
