/* v1.8.21 premium UI repair */

/* hide stray native/gallery chrome that breaks the premium layout */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger,
.single-product div.product .images .woocommerce-product-gallery__trigger,
.single-product div.product .flex-control-thumbs,
.single-product div.product ol.flex-control-thumbs,
.single-product div.product ul.flex-control-thumbs,
.single-product div.product .flex-control-nav,
.single-product div.product .thumbnails,
.single-product div.product .woocommerce-product-gallery__wrapper + ol,
.single-product div.product .woocommerce-product-gallery__wrapper + ul,
.single-product div.product .woocommerce-product-gallery__wrapper + .thumbnails,
.single-product div.product .woocommerce-product-gallery__wrapper + .flex-control-thumbs,
.single-product div.product .images > .thumbnails,
.single-product div.product .images > ol,
.single-product div.product .images > ul {
  display: none !important;
}

/* keep custom format gallery only when explicitly shown and make it refined */
.single-product div.product .afp-format-mini-gallery {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
  padding: 0 !important;
}
.single-product div.product .afp-format-mini-gallery.is-hidden { display: none !important; }
.single-product div.product .afp-format-mini-gallery__item {
  all: unset !important;
  box-sizing: border-box !important;
  width: 76px !important;
  height: 76px !important;
  display: inline-block !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  background: #fff9f5 !important;
  cursor: pointer !important;
}
.single-product div.product .afp-format-mini-gallery__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.single-product div.product .afp-format-mini-gallery__item.is-active {
  box-shadow: 0 0 0 2px rgba(181,108,82,.18) inset !important;
}

/* refined premium shells */
.afp-widget .afp-control--format-simple,
.afp-widget .afp-control--area-simple {
  position: relative !important;
  width: 100% !important;
  min-height: 72px !important;
  border: 1.5px solid rgba(223,198,185,.92) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #fffefd 0%, #fff8f4 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94) !important;
}

/* custom select */
.afp-widget .afp-control--format-simple select#afp_format {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.afp-widget .afp-format-dropdown {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
}
.afp-widget .afp-format-trigger {
  all: unset !important;
  box-sizing: border-box !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 0 18px 0 26px !important;
  cursor: pointer !important;
  border-radius: 28px !important;
}
.afp-widget .afp-format-trigger__value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--afp-text) !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}
.afp-widget .afp-format-trigger__caret {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.16) !important;
  background: #fbf4ee !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}
