.gm-popuphome-open {
  overflow: hidden;
}

.gm-popuphome {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.gm-popuphome--force-login .gm-popuphome__dialog {
  width: min(780px, 94vw);
  grid-template-columns: 1fr;
}

.gm-popuphome--force-login .gm-popuphome__left {
  display: none;
}

.gm-popuphome--force-login .gm-popuphome__right {
  width: 100%;
  max-width: 100%;
  background: #fff;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}

.gm-popuphome--force-login .gm-popuphome__right-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 24px 72px 24px 28px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 4px 4px 0 #0000000f;
}

.gm-popuphome--force-login .gm-popuphome__right-title-text {
  flex: 1;
}

.gm-popuphome--force-login .gm-popuphome__right-title .gm-popuphome__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gm-popuphome__right .gm-popuphome__link:focus,
.gm-popuphome__right .gm-popuphome__link:focus-visible {
  outline: none;
}

.gm-popuphome--force-login .gm-popuphome__view[data-gm-popuphome-view="login"] {
  padding: 40px 100px 40px;
  gap: 24px;
  position: relative;
  margin-top: 20px;
}

.gm-popuphome--force-login .gm-popuphome__right #login-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.gm-popuphome--force-login .gm-popuphome__right #login-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gm-popuphome--force-login .gm-popuphome__right #login-form .form-control,
.gm-popuphome--force-login .gm-popuphome__right #login-form input.form-control {
  height: 48px;
  border: 1px solid #d7d1df;
  border-radius: 6px;
  font-size: 16px;
}

.gm-popuphome--force-login
  .gm-popuphome__right
  #login-form
  .form-control::placeholder {
  color: #8f8f8f;
}

.gm-popuphome--force-login
  .gm-popuphome__right
  #login-form
  .input-group
  .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.gm-popuphome--force-login
  .gm-popuphome__right
  #login-form
  .input-group-append {
  display: flex;
  margin-left: 0;
}

.gm-popuphome--force-login
  .gm-popuphome__right
  #login-form
  .input-group-append
  .btn {
  height: 48px !important;
  min-width: 58px;
  border: 1px solid #cbc5d6;
  border-left: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  background: #fff;
  color: #8a8196;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.gm-popuphome--force-login .gm-popuphome__right #login-form .forgot-password {
  text-align: center;
}

.gm-popuphome--force-login .gm-popuphome__switch {
  font-size: 14px;
  gap: 20px;
}

.gm-popuphome__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 28, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.gm-popuphome__dialog {
  position: relative;
  width: min(800px, 94vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(12, 8, 18, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  z-index: 2;
}

/* OTP / Magic Link modal displayed from social-login inside the popup */
[data-gm-popuphome] #social-loginModal {
  position: fixed;
  inset: 0;
  z-index: 3;
}

[data-gm-popuphome] #social-loginModal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 28, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

[data-gm-popuphome] #social-loginModal.show::before {
  opacity: 1;
}

[data-gm-popuphome] #social-loginModal .modal-dialog {
  position: relative;
  z-index: 2;
}

.gm-popuphome__dialog--legal {
  grid-template-columns: 1fr;
}

.gm-popuphome__dialog--forgot {
  grid-template-columns: 1fr;
}

.gm-popuphome__dialog--register {
  grid-template-columns: 1fr;
  width: min(780px, 94vw);
}

.gm-popuphome__dialog--forgot .gm-popuphome__left {
  display: none;
}

.gm-popuphome__dialog--register .gm-popuphome__left {
  display: none;
}

