.fpmp-payment-frame {
  display: block;
  width: 100%;
  min-height: 640px;
  height: 640px;
  border: 0;
  background: transparent;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.fpmp-iframe-wrap,
.fpmp-iframe-page {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
  overflow: visible;
}

.fpmp-checkout-steps {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 16px 12px 0;
  box-sizing: border-box;
}

.fpmp-checkout-steps[hidden],
.fpmp-checkout-steps--gated[hidden] {
  display: none !important;
}

.fpmp-checkout-steps ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fpmp-checkout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #646970;
  font-size: 14px;
}

.fpmp-checkout-steps li + li::before {
  content: "";
  width: 48px;
  height: 2px;
  margin: 0 12px 0 4px;
  background: #dcdcde;
}

.fpmp-checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dcdcde;
  color: #1d2327;
  font-weight: 700;
  font-size: 13px;
}

.fpmp-checkout-steps .is-current,
.fpmp-checkout-steps .is-complete {
  color: #1d2327;
  font-weight: 600;
}

.fpmp-checkout-steps .is-current .fpmp-checkout-step-num,
.fpmp-checkout-steps .is-complete .fpmp-checkout-step-num {
  background: #1d2327;
  color: #fff;
}

.fpmp-iframe-complete {
  padding: 24px;
  text-align: center;
}

.fpmp-iframe-wrap {
  position: relative;
  min-height: 480px;
}

.fpmp-iframe-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  min-height: 320px;
  color: #646970;
  font-size: 14px;
}

.fpmp-iframe-wrap.is-loading .fpmp-iframe-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  min-height: 0;
  background: #f4f6f8;
  pointer-events: auto;
}

.fpmp-iframe-wrap.is-loading .fpmp-payment-frame {
  pointer-events: none !important;
}

.fpmp-iframe-wrap:not(.is-loading) .fpmp-iframe-loading {
  display: none !important;
  pointer-events: none !important;
}

.fpmp-iframe-wrap:not(.is-loading):not(.is-error):not(.is-complete) .fpmp-payment-frame {
  pointer-events: auto !important;
  z-index: 2;
}

.fpmp-iframe-loading[hidden],
.fpmp-iframe-error[hidden],
.fpmp-iframe-complete[hidden],
.fpmp-iframe-error-code[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.fpmp-iframe-wrap.is-error .fpmp-payment-frame,
.fpmp-iframe-wrap.is-complete .fpmp-payment-frame {
  display: none !important;
}

.fpmp-iframe-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d0d5dd;
  border-top-color: #1d2327;
  border-radius: 50%;
  animation: fpmp-spin 0.7s linear infinite;
}

.fpmp-iframe-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  min-height: 320px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.fpmp-iframe-error-icon {
  font-size: 32px;
  margin: 0;
  line-height: 1;
  color: #d63638;
}

.fpmp-iframe-error-message {
  margin: 0 0 8px;
  color: #3c434a;
  font-size: 15px;
  line-height: 1.5;
}

.fpmp-iframe-error-code,
.fpmp-error-code {
  margin: 0;
  color: #646970;
  font-size: 13px;
}

.fpmp-iframe-error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.fpmp-inline-note {
  margin: 0 0 10px;
  color: #646970;
  font-size: 13px;
}

.fpmp-inline-error {
  color: #b32d2e;
}

#payment .payment_method_fpmp_bridge .payment_box {
  padding-top: 8px;
}

html.fpmp-iframe-checkout,
body.fpmp-iframe-checkout {
  margin: 0;
  min-height: 100%;
}

body.fpmp-iframe-checkout .fpmp-iframe-page,
body.fpmp-iframe-checkout .fpmp-iframe-wrap {
  min-height: calc(100vh - 88px);
}

body.fpmp-iframe-checkout .fpmp-payment-frame {
  min-height: calc(100vh - 88px);
  height: calc(100vh - 88px);
  width: 100%;
}

body.fpmp-iframe-checkout .site-header,
body.fpmp-iframe-checkout header#masthead,
body.fpmp-iframe-checkout header.wp-block-template-part,
body.fpmp-iframe-checkout .site-footer,
body.fpmp-iframe-checkout footer#colophon,
body.fpmp-iframe-checkout footer.wp-block-template-part {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  transform: none !important;
}

