/* Delivery first, payment choices and centered confirmation — 1.7.30. */
body.woocommerce-checkout [hidden] { display: none !important; }
body.woocommerce-checkout .woocommerce-shipping-fields { margin-bottom: 30px; }
body.woocommerce-checkout .meliss-checkout-contact { clear: both; }
body.woocommerce-checkout .meliss-billing-toggle {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0 28px;
  color: #5A3D5C;
  font: 600 15px/1.5 Montserrat, sans-serif;
  cursor: pointer;
}
.meliss-billing-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.meliss-switch { position: relative; display: inline-block; width: 36px; height: 18px; border-radius: 20px; background: #e6dfe8; flex: 0 0 36px; margin-bottom: 12px; }
.meliss-switch::before { content: ''; position: absolute; width: 14px; height: 14px; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #5a3d5c22; transition: transform .2s; }
.meliss-switch::after { content: 'NON'; position: absolute; top: 21px; left: 0; width: 100%; font: 700 9px/1 Montserrat,sans-serif; text-align: center; }
.meliss-billing-toggle input:checked + .meliss-switch { background: #5A3D5C; }
.meliss-billing-toggle input:checked + .meliss-switch::before { transform: translateX(18px); }
.meliss-billing-toggle input:checked + .meliss-switch::after { content: 'OUI'; }
.meliss-billing-toggle input:focus-visible + .meliss-switch { outline: 3px solid #EFB8B8; outline-offset: 4px; }
body.woocommerce-checkout #order_review .cart-subtotal th { white-space: nowrap; }
body.woocommerce-checkout #order_review .cart-subtotal th br { display: none; }
body.woocommerce-checkout #payment .payment_box.payment_method_ppcp-gateway,
body.woocommerce-checkout #payment .payment_box.payment_method_paypal { display: none !important; }
.meliss-payment-card:not([data-payment-choice]) .meliss-checkout-wallets,
.meliss-payment-card[data-payment-choice="none"] .meliss-checkout-wallets,
.meliss-payment-card[data-payment-choice="card"] .meliss-checkout-wallets,
.meliss-payment-card[data-payment-choice="paypal"] .meliss-checkout-wallets,
.meliss-payment-card:not([data-payment-choice]) #ppc-button-ppcp-gateway,
.meliss-payment-card[data-payment-choice="none"] #ppc-button-ppcp-gateway,
.meliss-payment-card[data-payment-choice="card"] #ppc-button-ppcp-gateway,
.meliss-payment-card[data-payment-choice="applepay"] #ppc-button-ppcp-gateway,
.meliss-payment-card[data-payment-choice="googlepay"] #ppc-button-ppcp-gateway,
.meliss-payment-card[data-payment-choice="applepay"] #place_order,
.meliss-payment-card[data-payment-choice="googlepay"] #place_order,
.meliss-payment-card[data-payment-choice="paypal"].has-paypal-button #place_order,
.meliss-payment-card[data-payment-choice="none"] #payment .payment_box,
.meliss-payment-card[data-payment-choice="applepay"] #payment .payment_box,
.meliss-payment-card[data-payment-choice="googlepay"] #payment .payment_box { display: none !important; }
.meliss-payment-card:not([data-payment-choice]) #place_order,
.meliss-payment-card[data-payment-choice="none"] #place_order,
.meliss-payment-card[data-payment-choice="card"] #place_order { display: block !important; }
.meliss-payment-choice-hint {
  margin: 0 0 12px;
  color: #5A3D5C;
  font: 600 13px/1.5 Montserrat, sans-serif;
}
.meliss-wallet-option label { cursor: pointer; }
.meliss-wallet-option input { margin-right: 10px; accent-color: #5A3D5C; }
.meliss-wallet-option {
  box-sizing: border-box;
  margin: 8px 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(90,61,92,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
}
.meliss-checkout-wallets .meliss-wallet-hidden { display: none !important; }
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-checkbox-text,
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper label {
  font: 500 14px/1.6 Montserrat,sans-serif !important;
  color: #5A3D5C !important;
}
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-checkbox-text a { color: #0000EE !important; text-decoration: underline; }
body.woocommerce-checkout #terms { width: 20px; height: 20px; margin: 0 9px 0 0; vertical-align: middle; accent-color: #5A3D5C; }
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; }
body.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  margin: 0 0 18px;
  color: #6f6170;
  font: 400 12px/1.65 Montserrat,sans-serif;
}
body.woocommerce-checkout #payment .woocommerce-privacy-policy-text a { color: #0000EE; text-decoration: underline; }

body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 0;
}
body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping > th,
body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping > td {
  display: block;
  width: 100%;
  padding: 0 !important;
  text-align: left !important;
}
body.woocommerce-checkout #order_review #shipping_method {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}
body.woocommerce-checkout #order_review #shipping_method li {
  position: relative;
  display: block;
  box-sizing: border-box;
  margin: 0 !important;
  min-width: 0;
  height: 120px;
  padding: 0 10px 13px !important;
  border: 2px solid transparent;
  border-radius: 15px;
  background: #fff;
  line-height: 1.5;
  overflow: hidden;
}
body.woocommerce-checkout #order_review #shipping_method li input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
body.woocommerce-checkout #order_review #shipping_method li label {
  display: grid;
  grid-template-rows: auto 54px auto;
  place-items: center;
  min-width: 0;
  margin: 0;
  color: #5A3D5C;
  font: 700 11px/1.25 Montserrat,sans-serif;
  text-align: center;
  cursor: pointer;
}
body.woocommerce-checkout #order_review #shipping_method .meliss-delivery-title {
  align-self: stretch;
  box-sizing: border-box;
  width: calc(100% + 20px);
  min-height: 28px;
  margin: 0 -10px 5px;
  padding: 7px 4px;
  background: #5A3D5C;
  color: #fff;
  font-size: 9px;
  letter-spacing: .02em;
}
body.woocommerce-checkout #order_review #shipping_method .meliss-delivery-icon::before { display: block; font-size: 34px; line-height: 1; }
body.woocommerce-checkout #order_review #shipping_method [data-delivery-kind="relay"] .meliss-delivery-icon::before { content: '🏪'; }
body.woocommerce-checkout #order_review #shipping_method [data-delivery-kind="home"] .meliss-delivery-icon::before { content: '⌂'; font-size: 46px; font-family: Georgia,serif; }
body.woocommerce-checkout #order_review #shipping_method [data-delivery-kind="pickup"] .meliss-delivery-icon::before { content: '🤲'; }
body.woocommerce-checkout #order_review #shipping_method [data-delivery-kind="delivery"] .meliss-delivery-icon::before { content: '📦'; }
body.woocommerce-checkout #order_review #shipping_method .meliss-delivery-price { min-height: 17px; }
body.woocommerce-checkout #order_review #shipping_method li.is-selected,
body.woocommerce-checkout #order_review #shipping_method li:has(input:checked) {
  border-color: #5A3D5C;
  background: #fff;
  box-shadow: 0 7px 20px rgba(90,61,92,.14);
}
body.woocommerce-checkout #order_review #shipping_method li:focus-within { outline: 3px solid rgba(239,184,184,.45); outline-offset: 2px; }
body.woocommerce-checkout #order_review .meliss-shipping-relay-details {
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(90,61,92,.13);
  border-radius: 16px;
  background: #fff;
  color: #5A3D5C;
  font: 500 12px/1.55 Montserrat,sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}