.gm-popuphome__dialog--forgot .gm-popuphome__right {
  width: 100%;
  max-width: 100%;
  background: #fff;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}

.gm-popuphome__dialog--register .gm-popuphome__right {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}

.gm-popuphome__dialog--forgot .gm-popuphome__right-title,
.gm-popuphome__dialog--forgot
  .gm-popuphome__view:not([data-gm-popuphome-view="forgot"]) {
  display: none !important;
}

.gm-popuphome__dialog--register .gm-popuphome__right-title,
.gm-popuphome__dialog--register
  .gm-popuphome__view:not([data-gm-popuphome-view="register"]) {
  display: none !important;
}

.gm-popuphome__dialog--forgot
  .gm-popuphome__view[data-gm-popuphome-view="forgot"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gm-popuphome__dialog--register
  .gm-popuphome__view[data-gm-popuphome-view="register"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gm-popuphome__dialog--forgot .gm-popuphome__forgot-body {
  order: 3;
  padding: 0 100px 40px;
}

.gm-popuphome__dialog--register .gm-popuphome__register-body {
  order: 3;
  padding: 0 100px 40px;
  overflow-y: auto;
  max-height: calc(90vh - 190px);
}

.gm-popuphome__forgot-title {
  font-size: 16px;
  margin: 0 0 30px;
}

.gm-popuphome__forgot-text {
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 740px;
}

.gm-popuphome__forgot-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gm-popuphome__dialog--forgot .gm-popuphome__forgot-form .form-control {
  height: 56px;
  border: 1px solid #cfc9d9;
  font-size: 18px;
}

.gm-popuphome__dialog--forgot .gm-popuphome__forgot-form .btn-primary {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 300;
}

.gm-popuphome__dialog--legal .gm-popuphome__left {
  display: none;
}

.gm-popuphome__dialog--legal .gm-popuphome__right {
  width: 100%;
  max-width: 100%;
  background: #fff;
  padding: 0;
  gap: 0;
  justify-content: flex-start;
}

.gm-popuphome__dialog--legal .gm-popuphome__right-title,
.gm-popuphome__dialog--legal
  .gm-popuphome__view:not([data-gm-popuphome-view="legal"]) {
  display: none !important;
}

.gm-popuphome__dialog--legal
  .gm-popuphome__view[data-gm-popuphome-view="legal"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gm-popuphome__dialog--legal .gm-popuphome__legal-header,
.gm-popuphome__dialog--forgot .gm-popuphome__legal-header,
.gm-popuphome__dialog--register .gm-popuphome__legal-header {
  order: 1;
  position: relative;
  background: #fff;
}

.gm-popuphome__dialog--legal .gm-popuphome__legal-close,
.gm-popuphome__dialog--forgot .gm-popuphome__legal-close,
.gm-popuphome__dialog--register .gm-popuphome__legal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.gm-popuphome__dialog--legal
  .gm-popuphome__view[data-gm-popuphome-view="legal"]
  .gm-popuphome__panel-title,
.gm-popuphome__dialog--forgot
  .gm-popuphome__view[data-gm-popuphome-view="forgot"]
  .gm-popuphome__panel-title,
.gm-popuphome__dialog--register
  .gm-popuphome__view[data-gm-popuphome-view="register"]
  .gm-popuphome__panel-title {
  margin: 0;
  padding: 24px 72px 24px 28px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  box-shadow: 0 4px 4px 0 #0000000f;
}

.gm-popuphome__dialog--legal
  .gm-popuphome__view[data-gm-popuphome-view="legal"]
  .gm-popuphome__switch,
.gm-popuphome__dialog--forgot
  .gm-popuphome__view[data-gm-popuphome-view="forgot"]
  .gm-popuphome__switch,
.gm-popuphome__dialog--register
  .gm-popuphome__view[data-gm-popuphome-view="register"]
  .gm-popuphome__switch {
  order: 2;
}

.gm-popuphome__dialog--legal
  .gm-popuphome__view[data-gm-popuphome-view="legal"]
  .gm-popuphome__link,
.gm-popuphome__dialog--forgot
  .gm-popuphome__view[data-gm-popuphome-view="forgot"]
  .gm-popuphome__link,
.gm-popuphome__dialog
  .gm-popuphome__view[data-gm-popuphome-view="login"]
  .gm-popuphome__link,
.gm-popuphome__dialog--register
  .gm-popuphome__view[data-gm-popuphome-view="register"]
  .gm-popuphome__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.gm-popuphome__dialog
  .gm-popuphome__view
  .gm-popuphome__link.gm-popuphome__btn-back {
  font-weight: 700;
  text-decoration: none;
}

.gm-popuphome__dialog
  .gm-popuphome__view[data-gm-popuphome-view="login"]
  .gm-popuphome__link[data-gm-popuphome-history-back] {
  position: absolute;
  top: 7px;
  left: 0;
}

.gm-popuphome__back-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  margin-left: 15px;
}

.gm-popuphome__dialog--legal
  .gm-popuphome__view[data-gm-popuphome-view="legal"]
  .gm-popuphome__legal-content {
  order: 3;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 28px;
  max-height: 563px;
}

.gm-popuphome__dialog--register #customer-form {
  width: 100%;
}

.gm-popuphome__dialog--register #customer-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.gm-popuphome__dialog--register #customer-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.gm-popuphome__dialog--register #customer-form .form-group {
  margin: 0;
}

.gm-popuphome__dialog--register #customer-form .customer-form-id_gender,
.gm-popuphome__dialog--register #customer-form .customer-form-newsletter,
.gm-popuphome__dialog--register #customer-form .customer-form-optin,
.gm-popuphome__dialog--register #customer-form .customer-form-psgdpr,
.gm-popuphome__dialog--register #customer-form .customer-form-customer_privacy,
.gm-popuphome__dialog--register #customer-form .customer-form-date_add {
  grid-column: 1 / -1;
}

