/* WindMade buyer auth modals — clean split layout */
.wm-auth-modal.modal {
  --wm-auth-max: min(780px, calc(100vw - 1.5rem));
  --wm-auth-h: calc(100vh - 4rem);
  overflow-y: auto;
}

.wm-auth-modal .modal-dialog {
  width: var(--wm-auth-max);
  max-width: var(--wm-auth-max);
  margin: 2rem auto;
  transform: none !important;
}

.wm-auth-modal.show .modal-dialog {
  transform: none !important;
}

.wm-auth-modal .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  max-height: var(--wm-auth-h);
  box-shadow: none;
}

.wm-auth-modal .modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: auto;
  height: auto;
  padding: 0.7rem 0.8rem;
  margin: 0;
  border: 0;
  background: transparent;
}

.wm-auth-modal .modal-body {
  padding: 0;
  overflow: hidden;
  max-height: var(--wm-auth-h);
}

.wm-auth-modal__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-height: var(--wm-auth-h);
}

.wm-auth-modal__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.35rem 1.1rem;
  background: #f1f5f2;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 0;
  overflow: hidden;
}

.wm-auth-modal__brand {
  font-family: var(--wm-font-display, Manrope, system-ui, sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14201a;
  margin: 0;
}

.wm-auth-modal__art {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.wm-auth-modal__art img {
  width: 100%;
  max-width: 200px;
  max-height: 160px;
  height: auto;
  object-fit: contain;
}

.wm-auth-modal__mfr {
  display: block;
  flex: 0 0 auto;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  color: inherit;
}

.wm-auth-modal__mfr:hover {
  border-color: #1a6b4a;
}

.wm-auth-modal__mfr-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c6b63;
  margin-bottom: 0.15rem;
}

.wm-auth-modal__mfr-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #14201a;
}

.wm-auth-modal__mfr-title i {
  color: #1a6b4a;
}

.wm-auth-modal__panel {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.25rem;
  background: #fff;
  min-height: 0;
  overflow: auto;
  max-height: var(--wm-auth-h);
}

.wm-auth-modal__logo {
  max-height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
}

.wm-auth-modal__title {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14201a;
  text-transform: none !important;
}

.wm-auth-modal__lead {
  margin: 0 0 0.9rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #5c6b63;
}

.wm-auth-modal__lead .text-primary {
  cursor: pointer;
}

.wm-auth-modal__form .form-group,
.wm-auth-modal__form .mb-4 {
  margin-bottom: 0.7rem !important;
}

.wm-auth-modal__form label {
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wm-auth-modal__scroll {
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding-inline-end: 0.2rem;
  margin-bottom: 0.7rem;
}

.wm-auth-modal__mfr-mobile {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  color: #5c6b63;
}

.wm-auth-modal__mfr-mobile a {
  font-weight: 700;
  text-decoration: none;
}

.wm-auth-modal .social-media-login-btn {
  width: 100%;
}

.wm-auth-social {
  margin-bottom: 0.35rem;
}

.wm-auth-social__label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5c6b63;
  text-align: center;
}

.wm-auth-social__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wm-auth-social__divider {
  height: 1px;
  margin: 1.05rem 0 1rem;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 32, 26, 0) 0%,
    rgba(20, 32, 26, 0.12) 18%,
    rgba(20, 32, 26, 0.18) 50%,
    rgba(20, 32, 26, 0.12) 82%,
    rgba(20, 32, 26, 0) 100%
  );
}

.wm-auth-optional {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.8rem 0.7rem;
  background: #f8faf8;
}

.wm-auth-optional > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2f3d36;
  user-select: none;
}

.wm-auth-optional > summary::-webkit-details-marker {
  display: none;
}

.wm-auth-optional > summary::after {
  content: "+";
  float: right;
  color: #5c6b63;
  font-weight: 700;
}

.wm-auth-optional[open] > summary::after {
  content: "−";
}

@media (max-width: 767.98px) {
  .wm-auth-modal .modal-dialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: 0.75rem auto;
  }

  .wm-auth-modal__grid {
    grid-template-columns: 1fr;
  }

  .wm-auth-modal__aside {
    display: none;
  }

  .wm-auth-modal__panel {
    padding: 2.1rem 1.1rem 1.1rem;
  }

  .wm-auth-modal__mfr-mobile {
    display: block;
  }

  .wm-auth-modal__scroll {
    max-height: min(52vh, 380px);
  }
}
