/* VH NetGSM OTP — HP Quick Checkout UI 3.2.18 payment-only + round counter */
:root {
  --vhotp-primary: #1769d2;
  --vhotp-primary-dark: #0f4d92;
  --vhotp-primary-soft: #edf5ff;
  --vhotp-border: #d6e2f1;
  --vhotp-text: #142033;
  --vhotp-muted: #68778a;
  --vhotp-danger: #b42318;
}

.vhotp-alert {
  display: none;
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #f2c5c2;
  border-radius: 10px;
  background: #fff5f4;
  color: var(--vhotp-danger);
  font-size: 13px;
  line-height: 1.5;
}

.vhotp-modal .modal-dialog {
  width: auto;
  max-width: 470px;
  margin: 20px auto;
}

.vhotp-modal .modal-content {
  overflow: hidden;
  border: 1px solid #b9cce3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 43, 78, .25);
}

.vhotp-modal .modal-header {
  position: relative;
  padding: 25px 28px 17px;
  border: 0;
  border-bottom: 1px solid #dce8f5;
  background: radial-gradient(circle at 95% 0%, rgba(72, 165, 255, .18), transparent 35%), linear-gradient(145deg, #f5faff 0%, #eaf4ff 100%);
  text-align: center;
}

.vhotp-modal .modal-header .close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  margin: 0;
  color: #60748a;
  font-size: 25px;
  line-height: 1;
  opacity: .9;
}

.vhotp-modal .modal-title {
  margin: 0 28px 7px;
  color: #0d2745;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.vhotp-modal .vhotp-modal-sub {
  margin: 0;
  color: #5e7083;
  font-size: 13px;
  line-height: 1.55;
}

.vhotp-modal .vhotp-modal-sub strong {
  display: block;
  margin-top: 4px;
  color: #173a60;
  font-size: 14px;
  letter-spacing: .5px;
}

.vhotp-modal .modal-body {
  padding: 22px 28px 27px;
  background: #fff;
}

.vhotp-countdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 19px;
  border: 7px solid #dfeaf6;
  border-top-color: var(--vhotp-primary);
  border-radius: 50%;
  background: #fff;
}

.vhotp-countdown strong {
  color: #163d68;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.vhotp-code-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.vhotp-code-box {
  width: 46px;
  height: 54px;
  padding: 0;
  border: 1px solid #c9d7e7;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--vhotp-text);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  outline: none;
  caret-color: var(--vhotp-primary);
}

.vhotp-code-box:focus {
  border-color: #65a5f2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 210, .13);
}

.vhotp-code-box.is-filled {
  border-color: #73a9e7;
  background: var(--vhotp-primary-soft);
  color: #0f4d92;
}

.vhotp-code-box.is-error {
  border-color: #ef827a;
  background: #fff6f5;
}

.vhotp-modal-error {
  display: none;
  margin-bottom: 13px;
  padding: 10px 12px;
  border: 1px solid #f1c5c2;
  border-radius: 10px;
  background: #fff5f4;
  color: var(--vhotp-danger);
  font-size: 12px;
  line-height: 1.5;
}

.vhotp-modal .btn-primary {
  width: 100%;
  min-height: 48px;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #2783e8, #0f4d92) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 77, 146, .18);
  text-shadow: none;
}

.vhotp-modal-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 13px;
  color: var(--vhotp-muted);
  font-size: 12px;
}

.vhotp-link {
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--vhotp-primary-dark);
  font-size: 12px;
  font-weight: 800;
}

#vhHpqcOtpResend {
  visibility: hidden;
  pointer-events: none;
}

#vhHpqcOtpResend.visible {
  visibility: visible;
  pointer-events: auto;
}

/* OTP onayından sonraki gerçek sipariş isteği bitene kadar ikinci tıklamayı
   görsel ve işlevsel olarak engelle. Tema disabled rengini ezebilir. */
#submit-qcheckout.vh-otp-order-processing,
#submit-qcheckout.vh-otp-order-processing[disabled] {
  border-color: #82bd88 !important;
  background: #82bd88 !important;
  color: #fff !important;
  opacity: .72 !important;
  cursor: wait !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

body.vhotp-order-wait-open {
  overflow: hidden !important;
}

#vhHpqcOrderWait[hidden] {
  display: none !important;
}

.vhotp-order-wait {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 32, 51, .42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}

.vhotp-order-wait-card {
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 241, .95);
  border-radius: 24px;
  background: #fff;
  color: var(--vhotp-text);
  text-align: center;
  box-shadow: 0 24px 75px rgba(20, 32, 51, .24);
  box-sizing: border-box;
}

.vhotp-order-wait-header {
  padding: 25px 24px 17px;
  background: radial-gradient(circle at 95% 0%, rgba(72, 165, 255, .18), transparent 35%), linear-gradient(145deg, #f5faff 0%, #eaf4ff 100%);
  border-bottom: 1px solid #deebf8;
}

.vhotp-order-wait-card h3 {
  margin: 0 0 8px;
  color: #132d4a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.vhotp-order-wait-header p {
  margin: 0;
  color: var(--vhotp-muted);
  font-size: 14px;
  line-height: 1.45;
}

.vhotp-order-wait-countdown {
  box-sizing: border-box;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 92px !important;
  min-height: 92px !important;
  margin: 22px auto 15px;
  flex: 0 0 92px;
  border-radius: 50% !important;
}

.vhotp-order-wait-countdown strong {
  font-size: 24px;
}

.vhotp-order-wait-bar {
  width: calc(100% - 48px);
  height: 9px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef8;
}

.vhotp-order-wait-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vhotp-primary-dark), var(--vhotp-primary));
  transition: width .18s linear;
}

.vhotp-order-wait-text {
  margin: 17px 24px 25px;
  color: var(--vhotp-muted);
  font-size: 14px;
  line-height: 1.55;
}

.vhotp-order-wait.is-extended .vhotp-order-wait-progress {
  width: 100% !important;
  background-size: 200% 100%;
  animation: vhotp-order-wait-pulse 1.25s ease-in-out infinite;
}

.vhotp-order-wait.is-complete .vhotp-order-wait-progress {
  width: 100% !important;
  background: #178a3b;
}

.vhotp-order-wait.is-complete .vhotp-order-wait-countdown {
  border-color: #b9e5c4;
  background: #effaf2;
  color: #178a3b;
}

@keyframes vhotp-order-wait-pulse {
  0% { opacity: .7; }
  50% { opacity: 1; }
  100% { opacity: .7; }
}

@media (max-width: 600px) {
  .vhotp-modal .modal-dialog {
    margin: 10px 12px;
  }

  .vhotp-modal .modal-header {
    padding: 22px 18px 15px;
  }

  .vhotp-modal .modal-body {
    padding: 20px 17px 23px;
  }

  .vhotp-code-boxes {
    gap: 6px;
  }

  .vhotp-code-box {
    width: 39px;
    height: 49px;
    border-radius: 10px;
    font-size: 20px;
  }

  .vhotp-order-wait-card {
    max-width: 350px;
    border-radius: 20px;
  }

  .vhotp-order-wait-header {
    padding: 22px 18px 15px;
  }

  .vhotp-order-wait-card h3 {
    font-size: 20px;
  }

  .vhotp-order-wait-countdown {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    height: 86px !important;
    min-height: 86px !important;
    flex-basis: 86px;
  }

  .vhotp-order-wait-bar {
    width: calc(100% - 36px);
  }

  .vhotp-order-wait-text {
    margin: 15px 18px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vhotp-order-wait.is-extended .vhotp-order-wait-progress {
    animation: none;
  }
}
