/* Self-contained wreath form, also usable without the original child theme. */
.om-store-order--wreath {
  --om-wreath-teal: #004851;
  --om-wreath-gold: #817324;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 16px 0 20px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #d5e3e4;
  border-radius: 16px;
  background: #fff;
  color: #20383d;
  direction: rtl;
  font-family: inherit;
  color-scheme: light;
}
.om-store-order--wreath * { box-sizing: border-box; }
.om-store-order--wreath [hidden], .om-store-order--wreath .is-om-hidden { display: none !important; }
.om-store-order--wreath .om-store-order__header { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid #e1ebec; }
.om-store-order--wreath .om-store-order__header h2 { margin: 4px 0 0 !important; font-size: 20px !important; line-height: 1.7 !important; color: var(--om-wreath-teal) !important; }
.om-store-order--wreath .om-store-order__eyebrow { font-size: 12px; font-weight: 600; color: #586d71; }
.om-store-order--wreath .om-store-order__notice { display: grid; gap: 4px; margin: 0 0 18px; padding: 12px 14px; border-inline-start: 3px solid var(--om-wreath-gold); border-radius: 8px; background: #f4f8f8; font-size: 13px; line-height: 1.8; color: #435e63; }
.om-store-order--wreath .om-fields-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; min-width: 0; }
.om-store-order--wreath .om-field-row { display: flex; float: none !important; flex-direction: column; gap: 6px; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
.om-store-order--wreath .om-field-row--full, .om-store-order--wreath .om-recipient-self,
.om-store-order--wreath .om-field-group-title { grid-column: 1 / -1; }
.om-store-order--wreath .om-field-group-title { margin: 4px 0 0 !important; padding: 2px 12px !important; border-inline-start: 3px solid var(--om-wreath-gold); font-size: 15px !important; line-height: 1.8 !important; color: var(--om-wreath-teal) !important; }
.om-store-order--wreath .om-field-row label { margin: 0 !important; font-size: 13px; font-weight: 600; line-height: 1.8; color: #20383d; }
.om-store-order--wreath .om-field-row abbr.required { color: #ae3030; text-decoration: none; }
.om-store-order--wreath input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.om-store-order--wreath textarea, .om-store-order--wreath select {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #bccfd2 !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #20383d !important;
  -webkit-text-fill-color: #20383d !important;
  font: inherit !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none;
}
.om-store-order--wreath textarea { resize: vertical; }
.om-store-order--wreath select { appearance: auto !important; -webkit-appearance: auto !important; }
.om-store-order--wreath input::placeholder, .om-store-order--wreath textarea::placeholder { color: #60777c !important; -webkit-text-fill-color: #60777c !important; opacity: 1 !important; }
.om-store-order--wreath input:focus, .om-store-order--wreath textarea:focus, .om-store-order--wreath select:focus { border-color: var(--om-wreath-teal) !important; outline: 2px solid #c1dcdf !important; outline-offset: 2px; }
.om-store-order--wreath .om-recipient-self { padding: 12px !important; border: 1px solid #d5e3e4; border-radius: 9px; background: #f4f8f8; }
.om-store-order--wreath .om-recipient-self label { display: flex !important; align-items: center; gap: 9px; min-height: 28px; cursor: pointer; }
.om-store-order--wreath .om-recipient-self small { display: block; padding-inline-start: 29px; color: #536c72; font-size: 12px; line-height: 1.8; }
.om-store-order--wreath .om-recipient-self__control { display: none !important; }
.om-store-order--wreath input[type="checkbox"], .om-store-order--wreath input[type="radio"] {
  appearance: auto !important; -webkit-appearance: auto !important; display: inline-block !important;
  position: static !important; flex: 0 0 20px !important; width: 20px !important; height: 20px !important;
  min-width: 20px !important; min-height: 20px !important; margin: 0 !important; padding: 0 !important;
  border: revert !important; border-radius: revert !important; background: revert !important; box-shadow: none !important;
  opacity: 1 !important; visibility: visible !important; transform: none !important; clip: auto !important; clip-path: none !important;
  accent-color: #004851; direction: ltr !important; cursor: pointer;
}
.om-store-order--wreath input[type="checkbox"]::before, .om-store-order--wreath input[type="checkbox"]::after,
.om-store-order--wreath .om-recipient-self label::before, .om-store-order--wreath .om-recipient-self label::after { content: none !important; display: none !important; }
.om-store-order--wreath .om-donation-section { display: grid; gap: 14px; margin-top: 20px; padding: 16px; border: 1px solid #d5e3e4; border-radius: 12px; background: #f8faf9; }
.om-store-order--wreath .om-donation-section__head { display: grid; gap: 4px; margin: 0; line-height: 1.8; }
.om-store-order--wreath .om-donation-section__head strong { font-size: 15px; color: var(--om-wreath-teal); }
.om-store-order--wreath .om-donation-section__head span { font-size: 12px; color: #536c72; }
.om-store-order--wreath .om-donation-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.om-store-order--wreath .om-donation-btn {
  display: inline-flex !important; position: static !important; flex: 1 1 130px; width: auto !important;
  min-width: 0 !important; min-height: 44px !important; height: auto !important; align-items: center !important;
  justify-content: center !important; margin: 0 !important; padding: 9px 12px !important; border: 1px solid #becfd1 !important;
  border-radius: 8px !important; background: #fff !important; color: #20464d !important; -webkit-text-fill-color: #20464d !important;
  font: inherit !important; font-size: 13px !important; line-height: 1.7 !important; text-indent: 0 !important;
  white-space: normal !important; visibility: visible !important; opacity: 1 !important; transform: none !important; cursor: pointer;
}
.om-store-order--wreath .om-donation-btn.is-active { border-color: var(--om-wreath-teal) !important; background: var(--om-wreath-teal) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.om-store-order--wreath .om-donation-btn::before, .om-store-order--wreath .om-donation-btn::after { content: none !important; display: none !important; }
.om-store-order--wreath .om-donation-custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr); align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.om-store-order--wreath .om-donation-custom input { direction: ltr; text-align: start; }
.om-store-order--wreath .om-donation-summary { display: grid; gap: 8px; padding: 14px; border: 1px solid #d5e3e4; border-radius: 9px; background: #fff; font-size: 13px; }
.om-store-order--wreath .om-sum-row { display: flex; justify-content: space-between; gap: 12px; line-height: 1.8; }
.om-store-order--wreath .om-sum-total { padding-top: 8px; border-top: 1px dashed #b9cdd0; color: var(--om-wreath-teal); }
.om-store-order--wreath .om-calendar-helper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 1fr); gap: 8px; align-items: center; font-size: 12px; }
.om-store-order--wreath .om-calendar-helper label { font-size: 12px; font-weight: 400; color: #536c72; }
.om-store-order--wreath .om-device-calendar { direction: ltr; font-size: 12px !important; }
body.mcs-wreath-product form.cart .single_add_to_cart_button,
body.mcs-wreath-product form.cart .om-buy-now {
  display: inline-flex !important; position: static !important; width: auto !important; min-width: 145px;
  min-height: 50px !important; height: auto !important; align-items: center !important; justify-content: center !important;
  margin: 8px 0 8px 8px !important; padding: 12px 18px !important; border: 1px solid #004851 !important;
  border-radius: 10px !important; background: #004851 !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
  font: inherit !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.7 !important;
  text-indent: 0 !important; white-space: normal !important; visibility: visible !important; opacity: 1 !important; transform: none !important;
}
body.mcs-wreath-product form.cart .single_add_to_cart_button { background: #fff !important; color: #004851 !important; -webkit-text-fill-color: #004851 !important; }
body.mcs-wreath-product form.cart button:disabled { opacity: .55 !important; cursor: not-allowed !important; }
.om-store-order--wreath button:focus-visible, body.mcs-wreath-product form.cart button:focus-visible { outline: 3px solid #817324 !important; outline-offset: 3px !important; }
@media (max-width: 600px) {
  .om-store-order--wreath .om-fields-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .om-store-order--wreath .om-donation-custom, .om-store-order--wreath .om-calendar-helper { grid-template-columns: minmax(0, 1fr); }
  body.mcs-wreath-product form.cart .single_add_to_cart_button, body.mcs-wreath-product form.cart .om-buy-now { width: 100% !important; margin-inline: 0 !important; }
  .om-store-order--wreath .om-sum-row strong { overflow-wrap: anywhere; text-align: end; }
}
@media (prefers-reduced-motion: reduce) { .om-store-order--wreath *, body.mcs-wreath-product form.cart button { transition: none !important; animation: none !important; } }
.om-store-order--wreath .om-recipient-self label > span::before,
.om-store-order--wreath .om-recipient-self label > span::after { content: none !important; display: none !important; }

/* 2.5.1: the real recipient checkbox owns its paint and dimensions.
 * Also covers legacy theme-rendered forms without .om-store-order--wreath.
 * SVG is a background, not a font/pseudo-element: RTL cannot reverse it.
 */
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-block !important;
  position: static !important;
  float: none !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  inline-size: 24px !important;
  block-size: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  min-inline-size: 24px !important;
  max-inline-size: 24px !important;
  min-block-size: 24px !important;
  max-block-size: 24px !important;
  aspect-ratio: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #627f85 !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  background-image: none !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
  color: #004851 !important;
  color-scheme: light !important;
  direction: ltr !important;
  writing-mode: horizontal-tb !important;
  font-size: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: none !important;
  animation: none !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  rotate: none !important;
  scale: none !important;
  filter: none !important;
  clip: auto !important;
  clip-path: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"]:checked {
  border-color: #004851 !important;
  background-color: #004851 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-8' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"]:focus-visible {
  outline: 3px solid #817324 !important;
  outline-offset: 3px !important;
}
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"]:disabled {
  opacity: .6 !important;
  cursor: not-allowed !important;
}
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"]::before,
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"]::after,
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"]) + .om-recipient-self__control {
  content: none !important;
  display: none !important;
}
/* Suppress legacy fake checkmarks attached to the label's text span. */
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"] ~ span::before,
:is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"] ~ span::after {
  content: none !important;
  display: none !important;
}
/* Native label activation and Space still toggle the same real form input. */
label:has(> :is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 44px !important;
  -webkit-tap-highlight-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  rotate: none !important;
  scale: none !important;
  cursor: pointer !important;
}
label:has(> :is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"]))::before,
label:has(> :is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"]))::after {
  content: none !important;
  display: none !important;
}
@media (forced-colors: active) {
  :is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"],
  :is(#om_field_receiver_is_customer, #omIco input[data-field="receiver_is_customer"], .om-sproduct input[name="om_field_receiver_is_customer"], form.cart input[name="om_field_receiver_is_customer"], form.cart input[name="receiver_is_customer"])[type="checkbox"]:checked {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    border-color: ButtonText !important;
    background: Canvas !important;
    forced-color-adjust: auto !important;
  }
}

/* 2.5.2: fixed province/city are values, not dropdowns. Never paint an arrow here. */
:is(#om_field_delivery_state-display, #om_field_delivery_city, #omIco [data-mcs-location-display], form.cart [data-mcs-location-display]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border: 1px solid #c5d8da !important;
  border-radius: 9px !important;
  background: #f4f8f8 !important;
  background-image: none !important;
  color: #20464d !important;
  -webkit-text-fill-color: #20464d !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  direction: rtl !important;
  text-align: start !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  cursor: default !important;
}
:is(#om_field_delivery_state_field, #om_field_delivery_city_field, #omIco [data-mcs-fixed-destination], form.cart [data-mcs-fixed-destination])::before,
:is(#om_field_delivery_state_field, #om_field_delivery_city_field, #omIco [data-mcs-fixed-destination], form.cart [data-mcs-fixed-destination])::after {
  content: none !important;
  display: none !important;
}
[data-mcs-fixed-destination] .select2-container { display: none !important; }
.om-store-order--wreath .mcs-fixed-location-badge { margin-inline-start: 8px; font-size: 11px; font-weight: 400; color: #526d72; }
/* One explicit arrow on remaining selects: native and background arrows cannot stack. */
:is(#om_field_delivery_time, .om-store-order--wreath select, #omIco select[data-field]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23004851' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 12px center !important;
  background-size: 16px 16px !important;
  padding-inline-end: 40px !important;
}

/* 2.5.3: static text has no form-field hooks for theme/Persian-Woo city mappers. */
.mcs-static-destination .mcs-static-location-label {
  display: block !important;
  margin: 0 !important;
  color: #20383d !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
}
.mcs-static-destination .mcs-static-location-value {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #c5d8da !important;
  border-radius: 9px !important;
  background: #f4f8f8 !important;
  color: #20464d !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  direction: rtl !important;
  text-align: start !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
[data-mcs-static-destination]::before, [data-mcs-static-destination]::after,
.mcs-static-location-value::before, .mcs-static-location-value::after {
  content: none !important;
  display: none !important;
}
[data-mcs-static-destination] .select2-container { display: none !important; }
