/* Pricing information and better-price report below the primary purchase card. */
.single-product-wrapper.style-3 .awp-type3-primary-purchase-stack > .awp-product-price-actions {
  display: grid;
  width: 100%;
  gap: .5rem;
  margin-top: .5rem;
}

.awp-product-price-action {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--color-gray200);
  border-radius: .7rem;
  background: var(--color-background, #fff);
  color: var(--color-gray700);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.65;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.awp-product-price-action:hover,
.awp-product-price-action:focus-visible {
  border-color: var(--color-gray300);
  background: var(--color-gray50);
  color: var(--theme-primary-color);
  outline: none;
}

.awp-product-price-action > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-gray500);
  font-size: 1.05rem;
}

.awp-product-price-action > span {
  min-width: 0;
}

.awp-product-price-action .awp-product-price-action__arrow {
  color: var(--color-gray400);
  font-size: .8rem;
}

body.awp-price-dialog-open {
  overflow: hidden;
}

.awp-better-price-dialog[hidden] {
  display: none !important;
}

.awp-better-price-dialog {
  position: fixed;
  z-index: 100020;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.awp-better-price-dialog.is-open {
  opacity: 1;
  visibility: visible;
}

.awp-better-price-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(2px);
}

.awp-better-price-dialog__panel {
  position: relative;
  width: min(100%, 30rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--color-gray200);
  border-radius: 1rem;
  background: var(--color-background, #fff);
  color: var(--color-text);
  box-shadow: 0 1.25rem 4rem rgba(15, 23, 42, .2);
  transform: translateY(.75rem) scale(.985);
  transition: transform .18s ease;
  overscroll-behavior: contain;
}

.awp-better-price-dialog.is-open .awp-better-price-dialog__panel {
  transform: translateY(0) scale(1);
}

.awp-better-price-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-gray100);
}

.awp-better-price-dialog__header > div {
  min-width: 0;
}

.awp-better-price-dialog__header strong,
.awp-better-price-dialog__header span {
  display: block;
}

.awp-better-price-dialog__header strong {
  margin-bottom: .35rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
}

.awp-better-price-dialog__header span {
  color: var(--color-gray600);
  font-size: .72rem;
  line-height: 1.8;
}

.awp-better-price-dialog button.awp-better-price-dialog__close {
  all: unset;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-gray50);
  color: var(--color-gray700);
  font: inherit;
  cursor: pointer;
}

.awp-better-price-dialog button.awp-better-price-dialog__close:hover,
.awp-better-price-dialog button.awp-better-price-dialog__close:focus-visible {
  background: var(--color-gray100);
  color: var(--color-red600);
  outline: 2px solid color-mix(in srgb, var(--theme-primary-color) 28%, transparent);
  outline-offset: 2px;
}

.awp-better-price-form {
  display: grid;
  gap: .95rem;
  margin: 0;
}

.awp-better-price-form[hidden],
.awp-better-price-success[hidden],
.awp-better-price-form__field[hidden] {
  display: none !important;
}

.awp-better-price-form__source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.awp-better-price-form__source legend {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: .1rem;
  color: var(--color-gray700);
  font-size: .73rem;
  font-weight: 700;
}

.awp-better-price-form__source label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.awp-better-price-form__source input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.awp-better-price-form__source label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--color-gray200);
  border-radius: .7rem;
  background: var(--color-gray50);
  color: var(--color-gray700);
  font-size: .73rem;
  font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.awp-better-price-form__source input:checked + span {
  border-color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 8%, transparent);
  color: var(--theme-primary-color);
}

.awp-better-price-form__source input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
  outline-offset: 2px;
}

.awp-better-price-form__field {
  display: grid;
  gap: .38rem;
  margin: 0;
}

.awp-better-price-form__field > span {
  color: var(--color-gray700);
  font-size: .72rem;
  font-weight: 700;
}

