/* Shared controls. Explicit scopes leave search, hidden fields and payment widgets alone. */
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce, .et_pb_newsletter) {
  --cafarte-form-ink: #20211e;
  --cafarte-form-border: #b7bab1;
  --cafarte-form-accent: #f9ea2f;
}
#et-boc :is(
  #yith-wapo-container input:is([type="text"], [type="number"], [type="email"]),
  #yith-wapo-container textarea,
  #yith-wapo-container select,
  .fluentform .ff-el-form-control,
  .woocommerce form .input-text,
  .woocommerce form select,
  .et_pb_newsletter .et_pb_newsletter_field input
) {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--cafarte-form-border, #b7bab1);
  border-radius: 8px;
  background: #fff;
  color: var(--cafarte-form-ink, #20211e);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce form, .et_pb_newsletter) :is(input, textarea)::placeholder {
  color: #70736b;
  opacity: 1;
}
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce form, .et_pb_newsletter) :is(input, textarea, select):focus {
  border-color: #20211e;
  outline: 2px solid #20211e;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #f9ea2f;
}
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce form) :is(input, textarea, select):is([aria-invalid="true"], :user-invalid) {
  border-color: #b42318;
}
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce form) :is(input, textarea, select):disabled {
  background: #eeefeb;
  color: #686b63;
  cursor: not-allowed;
}
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce form) textarea {
  min-height: 152px;
  resize: vertical;
}
#et-boc :is(#yith-wapo-container, .fluentform, .woocommerce form) input:is([type="checkbox"], [type="radio"]) {
  accent-color: #20211e;
  cursor: pointer;
}
/* Product add-ons: preserve native YITH inputs, validation, prices and conditional display. */
#et-boc #yith-wapo-container {
  color: #20211e;
  font-size: 15px;
  line-height: 1.55;
}
#et-boc #yith-wapo-container .yith-wapo-addon {
  margin: 0 0 26px;
  padding: 0;
}
#et-boc #yith-wapo-container .wapo-addon-title {
  padding: 0;
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.15;
  color: #20211e;
}
#et-boc #yith-wapo-container .wapo-addon-description {
  margin: 0 0 16px;
  padding: 0;
  color: #62665d;
  font-size: 14px;
  line-height: 1.6;
}
#et-boc #yith-wapo-container :is(.yith-wapo-addon-type-checkbox, .yith-wapo-addon-type-radio) .yith-wapo-option {
  position: relative;
  padding: 0;
  border: 1px solid #c9ccc3;
  border-radius: 8px;
  background: #fafbf8;
  transition: border-color 150ms ease, background-color 150ms ease;
}
#et-boc #yith-wapo-container :is(.yith-wapo-addon-type-checkbox, .yith-wapo-addon-type-radio) .yith-wapo-option:has(input:checked) {
  border-color: #85852b;
  background: #fffde4;
}
#et-boc #yith-wapo-container :is(.yith-wapo-addon-type-checkbox, .yith-wapo-addon-type-radio) .yith-wapo-option:hover {
  border-color: #20211e;
}
#et-boc #yith-wapo-container :is(.checkbox-button-container, .radio-button-container) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
}
#et-boc #yith-wapo-container :is(.checkboxbutton, .radiobutton) {
  display: flex;
  flex: 0 0 20px;
  align-items: center;
}
#et-boc #yith-wapo-container input:is([type="checkbox"], [type="radio"]) {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}
#et-boc #yith-wapo-container :is(.checkbox-button-container, .radio-button-container) label {
  flex: 1;
  padding: 15px 0;
  margin: 0;
  color: #20211e;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}
/* Extend the native label target across the option, including its helper text. */
#et-boc #yith-wapo-container :is(.checkbox-button-container, .radio-button-container) label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
#et-boc #yith-wapo-container :is(.checkboxbutton, .radiobutton) input {
  position: relative;
  z-index: 1;
}
#et-boc #yith-wapo-container .option-price {
  display: inline-block;
  color: #5c6055;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