body.woocommerce-checkout #order_review .meliss-shipping-relay-details[hidden] { display: none !important; }
body.woocommerce-checkout #order_review .meliss-shipping-relay-details > * { max-width: 100% !important; margin: 0 !important; }
body.woocommerce-checkout #order_review .meliss-shipping-relay-details a {
  color: #5A3D5C;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.woocommerce-checkout #payment ul.payment_methods {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  border: 0;
}
body.woocommerce-checkout #payment ul.payment_methods > li {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  min-height: 118px;
  margin: 0 !important;
  padding: 54px 14px 14px !important;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}
body.woocommerce-checkout #payment ul.payment_methods > li.has-visible-box { grid-column: 1 / -1; }
body.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
body.woocommerce-checkout #payment ul.payment_methods > li > label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  box-sizing: border-box;
  min-height: 36px;
  margin: 0;
  padding: 10px 8px;
  background: #5A3D5C;
  color: #fff;
  font: 700 11px/1.25 Montserrat,sans-serif;
  text-align: center;
  cursor: pointer;
}
body.woocommerce-checkout #payment ul.payment_methods > li::before {
  display: block;
  color: #5A3D5C;
  font: 700 34px/1 Montserrat,sans-serif;
}
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="card"]::before { content: '💳'; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="paypal"]::before { content: 'P'; color: #0070ba; font-style: italic; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="apple"]::before { content: '● Pay'; font-size: 23px; color: #111; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="google"]::before { content: 'G Pay'; font-size: 23px; color: #4285f4; }
body.woocommerce-checkout #payment ul.payment_methods > li.is-selected,
body.woocommerce-checkout #payment ul.payment_methods > li:has(> input[type="radio"]:checked) {
  border-color: #5A3D5C;
  box-shadow: 0 8px 20px rgba(90,61,92,.12);
}
body.woocommerce-checkout #payment ul.payment_methods > li:focus-within { outline: 3px solid rgba(239,184,184,.5); outline-offset: 2px; }
body.woocommerce-checkout #payment ul.payment_methods > li .payment_box { margin: 12px 0 0 !important; text-align: left; }

