/* Lustia-themed Commweb Direct Payment (native WooCommerce CC fields) */
.payment_box.payment_method_commweb_direct_payment {
  background: #f7f7f9 !important;
  border: 1px solid #eeeef2;
  border-radius: 14px;
  padding: 18px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}
/* hide WooCommerce's little speech-bubble arrow on the payment box */
.payment_box.payment_method_commweb_direct_payment::before { display: none !important; }

.payment_method_commweb_direct_payment .wc-credit-card-form,
.payment_method_commweb_direct_payment fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.payment_method_commweb_direct_payment .form-row {
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}
.payment_method_commweb_direct_payment .form-row-first { width: 48%; float: left; }
.payment_method_commweb_direct_payment .form-row-last { width: 48%; float: right; }
.payment_method_commweb_direct_payment .wc-credit-card-form::after { content: ''; display: block; clear: both; }

.payment_method_commweb_direct_payment label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.payment_method_commweb_direct_payment .input-text,
.payment_method_commweb_direct_payment input[type="tel"],
.payment_method_commweb_direct_payment input[type="text"] {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  color: #111113;
  line-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.payment_method_commweb_direct_payment .input-text:focus {
  outline: none;
  border-color: #c9a063;
  box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.18);
}

.commweb-dp-notice {
  background: #fff5f5;
  border: 1px solid #f3c9c9;
  color: #8a1f1f;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .payment_method_commweb_direct_payment .form-row-first,
  .payment_method_commweb_direct_payment .form-row-last { width: 100%; float: none; }
}

/* 3-D Secure challenge overlay (shared class names with hosted session) */
.commweb-hs-3ds-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}
.commweb-hs-3ds-box {
  background: #fff;
  border-radius: 14px;
  width: 94%;
  max-width: 460px;
  height: 80vh;
  max-height: 620px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.commweb-hs-3ds-frame { width: 100%; height: 100%; }
@media screen and (max-width: 480px) {
  .commweb-hs-3ds-box { width: 100%; height: 100vh; max-height: none; border-radius: 0; }
}
