body.maggies-site { padding: 0; }

.maggies-commerce .shop-main {
  padding-top: clamp(28px, 4vw, 56px);
}

.maggies-commerce .shop-main > h1 {
  margin-bottom: clamp(23px, 3vw, 36px);
  font-size: clamp(38px, 5vw, 62px);
}

.maggies-commerce .shop-steps,
.maggies-commerce .shop-steps a { font-size: 14px; }
.maggies-commerce .shop-steps [aria-current] { font-weight: 700; }
.maggies-commerce .apus-checkout-header { display: none; }

.maggies-commerce .shop-main .woocommerce {
  color: var(--ink);
  font: 15px/1.55 var(--body);
}

.maggies-commerce .woocommerce a:not(.button):not(.btn) { color: var(--raspberry-dark); }
.maggies-commerce .woocommerce .shop_table a:not(.btn),
.maggies-commerce .woocommerce .woocommerce-privacy-policy-text a,
.maggies-commerce .woocommerce .woocommerce-terms-and-conditions-link {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.maggies-commerce .woocommerce :is(h2.title, h3.title),
.maggies-commerce .woocommerce form.checkout #customer_details .woocommerce-billing-fields > h3.title,
.maggies-commerce .woocommerce form.checkout #customer_details :is(.woocommerce-shipping-fields, .woocommerce-additional-fields) > h3,
.maggies-commerce .woocommerce form.checkout .order-review #order_review_heading {
  margin: 0 0 16px;
  color: var(--raspberry-dark);
  font: 400 clamp(24px, 2.5vw, 32px)/1.15 var(--display);
  text-transform: none;
}

.maggies-commerce .woocommerce .button,
.maggies-commerce .woocommerce .cart_totals .wc-proceed-to-checkout > a,
.maggies-commerce .woocommerce #place_order {
  min-height: 44px;
  border: 1px solid var(--raspberry-dark);
  border-radius: 100px;
  padding: 10px 18px;
  background: var(--raspberry-dark);
  color: #fff;
  font: 700 14px/1.35 var(--body);
  text-align: center;
  text-transform: none;
  white-space: normal;
}
.maggies-commerce .woocommerce .button:enabled:hover,
.maggies-commerce .woocommerce #place_order:enabled:hover,
.maggies-commerce .woocommerce a.button:hover,
.maggies-commerce .woocommerce .cart_totals .wc-proceed-to-checkout > a:hover {
  background: #4e1437;
  color: #fff;
}
.maggies-commerce .woocommerce [name="update_cart"].button {
  border-color: var(--shop-line);
  background: var(--shop-paper);
  color: var(--raspberry-dark);
}
.maggies-commerce .woocommerce .button:disabled {
  opacity: .66;
  color: var(--shop-muted);
}
.maggies-commerce .woocommerce :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--raspberry-dark);
  outline-offset: 3px;
}

.maggies-commerce .woocommerce :is(.form-row, .coupon, .checkout_coupon) :is(.input-text, select, .select2-selection) {
  width: 100%;
  min-height: 45px;
  margin: 0;
  border: 1px solid #cbb7c0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.4 var(--body);
  box-shadow: none;
}
.maggies-commerce .woocommerce .form-row textarea.input-text {
  min-height: 94px;
  resize: vertical;
}
.maggies-commerce .woocommerce :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--raspberry); }

