.agw-credit-otp {
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fafafa;
  box-sizing: border-box;
}

.agw-credit-otp__initial,
.agw-credit-otp__verification {
  width: 100%;
}

.agw-credit-otp__initial .agw-credit-otp__button {
  min-width: 220px;
}

.agw-credit-otp__verification.is-hidden,
.agw-credit-otp__initial.is-hidden {
  display: none;
}

.agw-credit-otp__header strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.agw-credit-otp__header p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.agw-credit-otp__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.agw-credit-otp__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.agw-credit-otp__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.agw-credit-otp__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.agw-credit-otp__button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.agw-credit-otp__button--primary {
  font-weight: 600;
}

.agw-credit-otp__button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.agw-credit-otp__button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.agw-credit-otp__message {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.agw-credit-otp__message.is-success {
  color: #0f766e;
}

.agw-credit-otp__message.is-error {
  color: #b42318;
}

.agw-credit-otp__message.is-info {
  color: #475467;
}

.agw-credit-otp__submit-disabled {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .agw-credit-otp__grid {
    grid-template-columns: 1fr;
  }

  .agw-credit-otp__actions {
    width: 100%;
  }

  .agw-credit-otp__button {
    width: 100%;
  }
}