.gm-popuphome__dialog--register #customer-form .customer-form-id_gender {
  grid-column: 1 / -1;
  grid-row: 1;
}

.gm-popuphome__dialog--register #customer-form .customer-form-firstname {
  grid-column: 1;
  grid-row: 2;
}

.gm-popuphome__dialog--register #customer-form .customer-form-lastname {
  grid-column: 2;
  grid-row: 2;
}

.gm-popuphome__dialog--register #customer-form .customer-form-email {
  grid-column: 1;
  grid-row: 3;
}

.gm-popuphome__dialog--register #customer-form .customer-form-password,
.gm-popuphome__dialog--register #customer-form .customer-form-new_password {
  grid-column: 2;
  grid-row: 3;
}

.gm-popuphome__dialog--register #customer-form .customer-form-birthday,
.gm-popuphome__dialog--register #customer-form .customer-form-birthdate {
  grid-column: 1;
  grid-row: 4;
}

.gm-popuphome__dialog--register #customer-form .customer-form-referral_code,
.gm-popuphome__dialog--register #customer-form .customer-form-sponsor_code,
.gm-popuphome__dialog--register #customer-form .customer-form-sponsorship_code,
.gm-popuphome__dialog--register #customer-form .customer-form-parrainage,
.gm-popuphome__dialog--register #customer-form .gm-popuphome__field-referral {
  grid-column: 2;
  grid-row: 4;
}

.gm-popuphome__dialog--register #customer-form .customer-form-newsletter {
  grid-column: 1 / -1;
  grid-row: 5;
}

.gm-popuphome__dialog--register #customer-form .customer-form-optin {
  grid-column: 1 / -1;
  grid-row: 6;
}

.gm-popuphome__dialog--register #customer-form .customer-form-psgdpr,
.gm-popuphome__dialog--register #customer-form .customer-form-customer_privacy {
  grid-column: 1 / -1;
  grid-row: 7;
}

.gm-popuphome__dialog--register #customer-form .customer-form-id_gender .row {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 26px;
}

.gm-popuphome__dialog--register
  #customer-form
  .customer-form-id_gender
  .col-form-label {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

.gm-popuphome__dialog--register
  #customer-form
  .customer-form-id_gender
  .col-12 {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 26px;
  padding: 0;
  width: auto;
  max-width: none;
}

.gm-popuphome__dialog--register
  #customer-form
  .customer-form-id_gender
  .custom-control-label {
  font-size: 16px;
}

.gm-popuphome__dialog--register #customer-form .form-control,
.gm-popuphome__dialog--register #customer-form .input-group .form-control,
.gm-popuphome__dialog--register #customer-form input.form-control,
.gm-popuphome__dialog--register #customer-form select.form-control {
  height: 58px;
  border: 1px solid #cbc5d6;
  border-radius: 10px;
  font-size: 19px;
  background: #fff;
}

.gm-popuphome__dialog--register #customer-form .form-control::placeholder {
  color: #8f8f8f;
}

.gm-popuphome__dialog--register #customer-form .form-control-comment {
  font-size: 12px;
  color: #7f7a89;
  margin-top: 6px;
}

.gm-popuphome__dialog--register #customer-form .input-group-append .btn {
  border-radius: 0 6px 6px 0 !important;
  height: 58px;
}

.gm-popuphome__dialog--register
  .gm-popuphome__right
  #customer-form
  .customer-form-password
  .input-group
  .form-control,
.gm-popuphome__dialog--register
  .gm-popuphome__right
  #customer-form
  .customer-form-new_password
  .input-group
  .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.gm-popuphome__dialog--register
  #customer-form
  .customer-form-password
  .input-group-append,