body.fpmp-iframe-checkout #page,
body.fpmp-iframe-checkout .site,
body.fpmp-iframe-checkout .wp-site-blocks,
body.fpmp-iframe-checkout #content,
body.fpmp-iframe-checkout .site-content,
body.fpmp-iframe-checkout .content-area,
body.fpmp-iframe-checkout .col-full,
body.fpmp-iframe-checkout .entry-content,
body.fpmp-iframe-checkout .hentry,
body.fpmp-iframe-checkout article,
body.fpmp-iframe-checkout .woocommerce,
body.fpmp-iframe-checkout .fpmp-iframe-page,
body.fpmp-iframe-checkout .fpmp-iframe-wrap {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.fpmp-iframe-checkout .page-header,
body.fpmp-iframe-checkout .entry-header,
body.fpmp-iframe-checkout .entry-title,
body.fpmp-iframe-checkout .woocommerce-breadcrumb,
body.fpmp-iframe-checkout .storefront-breadcrumb {
  display: none !important;
}

body.fpmp-iframe-hide-header .site-header,
body.fpmp-iframe-hide-header header#masthead,
body.fpmp-iframe-hide-footer .site-footer,
body.fpmp-iframe-hide-footer footer#colophon {
  display: none !important;
}

.fpmp-card-buttons {
  min-height: 45px;
  margin: 8px 0 4px;
}

.fpmp-card-buttons iframe {
  max-width: 100%;
}

.fpmp-card-fields {
  margin: 4px 0 0;
  position: relative;
  z-index: 3;
  pointer-events: auto !important;
}

.fpmp-card-field,
.fpmp-paypal-field {
  margin: 0 0 12px;
  position: relative;
  z-index: 3;
}

.fpmp-card-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3c434a;
  pointer-events: none;
}

.fpmp-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#fpmp-card-name,
#fpmp-card-number,
#fpmp-card-expiry,
#fpmp-card-cvv {
  position: relative;
  display: block;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: var(--fpmp-field-bg, #ffffff);
  overflow: hidden;
  pointer-events: auto !important;
  z-index: 4;
  cursor: text;
}

#fpmp-card-name:empty,
#fpmp-card-number:empty,
#fpmp-card-expiry:empty,
#fpmp-card-cvv:empty {
  pointer-events: none !important;
  cursor: wait;
  background:
    linear-gradient(90deg, #f0f0f1 25%, #fafafa 50%, #f0f0f1 75%);
  background-size: 200% 100%;
  animation: fpmp-field-pulse 1.2s ease-in-out infinite;
}

@keyframes fpmp-field-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#fpmp-card-name > div,
#fpmp-card-number > div,
#fpmp-card-expiry > div,
#fpmp-card-cvv > div,
#fpmp-card-name iframe,
#fpmp-card-number iframe,
#fpmp-card-expiry iframe,
#fpmp-card-cvv iframe {
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  border: 0 !important;
  background: transparent !important;
}

.fpmp-paypal-buttons {
  margin: 0 0 16px;
  min-height: 0;
}

.fpmp-paypal-btn {
  margin: 0 0 8px;
}

.fpmp-paypal-btn:last-child {
  margin-bottom: 0;
}

.fpmp-express-buttons {
  margin: 16px 0 0;
  max-width: 400px;
}

.fpmp-or-separator {
  margin: 0 0 16px;
  text-align: center;
  color: #646970;
  font-size: 13px;
}

.fpmp-pay-row-addon td:first-child {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fpmp-addon-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 40px;
}

.fpmp-addon-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fpmp-addon-desc {
  font-size: 12px;
  color: #646970;
}

.fpmp-addon-desc p {
  margin: 0 0 4px;
}

.fpmp-handling-offer--card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--fpmp-field-bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fpmp-handling-offer-media {
  flex: 0 0 96px;
}

.fpmp-handling-offer-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.fpmp-handling-offer--line .fpmp-handling-offer-img {
  width: 48px;
  height: 48px;
}

.fpmp-handling-offer-body {
  flex: 1 1 auto;
  min-width: 0;
}

.fpmp-handling-offer-title {
  margin: 0 0 8px;
  font-size: 1.1em;
}

.fpmp-handling-accordion {
  margin: 0 0 10px;
}

.fpmp-handling-accordion summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.fpmp-handling-accordion summary::-webkit-details-marker {
  display: none;
}

.fpmp-handling-accordion summary::after {
  content: " +";
  font-weight: 400;
}

.fpmp-handling-accordion[open] summary::after {
  content: " −";
}

.fpmp-handling-offer-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.fpmp-handling-offer-desc p:last-child {
  margin-bottom: 0;
}

.fpmp-handling-offer-price {
  margin: 0 0 12px;
  font-weight: 600;
}

.fpmp-handling-offer-note {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.75;
}

.fpmp-handling-offer-actions {
  margin: 0;
}

.fpmp-handling-offer-add.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6em 1.4em;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.fpmp-handling-offer-add.single_add_to_cart_button:hover,
.fpmp-handling-offer-add.single_add_to_cart_button:focus {
  filter: brightness(1.05);
}

.fpmp-addon-qty {
  display: inline-block;
  min-width: 2em;
  text-align: center;
}

.fpmp-hide-wallet .fpmp-paypal-buttons,
.fpmp-hide-wallet #fpmp-paypal-buttons,
body.fpmp-pay-page .paypal-buttons {
  display: none !important;
}

