.epf-add-prescription-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.epf-add-prescription-button + .quantity,
.epf-add-prescription-button + button.single_add_to_cart_button {
  margin-top: 8px;
}

body.epf-has-prescription-flow form.cart .quantity,
body.epf-has-prescription-flow form.cart button.single_add_to_cart_button {
  display: none !important;
}

body.epf-flow-modal-open {
  overflow: hidden;
}

.epf-flow-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #ffffff;
  color: #111827;
}

.epf-flow-modal.is-open {
  display: block;
}

.epf-flow-modal__shell {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.epf-flow-modal__content {
  display: grid;
  grid-template-columns: minmax(360px, 44vw) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.epf-flow-modal__product {
  min-width: 0;
  padding: 24px 48px 48px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}

.epf-flow-product-card {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  gap: 28px;
  width: min(560px, 100%);
  height: 100%;
  margin: 0 auto;
}

.epf-flow-product-card__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  width: auto;
  min-height: 34px;
  padding: 4px 8px 4px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #0f4fb3;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.epf-flow-product-card__back span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.epf-flow-product-card__back:hover,
.epf-flow-product-card__back:focus {
  color: #083f91;
  background: #eff6ff;
  outline: none;
  text-decoration: none;
}

.epf-flow-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.epf-flow-product-card__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.epf-flow-product-card__content {
  align-self: end;
  padding-bottom: 12px;
  text-align: center;
}

.epf-flow-product-card__content h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 800;
}

.epf-flow-product-card__price {
  margin: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
}

.epf-flow-modal__flow {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #f8fafc;
}

.epf-flow-modal__topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 72px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.epf-flow-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.epf-flow-progress__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.epf-flow-progress__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.epf-flow-progress__line {
  display: block;
  width: clamp(28px, 4vw, 56px);
  height: 2px;
  margin: 0 10px;
  background: #cbd5e1;
}

.epf-flow-progress__step.is-active {
  color: #0f4fb3;
}

.epf-flow-progress__step.is-active .epf-flow-progress__dot {
  background: #0f4fb3;
}

.epf-flow-progress__step.is-complete {
  color: #15803d;
}

.epf-flow-progress__step.is-complete .epf-flow-progress__dot,
.epf-flow-progress__line.is-complete {
  background: #16a34a;
}

.epf-flow-modal__close {
  position: absolute;
  right: 20px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.epf-flow-modal__close:hover,
.epf-flow-modal__close:focus {
  color: #2563eb;
  background: #eff6ff;
  outline: none;
}

.epf-flow-modal__body {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  /* padding-left: 100px; */
}

.epf-flow-modal__body iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

@media only screen and (max-width: 1100px) {
  .epf-flow-modal__content {
    grid-template-columns: minmax(320px, 38vw) minmax(0, 1fr);
  }

  .epf-flow-modal__product {
    padding: 20px 32px 40px;
  }

  .epf-flow-progress__label {
    display: none;
  }
}

@media only screen and (max-width: 900px) {
  .epf-flow-modal__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: auto;
  }

  .epf-flow-modal__product {
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .epf-flow-product-card {
    grid-template-columns: 40px 96px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 16px;
    height: auto;
    width: 100%;
  }

  .epf-flow-product-card__media {
    min-height: 96px;
  }

  .epf-flow-product-card__content {
    align-self: center;
    padding-bottom: 0;
    text-align: left;
  }

  .epf-flow-product-card__content h2 {
    font-size: 20px;
  }

  .epf-flow-modal__flow {
    min-height: 75vh;
  }
}

@media only screen and (max-width: 768px) {
  .epf-flow-modal__shell {
    grid-template-rows: 56px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
  }

  .epf-flow-modal__content {
    display: block;
    height: 100%;
    overflow: hidden;
  }

  .epf-flow-modal__product {
    display: none;
  }

  .epf-flow-modal__flow {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .epf-flow-modal__body {
    padding-left: 16px;
  }

  .epf-flow-modal__topbar {
    padding: 0 56px 0 16px;
  }

  .epf-flow-progress__line {
    width: 24px;
    margin: 0 7px;
  }

  .epf-flow-progress__dot {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .epf-flow-modal__close {
    right: 10px;
    width: 36px;
    height: 36px;
  }
}

.epf-cart-meta-price {
  color: #334155;
  white-space: nowrap;
}

.epf-view-prescription {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f4fb3;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.epf-view-prescription:hover,
.epf-view-prescription:focus {
  color: #083b86;
  text-decoration-thickness: 2px;
  outline: none;
}

.epf-prescription-popover {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.24);
}

.epf-prescription-popover.is-open {
  display: flex;
}

.epf-prescription-popover__panel {
  position: relative;
  width: min(560px, 100%);
  padding: 18px 20px 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  color: #1f2937;
}

.epf-prescription-popover__close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.epf-prescription-popover__close:hover,
.epf-prescription-popover__close:focus {
  color: #111827;
  background: #f1f5f9;
  outline: none;
}

.epf-prescription-title {
  margin: 0 32px 12px 0;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.epf-prescription-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d5dde5;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
  font-size: 14px;
}

.epf-prescription-table + .epf-prescription-table {
  margin-top: 14px;
}

.epf-prescription-table th,
.epf-prescription-table td {
  padding: 10px 12px;
  border-right: 1px solid #d5dde5;
  border-bottom: 1px solid #d5dde5;
  color: #475569;
  text-align: left;
  vertical-align: middle;
}

.epf-prescription-table tr:last-child th,
.epf-prescription-table tr:last-child td {
  border-bottom: 0;
}

.epf-prescription-table th:last-child,
.epf-prescription-table td:last-child {
  border-right: 0;
}

.epf-prescription-table th {
  background: #f1f6f9;
  color: #334155;
  font-weight: 800;
}

.epf-prescription-pd-table {
  width: min(320px, 100%);
}

@media only screen and (max-width: 600px) {
  .epf-prescription-popover {
    padding: 12px;
  }

  .epf-prescription-popover__panel {
    padding: 16px;
  }

  .epf-prescription-table th,
  .epf-prescription-table td {
    padding: 8px;
    font-size: 13px;
  }
}

.epf-prescription-popover.is-hover-mode {
  inset: 0;
  display: block;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.epf-prescription-popover.is-hover-mode .epf-prescription-popover__panel {
  position: fixed;
  width: min(560px, calc(100vw - 24px));
  pointer-events: auto;
}

.epf-prescription-popover.is-hover-mode .epf-prescription-popover__close {
  display: none;
}

.epf-cart-prescription-details {
  margin-top: 8px;
  max-width: 520px;
}

.epf-cart-prescription-details .epf-prescription-popover-content {
  margin: 0;
}

.epf-cart-prescription-details .epf-prescription-title {
  margin: 0 0 8px;
  font-size: 13px;
}

.epf-cart-prescription-details .epf-prescription-table {
  margin-top: 6px;
  font-size: 12px;
}

.epf-cart-prescription-details .epf-prescription-table th,
.epf-cart-prescription-details .epf-prescription-table td {
  padding: 7px 9px;
}