#et-boc #yith-wapo-container .yith-wapo-option .description {
  margin: -5px 16px 14px 48px;
  padding: 0;
  color: #62665d;
  font-size: 13px;
  line-height: 1.5;
}
#et-boc #yith-wapo-container .yith-wapo-addon-type-text .options {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 16px !important;
}
#et-boc #yith-wapo-container .yith-wapo-addon-type-text .option-container label {
  display: block;
  margin: 0 0 8px;
  color: #20211e;
  font-size: 14px;
  font-weight: 600;
}
#et-boc #yith-wapo-container .yith-wapo-addon-type-radio .options {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important;
}
#et-boc #yith-wapo-container .required { color: #8e311b; }
#et-boc #yith-wapo-container #wapo-total-price-table {
  margin: 8px 0 24px;
  padding: 18px 20px;
  border: 1px solid #d8dacf;
  border-radius: 8px;
  background: #f5f6ef;
}
#et-boc #yith-wapo-container #wapo-total-price-table table { margin: 0; width: 100%; }
#et-boc #yith-wapo-container #wapo-total-price-table :is(th, td) {
  padding: 8px 0;
  border: 0;
  color: #20211e;
  font-size: 14px;
}
#et-boc #yith-wapo-container #wapo-total-price-table td:last-child { text-align: right; }
#et-boc #yith-wapo-container #wapo-total-price-table tr:last-child :is(th, td) {
  padding-top: 16px;
  border-top: 1px solid #c9ccc3;
  font-size: 17px;
  font-weight: 700;
}
/* Contact form and classic WooCommerce account forms. */
#et-boc .fluentform .ff-el-group { margin-bottom: 22px; }
#et-boc .fluentform .ff-el-input--label { margin-bottom: 8px; }
#et-boc .fluentform .ff-el-input--label label {
  color: #20211e;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}
#et-boc .fluentform .ff-btn-submit:not(.ff_btn_no_style),
#et-boc .woocommerce .woocommerce-form button.button {
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid #20211e;
  border-radius: 6px;
  background: #20211e;
  color: #f9ea2f;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
#et-boc .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover,
#et-boc .woocommerce .woocommerce-form button.button:hover {
  background: #f9ea2f;
  color: #20211e;
}
#et-boc .fluentform .ff-btn-submit:focus-visible,
#et-boc .woocommerce .woocommerce-form button.button:focus-visible {
  outline: 2px solid #20211e;
  outline-offset: 3px;
}
#et-boc .woocommerce form .form-row label { margin-bottom: 8px; }
/* Checkout Blocks retain their floating-label spacing and native payment controls. */
#et-boc .wc-block-components-form :is(.wc-block-components-text-input input, .wc-block-components-combobox-control input, .wc-block-components-textarea, .wc-blocks-components-select__select) {
  border-color: #b7bab1;
  border-radius: 8px;
  background-color: #fff;
  color: #20211e;
  font-size: 16px;
}
#et-boc .wc-block-components-form :is(input, select, textarea):focus {
  outline: 2px solid #20211e;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #f9ea2f;
}
@media (max-width: 600px) {
  #et-boc #yith-wapo-container .yith-wapo-addon-type-text .options,
  #et-boc #yith-wapo-container .yith-wapo-addon-type-radio .options {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #et-boc #yith-wapo-container :is(.checkbox-button-container, .radio-button-container) { padding: 0 12px; }
  #et-boc #yith-wapo-container .yith-wapo-option .description { margin-left: 44px; }
  #et-boc .fluentform .ff-btn-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #et-boc :is(#yith-wapo-container, .fluentform, .woocommerce, .et_pb_newsletter) :is(input, select, textarea, button, .yith-wapo-option) { transition: none; }
}

#et-boc #yith-wapo-container #wapo-total-price-table th { text-align: left; font-weight: 500; }
#et-boc #yith-wapo-container .radio-button-container { padding-inline: 10px; gap: 8px; }
#et-boc #yith-wapo-container .radio-button-container label { font-size: 14px; }
#et-boc #yith-wapo-container #wapo-total-price-table :is(th, td) { line-height: 1.5; }
#et-boc #yith-wapo-container #wapo-total-price-table td { white-space: nowrap; padding-left: 12px; }
/* Divi emits important module typography for newsletter fields. */
#et-boc .et_pb_newsletter .et_pb_newsletter_field input {
  font-family: "Open Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  border: 1px solid #b7bab1 !important;
  border-radius: 8px !important;
}
#et-boc .et_pb_newsletter .et_pb_newsletter_field input:focus {
  border-color: #20211e !important;
  box-shadow: 0 0 0 5px #f9ea2f !important;
}

