/*
 * ge_accountui
 * 1. Меню акаунта в шапці (ul.tv-account-dropdown.ge-acc, шаблон теми
 *    _partials/ge-account-menu.tpl).
 * 2. Сторінки реєстрації lpsb2bultimate (особистий і професійний акаунт)
 *    і сторінка входу (#authentication, #login-form) — спільні стилі полів.
 * 3. Сторінка входу — власне розташування.
 * Кольори — кольори сайту: червоний #e73e24 (наведення #c5301b),
 * текст #1d1d1f, другорядний текст #6b7280, рамки #e6e8ec / #d0d5dd.
 */

/* ===================================================================== */
/* 1. Меню акаунта                                                         */
/* ===================================================================== */

/* Ім'я покупця у верхній смузі: довге ім'я не розсуває смугу. */
#header .tvcms-header-myaccount .tvcms_customer_name {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

#header .tvcms-header-myaccount .tv-account-dropdown.ge-acc {
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 300px;
  min-width: 0;
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16), 0 2px 6px rgba(17, 24, 39, 0.06);
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  z-index: 1000;
}

/* Місток між кнопкою й меню: курсор, що йде вниз, не «випадає» з обгортки
   і меню не закривається. */
#header .tv-account-dropdown.ge-acc::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Стрілка до кнопки. */
#header .tv-account-dropdown.ge-acc::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid #e6e8ec;
  border-left: 1px solid #e6e8ec;
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
}

/* Скидання для рядків — слабким селектором, щоб рамки розділювачів нижче
   (заголовок, «Вийти») його перекривали. */
#header .ge-acc > li {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  background: none;
}

/* Тема додає тексту меню розрядку — у картці вона зайва. */
#header .tv-account-dropdown.ge-acc,
#header .tv-account-dropdown.ge-acc * {
  letter-spacing: 0;
}

/* --- покупець: ім'я й пошта --- */
#header .ge-acc .ge-acc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid #eef0f3;
}

#header .ge-acc .ge-acc__avatar {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fdecea;
  color: #c5301b;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#header .ge-acc .ge-acc__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#header .ge-acc .ge-acc__name,
#header .ge-acc .ge-acc__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#header .ge-acc .ge-acc__name {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

#header .ge-acc .ge-acc__email {
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.35;
}

/* --- рядки меню: власні пункти, «Кабінет B2B», «Порівняти» --- */
#header .ge-acc .ge-acc__item,
#header .ge-acc .geb2b-link__a,
#header .ge-acc a.tvdesktop-view-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#header .ge-acc .ge-acc__item:hover,
#header .ge-acc .geb2b-link__a:hover,
#header .ge-acc a.tvdesktop-view-compare:hover {
  background: #f5f6f8;
  color: #1d1d1f;
  text-decoration: none;
}

#header .ge-acc .ge-acc__item:focus-visible,
#header .ge-acc .geb2b-link__a:focus-visible,
#header .ge-acc a.tvdesktop-view-compare:focus-visible,
#header .ge-acc .ge-acc__btn:focus-visible,
#header .ge-acc .ge-acc__create a:focus-visible {
  outline: 2px solid #e73e24;
  outline-offset: 2px;
}

#header .ge-acc .ge-acc__ico {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #6b7280;
  transition: color 0.15s ease;
}

#header .ge-acc .ge-acc__item:hover .ge-acc__ico {
  color: #e73e24;
}

/* «Кабінет B2B» (модуль ge_b2blink) */
#header .ge-acc .geb2b-link--dropdown {
  padding: 0;
}

#header .ge-acc .geb2b-link__icon {
  display: inline-flex;
  flex: 0 0 20px;
  justify-content: center;
  color: #6b7280;
  transition: color 0.15s ease;
}

#header .ge-acc .geb2b-link__icon svg {
  width: 20px;
  height: 20px;
}

#header .ge-acc .geb2b-link__a:hover .geb2b-link__icon {
  color: #e73e24;
}

/* У покупця з групи B2B модуль посилання не друкує — порожній рядок ховаємо. */
#header .ge-acc .ge-acc__links:not(:has(a)) {
  display: none;
}

/* «Порівняти (n)» (модуль tvcmsproductcompare) */
#header .ge-acc .tvcmsdesktop-view-compare {
  margin: 0;
  padding: 0;
}

#header .ge-acc a.tvdesktop-view-compare .tvdesktop-compare-icon {
  display: inline-flex;
  flex: 0 0 20px;
  justify-content: center;
  margin: 0;
}

#header .ge-acc a.tvdesktop-view-compare .tvdesktop-compare-icon i {
  width: 20px;
  margin: 0;
  color: #6b7280;
  font-size: 20px;
  line-height: 20px;
  transition: color 0.15s ease;
}

