/*
 * Commerce Auth Login Modal Styles
 * Guest login modal shell, phone/OTP/profile steps, and responsive modal behavior.
 */

/* Modal shell, backdrop, panel, and shared form controls. */
.commerce-auth-modal-open {
  overflow: hidden;
}

.commerce-auth-modal[hidden] {
  display: none !important;
}

.commerce-auth-modal {
  all: initial;
  --commerce-auth-accent: #0f766e;
  --commerce-auth-accent-soft: #d9f4ee;
  --commerce-auth-ink: #172033;
  --commerce-auth-muted: #617086;
  --commerce-auth-line: rgba(23, 32, 51, 0.1);
  --commerce-auth-surface: #fffdf8;
  --commerce-auth-surface-strong: #ffffff;
  --commerce-auth-font-sans:
    "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  --commerce-auth-font-display: "Sora", "Trebuchet MS", sans-serif;
  --commerce-auth-panel: linear-gradient(
    155deg,
    #0f766e 0%,
    #115e59 48%,
    #1f2937 100%
  );
  font-family: var(--commerce-auth-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
  overscroll-behavior: contain;
}

.commerce-auth-modal *,
.commerce-auth-modal *::before,
.commerce-auth-modal *::after {
  box-sizing: border-box;
  max-width: none;
}

.commerce-auth-modal,
.commerce-auth-modal button,
.commerce-auth-modal input,
.commerce-auth-modal textarea,
.commerce-auth-modal select,
.commerce-auth-modal label,
.commerce-auth-modal p,
.commerce-auth-modal h1,
.commerce-auth-modal h2,
.commerce-auth-modal h3,
.commerce-auth-modal h4,
.commerce-auth-modal h5,
.commerce-auth-modal h6,
.commerce-auth-modal span,
.commerce-auth-modal strong,
.commerce-auth-modal small {
  font-family: var(--commerce-auth-font-sans);
}

.commerce-auth-modal h1,
.commerce-auth-modal h2,
.commerce-auth-modal h3,
.commerce-auth-modal h4,
.commerce-auth-modal h5,
.commerce-auth-modal h6 {
  font-weight: 700;
  line-height: 1.2;
}

.commerce-auth-modal p,
.commerce-auth-modal label,
.commerce-auth-modal button,
.commerce-auth-modal input,
.commerce-auth-modal textarea,
.commerce-auth-modal select,
.commerce-auth-modal small,
.commerce-auth-modal span {
  line-height: inherit;
}

.commerce-auth-modal :where(button, input, textarea, select) {
  margin: 0;
  font: inherit;
  color: inherit;
  text-transform: none;
  text-indent: 0;
  text-shadow: none;
  letter-spacing: normal;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.commerce-auth-modal :where(a) {
  color: inherit;
  text-decoration: none;
}

.commerce-auth-modal :where(ul, ol, li) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.commerce-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(4px);
}

.commerce-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 950px);
  height: min(550px, calc(100vh - 48px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: var(--commerce-auth-surface);
  box-shadow: 0 28px 100px rgba(15, 23, 42, 0.32);
  overflow: hidden;
  contain: layout paint style;
}

.commerce-auth-modal__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.08fr);
  height: 100%;
}

.commerce-auth-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  font-family: var(--commerce-auth-font-sans);
  font-weight: 700;
  line-height: 1;
}

.commerce-auth-modal .commerce-auth-modal__close {
  background: #0f766e !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}

.commerce-auth-modal__close span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.commerce-auth-modal__close:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.commerce-auth-modal__panel {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--commerce-auth-panel);
  color: #ffffff;
  overflow-y: auto;
}

