.afcp-option-picker {
  grid-column: 1 / -1;
  margin: -4px 0 8px;
  padding: 16px;
  border: 1px solid rgba(23, 23, 23, .12);
  border-radius: 16px;
  background: #fffaf2;
  background: color-mix(in srgb, var(--flbp-soft, #fff4df) 60%, #fff);
}

.afcp-option-picker[hidden],
.afcp-confirmation[hidden] {
  display: none !important;
}

.afcp-option-picker > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
}

.afcp-option-picker select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 0 38px 0 12px;
  border: 1px solid rgba(23, 23, 23, .18);
  border-radius: 12px;
  background: #fff;
  color: #171717;
  font: inherit;
}

.afcp-option-picker p {
  margin: 9px 0 0;
  color: #67635f;
  font-size: 12px;
  line-height: 1.5;
}

.afcp-confirmation {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(23, 23, 23, .1);
  border-radius: 18px;
  background: #faf9f7;
  text-align: left;
}

.afcp-confirmation-head,
.afcp-fee-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.afcp-confirmation-head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.afcp-confirmation-head strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff2c7;
  color: #664f00;
  font-size: 12px;
}

.afcp-confirmation[data-status="confirmed"] .afcp-confirmation-head strong {
  background: #dff8e9;
  color: #176638;
}

.afcp-payment-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 16px 0;
}

.afcp-payment-layout > img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 7px;
  border: 1px solid rgba(23, 23, 23, .08);
  border-radius: 14px;
  background: #fff;
}

.afcp-payment-layout p {
  margin: 7px 0;
  color: #67635f;
  font-size: 13px;
}

.afcp-copy-value {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 23, 23, .13);
  border-radius: 12px;
  background: #fff;
  color: #171717;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.afcp-copy-value strong {
  font-size: clamp(18px, 4vw, 24px);
}

.afcp-copy-value span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afcp-copy-value i {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--flbp-coral, #ff5f7f);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.afcp-address span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.afcp-fee-line {
  padding: 11px 0;
  border-top: 1px solid rgba(23, 23, 23, .08);
  border-bottom: 1px solid rgba(23, 23, 23, .08);
  color: #67635f;
  font-size: 12px;
}

.afcp-fee-line span {
  display: flex;
  gap: 6px;
}

.afcp-fee-line b {
  color: #171717;
}

.afcp-warning,
.afcp-live-message,
.afcp-countdown {
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.afcp-warning {
  color: #8a4824;
}

.afcp-live-message {
  font-weight: 700;
}

.afcp-account-payment,
.afcp-track-payment {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 23, 23, .1);
  border-radius: 14px;
  background: #faf9f7;
}

.afcp-account-payment > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.afcp-account-payment p,
.afcp-track-payment p {
  margin: 6px 0 10px;
  color: #67635f;
  font-size: 13px;
}

@media (max-width: 520px) {
  .afcp-option-picker,
  .afcp-confirmation {
    padding: 13px;
    border-radius: 14px;
  }

  .afcp-payment-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .afcp-payment-layout > img {
    width: min(160px, 52vw);
    height: min(160px, 52vw);
    margin: 0 auto;
  }

  .afcp-copy-value {
    padding: 10px;
  }

  .afcp-fee-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep the Ecommerce order-confirmation payment panel inside the viewport. */
.flbp-confirmation.has-afcp-payment {
  box-sizing: border-box;
  overflow: hidden;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}

.flbp-confirmation.has-afcp-payment > div {
  box-sizing: border-box;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.flbp-confirmation.has-afcp-payment .afcp-option-picker,
.flbp-confirmation.has-afcp-payment .afcp-confirmation,
.flbp-confirmation.has-afcp-payment .afcp-payment-layout,
.flbp-confirmation.has-afcp-payment .afcp-payment-layout > div {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .flbp-confirmation.has-afcp-payment {
    padding:
      max(7px, env(safe-area-inset-top))
      max(7px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left));
  }

  .flbp-confirmation.has-afcp-payment > div {
    width: 100%;
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    padding: 16px 12px !important;
    border-radius: 18px !important;
  }

  .flbp-confirmation.has-afcp-payment > div > i {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .flbp-confirmation.has-afcp-payment > div > h2 {
    margin-top: 10px;
    font-size: clamp(26px, 8vw, 32px);
  }

  .flbp-confirmation.has-afcp-payment > div > p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .flbp-confirmation.has-afcp-payment .afcp-option-picker,
  .flbp-confirmation.has-afcp-payment .afcp-confirmation {
    margin-top: 11px;
    padding: 11px;
    border-radius: 13px;
  }

  .flbp-confirmation.has-afcp-payment .afcp-payment-layout {
    gap: 9px;
    margin: 11px 0;
  }

  .flbp-confirmation.has-afcp-payment .afcp-payment-layout > img {
    width: min(124px, 36vw);
    height: min(124px, 36vw);
  }

  .flbp-confirmation.has-afcp-payment .afcp-copy-value {
    padding: 9px;
  }

  .flbp-confirmation.has-afcp-payment .afcp-copy-value strong {
    font-size: 19px;
  }

  .flbp-confirmation.has-afcp-payment .afcp-address {
    align-items: flex-start;
  }

  .flbp-confirmation.has-afcp-payment .afcp-address span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
  }

  .flbp-confirmation.has-afcp-payment .afcp-fee-line {
    gap: 5px;
    padding: 8px 0;
  }

  .flbp-confirmation.has-afcp-payment .flbp-confirmation-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .flbp-confirmation.has-afcp-payment .flbp-confirmation-actions a,
  .flbp-confirmation.has-afcp-payment .flbp-confirmation-actions button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-height: 560px) and (max-width: 900px) {
  .flbp-confirmation.has-afcp-payment > div {
    padding: 10px 12px !important;
  }

  .flbp-confirmation.has-afcp-payment > div > i {
    display: none;
  }

  .flbp-confirmation.has-afcp-payment > div > h2 {
    margin: 0;
    font-size: 24px;
  }

  .flbp-confirmation.has-afcp-payment .afcp-payment-layout {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .flbp-confirmation.has-afcp-payment .afcp-payment-layout > img {
    width: 100px;
    height: 100px;
  }
}

/* Jewels Fashion 2.0 luxury jewelry theme */
.afcp-option-picker,.afcp-confirmation,.afcp-customer-payment,.afcp-order-payment{background:#fff!important;color:#171717!important;border-color:#e7e1d8!important;border-radius:2px!important;box-shadow:0 16px 44px rgba(23,23,23,.06)!important}
.afcp-option-picker select,.afcp-copy-value{background:#fff!important;color:#171717!important;border-color:#d9d1c5!important;border-radius:2px!important}
.afcp-confirmation-head strong{background:#f7f5f1!important;color:#9a7638!important;border-radius:2px!important}
.afcp-confirmation[data-status="confirmed"] .afcp-confirmation-head strong{background:#171717!important;color:#fff!important}
.afcp-copy-value:hover{border-color:#b89555!important}