.gm-popuphome__dialog--register
  #customer-form
  .customer-form-new_password
  .input-group-append {
  display: flex;
  margin-left: 0;
}

.gm-popuphome__dialog--register
  #customer-form
  .customer-form-password
  .input-group-append
  .btn,
.gm-popuphome__dialog--register
  #customer-form
  .customer-form-new_password
  .input-group-append
  .btn {
  height: 48px !important;
  min-width: 58px;
  border: 1px solid #cbc5d6;
  border-left: 0 !important;
  border-radius: 0 6px 6px 0 !important;
  background: #fff;
  color: #8a8196;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.gm-popuphome__dialog--register #customer-form .custom-switch {
  padding-left: 0;
}

.gm-popuphome__dialog--register
  #customer-form
  .custom-switch
  .custom-control-label {
  font-size: 14px;
  line-height: 1.35;
  padding-left: 72px;
  min-height: 42px;
}

.gm-popuphome__dialog--register
  #customer-form
  .custom-switch
  .custom-control-label::before {
  left: 0;
  top: 3px;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #cfc9d9;
  background: #fff;
}

.gm-popuphome__dialog--register
  #customer-form
  .custom-switch
  .custom-control-label::after {
  left: 2px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #6f637f;
}

.gm-popuphome__dialog--register
  #customer-form
  .custom-switch
  .custom-control-input:checked
  ~ .custom-control-label::before {
  border-color: #2f0d59;
  background: #2f0d59;
}

.gm-popuphome__dialog--register
  #customer-form
  .custom-switch
  .custom-control-input:checked
  ~ .custom-control-label::after {
  background: #fff;
}

.gm-popuphome__dialog--register #customer-form .form-footer {
  margin-top: 10px;
}

.gm-popuphome__dialog--register #customer-form .form-footer .btn-primary {
  width: 100%;
}

.gm-popuphome__dialog--register .gm-popuphome__register-switch {
  margin-top: 20px;
  font-size: 14px;
  gap: 20px;
}

.gm-popuphome__dialog--register
  .gm-popuphome__register-switch
  .gm-popuphome__link {
  font-size: 18px;
  font-weight: 500;
}

.gm-popuphome__left,
.gm-popuphome__right {
  padding: 40px;
}

.gm-popuphome__left {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  text-align: center;
  border-right: 1px solid #efe9f5;
}

.gm-popuphome__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-popuphome__brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gm-popuphome__logo {
  max-width: 210px;
  max-height: 80px;
  height: auto;
}

.gm-popuphome__warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  position: relative;
}

.gm-popuphome__warning-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #ff4a4a;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  background: #ffffff;
}

.gm-popuphome__warning-icon::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 1px;
  background: #ff4a4a;
  top: 10px;
  left: -1px;
  transform: rotate(45deg);
}