.commerce-auth-modal__brand {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.commerce-auth-modal__brand-logo {
  display: block;
  width: auto;
  max-height: 54px;
  object-fit: contain;
  margin: auto;
}

.commerce-auth-modal__brand-copy {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  width: max-content;
}

.commerce-auth-modal__powered-by {
  font-family: var(--commerce-auth-font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1;
}

.commerce-auth-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: var(--commerce-auth-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1;
}

.commerce-auth-modal__panel-title {
  margin: 0;
  font-family: var(--commerce-auth-font-display);
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: center;
}

.commerce-auth-modal .commerce-auth-modal__panel,
.commerce-auth-modal .commerce-auth-modal__panel h1,
.commerce-auth-modal .commerce-auth-modal__panel h2,
.commerce-auth-modal .commerce-auth-modal__panel h3,
.commerce-auth-modal .commerce-auth-modal__panel h4,
.commerce-auth-modal .commerce-auth-modal__panel p,
.commerce-auth-modal .commerce-auth-modal__panel span,
.commerce-auth-modal .commerce-auth-modal__panel strong {
  color: #ffffff !important;
}

.commerce-auth-modal .commerce-auth-modal__powered-by {
  color: rgba(255, 255, 255, 0.68) !important;
}

.commerce-auth-modal .commerce-auth-modal__panel-copy {
  color: rgba(255, 255, 255, 0.8) !important;
}

.commerce-auth-modal__panel-copy {
  margin: 20px 0 0;
  max-width: 34ch;
  font-family: var(--commerce-auth-font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.commerce-auth-modal__panel-carousel {
  margin-top: auto;
}


/* Modal content continuation, step UI, and mobile adaptations. */
.commerce-auth-modal__panel-cards {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.commerce-auth-modal__panel-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.commerce-auth-modal__panel-card-copy {
  display: grid;
}

.commerce-auth-modal__panel-card h4 {
  margin: 0 0 4px;
  font-family: var(--commerce-auth-font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.commerce-auth-modal__panel-card p {
  margin: 0;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.commerce-auth-modal__panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--commerce-auth-font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.commerce-auth-modal__panel-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.commerce-auth-modal__panel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.commerce-auth-modal__panel-dot.is-active {
  background: #ffffff;
  transform: scale(1.1);
}

.commerce-auth-modal__content {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background:
    radial-gradient(
      circle at top right,
      rgba(15, 118, 110, 0.08),
      transparent 32%
    ),
    linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  overflow-y: auto;
}

.commerce-auth-flow {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.commerce-auth-flow__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 64px;
  margin-bottom: 26px;
}

.commerce-auth-flow__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--commerce-auth-ink);
  cursor: pointer;
}

.commerce-auth-flow__step-indicator {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f8f6;
  font-family: var(--commerce-auth-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--commerce-auth-accent);
}

.commerce-auth-flow__notice {
  margin: 0 0 18px;
  padding: 5px 10px;
  border: 1px solid rgba(153, 27, 27, 0.12);
  border-radius: 6px;
  background: #fff4f4;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  line-height: 1.2;
  color: #991b1b;
}

.commerce-auth-flow__notice[data-state="success"] {
  border-color: rgba(22, 163, 74, 0.2);
  background: #f0fdf4;
  color: #15803d;
}

.commerce-auth-step {
  display: none;
  animation: commerceAuthFade 0.24s ease;
}

.commerce-auth-step.is-active {
  display: block;
}

.commerce-auth-step__header {
  margin-bottom: 26px;
}

.commerce-auth-step__title {
  margin: 0;
  font-family: var(--commerce-auth-font-display);
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--commerce-auth-ink);
}

.commerce-auth-step__description {
  margin: 8px 0;
  max-width: 44ch;
  font-family: var(--commerce-auth-font-sans);
  font-size: 15px;
  line-height: 1;
  color: var(--commerce-auth-muted);
}

.commerce-auth-otp-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  color: inherit;
  font-weight: inherit;
}

.commerce-auth-otp-channel__label {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: inherit;
}

.commerce-auth-otp-channel__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

.commerce-auth-inline-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--commerce-auth-accent);
  cursor: pointer;
}

.commerce-auth-step__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fdf2d9;
  font-family: var(--commerce-auth-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #925d00;
}

.commerce-auth-form {
  display: grid;
  gap: 20px;
}

.commerce-auth-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.commerce-auth-field {
  display: grid;
}

.commerce-auth-field__label,
.commerce-auth-country__search-label {
  font-family: var(--commerce-auth-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: gray;
  margin: 0 0 0 2px;
}

.commerce-auth-field__hint {
  margin: 0;
  font-family: var(--commerce-auth-font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--commerce-auth-muted);
}

.commerce-auth-field__hint--firebase {
  margin-top: -4px;
}

.commerce-auth-firebase-recaptcha {
  min-height: 1px;
}

.commerce-auth-phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--commerce-auth-line);
  border-radius: 12px;
  background: var(--commerce-auth-surface-strong);
  overflow: visible;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.commerce-auth-country {
  position: relative;
  flex: 0 0 auto;
  border-right: 1px solid var(--commerce-auth-line);
  z-index: 3;
}

.commerce-auth-country__trigger {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  width: auto;
  min-width: 88px;
  min-height: 55px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-family: var(--commerce-auth-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--commerce-auth-ink);
  cursor: pointer;
  white-space: nowrap;
}

.commerce-auth-country--locked .commerce-auth-country__trigger,
.commerce-auth-country__trigger[disabled] {
  cursor: default;
  background: rgba(15, 23, 42, 0.02);
}

.commerce-auth-country__flag {
  flex: 0 0 24px;
  width: 24px;
  font-size: 22px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.commerce-auth-country__code {
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
  font-family: var(--commerce-auth-font-sans);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  flex: 0 0 auto;
}

.commerce-auth-country__caret {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--commerce-auth-muted);
}

.commerce-auth-country--locked .commerce-auth-country__caret {
  opacity: 0.25;
}

.commerce-auth-country__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  z-index: 80;
  padding: 16px;
  border: 1px solid var(--commerce-auth-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.commerce-auth-modal [hidden] {
  display: none !important;
}

.commerce-auth-country__search {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--commerce-auth-line);
  border-radius: 14px;
  background: #ffffff;
  font-family: var(--commerce-auth-font-sans);
  font-size: 15px;
  color: var(--commerce-auth-ink);
}

.commerce-auth-country__list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  margin-top: 12px;
  overflow-y: auto;
}

.commerce-auth-country__empty {
  margin: 12px 0 0;
  font-family: var(--commerce-auth-font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--commerce-auth-muted);
}

.commerce-auth-country__option {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 16px;
  background: #f8fafc;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--commerce-auth-ink);
  text-align: left;
  cursor: pointer;
}

.commerce-auth-country__option[hidden] {
  display: none;
}

.commerce-auth-country__option small {
  font-family: var(--commerce-auth-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--commerce-auth-muted);
}

.commerce-auth-country__option:hover,
.commerce-auth-country__option.is-selected {
  border-color: rgba(15, 118, 110, 0.18);
  background: var(--commerce-auth-accent-soft);
}

.commerce-auth-phone-field__input,
.commerce-auth-input {
  width: 100%;
  min-height: 55px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font-family: var(--commerce-auth-font-sans);
  font-size: 17px;
  color: var(--commerce-auth-ink);
}

.commerce-auth-phone-field__input:focus,
.commerce-auth-input:focus,
.commerce-auth-country__search:focus,
.commerce-auth-otp__input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  outline-offset: 0;
}