.maggies-commerce .woocommerce :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: var(--shop-paper);
  color: var(--ink);
  font-size: 14px;
}
.maggies-commerce .woocommerce :is(.woocommerce-info, .woocommerce-message)::before { content: none; }
.maggies-commerce .woocommerce .woocommerce-error { border-color: #b45c65; }
.maggies-commerce .woocommerce .woocommerce-error li { margin-inline-start: 18px; }
.maggies-commerce .woocommerce .return-to-shop { margin: 14px 0 0; }
.maggies-commerce .woocommerce .cart-empty { max-width: 620px; padding: 22px; }

.maggies-commerce .woocommerce > .row:has(.woocommerce-cart-form),
.maggies-commerce .woocommerce form.checkout > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(275px, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  margin: 0;
}
.maggies-commerce .woocommerce > .row:has(.woocommerce-cart-form)::before,
.maggies-commerce .woocommerce > .row:has(.woocommerce-cart-form)::after,
.maggies-commerce .woocommerce form.checkout > .row::before,
.maggies-commerce .woocommerce form.checkout > .row::after { display: none; }
.maggies-commerce .woocommerce > .row:has(.woocommerce-cart-form) > [class*="col-"],
.maggies-commerce .woocommerce form.checkout > .row > [class*="col-"] {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.maggies-commerce .woocommerce :is(.woocommerce-cart-form, .details-check, .order-review, #payment) {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  padding: clamp(16px, 2.3vw, 26px);
  background: var(--shop-paper);
}
.maggies-commerce .woocommerce .cart_totals_inner,
.maggies-commerce .woocommerce form.checkout .order-review {
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  padding: clamp(16px, 2.3vw, 26px);
  background: var(--blush);
}

.maggies-commerce .woocommerce .shop_table {
  margin: 0;
  border: 0;
  border-collapse: collapse;
  width: 100%;
  background: transparent;
  color: var(--ink);
  font: 14px/1.5 var(--body);
}
.maggies-commerce .woocommerce table.shop_table :is(th, td) {
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--shop-line);
  background: transparent !important; /* Keep the parent theme's white cells out of Maggie's cards. */
  color: inherit;
  vertical-align: middle;
}
.maggies-commerce .woocommerce :is(table.shop_table, .shop_table thead, .shop_table tbody, .shop_table tfoot, .shop_table tr) {
  background: transparent;
}
.maggies-commerce .woocommerce :is(.cart_totals,.order-review) table.shop_table th,
.maggies-commerce .woocommerce table.shop_table th {
  font-weight: 700;
  text-align: start;
  text-transform: none;
}
.maggies-commerce .woocommerce .shop_table :is(.product-price, .product-quantity, .product-subtotal, .product-total, .product-remove) {
  text-align: end;
}
.maggies-commerce .woocommerce .shop_table .product-name {
  overflow-wrap: anywhere;
  font-weight: 700;
}
.maggies-commerce .woocommerce .shop_table .woocommerce-Price-amount { white-space: nowrap; }
.maggies-commerce .woocommerce .shop_table .includes_tax {
  display: block;
  margin-top: 3px;
  color: var(--shop-muted);
  font-size: 12px;
}
.maggies-commerce .woocommerce :is(.cart_totals, .order-review) .shop_table td {
  text-align: end;
}
.maggies-commerce .woocommerce .shop_table .order-total :is(th, td) {
  border-bottom: 0;
  color: var(--raspberry-dark);
  font-size: 16px;
}

.maggies-commerce .woocommerce .woocommerce-cart-form .product-thumbnail img {
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  object-fit: cover;
  border-radius: 7px;
}
.maggies-commerce .woocommerce .woocommerce-cart-form th.product-remove > .remove { visibility: hidden; }
.maggies-commerce .woocommerce .woocommerce-cart-form a.remove {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 100%;
  text-decoration: none;
}
.maggies-commerce .woocommerce .woocommerce-cart-form a.remove:hover { border-color: var(--shop-line); }
.maggies-commerce .woocommerce .product-name dl.variation {
  display: grid;
  gap: 4px 8px;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  margin: 8px 0 0;
  color: var(--shop-muted);
  text-align: start;
  font: 13px/1.5 var(--body);
}
.maggies-commerce .woocommerce .product-name dl.variation :is(dt, dd, p) {
  float: none;
  margin: 0;
  font-size: inherit;
  text-align: start;
}
.maggies-commerce .woocommerce .product-name dl.variation dd { overflow-wrap: anywhere; }
.maggies-commerce .woocommerce .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  margin: 0;
}
.maggies-commerce .woocommerce .wc-proceed-to-checkout { margin: 14px 0 0; padding: 0; }
.maggies-commerce .woocommerce .wc-proceed-to-checkout a { display: block; margin: 0; }
.maggies-commerce .woocommerce .shop_table .quantity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 106px;
  height: 42px;
  border: 1px solid var(--shop-line);
  border-radius: 100px;
  background: #fff;
  white-space: nowrap;
}
.maggies-commerce .woocommerce .shop_table .quantity :is(input, button) {
  min-width: 0;
  max-width: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: center;
}
.maggies-commerce .woocommerce .woocommerce-cart-form .actions {
  padding: 16px 0 0;
  text-align: end;
  border-bottom: 0;
}
.maggies-commerce .woocommerce .woocommerce-cart-form .actions .coupon {
  float: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(100%, 390px);
  margin: 0 0 12px auto;
  padding: 0;
  border: 0;
}
.maggies-commerce .woocommerce .actions .coupon label { display: none; }
.maggies-commerce .woocommerce .woocommerce-cart-form .actions .coupon :is(input.input-text, input.btn-coupon) {
  position: static;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: start;
}
.maggies-commerce .woocommerce .woocommerce-cart-form .actions .coupon input.btn-coupon {
  appearance: none;
  min-height: 44px;
  border: 1px solid var(--raspberry-dark);
  border-radius: 100px;
  padding: 10px 15px;
  color: var(--raspberry-dark);
  -webkit-text-fill-color: currentColor;
  font: 700 14px/1.35 var(--body);
  text-align: center;
  text-transform: none;
  cursor: pointer;
}
.maggies-commerce .woocommerce .woocommerce-cart-form .actions .coupon .btn-coupon:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.maggies-commerce .woocommerce form.checkout #customer_details { width: 100%; }
.maggies-commerce .woocommerce .woocommerce-billing-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.maggies-commerce .woocommerce .woocommerce-billing-fields > * { grid-column: 1 / -1; min-width: 0; }
.maggies-commerce .woocommerce .woocommerce-billing-fields > :is(h3.title, .form-heading) { margin: 0; }
.maggies-commerce .woocommerce form.checkout #customer_details .woocommerce-billing-fields > h3.title { margin: 0; }
.maggies-commerce .woocommerce .woocommerce-billing-fields .form-heading {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--blush);
  color: var(--raspberry-dark);
  font: 650 14px/1.5 var(--body);
}
.maggies-commerce .woocommerce .woocommerce-billing-fields > :is(#billing_first_name_field, #billing_last_name_field, #billing_email_field, #billing_phone_field, #billing_city_field, #billing_postcode_field) { grid-column: auto; }
.maggies-commerce .woocommerce form.checkout .form-row,
.maggies-commerce .woocommerce form.checkout .form-row :is(.woocommerce-input-wrapper, label, legend) {
  float: none;
  width: auto;
  max-width: none;
}
.maggies-commerce .woocommerce form.checkout .form-row { margin: 0; padding: 0; }
.maggies-commerce .woocommerce form.checkout #customer_details { margin-bottom: 0; }
.maggies-commerce .woocommerce form.checkout #customer_details .form-row {
  margin-bottom: 0 !important; /* The grid controls spacing instead of the theme's forced margins. */
}
.maggies-commerce .woocommerce form.checkout .form-row :is(label, legend) {
  margin: 0 0 5px;
  color: var(--ink);
  font: 650 14px/1.45 var(--body);
}
.maggies-commerce .woocommerce form.checkout .form-row .optional { color: var(--shop-muted); font-weight: 400; }
.maggies-commerce .woocommerce form.checkout .form-row legend {
  width: 100%;
  border: 0;
}
.maggies-commerce .woocommerce form.checkout fieldset.fcf-multi-checkbox label,
.maggies-commerce .woocommerce form.checkout label.checkbox {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-block: 6px;
  font-weight: 400;
}
.maggies-commerce .woocommerce form.checkout .form-row :is(input.input-checkbox, input.input-radio) {
  position: static;
  flex: none;
  margin: 0;
}
.maggies-commerce .woocommerce :is(.woocommerce-account-fields, .woocommerce-additional-fields, .woocommerce-shipping-fields:has(> h3)) { margin-top: 20px; }
.maggies-commerce .woocommerce .order-review + #payment { margin-top: 14px; }
.maggies-commerce .woocommerce #payment :is(.payment-inner, ul.payment_methods, .payment_box, .place-order) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.maggies-commerce .woocommerce #payment .payment_box::before { content: none; }
.maggies-commerce .woocommerce #payment .payment_box p { max-width: none; }
.maggies-commerce .woocommerce #payment :is(.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions) {
  margin-block: 14px;
  font-size: 13px;
}
.maggies-commerce .woocommerce #payment .woocommerce-terms-and-conditions {
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.maggies-commerce .woocommerce #payment .woocommerce-terms-and-conditions h2 {
  margin-block: 8px 5px;
  font-size: 19px;
}
.maggies-commerce .woocommerce #payment .woocommerce-terms-and-conditions-checkbox-text { display: inline; }
.maggies-commerce .woocommerce #place_order { width: 100%; min-height: 48px; margin-top: 14px; }