.gm-popuphome__subtitle {
  margin: -10px 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.gm-popuphome__label {
  margin: 0 0 20px;
  font-size: 15px;
  color: #8d8797;
}

.gm-popuphome__label.is-error {
  color: #d84343;
}

.gm-popuphome__age-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gm-popuphome__age-fields {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.gm-popuphome__age-fields input {
  width: 58px;
  height: 51px;
  border: 1px solid #d7d1df;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}

.gm-popuphome__age-fields input[name="year"] {
  width: 68px;
}

.gm-popuphome__age-fields .btn {
  height: 51px;
  border-radius: 5px;
  background: #f47c20;
  border-color: #f47c20;
}

.gm-popuphome__legal {
  font-size: 12px;
  margin-top: 25px;
}

.gm-popuphome__legal a {
  text-decoration: underline;
}

.gm-popuphome__right {
  background: #f7f5fa;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.gm-popuphome__right-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 8px 0;
}

.gm-popuphome__login-intro {
  display: none;
}

.gm-popuphome--force-login .gm-popuphome__login-intro {
  display: block;
}

.gm-popuphome__login-intro {
  margin: -10px 0;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
}

.gm-popuphome__tabs {
  display: flex;
  gap: 12px;
}

.gm-popuphome__tab {
  flex: 1;
  border: 1px solid #dcd3e8;
  background: #fff;
  color: #5c516d;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.gm-popuphome__tab.is-active {
  background: #4c2b88;
  color: #fff;
  border-color: #4c2b88;
}

.gm-popuphome__panel-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.gm-popuphome__view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gm-popuphome__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gm-popuphome__errors {
  display: none;
  color: #fc1609;
  margin: 0;
}

.gm-popuphome__errors.is-visible {
  display: block;
}

.gm-popuphome__switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #200b3e;
}

.gm-popuphome__link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  color: #200b3e;
}

.gm-popuphome__right
  .input-group:not(.has-validation)
  > .form-control:not(#login-form-password),
.gm-popuphome__right .form-control,
.gm-popuphome__right input.form-control:not(#login-form-password) {
  border: 1px solid #d7d1df;
  border-radius: 6px;
  height: 48px;
  font-size: 15px;
}

.gm-popuphome__right .login-form-password .input-group .btn:focus {
  box-shadow: none;
}

.gm-popuphome__right .form-control:focus,
.gm-popuphome__right input.form-control:focus {
  border-color: #4c2b88;
  box-shadow: 0 0 0 2px rgba(76, 43, 136, 0.15);
}

.gm-popuphome__right .gm-popuphome__is-invalid,
.gm-popuphome__right input.gm-popuphome__is-invalid,
.gm-popuphome__right select.gm-popuphome__is-invalid,
.gm-popuphome__right textarea.gm-popuphome__is-invalid {
  border-color: #fc1609 !important;
  box-shadow: 0 0 0 2px rgba(252, 22, 9, 0.12);
}

.gm-popuphome__right
  .gm-popuphome__is-invalid-group
  .custom-control-label::before {
  border-color: #fc1609 !important;
  box-shadow: 0 0 0 2px rgba(252, 22, 9, 0.12);
}

.gm-popuphome__right
  .input-group
  .input-group-append
  .btn.gm-popuphome__is-invalid {
  box-shadow:
    0 -2px 0 0 rgba(252, 22, 9, 0.12),
    2px 0 0 0 rgba(252, 22, 9, 0.12),
    0 2px 0 0 rgba(252, 22, 9, 0.12);
}

.gm-popuphome__right .btn-primary {
  background: #f47c20;
  border-color: #f47c20;
  border-radius: 5px;
  height: 52px;
}

.gm-popuphome__right .forgot-password a {
  color: #f47c20;
  text-decoration: none;
}

.gm-popuphome__right .forgot-password {
  text-align: center;
}

.gm-popuphome__right #submit-login {
  width: 100%;
}

.gm-popuphome__right #login-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gm-popuphome__dialog:not(.gm-popuphome__dialog--register)
  .gm-popuphome__right
  #customer-form
  .form-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-popuphome__right #login-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gm-popuphome__right #login-form .form-row {
  order: 1;
}

.gm-popuphome__right #login-form .form-footer {
  order: 3;
}

.gm-popuphome__right #login-form .forgot-password {
  order: 4;
}

.gm-popuphome__right #login-form .forgot-password a {
  font-weight: 500;
}

.gm-popuphome__switch {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.gm-popuphome__right .form-control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gm-popuphome__right .form-group {
  position: relative;
  margin: 0;
}

.gm-popuphome__right .input-group .form-control {
  border-radius: 6px;
}

.gm-popuphome__right .input-group-append .btn {
  border-radius: 0 6px 6px 0 !important;
  border: 1px solid #d7d1df;
  border-left: 0;
  background: #fff;
  color: #8a8196;
}

.gm-popuphome__right .form-control-comment {
  font-size: 13px;
  color: #9b95a6;
  margin-top: 6px;
  font-weight: normal;
}

.gm-popuphome__field-error {
  display: block;
  margin-top: 6px;
  color: #fc1609 !important;
  font-size: 12px;
  line-height: 1.35;
}

.gm-popuphome__divider {
  height: 1px;
  background: #e5dff0;
}

.gm-popuphome__social-title {
  text-align: center;
  font-weight: 600;
}

.gm-popuphome__social .title {
  display: none;
}

.gm-popuphome__social .lvd-social-connect-buttons-block {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

[data-gm-popuphome] .gm-popuphome__social .lvd-social-connect-button,
[data-gm-popuphome]
  .gm-popuphome__social
  .lvd-social-connect-buttons-block:not(.lvd-social-connect-small-buttons)
  .lvd-social-connect-button,
[data-gm-popuphome]
  .gm-popuphome__social
  .lvd-social-connect-buttons-block.lvd-social-connect-small-buttons
  .lvd-social-connect-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 56px !important;
  flex-basis: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  width: 56px !important;
  height: 56px !important;
  border: 1px solid #e3dcec;
  border-radius: 8px;
  padding: 0 !important;
  box-sizing: border-box;
}

.gm-popuphome__social .lvd-social-connect-button:focus,
.gm-popuphome__social .lvd-social-connect-button:hover {
  border-color: #cbbfe0;
  box-shadow: 0 6px 16px rgba(43, 34, 54, 0.08);
}

.gm-popuphome__social .lvd-social-connect-button-text {
  display: none;
}

.gm-popuphome__social .lvd-social-connect-button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

[data-gm-popuphome]
  .gm-popuphome__social
  .lvd-social-connect-buttons-block.lvd-social-connect-small-buttons,
[data-gm-popuphome]
  .gm-popuphome__social
  .lvd-social-connect-buttons-block:not(.lvd-social-connect-small-buttons) {
  width: auto !important;
  max-width: none !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  flex-direction: row !important;
}

.gm-popuphome__social
  .lvd-social-connect-buttons-block
  .lvd-social-connect-item-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  left: auto !important;
  top: 14px !important;
}

