.ips-embedded-panel {
  width: 100%;
  max-width: 980px;
  margin: 24px auto;
  padding: 16px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  scroll-margin-top: 24px;
}
.ips-embedded-panel h2 { margin: 0 0 12px; font-size: 22px; }
.ips-embedded-status { color: #374151; font-size: 15px; line-height: 1.5; }
.ips-embedded-mount { width: 100%; min-height: 160px; }
.ips-embedded-retry { margin: 12px 0; }
.ips-embedded-panel [hidden], form.checkout[hidden], form.ips-payment-active #place_order[hidden], form.ips-payment-active li.wc_payment_method[hidden] { display: none !important; }
@media (max-width: 480px) {
  .ips-embedded-panel { padding: 8px; margin: 16px auto; }
  .ips-embedded-panel h2, .ips-embedded-status { margin-left: 8px; margin-right: 8px; }
}

.ips-embedded-panel--checkout {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ips-embedded-panel--checkout h2 { font-size: 18px; }
form.ips-payment-active [inert] { opacity: 1; }

.ips-block-payment-active .wc-block-components-checkout-place-order-button { display: none !important; }
.ips-block-payment-active #ips-block-payment { pointer-events: auto; opacity: 1; }

.ips-embedded-panel[hidden], #ips-block-payment[hidden] { display: none !important; min-height: 0 !important; }

/* Compact only our payment stage; Stripe controls the secure iframe's contents and height. */
.ips-block-payment-active .ips-block-description,
.ips-payment-ready > .ips-embedded-status,
.ips-payment-ready > h2 { display: none !important; }
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout,
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control__content {
  margin: 0 !important;
  padding: 0 !important;
}
.ips-block-payment-active #ips-block-payment {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control,
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  border: 0 !important;
  box-shadow: none !important;
}


/* Hide only the payment gateway label after submission; keep shipping labels visible. */
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group,
.ips-block-payment-active .wc-block-checkout__payment-method .wc-block-components-radio-control__input { display: none !important; }