.commerce-auth-input {
  min-height: 58px;
  border: 1px solid var(--commerce-auth-line);
  border-radius: 18px;
  background: var(--commerce-auth-surface-strong);
}

.commerce-auth-form__actions {
  display: grid;
  gap: 12px;
}

.commerce-auth-form__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--commerce-auth-muted);
  font-family: var(--commerce-auth-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commerce-auth-form__divider::before,
.commerce-auth-form__divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--commerce-auth-line);
}

.commerce-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--commerce-auth-font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.commerce-auth-button:hover {
  transform: translateY(-1px);
}

.commerce-auth-button--primary {
  background: linear-gradient(180deg, #14857b 0%, #0f766e 100%);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.22);
  color: #ffffff;
}

.commerce-auth-modal .commerce-auth-button--primary {
  background: linear-gradient(180deg, #14857b 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.commerce-auth-button--secondary {
  border-color: var(--commerce-auth-line);
  background: #ffffff;
  color: var(--commerce-auth-ink);
}

.commerce-auth-modal .commerce-auth-button--secondary {
  background: #ffffff !important;
  color: var(--commerce-auth-ink) !important;
  border-color: var(--commerce-auth-line) !important;
}

.commerce-auth-button--google {
  gap: 10px;
}

.commerce-auth-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.commerce-auth-button__icon--google svg {
  display: block;
  width: 18px;
  height: 18px;
}

.commerce-auth-modal[data-commerce-auth-mode="verify_phone"]
  [data-commerce-auth-google-login] {
  display: none !important;
}

.commerce-auth-modal[data-commerce-auth-mode="verify_phone"]
  [data-commerce-auth-google-divider] {
  display: none !important;
}

.commerce-auth-otp {
  display: grid;
  gap: 18px;
}

.commerce-auth-otp__inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.commerce-auth-otp__input {
  width: 100%;
  height: 62px;
  border: 1px solid var(--commerce-auth-line);
  border-radius: 18px;
  background: #ffffff;
  font-family: var(--commerce-auth-font-sans);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--commerce-auth-ink);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.commerce-auth-otp__debug {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(146, 93, 0, 0.24);
  border-radius: 14px;
  background: #fff7e4;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: #925d00;
}

.commerce-auth-otp__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 15px 0;
}

.commerce-auth-otp__meta p {
  margin: 0;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  color: var(--commerce-auth-muted);
}

.commerce-auth-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--commerce-auth-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--commerce-auth-accent);
  cursor: pointer;
}