#header .ge-acc a.tvdesktop-view-compare:hover .tvdesktop-compare-icon i {
  color: #e73e24;
}

#header .ge-acc a.tvdesktop-view-compare .tvdesktop-view-compare-name {
  flex: 1 1 auto;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

#header .ge-acc a.tvdesktop-view-compare .count-product {
  margin-left: 2px;
  color: #6b7280;
  font-weight: 400;
}

/* --- гість: вхід і реєстрація --- */
#header .ge-acc .ge-acc__guest {
  padding: 10px 10px 8px;
}

#header .ge-acc .ge-acc__title {
  margin: 0 0 4px;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

#header .ge-acc .ge-acc__text {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

#header .ge-acc .ge-acc__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: #e73e24;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.15s ease;
}

#header .ge-acc .ge-acc__btn:hover {
  background: #c5301b;
  color: #fff;
  text-decoration: none;
}

#header .ge-acc .ge-acc__create {
  margin: 12px 0 2px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

#header .ge-acc .ge-acc__create a {
  color: #1d1d1f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#header .ge-acc .ge-acc__create a:hover {
  color: #e73e24;
}

#header .ge-acc .ge-acc__guest + .ge-acc__links,
#header .ge-acc .ge-acc__guest + .ge-acc__links:not(:has(a)) + .ge-acc__compare {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #eef0f3;
}

/* --- «Вийти» --- */
#header .ge-acc .ge-acc__foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef0f3;
}

#header .ge-acc .ge-acc__item--logout,
#header .ge-acc .ge-acc__item--logout .ge-acc__ico,
#header .ge-acc .ge-acc__item--logout:hover .ge-acc__ico {
  color: #c5301b;
}

#header .ge-acc .ge-acc__item--logout:hover {
  background: #fdf0ee;
  color: #a32219;
}

/* Телефон: кнопка акаунта стоїть посередині рядка шапки, тож меню, вирівняне
   по ній, вилазило б за лівий край. Прив'язуємо його до правого краю рядка
   (колонка з акаунтом, порівнянням і кошиком) і прибираємо стрілку. */
#tvcms-mobile-view-header .tvcmsmobile-cart-acount-text {
  position: relative;
}

#tvcms-mobile-view-header #tvcmsmobile-account-button,
#tvcms-mobile-view-header #tvcmsmobile-account-button .tvcms-header-myaccount,
#tvcms-mobile-view-header #tvcmsmobile-account-button .tv-header-account,
#tvcms-mobile-view-header #tvcmsmobile-account-button .tv-account-wrapper {
  position: static;
}

#tvcms-mobile-view-header #tvcmsmobile-account-button .tv-account-dropdown.ge-acc {
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
}

#tvcms-mobile-view-header #tvcmsmobile-account-button .tv-account-dropdown.ge-acc::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #header .ge-acc * {
    transition: none !important;
  }
}

/* ===================================================================== */
/* 2. Сторінки реєстрації (lpsb2bultimate)                                 */
/* ===================================================================== */

/* Бокова колонка з брендами на реєстрації лише відволікає. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) #left-column {
  display: none !important;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) #content-wrapper {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) #content.page-content {
  max-width: 600px;
  margin: 12px auto 56px;
  padding: 36px 40px 32px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

/* --- заголовок і перемикач --- */
.ge-reg-head {
  margin: 0 0 18px;
  text-align: center;
}

.ge-reg-head .ge-reg-head__title {
  margin: 0 0 8px;
  color: #1d1d1f;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.ge-reg-head .ge-reg-head__sub {
  max-width: 440px;
  margin: 0 auto 22px;
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: 0;
}

.ge-reg-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #f1f2f4;
  border-radius: 12px;
}

.ge-reg-switch .ge-reg-switch__opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 9px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ge-reg-switch .ge-reg-switch__opt:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1d1d1f;
  text-decoration: none;
}

.ge-reg-switch .ge-reg-switch__opt.is-active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.14);
}

.ge-reg-switch .ge-reg-switch__opt:focus-visible {
  outline: 2px solid #e73e24;
  outline-offset: 2px;
}

.ge-reg-switch .ge-reg-switch__icon {
  flex: 0 0 18px;
  color: #6b7280;
}

.ge-reg-switch .ge-reg-switch__opt.is-active .ge-reg-switch__icon {
  color: #e73e24;
}

