.gifttm-phone-auth {
  --gifttm-yellow: #fed400;
  --gifttm-ink: #1c1c1c;
  --gifttm-muted: #737373;
  --gifttm-border: #dedfe2;
  --gifttm-field: #f6f7f8;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  color: var(--gifttm-ink);
  text-align: left;
}

.gifttm-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
}

.gifttm-phone-auth__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 24px;
  text-align: center;
}

.gifttm-phone-auth__hero > .gifttm-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.gifttm-phone-auth__hero h3 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

.gifttm-phone-auth__hero p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--gifttm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gifttm-field-group { margin: 0 0 16px; }

.gifttm-field-group > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px !important;
  color: var(--gifttm-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.gifttm-field-group > label .gifttm-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.gifttm-phone-auth input[type="text"],
.gifttm-phone-auth input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 0 14px !important;
  border: 1px solid var(--gifttm-border) !important;
  border-radius: 10px !important;
  background: var(--gifttm-field) !important;
  color: var(--gifttm-ink) !important;
  box-shadow: none !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
}

.gifttm-phone-auth input:focus {
  border-color: #8b7600 !important;
  outline: 3px solid rgba(254, 212, 0, .22) !important;
  outline-offset: 0;
}

.gifttm-phone-auth__phone-row {
display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.gifttm-phone-auth__prefix {
display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--gifttm-border);
  border-radius: 10px;
  background: #eceef0;
  color: #555;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.gifttm-phone-auth__phone-row .gifttm-phone-auth__phone {
min-width: 0;
  border-radius: 10px !important;
  letter-spacing: .035em;
}

.gifttm-phone-auth__code {
  text-align: center;
  letter-spacing: .28em !important;
  font-size: 20px !important;
}

.gifttm-phone-auth .button.gifttm-phone-auth__send,
.gifttm-phone-auth .button.gifttm-phone-auth__verify,
.gifttm-phone-auth .button.gifttm-phone-auth__create {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--gifttm-yellow) !important;
  color: #1c1c1c !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.gifttm-phone-auth .button:hover { background: #e8c300 !important; }
.gifttm-phone-auth .button:disabled { opacity: .55; cursor: wait; }

.gifttm-phone-auth__code-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.gifttm-phone-auth__expiry {
  margin: -4px 0 12px;
  color: var(--gifttm-muted);
  text-align: center;
  font-size: 13px;
}

.gifttm-phone-auth__expiry strong {
  color: var(--gifttm-ink);
  font-variant-numeric: tabular-nums;
}

.gifttm-phone-auth__resend {
  display: block;
  margin: 12px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4a4a4a;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.gifttm-phone-auth__resend:disabled { color: #9a9a9a; cursor: default; }

.gifttm-phone-auth__new-account {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
}

.gifttm-phone-auth__new-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.gifttm-phone-auth__new-title strong,
.gifttm-phone-auth__new-title span { display: block; }
.gifttm-phone-auth__new-title strong { font-size: 16px; }

.gifttm-phone-auth__new-title span {
  margin-top: 3px;
  color: var(--gifttm-muted);
  font-size: 13px;
  line-height: 1.45;
}

.gifttm-phone-auth__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 16px;
  color: #666;
  font-size: 12.5px;
  line-height: 1.45;
}

.gifttm-phone-auth__consent input { margin-top: 3px; flex: 0 0 auto; }
.gifttm-phone-auth__consent a { color: inherit; text-decoration: underline; }

.gifttm-phone-auth__status {
  min-height: 22px;
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.45;
}

.gifttm-phone-auth__status[data-type="error"] { color: #b42318; }
.gifttm-phone-auth__status[data-type="success"] { color: #167a35; }

body.gifttm-auth-account .gifttm-auth-shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

.gifttm-auth-account #customer_login {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 560px !important;
  margin: 24px auto 60px !important;
  padding: 34px !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06) !important;
}

.gifttm-auth-account #customer_login > .u-column1,
.gifttm-auth-account #customer_login > .col-1 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.gifttm-auth-account #customer_login > .u-column2,
.gifttm-auth-account #customer_login > .col-2,
.gifttm-auth-account #customer_login > .u-column1 > h2,
.gifttm-auth-account #customer_login > .col-1 > h2,
.gifttm-auth-account form.woocommerce-form-login > *:not(.gifttm-phone-auth),
.gifttm-auth-account .woocommerce-LostPassword {
  display: none !important;
}

@media (max-width: 600px) {
  .gifttm-auth-account #customer_login {
    margin-top: 14px !important;
    padding: 24px 18px !important;
    border-radius: 14px !important;
  }

  .gifttm-phone-auth__hero h3 { font-size: 22px !important; }
  .gifttm-phone-auth__new-account { padding: 15px; }
}


/* 0.5.1: account form centering */
body.woocommerce-account:not(.logged-in) .site-main > .woocommerce,
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login {
  float: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
