/* Embed checkout theme «anketa»: всегда мобильная компоновка — удобно для iframe на лендингах
   (переопределяет десктопный @media (min-width: 900px) из anketa.css при широком viewport). */

html.embed-checkout-page--anketa,
html.embed-checkout-page--anketa body.embed-checkout--anketa {
  background-color: #ffffff !important;
  height: auto;
  min-height: 100%;
}

body.embed-checkout--anketa {
  margin: 0;
}

/* Как на мобилке /anketa: без полноэкранного слоя фото */
body.embed-checkout--anketa .anketa-bg {
  display: none !important;
}

body.embed-checkout--anketa .anketa-page {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: 100% !important;
  background: #ffffff !important;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Верхняя полоса с фото — как max-width: 899px в anketa.css */
body.embed-checkout--anketa .anketa-hero-gap {
  display: block !important;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 720 / 361;
  min-height: 140px;
  background-color: #000000;
  background-image: url(/assets/anketa/rectangle2107-22c6ba36c85eb2b8157c699bcce8876f28d6ac10ebfa2b75ae528636281edd20.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

body.embed-checkout--anketa .anketa-panel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-left: 0 !important;
  padding: 29px clamp(20px, 5vw, 48px) 40px;
  background: #ffffff;
}

body.embed-checkout--anketa .anketa-panel-inner {
  width: 100%;
  max-width: min(420px, 100%);
  gap: 0;
}

body.embed-checkout--anketa .anketa-brand {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

body.embed-checkout--anketa .anketa-title {
  margin: 0 0 20px;
  font-family: 'DrukCyr', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

body.embed-checkout--anketa .anketa-title__line {
  display: block;
}

body.embed-checkout--anketa .anketa-price {
  margin: -8px 0 16px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

body.embed-checkout--anketa .anketa-subtitle {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: calc(10px * 0.85);
  line-height: calc(13px * 0.85);
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

body.embed-checkout--anketa .anketa-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

body.embed-checkout--anketa .anketa-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

body.embed-checkout--anketa .anketa-consents {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-bottom: 8px;
  margin-top: 4px;
}

body.embed-checkout--anketa .anketa-consent__label {
  font-size: 12px;
  line-height: 1.42;
}

body.embed-checkout--anketa .anketa-actions {
  margin-top: 16px;
  width: 100%;
}

body.embed-checkout--anketa .anketa-input {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 14px 18px;
  border: 1.5381px solid #ebebeb;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-family: 'PT Root UI', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 22px;
  letter-spacing: -0.03em;
  outline: none;
  box-sizing: border-box;
}

body.embed-checkout--anketa .anketa-input::placeholder {
  color: #777777;
}

body.embed-checkout--anketa .anketa-input:focus {
  border-color: #8a9440;
  box-shadow: 0 0 0 3px rgba(171, 181, 70, 0.25);
}

body.embed-checkout--anketa .anketa-form .phone-input-container {
  gap: 12px;
}

body.embed-checkout--anketa .anketa-form .phone-input-container .anketa-input,
body.embed-checkout--anketa .anketa-form .phone-input-container select.anketa-input {
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1.5381px solid #ebebeb;
  border-radius: 12px;
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 22px;
  letter-spacing: -0.03em;
}

body.embed-checkout--anketa .anketa-form .phone-input-container select.anketa-input {
  padding: 14px 10px;
  -webkit-appearance: menulist;
  appearance: menulist;
}

body.embed-checkout--anketa .anketa-btn {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: #abb546;
  color: #ffffff;
  font-family: 'PT Root UI', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.8vw, 18px);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-sizing: border-box;
}

body.embed-checkout--anketa .anketa-btn:hover {
  background: #989f3d;
}

body.embed-checkout--anketa .anketa-btn:active {
  background: #858b35;
}

body.embed-checkout--anketa .anketa-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Модалка оплаты — кнопки в цвет CTA анкеты */
body.embed-checkout--anketa .modal-payment-method .payment-method-btn {
  background: #abb546;
}

body.embed-checkout--anketa .modal-payment-method .payment-method-btn:hover {
  background: #989f3d;
}

body.embed-checkout--anketa .modal-payment-method .payment-method-btn:active {
  background: #858b35;
}