.fpmp-customer-error {
  margin: 12px 0;
}

.fpmp-thankyou {
  display: none;
}

html.fpmp-pay-html,
body.fpmp-pay-bare {
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: visible;
  background: var(--fpmp-page-bg, #f4f6f8);
}

body.fpmp-pay-bare .site-header,
body.fpmp-pay-bare header#masthead,
body.fpmp-pay-bare .site-footer,
body.fpmp-pay-bare footer#colophon,
body.fpmp-pay-bare .storefront-breadcrumb,
body.fpmp-pay-bare .woocommerce-breadcrumb {
  display: none !important;
}

.fpmp-pay-shell {
  min-height: 0;
  padding: 28px 16px 40px;
  background: var(--fpmp-page-bg, #f4f6f8);
  box-sizing: border-box;
}

.fpmp-pay-inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.fpmp-pay-header {
  text-align: center;
  margin: 0 0 20px;
}

.fpmp-pay-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.fpmp-pay-logo {
  max-height: 52px;
  max-width: 60% !important;
  width: 100% !important;
  height: auto !important;
}

.fpmp-pay-label {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #1d2327;
}

.fpmp-pay-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.fpmp-pay-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
}

.fpmp-pay-loading[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.fpmp-pay-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #1d2327;
  font-size: 14px;
  font-weight: 600;
}

.fpmp-pay-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #d0d5dd;
  border-top-color: var(--fpmp-button-bg, #1d2327);
  border-radius: 50%;
  animation: fpmp-spin 0.7s linear infinite;
}

@keyframes fpmp-spin {
  to {
    transform: rotate(360deg);
  }
}

.fpmp-pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #eef0f2;
}

.fpmp-pay-amount-label {
  font-size: 13px;
  color: #646970;
}

.fpmp-pay-amount-value {
  font-size: 22px;
  font-weight: 700;
  color: #1d2327;
}

.fpmp-pay-summary {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 13px;
}

.fpmp-pay-summary td {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f1;
}

.fpmp-pay-summary .fpmp-pay-qty,
.fpmp-pay-summary .fpmp-pay-line {
  text-align: right;
  white-space: nowrap;
}

.fpmp-pay-summary .fpmp-pay-row-shipping td,
.fpmp-pay-summary .fpmp-pay-row-fee td,
.fpmp-pay-summary .fpmp-pay-row-tax td {
  color: #646970;
  font-size: 12px;
}

.fpmp-pay-summary .fpmp-pay-row-total td {
  border-bottom: none;
  border-top: 2px solid #dcdcde;
  padding-top: 10px;
  font-size: 14px;
}

.fpmp-pay-description {
  margin: 0 0 8px;
  color: #646970;
  font-size: 14px;
}

.fpmp-pay-page #payment ul.wc_payment_methods {
  display: none !important;
}

.fpmp-pay-page #payment div.payment_box,
.fpmp-pay-page .woocommerce-checkout-payment,
.fpmp-pay-page form#order_review,
.fpmp-pay-page form#order_review.processing {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.fpmp-pay-page form.processing::before,
.fpmp-pay-page form.processing::after,
.fpmp-pay-page .blockUI,
.fpmp-pay-page .blockOverlay,
.fpmp-pay-page .woocommerce-checkout-review-order-table .blockUI {
  display: none !important;
  pointer-events: none !important;
}

.fpmp-pay-page #place_order,
.fpmp-pay-page button#place_order {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--fpmp-button-bg, #1d2327) !important;
  color: var(--fpmp-button-color, #fff) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.fpmp-pay-page #place_order:hover,
.fpmp-pay-page button#place_order:hover {
  filter: brightness(1.08);
}

.fpmp-hide-order-details form#order_review > table.shop_table {
  display: none !important;
}

.payment_method_fpmp_bridge > label,
.payment_method_fpmp_paypal > label,
.fpmp-gateway-method-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.fpmp-gateway-logos {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.fpmp-gateway-logos--description {
  display: flex;
  margin: 8px 0;
}

.fpmp-gateway-logo,
.fpmp-gateway-logos img,
.payment_method_fpmp_bridge label img,
.payment_method_fpmp_paypal label img {
  display: inline-block;
  height: 24px;
  width: auto;
  max-height: 28px;
  max-width: 80px;
  object-fit: contain;
  vertical-align: middle;
}

.fpmp-pay-description .fpmp-gateway-logos--description {
  margin: 0 0 10px;
}

.fpmp-pay-description .fpmp-gateway-logos--description:last-child {
  margin: 10px 0 0;
}

@media (max-width: 600px) {
  .fpmp-pay-shell {
    padding: 16px 12px 28px;
  }

  .fpmp-pay-card {
    padding: 18px 16px 16px;
    border-radius: 12px;
  }

  .fpmp-card-row {
    grid-template-columns: 1fr;
  }
}
