.maggies-commerce {
  --shop-paper: #fffcf8;
  --shop-line: #ded1d4;
  --shop-muted: #67545b;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.maggies-commerce .header-inner,
.maggies-commerce .shop-footer {
  padding-inline: var(--margin);
}

.maggies-commerce .shop-return,
.maggies-commerce .shop-text-button,
.maggies-commerce .shop-steps a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.maggies-commerce .shop-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.maggies-commerce .shop-main {
  flex: 1;
  width: min(100%, 1260px);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 60px) var(--margin) clamp(48px, 7vw, 108px);
}

.maggies-commerce .shop-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--shop-muted);
}

.maggies-commerce .shop-steps li + li::before {
  content: "/";
  margin-inline-end: 11px;
  color: #8a6c77;
}

.maggies-commerce .shop-steps [aria-current] {
  color: var(--raspberry-dark);
  font-weight: 800;
}

.maggies-commerce h1 {
  color: var(--raspberry-dark);
  margin-bottom: clamp(24px, 3.7vw, 44px);
}

.maggies-commerce h2 {
  color: var(--raspberry-dark);
  font-size: clamp(25px, 2.3vw, 31px);
}

.maggies-commerce .shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

.maggies-commerce .shop-summary,
.maggies-commerce .shop-empty,
.maggies-commerce .shop-section {
  padding: clamp(17px, 2.45vw, 30px);
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: var(--shop-paper);
}

.maggies-commerce .shop-empty {
  min-height: 230px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 15px;
}

.maggies-commerce .shop-summary {
  background: var(--blush);
  display: grid;
  gap: 15px;
}

.maggies-commerce .shop-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 14px;
  border-top: 1px solid #d7c2ca;
  padding-top: 13px;
  color: var(--raspberry-dark);
  font-size: 14px;
}

.maggies-commerce .shop-total strong {
  text-align: right;
  font-size: 17px;
}

.maggies-commerce .shop-muted,
.maggies-commerce .shop-preview {
  max-width: none;
  color: var(--shop-muted);
  font-size: 13.6px;
}

.maggies-commerce .shop-preview {
  border-top: 1px solid #d7c2ca;
  padding-top: 13px;
}

.maggies-commerce .shop-primary {
  min-height: 48px;
  padding-inline: 21px;
  text-align: center;
}

.maggies-commerce .shop-cart-items,
.maggies-commerce .shop-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.maggies-commerce .shop-cart-items {
  border-top: 1px solid var(--shop-line);
  margin-bottom: 8px;
}

.maggies-commerce .shop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "product cost";
  align-items: start;
  gap: 8px 15px;
  border-bottom: 1px solid var(--shop-line);
  padding-block: 18px;
}

.maggies-commerce .shop-product {
  grid-area: product;
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.7vw, 20px);
  min-width: 0;
}

.maggies-commerce .shop-product img {
  flex: none;
  width: clamp(54px, 8vw, 106px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  background: var(--blush);
}

.maggies-commerce .shop-product-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.maggies-commerce .shop-product h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  margin-bottom: 5px;
}

.maggies-commerce .shop-product summary,
.maggies-commerce .shop-extra summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--raspberry-dark);
}

.maggies-commerce .shop-product summary {
  width: fit-content;
  padding-block: 5px;
}

.maggies-commerce .shop-product details ul {
  padding-inline-start: 16px;
  margin: 4px 0;
  color: var(--shop-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.maggies-commerce .shop-item-cost {
  grid-area: cost;
  text-align: right;
  color: var(--raspberry-dark);
  font-size: 14px;
}

.maggies-commerce .shop-quantity {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--shop-line);
  border-radius: 100px;
  padding: 2px;
  margin-top: 7px;
}

.maggies-commerce .shop-quantity button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
}

.maggies-commerce .shop-quantity button:enabled:hover {
  background: var(--blush);
}

.maggies-commerce .shop-quantity button:disabled {
  opacity: .45;
  cursor: default;
}

.maggies-commerce .shop-quantity span {
  min-width: 19px;
  text-align: center;
  font-weight: 800;
}

.maggies-commerce .shop-text-button {
  background: none;
  border: 0;
  color: var(--raspberry-dark);
  min-height: 44px;
  padding: 0;
}