.awp-better-price-form__field input,
.awp-better-price-form__field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: .7rem .8rem;
  border: 1px solid var(--color-gray200);
  border-radius: .65rem;
  background: var(--color-background, #fff);
  color: var(--color-text);
  font: inherit;
  font-size: .78rem;
  line-height: 1.65;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.awp-better-price-form__field input {
  min-height: 2.85rem;
}

.awp-better-price-form__field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.awp-better-price-form__field input:focus,
.awp-better-price-form__field textarea:focus {
  border-color: var(--theme-primary-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 11%, transparent);
}

.awp-better-price-form__field [aria-invalid="true"] {
  border-color: var(--color-red600);
}

.awp-better-price-form__price {
  position: relative;
}

.awp-better-price-form__price input {
  padding-inline-end: 4.5rem;
}

.awp-better-price-form__price small {
  position: absolute;
  inset-inline-end: .8rem;
  top: 50%;
  color: var(--color-gray500);
  font-size: .68rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.awp-better-price-form__hint {
  display: block;
  color: var(--color-gray500);
  font-size: .65rem;
  font-weight: 400;
  line-height: 1.75;
}

.awp-better-price-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .15rem;
  padding-top: .9rem;
  border-top: 1px solid var(--color-gray100);
}

.awp-better-price-form__status {
  flex: 1 1 auto;
  color: var(--color-gray600);
  font-size: .68rem;
  line-height: 1.7;
}

.awp-better-price-form__status.is-error {
  color: var(--color-red600);
}

.awp-better-price-dialog button.awp-better-price-form__submit {
  all: unset;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: .65rem;
  background: var(--theme-primary-color);
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}

.awp-better-price-dialog button.awp-better-price-form__submit:hover,
.awp-better-price-dialog button.awp-better-price-form__submit:focus-visible {
  background: var(--theme-primary-hover-color);
  outline: 2px solid color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
  outline-offset: 2px;
}

.awp-better-price-dialog button.awp-better-price-form__submit:disabled,
.awp-better-price-dialog button.awp-better-price-form__submit.is-loading {
  opacity: .58;
  cursor: wait;
}

.awp-better-price-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 15rem;
  padding: 1.5rem;
  text-align: center;
  outline: none;
}

.awp-better-price-success > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-green600) 12%, transparent);
  color: var(--color-green600);
  font-size: 1.8rem;
}

.awp-better-price-success strong,
.awp-better-price-success span {
  display: block;
}

.awp-better-price-success strong {
  margin-bottom: .45rem;
  font-size: .95rem;
  line-height: 1.8;
}

.awp-better-price-success span {
  max-width: 23rem;
  color: var(--color-gray600);
  font-size: .74rem;
  line-height: 1.9;
}

body[data-theme=dark] .awp-product-price-action,
body[data-color=custom][data-theme=dark] .awp-product-price-action,
body[data-theme=dark] .awp-better-price-dialog__panel,
body[data-color=custom][data-theme=dark] .awp-better-price-dialog__panel,
body[data-theme=dark] .awp-better-price-form__field input,
body[data-theme=dark] .awp-better-price-form__field textarea,
body[data-color=custom][data-theme=dark] .awp-better-price-form__field input,
body[data-color=custom][data-theme=dark] .awp-better-price-form__field textarea {
  background: var(--color-gray50);
}

@media screen and (max-width: 767px) {
  .single-product-wrapper.style-3 .awp-type3-primary-purchase-stack > .awp-product-price-actions {
    margin-top: .6rem;
  }

  .awp-product-price-action {
    min-height: 2.9rem;
    padding-inline: .8rem;
    font-size: .74rem;
  }

  .awp-better-price-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .awp-better-price-dialog__panel {
    width: 100%;
    max-height: min(90vh, 44rem);
    padding: 1rem var(--asanwp-page-inline-gap, 1rem) calc(1rem + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%);
  }

  .awp-better-price-dialog.is-open .awp-better-price-dialog__panel {
    transform: translateY(0);
  }

  .awp-better-price-dialog__header {
    margin-bottom: .9rem;
    padding-bottom: .85rem;
  }

  .awp-better-price-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .awp-better-price-form__submit {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awp-better-price-dialog,
  .awp-better-price-dialog__panel,
  .awp-product-price-action,
  .awp-better-price-form__submit {
    transition: none;
  }
}