.meliss-step-navigation {
  width: min(calc(100% - 40px),1040px);
  margin: 22px auto 8px;
  text-align: center;
}
.meliss-step-navigation__link {
  display: inline-block;
  padding: 8px 4px;
  color: #7b687c;
  font: 600 12px/1.4 Montserrat,sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(90,61,92,.22);
}
.meliss-step-navigation__link:hover,
.meliss-step-navigation__link:focus-visible { color: #5A3D5C; border-color: #EFB8B8; }
.meliss-cart-toast.is-error { box-sizing: border-box; max-height: calc(100dvh - 110px); overflow-y: auto; }
.meliss-cart-toast.is-error .meliss-cart-toast__content { display: block; }
.meliss-cart-toast.is-error .meliss-cart-toast__content p { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.meliss-cart-toast.is-error .meliss-cart-toast__button { margin-top: 12px; }

body.woocommerce-order-received .woocommerce-order { max-width: 1040px; margin: 0 auto; text-align: center; color: #5A3D5C; }
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 16px auto 30px;
  max-width: 980px;
  font-family: Montserrat,sans-serif;
  color: #5A3D5C;
}
body.woocommerce-order-received .meliss-thankyou-line { display: block; font-size: clamp(24px,3vw,34px); font-weight: 700; line-height: 1.35; }
body.woocommerce-order-received .meliss-thankyou-line--secondary {
  margin-top: 13px;
  color: #E6A5AE;
  font-size: clamp(16px,1.8vw,20px);
  font-weight: 600;
  line-height: 1.45;
}
body.woocommerce-order-received .meliss-thankyou-next-step {
  display: block;
  max-width: 720px;
  margin: 12px auto 0;
  color: #6f6170;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
@media(min-width:760px) {
  body.woocommerce-order-received .meliss-thankyou-line--secondary { white-space: nowrap; }
}
body.woocommerce-order-received ul.order_details { display: inline-block; max-width: 100%; box-sizing: border-box; margin: 0 auto 36px; padding: 0; list-style: disc inside; text-align: center; }
body.woocommerce-order-received .woocommerce-order-details > ul.order_details { margin: 16px auto 30px; }
body.woocommerce-order-received ul.order_details li { float: none; display: list-item; margin: 9px 0; padding: 0; border: 0; font-size: 14px; text-transform: none; line-height: 1.7; overflow-wrap: anywhere; }
body.woocommerce-order-received ul.order_details li strong { display: inline; margin-left: 5px; font-size: inherit; }
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .meliss-relay-confirmation,
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column {
  box-sizing: border-box;
  padding: clamp(22px, 4vw, 36px);
  border: 0;
  border-radius: 30px;
  background: #FFF7E8;
  margin-bottom: 26px;
  text-align: center;
}
body.woocommerce-order-received .woocommerce-order-details {
  margin-top: 0 !important;
  border-radius: 18px 18px 30px 30px;
}
body.woocommerce-order-received .woocommerce-order-details table.woocommerce-table,
body.woocommerce-order-received .woocommerce-order-details table.shop_table {
  border: 1px solid rgba(90,61,92,.18);
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
}
body.woocommerce-order-received .woocommerce-order-details table th,
body.woocommerce-order-received .woocommerce-order-details table td { padding: 14px 16px; }
body.woocommerce-order-received .woocommerce-order-details .meliss-order-meta-row th { color: #5A3D5C; font-weight: 700; }
body.woocommerce-order-received .woocommerce-order-details .meliss-order-meta-row td { color: #5A3D5C; }
body.woocommerce-order-received .meliss-relay-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  margin-top: 22px;
}
body.woocommerce-order-received .meliss-relay-subcard {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(18px,3vw,28px);
  border-radius: 30px;
  background: #fff;
  overflow-wrap: anywhere;
}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns::before,
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns::after { display: none; }
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column { width: auto; float: none; }
body.woocommerce-order-received .woocommerce-customer-details address { width: auto; border: 0; padding: 0; text-align: center; line-height: 1.8; overflow-wrap: anywhere; }
body.woocommerce-order-received .woocommerce-order h2,
body.woocommerce-order-received .woocommerce-order h3 { color: #5A3D5C; text-align: center; }
body.woocommerce-order-received .woocommerce-order table { width: 100%; background: transparent; }
body.woocommerce-order-received .woocommerce-order table th,
body.woocommerce-order-received .woocommerce-order table td { text-align: center !important; overflow-wrap: anywhere; }
body.woocommerce-order-received .woocommerce-customer-details--phone,
body.woocommerce-order-received .woocommerce-customer-details--email { padding-left: 0 !important; }
body.woocommerce-order-received .woocommerce-customer-details--phone::before,
body.woocommerce-order-received .woocommerce-customer-details--email::before { position: static !important; margin-right: 8px; }
body.woocommerce-order-received .meliss-thankyou-portrait {
  display: block;
  width: min(340px,72vw);
  margin: 8px auto 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #fff;
}
body.woocommerce-order-received .meliss-thankyou-portrait img { display: block; width: 100%; height: auto; }
body.woocommerce-order-received .meliss-continue-shopping { margin: 34px auto 12px; text-align: center; }
body.woocommerce-order-received .meliss-continue-shopping .button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  background: #5A3D5C;
  color: #fff;
  font: 700 13px/1 Montserrat,sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s,color .2s,transform .2s;
}
body.woocommerce-order-received .meliss-continue-shopping .button:hover,
body.woocommerce-order-received .meliss-continue-shopping .button:focus-visible { background: #EFB8B8; color: #5A3D5C; transform: translateY(-1px); }
@media(max-width:600px) {
  body.woocommerce-order-received .meliss-thankyou-line { font-size: 20px; }
  body.woocommerce-order-received .meliss-thankyou-line--secondary { font-size: 15px; }
  body.woocommerce-order-received .meliss-thankyou-next-step { font-size: 13px; }
  body.woocommerce-order-received .meliss-relay-grid { gap: 10px; }
  body.woocommerce-order-received .meliss-relay-subcard { padding: 16px 10px; border-radius: 30px; }
  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; gap: 0; }
  .meliss-cart-toast.is-error { top: 16px; right: 16px; max-height: calc(100dvh - 32px); }
  body.woocommerce-checkout .meliss-billing-toggle { font-size: 14px; align-items: flex-start; }
  body.woocommerce-order-received .woocommerce-order table th,
  body.woocommerce-order-received .woocommerce-order table td { padding: 10px 5px; font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .meliss-switch::before { transition: none; } }