.maggies-commerce .maggies-fixed-pickups {
  background: var(--shop-paper);
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  margin: 0 0 18px;
  padding: 15px 18px;
}
.maggies-commerce .maggies-fixed-pickups h2 { font-size: 24px; margin-bottom: 8px; }
.maggies-commerce .maggies-fixed-pickups ul { margin: 0; padding-left: 20px; }
.maggies-commerce .maggies-woo-guide { margin-bottom: 20px; max-width: 410px; }
.maggies-commerce .maggies-woo-guide img { width: 60px; height: 60px; }

@media (max-width: 820px) {
  .maggies-commerce .woocommerce > .row:has(.woocommerce-cart-form),
  .maggies-commerce .woocommerce form.checkout > .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .maggies-commerce .woocommerce .woocommerce-cart-form thead { display: none; }
  .maggies-commerce .woocommerce .woocommerce-cart-form tr.cart_item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 38px;
    grid-template-areas: "image name remove" "price price price" "quantity subtotal subtotal";
    align-items: start;
    gap: 8px 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--shop-line);
  }
  .maggies-commerce .woocommerce .woocommerce-cart-form tr.cart_item td {
    min-width: 0; padding: 0; border: 0; text-align: start !important;
  }
  .maggies-commerce .woocommerce .woocommerce-cart-form tr.cart_item td::before { content: none; }
  .maggies-commerce .woocommerce .woocommerce-cart-form td.product-thumbnail { display: block !important; grid-area: image; }
  .maggies-commerce .woocommerce .woocommerce-cart-form td.product-name { grid-area: name; }
  .maggies-commerce .woocommerce .woocommerce-cart-form td.product-remove { grid-area: remove; }
  .maggies-commerce .woocommerce .woocommerce-cart-form td.product-price { grid-area: price; color: var(--shop-muted); }
  .maggies-commerce .woocommerce .woocommerce-cart-form td.product-quantity { grid-area: quantity; justify-self: start; }
  .maggies-commerce .woocommerce .woocommerce-cart-form td.product-subtotal {
    grid-area: subtotal;
    align-self: center;
    justify-self: end;
    font-weight: 700;
  }
  .maggies-commerce .woocommerce .woocommerce-cart-form tr.cart_item :is(td.product-price, td.product-subtotal)::before {
    content: attr(data-title) " · ";
    float: none;
    font-size: 12px;
    font-weight: 600;
  }
  .maggies-commerce .woocommerce .woocommerce-cart-form .actions .coupon {
    width: 100%;
    justify-content: end;
  }
  .maggies-commerce .woocommerce .cart_totals td[data-title]::before { content: none; }
  .maggies-commerce .woocommerce .cart_totals table tr { display: table-row; }
  .maggies-commerce .woocommerce .cart_totals table :is(td, th) { display: table-cell; }
}
@media (max-width: 420px) {
  .maggies-commerce .woocommerce .woocommerce-billing-fields { grid-template-columns: minmax(0, 1fr); }
  .maggies-commerce .woocommerce .woocommerce-cart-form .actions .coupon { grid-template-columns: minmax(0, 1fr); }
}