/* Purchase controls: the site's condensed typography and yellow primary action. */
#et-boc :is(.single_add_to_cart_button, .add_to_cart_button, .product_type_simple.button, .product_type_variable.button) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 24px !important;
  border: 1px solid #f9ea2f !important;
  border-radius: 6px !important;
  background: #f9ea2f !important;
  color: #20211e !important;
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
#et-boc :is(.single_add_to_cart_button, .add_to_cart_button, .product_type_simple.button, .product_type_variable.button):hover {
  background: #20211e !important;
  border-color: #20211e !important;
  color: #f9ea2f !important;
}
/* Remove Divi's decorative arrow without hiding WooCommerce loading feedback. */
#et-boc :is(.single_add_to_cart_button, .add_to_cart_button):not(.loading)::after { display: none !important; }
#et-boc :is(.single_add_to_cart_button, .add_to_cart_button):focus-visible,
#et-boc .cafarte-quantity-button:focus-visible {
  outline: 2px solid #20211e;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #f9ea2f !important;
}
#et-boc :is(.single_add_to_cart_button, .add_to_cart_button):is(:disabled, .disabled, .loading) {
  opacity: .55;
  cursor: not-allowed;
}
#et-boc form.cart:has(> .quantity):has(> .single_add_to_cart_button) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
#et-boc form.cart > #yith-wapo-container { flex: 0 0 100%; min-width: 0; }
#et-boc form.cart > .single_add_to_cart_button { flex: 1 1 170px; float: none !important; margin: 0 !important; }
#et-boc :is(form.cart, .woocommerce-cart-form) .quantity.cafarte-quantity {
  display: inline-flex !important;
  align-items: stretch;
  flex: 0 0 146px;
  width: 146px !important;
  height: 54px;
  margin: 0 !important;
  padding: 0;
  float: none !important;
  border: 1px solid #b7bab1;
  border-radius: 6px;
  background: #fff;
  vertical-align: middle;
}
#et-boc :is(form.cart, .woocommerce-cart-form) .cafarte-quantity input.qty {
  appearance: textfield;
  -moz-appearance: textfield;
  box-sizing: border-box;
  flex: 1 1 0;
  width: 56px !important;
  min-width: 0;
  min-height: 0;
  height: 52px;
  padding: 0 2px !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #20211e !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
#et-boc .cafarte-quantity input.qty::-webkit-inner-spin-button,
#et-boc .cafarte-quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#et-boc .quantity .cafarte-quantity-button {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 52px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #20211e;
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease;
}
#et-boc .quantity .cafarte-quantity-button:hover:not(:disabled) { background: #f9ea2f; }
#et-boc .quantity .cafarte-quantity-button:disabled { color: #9b9e95; cursor: not-allowed; }
#et-boc .cafarte-quantity input.qty:focus { position: relative; z-index: 1; }
@media (max-width: 600px) {
  #et-boc form.cart > .single_add_to_cart_button { flex-basis: 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #et-boc :is(.single_add_to_cart_button, .add_to_cart_button, .cafarte-quantity-button) { transition: none; }
}
/* Reserve the stepper's width in Divi's fixed-layout cart table. */
@media (min-width: 769px) {
  #et-boc .woocommerce-cart-form :is(th, td).product-quantity { width: 174px !important; min-width: 174px; }
}
/* Divi's generated add-to-cart module rules are more specific than global styles.
   Keep the same geometry on hover and suppress its sliding decorative arrow. */
body.et-db #et-boc .et-l .et_pb_module button.single_add_to_cart_button.button {
  padding: 13px 24px !important;
  color: #20211e !important;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease !important;
}
body.et-db #et-boc .et-l .et_pb_module button.single_add_to_cart_button.button:hover {
  padding: 13px 24px !important;
  color: #f9ea2f !important;
}
body.et-db #et-boc .et-l .et_pb_module button.single_add_to_cart_button.button:not(.loading)::after {
  display: none !important;
  content: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body.et-db #et-boc .et-l .et_pb_module button.single_add_to_cart_button.button { transition: none !important; }
}
