/* Keep customer panels readable even when the shop theme uses light text. */
.ipc-payment-panel,
.ipc-lines-panel {
  box-sizing: border-box;
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid #d9e1ea;
  border-radius: 16px;
  background: #f8fbff;
  color: #172536;
  color-scheme: light;
}
.ipc-payment-panel h2,
.ipc-lines-panel h2 { margin-top: 0; }
.ipc-payment-panel :is(h2, h3, p, label, dt, dd),
.ipc-lines-panel :is(h2, h3, p, label, dt, dd) { color: #172536 !important; }
.ipc-payment-panel a:not(.button),
.ipc-lines-panel a:not(.button) { color: #075ca8 !important; text-decoration: underline; }
.ipc-payment-panel .button,
.ipc-lines-panel .button {
  background: #075ca8 !important;
  color: #fff !important;
  text-decoration: none;
}
.ipc-payment-frame {
  display: block;
  width: 100%;
  min-height: 1050px;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  background: #fff;
}
.ipc-payment-panel .ipc-help,
.ipc-lines-panel .ipc-help { font-size: .9rem; color: #45576b !important; }
.ipc-line { margin: 1rem 0; padding: 1rem; border: 1px solid #d9e1ea; border-radius: 12px; background: #fff; }
.ipc-line h3 { margin-top: 0; }
.ipc-line dl { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr); gap: .65rem 1rem; }
.ipc-line dt { font-weight: 600; }
.ipc-line dd { margin: 0; overflow-wrap: anywhere; }
.ipc-line a { overflow-wrap: anywhere; }
.ipc-line code { background: #edf2f7; color: #172536 !important; white-space: normal; overflow-wrap: anywhere; }
.ipc-status { display: inline-block; padding: .25rem .65rem; border-radius: 20px; background: #eaf3ff; color: #173e69 !important; font-size: .9rem; }
.ipc-ready { background: #e4f6eb; color: #175b31 !important; }
.ipc-review { background: #fff1d7; color: #6d4700 !important; }

/* The gateway description is rendered by WooCommerce inside the shop theme. */
#payment .payment_box.payment_method_iptv_central {
  background: #f8fbff !important;
  color: #172536 !important;
  color-scheme: light;
}
#payment .payment_box.payment_method_iptv_central p { color: #172536 !important; }
#payment .payment_box.payment_method_iptv_central::before { border-bottom-color: #f8fbff !important; }

.ipc-service-inputs {
  box-sizing: border-box;
  display: block;
  clear: both;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  background: #f8fbff !important;
  color: #172536 !important;
  color-scheme: light;
  text-align: left;
}
.ipc-service-inputs legend {
  float: none;
  display: table;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: .35rem .65rem;
  border: 0;
  border-radius: 6px;
  background: #f8fbff !important;
  color: #172536 !important;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  white-space: normal;
}
.ipc-service-inputs p { margin: 0 0 1rem; padding: 0; }
.ipc-service-inputs :is(p, label, label span) { color: #172536 !important; opacity: 1; }
.ipc-service-inputs label { display: block; font-size: 1rem; line-height: 1.5; }
.ipc-service-inputs input:not([type=hidden]),
.ipc-service-inputs select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  margin: .4rem 0 0;
  padding: .65rem .75rem;
  border: 1px solid #a9b9cc;
  border-radius: 8px;
  background: #fff !important;
  color: #172536 !important;
  -webkit-text-fill-color: #172536;
  font-size: 16px;
  line-height: 1.5;
  opacity: 1;
}
.ipc-service-inputs input::placeholder { color: #536575; opacity: 1; }
.ipc-service-inputs .ipc-service-plan { font-weight: 600; }
.ipc-service-inputs .button.ipc-service-check {
  display: block;
  float: none;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid #075ca8;
  border-radius: 8px;
  background: #075ca8 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.ipc-service-inputs .button.ipc-service-check:hover { background: #064a87 !important; }
.ipc-service-inputs .button.ipc-service-check:disabled { background: #45576b !important; border-color: #45576b; cursor: wait; }
.ipc-service-inputs :is(input, select, button):focus-visible { outline: 3px solid #075ca8; outline-offset: 3px; }
.ipc-service-inputs .ipc-service-feedback { clear: both; font-weight: 600; overflow-wrap: anywhere; }
.ipc-service-inputs .ipc-service-feedback:empty { display: none; }
.ipc-service-inputs .ipc-service-help { clear: both; margin: 0; color: #45576b !important; font-size: .9rem; line-height: 1.6; }
.ipc-service-inputs [hidden] { display: none !important; }
@media (max-width: 600px) {
  .ipc-payment-frame { min-height: 1250px; }
  .ipc-line dl { grid-template-columns: 1fr; }
  .ipc-line dt { margin-top: .4rem; }
  .ipc-service-inputs .button.ipc-service-check { width: 100%; }
}
