.cp-otp-wrapper {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

/* кнопка-крестик */
.cp-otp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ff8a00;
  background: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.cp-otp-close::before,
.cp-otp-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background-color: #ff8a00;
  transform-origin: center;
}

.cp-otp-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cp-otp-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cp-otp-close:hover {
  background: #ff8a00;
  border-color: #cccccc;
}

.cp-otp-close:hover::before,
.cp-otp-close:hover::after {
  background-color: #cccccc;
}

/* общий центр для шагов */
.cp-otp-step {
  text-align: center;
}

/* формы — столбиком, элементы одинаковой ширины */
.cp-otp-form-send,
.cp-otp-form-verify,
.cp-otp-form-name {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* поля ввода: базовый */
.cp-otp-input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 8px;
  box-sizing: border-box;
  font-size: 24px !important;
}

/* телефон */
.cp-otp-phone-wrapper {
  display: flex;
  align-items: center;
  font-size: 24px;
}

.cp-otp-phone-prefix {
  margin-right: 6px;
  font-size: 24px !important;
  line-height: 0;
  color: #eee;
  white-space: nowrap;
  padding-top: 6px;
}

.cp-otp-phone-input {
  flex: 1 1 auto;
  font-size: 24px !important;
}

/* код — крупный + центр */
.cp-otp-code-input {
  font-size: 20px !important;
  text-align: center;
}

/* стиль placeholder */
.cp-otp-phone-input::placeholder {
  color: #bbb;
  opacity: 1;
  font-size: 24px !important;
}

/* кнопка той же ширины, что и инпут */
.cp-otp-btn {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  box-sizing: border-box;
}

/* чекбокс + текст согласия в одну строку, по ширине формы */
.cp-otp-consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 4px 0 8px;
  font-size: 14px !important;
  line-height: 1.3;
  text-align: left;
}

.cp-otp-consent-box {
  flex: 0 0 auto;
  margin-right: 6px;
  margin-top: 1px;
}

.cp-otp-consent-text {
  flex: 1 1 auto;
}

/* ссылка внутри текста – голубая */
.cp-otp-consent-text a {
  color: #007acc;
  text-decoration: underline;
}

/* PIN-код: 4 одинаковых “окошка” */
.cp-otp-pin-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 10px 0 16px;
}

.cp-otp-pin-input {
  width: 2.5em;
  text-align: center;
  font-size: 24px !important;
  line-height: 1.3;
  padding: 8px 0;
  box-sizing: border-box;
  /* исходный вид */
  background-color: #f7f7f7;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* disabled – фон тот же, но белые цифры */
.cp-otp-pin-input[disabled],
.cp-otp-pin-input:disabled {
  background-color: #0000005e;
  color: #fff;
  opacity: 1;
}

/* ===== ДОБАВКА, чтобы тема не ломала НИ ОДНО из 4-х окошек ===== */

/* перебиваем global input[type="tel"] только внутри нашего окна */
.cp-otp-wrapper .cp-otp-pin-wrapper .cp-otp-pin-input {
  max-width: none !important;
  /* width: 2.5em !important; */
  height: auto !important;
  padding: 8px 0 !important;
  box-sizing: border-box !important;

  background-color: #0000004 !important;
  color: #ffffff !important;
  border: 1px solid #dd8500 !important;
  border-radius: 4px !important;
}
/* Отключаем тему для disabled в наших инпутах PIN */
.cp-otp-wrapper .cp-otp-pin-input[disabled],
.cp-otp-wrapper .cp-otp-pin-input:disabled {
  opacity: 1 !important;
  cursor: text !important; /* или inherit, как удобнее */
}