.gm-popuphome__social .lvd-social-connect-button-text {
  display: none;
}

.gm-popuphome__social .lvd-social-connect-button-inner > div {
  display: none;
}

.gm-popuphome__social .lvd-social-connect-button-inner img + div {
  display: none !important;
}

.gm-popuphome__iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 12px;
  background: #fff;
}

.gm-popuphome__legal-content {
  max-height: 563px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3dcec;
  border-radius: 10px;
  padding: 16px;
}

.gm-popuphome__legal-content h1,
.gm-popuphome__legal-content h2,
.gm-popuphome__legal-content h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .gm-popuphome__dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow: auto;
  }

  .gm-popuphome__left,
  .gm-popuphome__right {
    padding: 24px;
  }

  .gm-popuphome__age-fields {
    flex-wrap: wrap;
  }

  .gm-popuphome__age-fields .btn {
    width: 100%;
  }

  .gm-popuphome__dialog--register .gm-popuphome__register-body,
  .gm-popuphome__dialog--forgot .gm-popuphome__forgot-body {
    padding: 0 24px 28px;
  }

  .gm-popuphome__dialog--register #customer-form .form-row {
    grid-template-columns: 1fr;
  }

  .gm-popuphome__dialog--register #customer-form .form-group {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .gm-popuphome--force-login .gm-popuphome__right-title {
    padding: 24px 24px 20px;
  }

  .gm-popuphome--force-login
    .gm-popuphome__view[data-gm-popuphome-view="login"] {
    padding: 40px 24px 28px;
  }

  .gm-popuphome--force-login .gm-popuphome__right #login-form .form-control,
  .gm-popuphome--force-login
    .gm-popuphome__right
    #login-form
    input.form-control {
    font-size: 17px;
  }

  .gm-popuphome--force-login
    .gm-popuphome__right
    #login-form
    .form-footer
    .btn-primary {
    height: 52px;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .gm-popuphome {
    padding: 12px;
  }

  .gm-popuphome__title {
    font-size: 22px;
  }
}

@media (max-height: 680px) {
  .gm-popuphome__dialog {
    overflow: auto;
  }

  .gm-popuphome__left,
  .gm-popuphome__right {
    padding-top: 10px;
    padding-bottom: 15px;
  }
}

@media (max-height: 630px) {
  .gm-popuphome__right {
    gap: 10px;
  }

  .gm-popuphome__right #login-form fieldset {
    gap: 10px;
  }
}

@media (max-height: 600px) {
  .gm-popuphome__view {
    gap: 10px;
  }
}

@media (max-height: 530px) {
  .gm-popuphome__switch {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (max-height: 500px) {
  .gm-popuphome__dialog {
    max-height: 98vh;
  }
}

@media (max-height: 460px) {
  [data-gm-popuphome] .gm-popuphome__social .lvd-social-connect-button,
  [data-gm-popuphome]
    .gm-popuphome__social
    .lvd-social-connect-buttons-block:not(.lvd-social-connect-small-buttons)
    .lvd-social-connect-button,
  [data-gm-popuphome]
    .gm-popuphome__social
    .lvd-social-connect-buttons-block.lvd-social-connect-small-buttons
    .lvd-social-connect-button {
    min-width: 45px !important;
    max-width: 45px !important;
    width: 45px !important;
    height: 45px !important;
  }

  .gm-popuphome__social
    .lvd-social-connect-buttons-block
    .lvd-social-connect-item-icon {
    top: 8px !important;
  }

  .gm-popuphome__right #submit-login {
    height: 40px;
  }

  .gm-popuphome__right #login-form .forgot-password a {
    font-size: 14px;
  }

  .gm-popuphome__right-title {
    margin: 0;
  }

  .gm-popuphome__left,
  .gm-popuphome__right {
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 5px;
  }
}