/* «Вже є обліковий запис? Увійти!» */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .register-form > p {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .register-form > p a {
  color: #e73e24;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .register-form > p a:hover {
  color: #c5301b;
}

/* --- поля: підпис над полем, «За бажанням» праворуч від підпису --- */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 0 18px;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group > * {
  float: none;
  padding-left: 0;
  padding-right: 0;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group > .form-control-label {
  order: 1;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  margin: 0 0 6px;
  padding: 0;
  color: #1d1d1f;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group > .form-control-comment {
  order: 2;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0 0 6px 12px;
  padding: 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.3;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group > .form-control-comment:empty {
  display: none;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group > .js-input-column,
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-group > [class*="offset-"] {
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-control {
  height: 48px;
  padding: 0 14px;
  background-color: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: none;
  color: #1d1d1f;
  font-size: 15px;
  letter-spacing: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-control::placeholder {
  color: #9aa1ad;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-control:hover {
  border-color: #9aa1ad;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-control:focus {
  border-color: #e73e24;
  box-shadow: 0 0 0 3px rgba(231, 62, 36, 0.15);
  outline: 0;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) select.form-control {
  padding-right: 36px;
}

/* Правило для імені й прізвища — лише поки покупець заповнює поле. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .js-input-column > .form-control-comment {
  display: none;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .js-input-column:focus-within > .form-control-comment,
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .has-error .js-input-column > .form-control-comment {
  display: block;
}

/* Приклад дати під полем. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .lps_birthday .form-control-comment {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

/* Пароль: кнопка «Показати» всередині рамки поля. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group {
  display: flex;
  width: 100%;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group .form-control {
  flex: 1 1 auto;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group-btn {
  display: flex;
  width: auto;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group-btn .btn {
  height: 48px;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: none;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group-btn .btn:hover {
  color: #e73e24;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group:focus-within .form-control,
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group:focus-within .input-group-btn .btn {
  border-color: #e73e24;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group:focus-within {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(231, 62, 36, 0.15);
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .input-group .form-control:focus {
  box-shadow: none;
}

/* Звертання: два «чипи» замість дрібних кружечків. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0 8px 0 0;
  padding: 0 16px 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .radio-inline:hover {
  border-color: #9aa1ad;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .radio-inline:has(input:checked) {
  border-color: #e73e24;
  background: #fff5f3;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .radio-inline:has(input:focus-visible) {
  outline: 2px solid #e73e24;
  outline-offset: 2px;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .radio-inline .custom-radio {
  margin: 0;
}

/* Розділи професійної форми. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .lpsb2bultimate-section > h2 {
  margin: 28px 0 16px;
  padding-top: 22px;
  border-top: 1px solid #eef0f3;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .lpsb2bultimate-section-info > h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Згода на розсилку. */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .lpsb2bultimate-section-additional {
  margin: 6px 0 0;
  padding: 0;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .lpsb2bultimate-section-additional .form-group {
  margin-bottom: 14px;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .lpsb2bultimate-section-additional .custom-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) .lpsb2bultimate-section-additional .custom-checkbox label > span {
  flex: 0 0 auto;
  margin-top: 1px;
}

/* --- кнопка --- */
:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-footer {
  margin: 22px 0 0;
  padding: 0;
  text-align: center;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-footer .form-control-submit {
  display: flex;
  float: none !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  background: #e73e24;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(231, 62, 36, 0.25);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-footer .form-control-submit:hover {
  background: #c5301b;
  box-shadow: 0 6px 16px rgba(197, 48, 27, 0.3);
}

:is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-footer .form-control-submit:focus-visible {
  outline: 3px solid rgba(231, 62, 36, 0.4);
  outline-offset: 2px;
}

/* ===================================================================== */
/* 3. Сторінка входу (/login)                                              */
/* ===================================================================== */

#authentication #content.page-content {
  display: flex;
  flex-direction: column;
  max-width: 520px;
}

#authentication #content.page-content > * {
  width: 100%;
}

/* Заголовок друкується під формою — показуємо його першим. */
#authentication #content .ge-login-head {
  order: -1;
  margin-bottom: 24px;
}

#authentication #content .ge-login-head .ge-reg-head__sub {
  margin-bottom: 0;
}

#authentication #content > .login-form,
#authentication #login-form,
#authentication #login-form > div:first-child {
  margin-top: 0;
  padding-top: 0;
}

#authentication #content > hr {
  display: none;
}

#authentication #login-form .forgot-password {
  margin: -6px 0 18px;
  text-align: right;
}

#authentication #login-form .forgot-password a {
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#authentication #login-form .forgot-password a:hover {
  color: #e73e24;
}

#authentication #login-form .form-footer {
  margin: 0;
  padding: 0;
}

#authentication #login-form #submit-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  background: #e73e24;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(231, 62, 36, 0.25);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#authentication #login-form #submit-login span {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

#authentication #login-form #submit-login:hover {
  background: #c5301b;
  box-shadow: 0 6px 16px rgba(197, 48, 27, 0.3);
}

#authentication #login-form #submit-login:focus-visible {
  outline: 3px solid rgba(231, 62, 36, 0.4);
  outline-offset: 2px;
}

/* «Забули пароль?» у рядку підпису пароля (переносить скрипт). */
#authentication #login-form .form-group > .form-control-comment.ge-login-forgot a {
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