.afp-widget .afp-format-trigger__caret::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 10px !important;
  height: 10px !important;
  margin: -6px 0 0 -5px !important;
  border-right: 2px solid #7a6258 !important;
  border-bottom: 2px solid #7a6258 !important;
  transform: rotate(45deg) !important;
  transition: transform .18s ease, margin-top .18s ease !important;
}
.afp-widget .afp-format-dropdown.is-open .afp-format-trigger__caret::before {
  transform: rotate(-135deg) !important;
  margin-top: -1px !important;
}
.afp-widget .afp-format-menu {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  padding: 10px !important;
  border: 1.5px solid rgba(223,198,185,.92) !important;
  border-radius: 26px !important;
  background: #fffaf7 !important;
  box-shadow: 0 18px 38px rgba(44,28,20,.10), 0 6px 14px rgba(44,28,20,.04) !important;
  opacity: 0 !important;
  transform: translateY(-4px) scale(.985) !important;
  transform-origin: top center !important;
  pointer-events: none !important;
  max-height: 320px !important;
  overflow: auto !important;
}
.afp-widget .afp-format-dropdown.is-open .afp-format-menu {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}
.afp-widget .afp-format-option {
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 18px !important;
  border-radius: 18px !important;
  color: var(--afp-text) !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.afp-widget .afp-format-option + .afp-format-option { margin-top: 4px !important; }
.afp-widget .afp-format-option:hover,
.afp-widget .afp-format-option:focus-visible {
  background: rgba(181,108,82,.08) !important;
  color: var(--afp-accent) !important;
}
.afp-widget .afp-format-option.is-selected {
  background: linear-gradient(180deg, #c47b5d 0%, #b56c52 100%) !important;
  color: #fffdfb !important;
}

/* area input */
.afp-widget .afp-control--area-simple .afp-area-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 72px !important;
}
.afp-widget .afp-control--area-simple #afp_area {
  all: unset !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 72px !important;
  padding: 0 154px 0 24px !important;
  color: var(--afp-text) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  background: transparent !important;
}
.afp-widget .afp-area-addon {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.afp-widget .afp-area-stepper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.afp-widget .afp-area-stepper__button {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  background: #fbf4ee !important;
  color: var(--afp-accent) !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}
.afp-widget .afp-area-stepper__button:hover,
.afp-widget .afp-area-stepper__button:focus-visible {
  background: #f6ebe2 !important;
  border-color: rgba(181,108,82,.28) !important;
}
.afp-widget .afp-area-stepper__button span {
  all: unset !important;
  display: block !important;
  color: inherit !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}
.afp-widget .afp-area-stepper__button--down span { font-size: 19px !important; transform: translateY(-1px) !important; }
.afp-widget .afp-area-stepper__button--up span { font-size: 16px !important; }
.afp-widget .afp-input-unit-pill,
.afp-widget [data-afp-input-unit] {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 50px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  background: #f7ece5 !important;
  color: var(--afp-accent) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* input mode buttons */
.afp-widget .afp-input-mode-switch,
.afp-widget .afp-order-unit-switch {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
.afp-widget .afp-input-mode-switch__label {
  color: var(--afp-muted) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.afp-widget .afp-order-unit-switch.is-hidden { display: none !important; }
.afp-widget .afp-order-unit-switch .afp-input-mode-switch__label { display: none !important; }
.afp-widget .afp-input-mode-switch__button {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  background: #fffaf7 !important;
  color: var(--afp-text) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
.afp-widget .afp-input-mode-switch__button:hover,
.afp-widget .afp-input-mode-switch__button:focus-visible {
  background: #f8efe8 !important;
  border-color: rgba(181,108,82,.28) !important;
}
.afp-widget .afp-input-mode-switch__button.is-active {
  background: linear-gradient(180deg, #c47b5d 0%, #b56c52 100%) !important;
  border-color: rgba(181,108,82,.36) !important;
  color: #fffdfb !important;
}
.afp-widget .afp-conversion-note {
  margin-top: 10px !important;
  color: var(--afp-muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

/* premium price range shell */
.afp-widget .afp-range-shell {
  border: 1px solid rgba(223,198,185,.92) !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, #fffefd 0%, #fff8f4 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94) !important;
  overflow: hidden !important;
}
.afp-widget .afp-range-toggle {
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  cursor: pointer !important;
}
.afp-widget .afp-range-toggle__title {
  position: relative !important;
  padding-left: 14px !important;
  font-weight: 800 !important;
}
.afp-widget .afp-range-toggle__title::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 8px !important;
  height: 8px !important;
  margin-top: -4px !important;
  border-radius: 50% !important;
  background: var(--afp-accent) !important;
  box-shadow: 0 0 0 4px rgba(181,108,82,.10) !important;
}
.afp-widget .afp-range-toggle__action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.16) !important;
  background: #fffaf7 !important;
  color: var(--afp-accent) !important;
  font-weight: 700 !important;
}
.afp-widget .afp-range-panel { padding: 0 18px 18px !important; }
.afp-widget .afp-tier-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(223,198,185,.92) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fffdfa !important;
}
.afp-widget .afp-tier-table thead th {
  background: #fff8f4 !important;
  color: var(--afp-text) !important;
  font-weight: 800 !important;
}
.afp-widget .afp-tier-table colgroup col:first-child,
.afp-widget .afp-tier-table colgroup col:last-child,
.afp-widget .afp-tier-table thead th,
.afp-widget .afp-tier-table tbody td { width: 50% !important; }
.afp-widget .afp-tier-table thead th + th,
.afp-widget .afp-tier-table tbody td + td {
  border-left: 1px solid rgba(223,198,185,.92) !important;
}
.afp-widget .afp-tier-table tbody tr.is-current td,
.afp-widget .afp-tier-table tbody tr.afp-range-item.is-current td,
.afp-widget .afp-tier-table tbody tr.afp-range-item.is-active td {
  background: #fbf4ee !important;
}
.afp-widget .afp-tier-table tbody tr.is-current td:first-child,
.afp-widget .afp-tier-table tbody tr.afp-range-item.is-current td:first-child,
.afp-widget .afp-tier-table tbody tr.afp-range-item.is-active td:first-child {
  box-shadow: inset 3px 0 0 var(--afp-accent) !important;
}
.afp-widget .afp-tier-table tbody tr.is-current td:nth-child(2),
.afp-widget .afp-tier-table tbody tr.afp-range-item.is-current td:nth-child(2),
.afp-widget .afp-tier-table tbody tr.afp-range-item.is-active td:nth-child(2) {
  box-shadow: none !important;
}

/* summary + actions */
.afp-widget .afp-preview-card {
  border: 1px solid rgba(223,198,185,.92) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #fffdfa !important;
}
.afp-widget .afp-submit-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin-top: 16px !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgba(223,198,185,.92) !important;
}
.afp-widget .afp-submit-row__total {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}
.afp-widget .afp-submit-row__label {
  color: var(--afp-muted) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.afp-widget .afp-submit-row__total strong {
  color: var(--afp-text) !important;
  font-size: clamp(34px, 3.2vw, 46px) !important;
  line-height: .95 !important;
  font-weight: 900 !important;
}
.afp-widget .afp-submit-row__actions {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}
.afp-widget .afp-add-to-cart.single_add_to_cart_button.button.alt,
.afp-widget .afp-checkout-button.button {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.afp-widget .afp-add-to-cart.single_add_to_cart_button.button.alt {
  background: linear-gradient(180deg, #c47b5d 0%, #b56c52 100%) !important;
  color: #fffdfb !important;
}
.afp-widget .afp-checkout-button.button {
  background: #fffaf7 !important;
  color: var(--afp-accent) !important;
}

/* mobile */
@media (max-width: 767px) {
  .afp-widget .afp-control--format-simple,
  .afp-widget .afp-control--area-simple { min-height: 64px !important; border-radius: 24px !important; }
  .afp-widget .afp-format-trigger { padding: 0 16px 0 20px !important; }
  .afp-widget .afp-format-trigger__value { font-size: 17px !important; }
  .afp-widget .afp-format-trigger__caret { width: 36px !important; height: 36px !important; }
  .afp-widget .afp-control--area-simple .afp-area-input,
  .afp-widget .afp-control--area-simple #afp_area { height: 64px !important; }
  .afp-widget .afp-control--area-simple #afp_area { padding-right: 146px !important; font-size: 17px !important; }
  .afp-widget .afp-submit-row { grid-template-columns: 1fr !important; }
  .afp-widget .afp-submit-row__actions { justify-content: stretch !important; }
  .afp-widget .afp-add-to-cart.single_add_to_cart_button.button.alt,
  .afp-widget .afp-checkout-button.button { width: 100% !important; }
}

/* v1.8.22 premium restoration */

/* 1) gallery: hide theme/native thumbs unless our custom gallery is actually needed */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs,
.single-product div.product .woocommerce-product-gallery .flex-control-nav,
.single-product div.product .woocommerce-product-gallery .thumbnails,
.single-product div.product .woocommerce-product-gallery .slick-dots,
.single-product div.product .woocommerce-product-gallery .product-thumbnails,
.single-product div.product .woocommerce-product-gallery .yith_magnifier_gallery,
.single-product div.product .images .flex-control-thumbs,
.single-product div.product .images .flex-control-nav,
.single-product div.product .images .thumbnails,
.single-product div.product .images .slick-dots,
.single-product div.product .images .product-thumbnails,
.single-product div.product .images .yith_magnifier_gallery,
.single-product div.product .images .n2-ss-slider,
.single-product div.product .images .thumbnail_image {
  display: none !important;
}

.single-product div.product .woocommerce-product-gallery .slick-track,
.single-product div.product .woocommerce-product-gallery .slick-list,
.single-product div.product .images .slick-track,
.single-product div.product .images .slick-list {
  visibility: visible !important;
  opacity: 1 !important;
}

.single-product div.product .afp-format-mini-gallery {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}
.single-product div.product .afp-format-mini-gallery.is-hidden,
.single-product div.product .afp-format-mini-gallery:empty {
  display: none !important;
}
.single-product div.product .afp-format-mini-gallery__item {
  all: unset !important;
  box-sizing: border-box !important;
  width: 72px !important;
  height: 72px !important;
  display: inline-block !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(223,198,185,.92) !important;
  background: #fffaf7 !important;
  box-shadow: 0 8px 18px rgba(36,24,18,.06) !important;
  cursor: pointer !important;
}
.single-product div.product .afp-format-mini-gallery__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.single-product div.product .afp-format-mini-gallery__item.is-active {
  box-shadow: 0 0 0 2px rgba(181,108,82,.20) inset, 0 8px 18px rgba(36,24,18,.06) !important;
}

/* 2) keep the custom premium format dropdown stable */
.afp-widget .afp-control--format-simple.has-afp-format-dropdown > .afp-format-dropdown,
.afp-widget .afp-field-shell--format.has-afp-format-dropdown > .afp-format-dropdown,
.afp-widget .afp-format-dropdown {
  display: block !important;
}
.afp-widget .afp-control--format-simple {
  display: block !important;
  width: 100% !important;
  min-height: 72px !important;
  border: 1.5px solid rgba(223,198,185,.96) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #fffefd 0%, #fff8f4 100%) !important;
  box-shadow: 0 12px 28px rgba(36,24,18,.05), inset 0 1px 0 rgba(255,255,255,.96) !important;
  overflow: hidden !important;
}
.afp-widget .afp-control--format-simple select#afp_format {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  inset: auto !important;
  all: revert !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-height: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 0 72px 0 24px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: transparent !important;
  color: var(--afp-text) !important;
  font: inherit !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23725b52' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 26px) 50% !important;
  background-size: 18px 18px !important;
}
.afp-widget .afp-control--format-simple select#afp_format:focus {
  outline: none !important;
}

/* 3) area field: remove any extra backplate, keep premium pill controls */
.afp-widget .afp-control--area-simple {
  display: block !important;
  width: 100% !important;
  min-height: 72px !important;
  border: 1.5px solid rgba(223,198,185,.96) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #fffefd 0%, #fff8f4 100%) !important;
  box-shadow: 0 12px 28px rgba(36,24,18,.05), inset 0 1px 0 rgba(255,255,255,.96) !important;
  overflow: hidden !important;
}
.afp-widget .afp-control--area-simple .afp-area-input { 
  position: relative !important; 
  display: block !important; 
  width: 100% !important;
  height: 72px !important;
}
.afp-widget .afp-control--area-simple #afp_area {
  all: unset !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 72px !important;
  padding: 0 162px 0 24px !important;
  color: var(--afp-text) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  background: transparent !important;
  -moz-appearance: textfield !important;
}
.afp-widget .afp-control--area-simple #afp_area::-webkit-outer-spin-button,
.afp-widget .afp-control--area-simple #afp_area::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.afp-widget .afp-area-addon {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.afp-widget .afp-area-stepper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.afp-widget .afp-area-stepper__button {
  all: unset !important;
  box-sizing: border-box !important;
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.16) !important;
  background: #fbf4ee !important;
  color: var(--afp-accent) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}
.afp-widget .afp-area-stepper__button:hover,
.afp-widget .afp-area-stepper__button:focus-visible {
  background: #f8eee7 !important;
  border-color: rgba(181,108,82,.30) !important;
}
.afp-widget .afp-input-unit-pill,
.afp-widget [data-afp-input-unit] {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 52px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  background: linear-gradient(180deg, rgba(181,108,82,.12), rgba(181,108,82,.06)) !important;
  color: var(--afp-accent) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* 4) switches and note in the old premium chip style */
.afp-widget .afp-input-mode-switch,
.afp-widget .afp-order-unit-switch {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 0 !important;
  background: transparent !important;
}
.afp-widget .afp-input-mode-switch__label {
  color: var(--afp-muted) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.afp-widget .afp-input-mode-switch__button {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  background: #fffaf7 !important;
  color: var(--afp-text) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}
.afp-widget .afp-input-mode-switch__button.is-active {
  background: linear-gradient(180deg, #c47b5d 0%, #b56c52 100%) !important;
  color: #fffdfb !important;
  border-color: rgba(181,108,82,.36) !important;
}
.afp-widget .afp-conversion-note {
  margin-top: 10px !important;
  color: var(--afp-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
.afp-widget .afp-conversion-note.is-hidden,
.afp-widget .afp-order-unit-switch.is-hidden { display: none !important; }

/* 5) summary/footer restored */
.afp-widget .afp-preview-card .afp-result-total {
  display: none !important;
}
.afp-widget .afp-submit-row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-top: 20px !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgba(181,108,82,.10) !important;
}
.afp-widget .afp-submit-row__total {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 230px !important;
  padding: 16px 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(181,108,82,.12) !important;
  background: linear-gradient(180deg, rgba(181,108,82,.06), rgba(181,108,82,.02)) !important;
}
.afp-widget .afp-submit-row__label {
  color: var(--afp-muted) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.afp-widget .afp-submit-row__total strong {
  color: var(--afp-text) !important;
  font-size: 42px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}
.afp-widget .afp-submit-row__actions {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}
.afp-widget .afp-add-to-cart.single_add_to_cart_button.button.alt,
.afp-widget .afp-checkout-button.button {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(181,108,82,.18) !important;
  text-decoration: none !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
.afp-widget .afp-add-to-cart.single_add_to_cart_button.button.alt {
  background: linear-gradient(180deg, #c47b5d 0%, #b56c52 100%) !important;
  color: #fffdfb !important;
}
.afp-widget .afp-checkout-button.button {
  background: #fffaf7 !important;
  color: var(--afp-accent) !important;
}

@media (max-width: 767px) {
  .afp-widget .afp-control--format-simple,
  .afp-widget .afp-control--area-simple { min-height: 64px !important; border-radius: 24px !important; }
  .afp-widget .afp-control--format-simple select#afp_format,
  .afp-widget .afp-control--area-simple #afp_area { min-height: 64px !important; height: 64px !important; font-size: 17px !important; }
  .afp-widget .afp-control--area-simple #afp_area { padding-right: 148px !important; }
  .afp-widget .afp-submit-row { flex-direction: column !important; align-items: stretch !important; }
  .afp-widget .afp-submit-row__actions { justify-content: stretch !important; }
  .afp-widget .afp-add-to-cart.single_add_to_cart_button.button.alt,
  .afp-widget .afp-checkout-button.button { width: 100% !important; }
}