.gm-popuphome__age-label--desktop,
.gm-popuphome__age-form--desktop {
  display: block;
}

.gm-popuphome__legal--mobile,
.gm-popuphome__age-mobile {
  display: none;
}

@media (max-width: 767px) {
  .gm-popuphome__subtitle {
    margin-bottom: 0;
  }

  .gm-popuphome__right {
    padding-top: 0;
    gap: 0;
  }

  .gm-popuphome__legal {
    margin: 0;
  }

  .popuphome__age {
    padding-bottom: 20px;
  }

  .gm-popuphome__legal--desktop,
  .gm-popuphome__age-label--desktop,
  .gm-popuphome__age-form--desktop {
    display: none;
  }

  .gm-popuphome__legal--mobile {
    padding-top: 20px;
    padding-bottom: 0;
    white-space: nowrap;
  }

  .gm-popuphome__legal--mobile,
  .gm-popuphome__age-mobile {
    display: block;
  }

  .gm-popuphome__age-mobile-title {
    color: var(--LVD-LVD-color-LVD-grey_dark, #8a8a8a);
    text-align: center;
    font-family: Sarabun;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .gm-popuphome__age-mobile-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gm-popuphome__age-mobile-buttons:first-child {
    margin-right: 17px;
  }

  .gm-popuphome__age-mobile-yes {
    display: flex;
    padding: 15px 12px;
    justify-content: center;
    align-items: center;
    gap: 9.195px;
    align-self: stretch;
    border-radius: 5px;
    background: var(--LVD-LVD-color-LVD-orange, #fd7325);
    display: flex;
    width: 68px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22.068px;
    color: white;
  }

  .gm-popuphome__age-mobile-yes:hover {
    background-color: #fd8641;
  }

  .gm-popuphome__age-mobile-no {
    display: flex;
    display: flex;
    width: 68px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22.068px;
    padding: 15px 12px;
    justify-content: center;
    align-items: center;
    gap: 9.195px;
    align-self: stretch;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: opacity ease-in-out 0.3s;
    -webkit-transition: opacity ease-in-out 0.3s;
    -moz-transition: opacity ease-in-out 0.3s;
    -ms-transition: opacity ease-in-out 0.3s;
    -o-transition: opacity ease-in-out 0.3s;
  }

  .gm-popuphome__age-mobile-no:hover {
    opacity: 0.8;
  }

  [data-gm-popuphome-errors="age-mobile"] {
    font-size: 15px;
  }
}

/* =====================================================================
   Anti-zoom : empêche le zoom automatique des navigateurs mobiles
   (iOS Safari, Chrome Android…) lors du focus sur un champ de saisie.
   La règle s'applique aussi au desktop pour neutraliser tout zoom
   accidentel via touch/trackpad sur la popup.
   ===================================================================== */
/* touch-action s'applique partout pour éviter le double-tap-to-zoom */
.gm-popuphome input,
.gm-popuphome input[type="text"],
.gm-popuphome input[type="email"],
.gm-popuphome input[type="password"],
.gm-popuphome input[type="number"],
.gm-popuphome input[type="search"],
.gm-popuphome input[type="tel"],
.gm-popuphome select,
.gm-popuphome textarea {
  touch-action: manipulation; /* désactive le double-tap-to-zoom sur desktop tactile */
}

/* font-size min 16px uniquement sur mobile pour éviter le zoom iOS au focus,
   sans écraser les styles de taille existants sur desktop */
@media (max-width: 767px) {
  .gm-popuphome input,
  .gm-popuphome input[type="text"],
  .gm-popuphome input[type="email"],
  .gm-popuphome input[type="password"],
  .gm-popuphome input[type="number"],
  .gm-popuphome input[type="search"],
  .gm-popuphome input[type="tel"],
  .gm-popuphome select,
  .gm-popuphome textarea {
    font-size: max(16px, 1em); /* min 16px = pas de zoom sur focus iOS */
  }
}