#authentication #login-form .form-group > .form-control-comment.ge-login-forgot a:hover {
  color: #e73e24;
}

#authentication #login-form .forgot-password[hidden] {
  display: none;
}

/* Помилка входу (невірний пароль тощо). */
#authentication .login-form .help-block ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

#authentication .login-form .help-block .alert {
  margin: 0;
  padding: 12px 14px;
  background: #fdf0ee;
  border: 1px solid #f5c6be;
  border-radius: 10px;
  color: #a32219;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
}

/* Реєстрація — окремий блок під формою входу. */
#authentication #lpsb2bultimate_button_container {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid #eef0f3;
}

#authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_title {
  letter-spacing: 0;
}

#authentication #lpsb2bultimate_button_container .gevat-b2b-why {
  max-width: none;
}

/* Вхід на телефоні: кнопки реєстрації мають бути видні на першому екрані
   (iPhone 13 у Safari показує ~664 px висоти). Тут прибрано хлібні крихти й
   підзаголовок, поля трохи нижчі, а дві кнопки реєстрації стоять поруч. */
@media (max-width: 575px) {
  #authentication .breadcrumb {
    display: none;
  }

  #authentication #content.page-content {
    margin: 8px auto 24px;
    padding: 18px 16px;
  }

  #authentication #content .ge-login-head {
    margin-bottom: 12px;
  }

  #authentication #content .ge-login-head .ge-reg-head__title {
    margin: 0;
    font-size: 20px;
  }

  #authentication #content .ge-login-head .ge-reg-head__sub {
    display: none;
  }

  #authentication #login-form .form-group {
    margin-bottom: 12px;
  }

  #authentication #login-form .form-group > .form-control-label,
  #authentication #login-form .form-group > .form-control-comment {
    margin-bottom: 4px;
  }

  #authentication #login-form .form-control,
  #authentication #login-form .input-group-btn .btn {
    height: 46px;
  }

  #authentication #login-form .form-footer {
    margin-top: 16px;
  }

  #authentication #login-form #submit-login {
    height: 48px;
  }

  #authentication #lpsb2bultimate_button_container {
    margin-top: 14px;
    padding-top: 12px;
  }

  #authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_title {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  #authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Дві однакові кнопки поруч: іконка ліворуч, підпис у два рядки. */
  #authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_wrapper {
    align-items: stretch;
  }

  #authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_wrapper .lpsb2bultimate_button {
    display: flex;
    align-self: stretch;
    height: auto;
    margin: 0;
  }

  #authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_wrapper .lpsb2bultimate_button a.btn {
    flex: 1 1 auto;
    align-self: stretch;
    height: auto;
    gap: 6px;
    min-height: 52px;
    padding: 8px;
    font-size: 13px;
    line-height: 1.25;
  }

  #authentication #lpsb2bultimate_button_container .lpsb2bultimate_button_wrapper .lpsb2bultimate_button a.btn::before {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  #authentication #lpsb2bultimate_button_container .gevat-b2b-why {
    margin-top: 8px;
  }

  #authentication #lpsb2bultimate_button_container .gevat-b2b-why__btn {
    min-height: 40px;
    padding: 7px 12px;
    font-size: 13.5px;
  }
}

/* Плаваючі кнопки на сторінках входу й реєстрації на телефоні не мають
   закривати форму: кнопка чату — лише кружечок (підпис лишається для
   програм читання екрана), стрілки «вгору» немає. */
@media (max-width: 575px) {
  :is(#authentication, #module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b) .ge-retell-launcher {
    right: 10px;
    bottom: 10px;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
  }

  :is(#authentication, #module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b) .ge-retell-launcher__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  /* Форми короткі, стрілка «вгору» тут не потрібна; скрипт теми ставить
     їй display у самому елементі, тому !important. */
  :is(#authentication, #module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b) .tvbottom-to-top {
    display: none !important;
  }
}

/* --- телефон --- */
@media (max-width: 575px) {
  :is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) #content.page-content {
    margin: 4px auto 32px;
    padding: 24px 16px 20px;
    border-radius: 14px;
  }

  .ge-reg-head .ge-reg-head__title {
    font-size: 22px;
  }

  .ge-reg-head .ge-reg-head__sub {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .ge-reg-switch .ge-reg-switch__opt {
    flex-direction: column;
    gap: 4px;
    min-height: 56px;
    font-size: 13px;
  }

  /* 16px — щоб iPhone не збільшував сторінку при фокусі. */
  :is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) .form-control {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ge-reg-switch *,
  :is(#module-lpsb2bultimate-registrationb2c, #module-lpsb2bultimate-registrationb2b, #authentication) :is(.lpsb2bultimate-form, #login-form) * {
    transition: none !important;
  }
}
