.epc {
  margin: 8px 0 18px;
  font-family: Poppins, sans-serif;
  color: #1e1e1e;
}

.epc-lead {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f3f2ea;
  border-radius: 12px;
  font-size: 14px;
}

.epc-step {
  border: 1px solid #e4e0d4;
  border-radius: 16px;
  margin: 0 0 10px;
  background: #fff;
  overflow: hidden;
}

.epc-step-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.epc-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e1e1e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: 0 0 auto;
}

.epc-step.is-open .epc-num {
  background: #c1b48a;
  color: #1e1e1e;
}

.epc-step-title {
  font-weight: 600;
}

.epc-step-choice {
  margin-left: auto;
  color: #6d675c;
  font-size: 13px;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epc-chevron {
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid #6d675c;
  border-bottom: 2px solid #6d675c;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.epc-ready.epc-motion .epc-chevron {
  transition: transform 0.35s ease, margin-top 0.35s ease;
}

.epc-step.is-open .epc-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.epc-step-body {
  display: block;
}

.epc-ready .epc-step-body {
  height: 0;
  overflow: hidden;
}

.epc-ready.epc-motion .epc-step-body {
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.epc-ready .epc-step.is-open .epc-step-body {
  height: auto;
}

.epc-step-panel {
  min-height: 0;
  overflow: hidden;
  padding: 0 14px 14px;
}

.epc-ready .epc-step:not(.is-open) .epc-step-panel {
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.epc-step:last-child .epc-next {
  display: none;
}

.epc-ready.epc-motion .epc-step-panel {
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.epc-ready .epc-step.is-open .epc-step-panel {
  opacity: 1;
  transform: none;
}

.epc-help {
  margin: 0 0 12px;
  color: #5c574e;
  font-size: 14px;
}

.epc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.epc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e4e0d4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.epc-ready.epc-motion .epc-option {
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.epc-option.is-picked {
  transform: scale(1.03);
}

.epc-options-cards .epc-option {
  flex: 1 1 220px;
}

@media (min-width: 768px) {
  .epc-options-size .epc-option {
    flex: 1 1 calc((100% - 16px) / 3);
    max-width: calc((100% - 16px) / 3);
    min-width: 0;
    box-sizing: border-box;
  }

  .epc-options-size .epc-option-copy {
    min-width: 0;
  }
}

.epc-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.epc-option:hover {
  border-color: #d4ccb4;
  background: #faf8f2;
}

.epc-option:has(input:checked) {
  border-color: #c1b48a;
  box-shadow: inset 0 0 0 1px #c1b48a;
  background: #fbfaf4;
}

.epc-option:has(input:checked):hover {
  background: #f6f1e4;
}

.epc-option:has(input:focus-visible) {
  outline: 2px solid #1e1e1e;
  outline-offset: 2px;
}

.epc-option-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.epc-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.epc-option-name {
  font-weight: 600;
  font-size: 14px;
}

.epc-option-price {
  color: #6d675c;
  font-size: 13px;
}

.epc-next {
  margin-top: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #c1b48a;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.epc-dock {
  display: none;
}

body.epc-ready .epc-dock {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #1e1e1e;
  color: #fff;
}

body.epc-ready .epc-dock-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.epc-ready .epc-dock-total {
  font-size: 18px;
}

body.epc-ready .epc-dock-note {
  color: #d9d3c3;
  font-size: 12px;
}

body.epc-ready .epc-dock-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.epc-ready .epc-dock .quantity {
  flex: 0 0 48px;
  width: 48px !important;
  max-width: 48px;
  margin: 0 !important;
}

body.epc-ready.woocommerce div.product form.cart .epc-dock div.quantity {
  margin: 0 !important;
  overflow: visible;
}

body.epc-ready .epc-dock .quantity .qty {
  width: 48px !important;
  min-width: 48px;
  max-width: 48px;
  height: 48px !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  line-height: 48px;
  border-radius: 999px !important;
  -moz-appearance: textfield;
  appearance: textfield;
  background: #fff;
}

body.epc-ready .epc-dock .quantity .qty::-webkit-outer-spin-button,
body.epc-ready .epc-dock .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.epc-ready .epc-dock .single_add_to_cart_button,
body.epc-ready .epc-dock .single_add_to_cart_button:hover {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 48px !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  background: #c1b48a !important;
  color: #1e1e1e !important;
  border-radius: 999px !important;
}

body.epc-ready .epc-dock .single_add_to_cart_button:disabled {
  opacity: 1;
  background: #3a3a3a !important;
  color: #f3f3f3 !important;
  -webkit-text-fill-color: #f3f3f3;
}

.epc-from {
  font-weight: 500;
}

@media (max-width: 767px) {
  .epc-options-size {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.epc-ready {
    padding-bottom: 136px;
  }

  .epc-step-head {
    scroll-margin-bottom: 120px;
  }

  body.epc-ready .epc-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-radius: 0;
    z-index: 99990;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  body.epc-ready .epc-dock-copy {
    flex: 1 1 auto;
  }

  body.epc-ready .epc-dock-total {
    white-space: nowrap;
  }

  body.epc-ready .epc-dock-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }

  body.epc-ready .epc-dock .quantity {
    flex-basis: 36px;
    width: 36px !important;
    max-width: 36px;
  }

  body.epc-ready .epc-dock .quantity .qty {
    width: 36px !important;
    min-width: 36px;
    max-width: 36px;
    height: 36px !important;
    min-height: 36px;
    line-height: 36px;
  }

  body.epc-ready .epc-dock .single_add_to_cart_button,
  body.epc-ready .epc-dock .single_add_to_cart_button:hover {
    flex: 1 1 auto;
    width: auto !important;
    max-width: none;
    height: 40px;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #c1b48a !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 40px !important;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  body.epc-ready .joinchat,
  body.epc-ready .joinchat__button {
    display: none !important;
  }

  body.epc-ready:has(.mobile_nav.opened) .epc-dock {
    visibility: hidden;
    pointer-events: none;
  }

  .epc-step-choice {
    display: none;
  }

  .epc-chevron {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epc-step,
  .epc-option,
  .epc-dock,
  .epc-step-body,
  .epc-step-panel,
  .epc-chevron {
    transition: none;
  }

  .epc-option.is-picked {
    transform: none;
  }
}