.commerce-auth-link-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.commerce-auth-button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.commerce-auth-button.is-busy::after,
.commerce-auth-link-button.is-busy::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: commerceAuthSpin 0.7s linear infinite;
}

.commerce-auth-modal--locked .commerce-auth-modal__backdrop {
  cursor: default;
}

@keyframes commerceAuthFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes commerceAuthSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .commerce-auth-modal {
    padding: 16px;
  }

  .commerce-auth-modal__dialog {
    width: min(100%, 310px);
    height: min(600px, calc(100vh - 16px));
    border-radius: 24px;
  }

  .commerce-auth-modal__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .commerce-auth-modal__panel {
    padding: 15px;
    overflow: visible;
  }

  .commerce-auth-modal__brand {
    gap: 12px;
    margin-bottom: 10px;
  }

  .commerce-auth-modal__brand-copy {
    width: max-content;
  }

  .commerce-auth-modal__powered-by {
    font-size: 7px;
  }

  .commerce-auth-modal__eyebrow {
    font-size: 11px;
  }

  .commerce-auth-modal__brand-logo {
    max-width: 74px;
    max-height: 44px;
  }

  .commerce-auth-modal__panel-title {
    font-size: 18px;
  }

  .commerce-auth-modal__panel-copy {
    margin-top: 12px;
  }

  .commerce-auth-modal__panel-carousel {
    width: 270px;
    margin-top: 5px;
    margin-inline: auto;
    overflow: hidden;
  }

  .commerce-auth-modal__panel-cards {
    display: flex;
    gap: 0;
    margin-top: 0;
    transition: transform 0.45s ease;
    will-change: transform;
  }

  .commerce-auth-modal__panel-card {
    flex: 0 0 100%;
    width: 270px;
    gap: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
  }

  .commerce-auth-modal__panel-card h4 {
    font-size: 12px;
    margin: 0;
  }

  .commerce-auth-modal__panel-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    display: none;
  }

  .commerce-auth-modal__panel-icon {
    width: 25px;
    height: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    box-shadow: none;
  }

  .commerce-auth-modal__panel-dots {
    display: flex;
    margin-top: 5px;
  }

  .commerce-auth-modal__content {
    padding: 10px 13px;
  }

  .commerce-auth-modal__close {
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--commerce-auth-ink);
    height: 30px;
    width: 30px;
  }

  .commerce-auth-flow__topbar {
    padding: 0px;
    margin-bottom: 8px;
  }

  .commerce-auth-step__header {
    margin-bottom: 12px;
  }

  .commerce-auth-step__title {
    font-size: 18px;
  }

  .commerce-auth-country {
    border-right: 1px solid var(--commerce-auth-line);
  }

  .commerce-auth-country__dropdown {
    width: 265px;
    height: 225px;
    overflow: hidden;
  }

  .commerce-auth-otp__inputs {
    gap: 6px;
  }

  .commerce-auth-otp__input {
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
  }

  .commerce-auth-otp__meta {
    align-items: flex-start;
  }

  .commerce-auth-country__trigger {
    height: 44px;
    padding: 0 0 0 10px;
  }
  .commerce-auth-phone-field__input,
  .commerce-auth-input {
    height: 44px;
    padding: 0 10px;
    border-radius: 8px;
  }
  .commerce-auth-button {
    min-height: 44px;
  }
  .commerce-auth-country__search {
    min-height: 40px;
  }

  .commerce-auth-public-track {
    margin: 24px 0;
  }

  .commerce-auth-public-track__shell,
  .commerce-auth-public-track .commerce-auth-track-card {
    padding: 20px;
    border-radius: 22px;
  }

  .commerce-auth-public-track__grid,
  .commerce-auth-public-track .commerce-auth-track-card__meta {
    grid-template-columns: 1fr;
  }

  .commerce-auth-public-track__title,
  .commerce-auth-public-track .commerce-auth-track-card__title {
    font-size: 26px;
  }

  .commerce-auth-public-track .commerce-auth-track-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .commerce-auth-eta {
    padding: 16px;
    border-radius: 20px;
  }

  .commerce-auth-eta__title {
    font-size: 22px;
  }

  .commerce-auth-eta__row {
    grid-template-columns: 1fr;
  }
}