.maggies-commerce .shop-remove {
  display: block;
  color: var(--shop-muted);
}

.maggies-commerce .shop-form,
.maggies-commerce .shop-sidebar {
  display: grid;
  align-content: start;
  gap: 15px;
  min-width: 0;
}

.maggies-commerce .shop-form h2 + p,
.maggies-commerce .shop-form h2 + .shop-fields {
  margin-top: 11px;
}

.maggies-commerce .shop-pickup {
  max-width: none;
  font-size: 14.4px;
}

.maggies-commerce .shop-pickup-dates {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.maggies-commerce .shop-pickup-dates li {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
}

.maggies-commerce .shop-pickup-dates time {
  color: var(--raspberry-dark);
  font-size: 14.4px;
  font-weight: 750;
}

.maggies-commerce .shop-pickup-dates span {
  color: var(--shop-muted);
  font-size: 13.6px;
}

.maggies-commerce .shop-pickup-caption {
  margin-top: 16px;
  font-weight: 700;
}

.maggies-commerce .shop-summary .shop-fields {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}

.maggies-commerce .shop-summary .shop-pickup-caption {
  margin: 0 0 9px;
}

.maggies-commerce .shop-line-pickup {
  margin-bottom: 5px;
}

.maggies-commerce .shop-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 14px;
}

.maggies-commerce .shop-fields label {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
  font-weight: 750;
  font-size: 14px;
}

.maggies-commerce .shop-field-wide {
  grid-column: 1 / -1;
}

.maggies-commerce .shop-fields :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #ccb9c0;
  border-radius: 7px;
  background: #fffefa;
  color: var(--ink);
  font: 16px var(--body);
}

.maggies-commerce .shop-fields textarea {
  resize: vertical;
}

.maggies-commerce .shop-fields + .shop-muted {
  margin-top: 9px;
}

.maggies-commerce .shop-next-date {
  margin-top: 2px;
}

.maggies-commerce .shop-extra summary span {
  margin-inline-start: 6px;
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 500;
}

.maggies-commerce .shop-payment p {
  font-size: 14.4px;
}

.maggies-commerce .shop-mini-list > li {
  padding-block: 5px;
}

.maggies-commerce .shop-mini-product {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 14px;
}

.maggies-commerce .shop-mini-product strong {
  flex-shrink: 0;
  color: var(--raspberry-dark);
}

.maggies-commerce .shop-attachment {
  margin-top: 9px;
  max-width: none;
  color: var(--shop-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.maggies-commerce .shop-attachment a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}

.maggies-commerce .shop-attachment a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.maggies-commerce .shop-attachment a > span > span {
  display: block;
}

.maggies-commerce .shop-attachment img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
}

.maggies-commerce .shop-attachment strong {
  display: block;
  color: var(--raspberry-dark);
}

.maggies-commerce .shop-guide {
  min-height: 114px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 0;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: var(--shop-paper);
  font-size: 14px;
}

.maggies-commerce .shop-guide img {
  flex: none;
  width: clamp(78px, 8vw, 106px);
  height: auto;
}

.maggies-commerce .shop-guide-name {
  margin-bottom: 3px;
  font: italic 22px/1.1 var(--display);
  color: var(--raspberry-dark);
}

.maggies-commerce .shop-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.maggies-commerce .shop-review-details {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: 10px 15px;
  margin: 20px 0 24px;
  font-size: 15px;
}

.maggies-commerce .shop-review-details dt {
  color: var(--shop-muted);
}

.maggies-commerce .shop-review-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.maggies-commerce .shop-status:not(:empty) {
  max-width: none;
  margin-top: 13px;
  color: var(--raspberry-dark);
  font-size: 14px;
}

.maggies-commerce .shop-footer a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 760px) {
  .maggies-commerce .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .maggies-commerce .shop-sidebar {
    display: contents;
  }

  .maggies-commerce .shop-guide {
    grid-row: 1;
    min-height: 86px;
  }
}

@media (max-width: 420px) {
  .maggies-commerce .shop-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .maggies-commerce .shop-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "product" "cost";
  }

  .maggies-commerce .shop-item-cost {
    text-align: left;
    padding-inline-start: 64px;
  }

  .maggies-commerce .shop-primary {
    width: 100%;
  }
}
