/* TrueGear account, verification, address and legal pages. */
body.tg-form-page {
  margin: 0;
  min-width: 0;
  height: auto;
  overflow: visible;
  color: #111315;
  background: #f2efe8;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.tg-form-page .tg-main { min-height: 45vh; }
.tg-form-page .tg-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  width: min(1320px, calc(100% - 112px));
  margin: 58px auto 72px;
  min-height: 660px;
  border: 1px solid #d6d5cd;
}
.tg-form-page .tg-auth-art {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 610px;
  padding: 34px 38px 29px;
  color: #f2efe8;
  background: #111315;
}
.tg-form-page .tg-auth-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 520px;
  right: -110px;
  top: 210px;
  background: #d8f879;
  transform: rotate(28deg);
  opacity: .08;
}
.tg-form-page .tg-auth-art-top,
.tg-form-page .tg-auth-art-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #969e8f;
}
.tg-form-page .tg-auth-art-top span:last-child { color: #d8f879; }
.tg-form-page .tg-auth-art h2 {
  margin: 37px 0 0;
  font-size: clamp(27px, 3.1vw, 43px);
  font-weight: 620;
  letter-spacing: -1.5px;
  line-height: 1.42;
}
.tg-form-page .tg-auth-art h2 em { font-style: normal; color: #d8f879; }
.tg-form-page .tg-auth-product {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  padding: 30px 0 27px;
  min-height: 310px;
}
.tg-form-page .tg-auth-product img {
  display: block;
  width: min(100%, 440px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 22px #0006);
  transform: none;
}
.tg-form-page .tg-auth-art-bottom { border-top: 1px solid #ffffff19; padding-top: 22px; font-size: 8px; letter-spacing: .8px; }
.tg-form-page .tg-form-panel {
  min-width: 0;
  align-self: center;
  padding: 48px 47px 50px;
  color: #111315;
}
.tg-form-page .tg-form-heading { margin-bottom: 32px; }
.tg-form-page .tg-form-heading .tg-kicker { display: block; margin-bottom: 18px; color: #7e8475; font-size: 9px; letter-spacing: 2px; }
.tg-form-page .tg-form-heading h1 { margin: 0 0 15px; font-size: clamp(27px, 2.8vw, 39px); line-height: 1.3; font-weight: 620; letter-spacing: -1px; }
.tg-form-page .tg-form-heading p { margin: 0; font-size: 12px; line-height: 1.9; color: #7a7f71; }
.tg-form-page .tg-form-panel :is(.flex-container, .flex-item, .login, .login-context, #login, #login-context, #my-info-box, #my-info-box-1, #info-content, #info-content-box, #info-input-box, #change-myinfo, #login-context-box) {
  position: static;
  display: block;
  float: none;
  inset: auto;
  transform: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.tg-form-page .tg-form-panel :is(.bg-img, #welcome, .info-content-title, #change-myinfo-title) { display: none; }
.tg-form-page .tg-form-panel .login-context > p:first-child { display: none; }
.tg-form-page .tg-form-panel br { display: none; }
.tg-form-page .tg-form-panel form { display: block; margin: 0; width: 100%; }
.tg-form-page .tg-form-panel :is(.login-context, #login-context, #info-content) > span:not(#warn):not(.info-content-title),
.tg-form-page .tg-form-panel .info-passwd-single-box > span {
  display: block;
  color: #696f60;
  font-size: 11px;
  line-height: 1.6;
  margin: 15px 0 8px;
}
.tg-form-page :is(.tg-form-panel, .tg-address-content) input:not([type="hidden"]):not([type="checkbox"]),
.tg-form-page :is(.tg-form-panel, .tg-address-content) select,
.tg-form-page :is(.tg-form-panel, .tg-address-content) textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 13px 15px;
  margin: 0 0 13px;
  border: 1px solid #cccec2;
  border-radius: 3px;
  outline-offset: 3px;
  background: #faf9f5;
  color: #20251a;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color .18s, background .18s;
}
.tg-form-page :is(.tg-form-panel, .tg-address-content) input::placeholder { color: #9b9e93; opacity: 1; font-size: 12px; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) :is(input, select, textarea):focus-visible { outline: 2px solid #839e3e; border-color: #839e3e; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) input[type="hidden"] { display: none; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) input[type="checkbox"] {
  flex: 0 0 auto;
  appearance: auto;
  width: 16px;
  height: 16px;
  margin: 2px 4px 0 0;
  accent-color: #5c731f;
}
.tg-form-page .tg-form-panel :is(.login-button, #form-login-button, #form-register-button, #sendButton, #save-info-button),
.tg-form-page .tg-address-content :is(#Address-Button, #address-button) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  width: 100%;
  min-height: 50px;
  height: auto;
  margin: 23px 0 0;
  padding: 13px 22px;
  background: #d8f879;
  color: #111315;
  border: 1px solid #cce773;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .5px;
  box-shadow: none;
  transition: background .18s, transform .18s;
}
.tg-form-page .tg-form-panel :is(.login-button, #form-login-button, #form-register-button, #sendButton, #save-info-button):hover,
.tg-form-page .tg-address-content :is(#Address-Button, #address-button):hover { background: #c9eb66; transform: translateY(-1px); }
.tg-form-page :is(.tg-form-panel, .tg-address-content) [role="button"]:focus-visible { outline: 2px solid #839e3e; outline-offset: 4px; }
.tg-form-page .tg-form-panel :is(.login-button, #form-login-button, #form-register-button, #sendButton, #save-info-button) span,
.tg-form-page .tg-address-content :is(#Address-Button, #address-button) span { color: inherit; font: inherit; margin: 0; }
.tg-form-page .tg-form-panel #my-info-button-box { width: 100%; margin: 0; padding: 0; background: transparent; }
.tg-form-page .tg-form-panel #fs-yzm { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 9px; margin: 0 0 8px; padding: 0; width: 100%; border: 0; background: transparent; }
.tg-form-page .tg-form-panel #fs-yzm > input:not([type="hidden"]):not([type="checkbox"]) { flex: 1; width: 0; min-width: 80px; height: 51px; margin: 0; }
.tg-form-page .tg-form-panel #fs-yzm > #warn { order: 3; flex-basis: 100%; }
.tg-form-page .tg-form-panel #fs-yzm .fasong {
  position: static;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 87px;
  width: auto;
  height: 51px;
  min-height: 51px;
  margin: 0;
  padding: 12px 17px;
  border: 1px solid #c5cdaf;
  border-radius: 3px;
  background: #e1e6d4;
  color: #43502f;
  font-size: 11px;
  cursor: pointer;
}
.tg-form-page .tg-form-panel #fs-yzm .fasong span { font: inherit; color: inherit; }
.tg-form-page .tg-form-panel #yzmTitle { margin-top: 15px; }
.tg-form-page .tg-form-panel #warn { color: #a74332; font-size: 10px; line-height: 1.8; }
.tg-form-page .tg-form-panel #warn:empty { display: none; }
.tg-form-page .tg-form-panel #agreement,
.tg-form-page .tg-form-panel #register-box { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; width: 100%; margin: 20px 0 0; padding: 0; color: #858a7b; font-size: 10px; line-height: 1.9; border: 0; background: transparent; }
.tg-form-page .tg-form-panel :is(#agreement, #register-box) span { display: inline; color: inherit; font: inherit; width: auto; margin: 0; }
.tg-form-page .tg-form-panel :is(#agreement, #register-box) a { font: inherit; color: #333e26; text-decoration: underline; text-underline-offset: 3px; }
.tg-form-page .tg-form-panel :is(h5, .tg-form-hint) { font-size: 10px; line-height: 1.9; color: #8a917d; font-weight: 400; margin: 15px 0; }
.tg-form-page .tg-form-panel #login_container { position: static; width: 100%; height: auto; margin: 30px auto 0; padding: 24px 0 0; border: 0; border-top: 1px solid #d9ddcf; text-align: center; }
.tg-form-page .tg-form-panel #login_container:empty { display: none; }
.tg-form-page .tg-form-panel #login_container iframe { position: static; width: min(100%, 320px); max-width: 100%; border: 0; transform: none; }
.tg-form-page .tg-form-panel #login_container img { max-width: 100%; height: auto; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) canvas { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog {
  width: min(460px, calc(100vw - 36px));
  max-height: min(84vh, 850px);
  max-height: min(84dvh, 850px);
  margin: auto;
  padding: 30px;
  color: #303928;
  background: #f5f3ec;
  border: 1px solid #aeb99b;
  border-radius: 4px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.95;
  box-shadow: 0 30px 90px #0005;
}
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog::backdrop { background: #111315b8; backdrop-filter: blur(5px); }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog:not([open]) { display: none; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog[open] { display: block; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog :is(h2, h3, h4) { color: #1b2414; margin: 18px 0 10px; line-height: 1.5; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog h2 { font-size: 19px; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog h4 { font-size: 14px; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog #CaptchaImage { display: block; width: auto; max-width: 100%; height: auto; min-height: 58px; margin: 14px auto; background: #e5e8de; }
.tg-form-page :is(.tg-form-panel, .tg-address-content) dialog button:not(.tg-dialog-close) { padding: 9px 18px; min-height: 42px; margin: 10px 8px 0 0; border: 1px solid #b1c27f; border-radius: 3px; color: #25301b; background: #d8f879; font: inherit; cursor: pointer; }
.tg-form-page .tg-dialog-title { margin: 0 25px 18px 0; font-size: 18px; }
.tg-form-page .tg-dialog-close { float: right; min-width: 32px; min-height: 32px; margin: -15px -15px 0 0; padding: 0; border: 0; background: transparent; color: #6a775c; font-size: 23px; line-height: 1; cursor: pointer; }
.tg-form-page .tg-account-state { padding: 12px 0 30px; font-size: 13px; color: #7d8870; }
.tg-form-page .tg-account-state a { display: inline-block; margin-top: 20px; text-decoration: underline; color: #39492b; }

/* Existing delivery selectors and their visibility are retained for the API form. */
.tg-form-page .tg-address { padding-top: 54px; padding-bottom: 76px; }
.tg-form-page .tg-address-heading { display: block; margin-bottom: 34px; }
.tg-form-page .tg-address-heading .tg-kicker { color: #81916a; font-size: 10px; letter-spacing: 2px; }
.tg-form-page .tg-address-heading h1 { font-size: clamp(33px, 4.4vw, 62px); font-weight: 620; letter-spacing: -2px; line-height: 1.3; margin: 20px 0 16px; }
.tg-form-page .tg-address-heading p { font-size: 12px; color: #869477; }
.tg-form-page .tg-address-content { padding: 38px; background: #faf9f4; border: 1px solid #d2d9c5; max-width: 1000px; }
.tg-form-page .tg-address-content :is(.flex-container, .flex-item, #nameandaddress) { display: block; position: static; width: 100%; min-width: 0; max-width: none; height: auto; min-height: 0; padding: 0; margin: 0; background: transparent; border: 0; }
.tg-form-page .tg-address-content .flex-item:empty { display: none; }
.tg-form-page .tg-address-content #nameandaddress > h2 { font-size: 23px; line-height: 1.5; margin: 0 0 10px; font-weight: 600; }
.tg-form-page .tg-address-content #nameandaddress > h4 { font-size: 11px; line-height: 1.8; color: #8a977b; margin: 0 0 27px; font-weight: 400; }
.tg-form-page .tg-address-content #address-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin: 0; }
.tg-form-page .tg-address-content :is(.nameandaddress-info, .citySelectBox2-Box) { display: flex; flex-direction: column; position: static; width: 100%; min-width: 0; height: auto; min-height: 85px; margin: 0; padding: 9px 13px 5px; border: 1px solid #d8dfcc; border-radius: 3px; background: #f4f5ed; }
.tg-form-page .tg-address-content #citySelectBox2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.tg-form-page .tg-address-content :is(.nameandaddress-info, .citySelectBox2-Box) > span { display: block; color: #8b987b; font-size: 10px; line-height: 1.7; margin: 0 0 3px; width: 100%; }
.tg-form-page .tg-address-content :is(.nameandaddress-info, .citySelectBox2-Box) > :is(input, select) { border: 0; border-radius: 0; padding: 8px 0; height: 39px; min-height: 0; margin: 0; background: transparent; font-size: 12px; }
.tg-form-page .tg-address-content :is(#out-address, #detail-address-box) { grid-column: 1 / -1; }
.tg-form-page .tg-address-content :is(#address-tips, #red-tips) { position: static; width: 100%; margin: 32px 0 0; padding: 24px 0 0; color: #7d8d6b; border: 0; border-top: 1px solid #d6deca; font-size: 11px; line-height: 1.95; background: transparent; }
.tg-form-page .tg-address-content :is(#address-tips, #red-tips) > span { color: #51633d; font-weight: 600; font-size: 12px; }
.tg-form-page .tg-address-content :is(#address-tips, #red-tips) ul { margin: 13px 0; padding-left: 18px; }
.tg-form-page .tg-address-content #ViewDetails { display: inline-block; cursor: pointer; font-size: 11px; color: #53683b; text-decoration: underline; text-underline-offset: 3px; }
.tg-form-page .tg-address-content #ConfirmStatement { display: flex; align-items: flex-start; gap: 8px; margin-top: 24px; color: #7a8b66; font-size: 11px; line-height: 1.8; }
.tg-form-page .tg-address-content #ConfirmStatement span { color: inherit; font: inherit; }
.tg-form-page .tg-address-content dialog #ConfirmStatement { align-items: center; justify-content: center; min-height: 44px; margin-top: 23px; padding: 11px 20px; border: 1px solid #c4dc77; border-radius: 3px; color: #111315; background: #d8f879; cursor: pointer; font-size: 12px; }
.tg-form-page .tg-address-content #order-product { padding: 0 0 25px; margin: 0 0 27px; border-bottom: 1px solid #d6deca; display: flex; align-items: center; gap: 20px; }
.tg-form-page .tg-address-content #order-product img { display: block; width: 95px; height: 95px; object-fit: contain; }
.tg-form-page .tg-address-content :is(#order-product-name, #order-price) { font-size: 13px; color: #6f825a; }
.tg-form-page .tg-address-content dialog { width: min(790px, calc(100vw - 36px)); padding: 35px; }
.tg-form-page .tg-address-content dialog br { display: block; }

/* Legal wording is unchanged; the document no longer needs a UI framework. */
.tg-form-page .tg-legal { padding-top: 58px; padding-bottom: 88px; }
.tg-form-page .tg-legal-heading { padding-bottom: 38px; margin-bottom: 39px; border-bottom: 1px solid #c9d0bd; }
.tg-form-page .tg-legal-heading .tg-kicker { font-size: 10px; color: #7e8d6d; letter-spacing: 2px; }
.tg-form-page .tg-legal-heading h1 { font-size: clamp(35px, 4.7vw, 66px); line-height: 1.3; margin: 22px 0 18px; font-weight: 620; letter-spacing: -2px; }
.tg-form-page .tg-legal-heading p { font-size: 12px; color: #8a977a; }
.tg-form-page .tg-legal-document { max-width: 920px; color: #526047; font-size: 14px; line-height: 2; overflow-wrap: anywhere; }
.tg-form-page .tg-legal-document :is(#warp, .tg-privacy-content) { width: 100%; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.tg-form-page .tg-legal-document p { font-size: inherit; line-height: inherit; margin: 12px 0; }
.tg-form-page .tg-legal-document #warp > div { margin: 22px 0; font-size: inherit; line-height: inherit; }
.tg-form-page .tg-legal-document :is(h2, h3, h4, .text-h4, .text-h6) { display: block; margin: 31px 0 16px !important; color: #293b1c; font-size: 21px !important; line-height: 1.55 !important; font-weight: 600; text-align: left; letter-spacing: -.3px; }
.tg-form-page .tg-legal-document #warp > h3:first-child { margin-top: 0 !important; }
.tg-form-page .tg-legal-document .text-body-1 { margin: 22px 0 !important; font-size: 14px !important; line-height: 2 !important; text-indent: 0 !important; }
.tg-form-page .tg-legal-document :is(.ml-6, .mr-2, .mx-2, .my-4) { margin-left: 0 !important; margin-right: 0 !important; }
.tg-form-page .tg-legal-document strong,
.tg-form-page .tg-legal-document b { color: #304423; }
.tg-form-page .tg-legal-document a { color: #3e5e24; text-decoration: underline; }

@media (min-width: 1500px) {
  .tg-form-page .tg-form-panel { padding-inline: 65px; }
}
@media (max-width: 1100px) {
  .tg-form-page .tg-auth-layout { width: calc(100% - 64px); margin-top: 38px; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
  .tg-form-page .tg-auth-art { padding-inline: 27px; }
  .tg-form-page .tg-auth-art h2 { font-size: 32px; }
  .tg-form-page .tg-auth-art-bottom { display: block; line-height: 2; }
  .tg-form-page .tg-auth-art-bottom span { display: block; }
  .tg-form-page .tg-form-panel { padding: 37px 31px; }
  .tg-form-page .tg-auth-product { min-height: 290px; }
}
@media (max-width: 760px) {
  .tg-form-page .tg-auth-layout { width: calc(100% - 36px); margin: 24px auto 42px; display: flex; flex-direction: column; min-height: 0; }
  .tg-form-page .tg-auth-art { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: auto 1fr; min-height: 195px; padding: 22px 22px 18px; gap: 15px; }
  .tg-form-page .tg-auth-art-top { grid-column: 1 / -1; font-size: 7px; letter-spacing: 1px; }
  .tg-form-page .tg-auth-art h2 { font-size: clamp(22px, 5vw, 30px); line-height: 1.5; letter-spacing: -1px; margin: 7px 0 0; align-self: center; }
  .tg-form-page .tg-auth-product { min-height: 110px; padding: 0; }
  .tg-form-page .tg-auth-product img { width: 100%; max-height: 135px; transform: scale(1.14); }
  .tg-form-page .tg-auth-art-bottom { display: none; }
  .tg-form-page .tg-auth-art::before { top: 37px; width: 55px; height: 210px; right: 3px; }
  .tg-form-page .tg-form-panel { align-self: auto; width: 100%; padding: 31px 23px 35px; }
  .tg-form-page .tg-form-heading { margin-bottom: 28px; }
  .tg-form-page .tg-form-heading .tg-kicker { font-size: 8px; margin-bottom: 16px; }
  .tg-form-page .tg-form-heading h1 { font-size: 29px; margin-bottom: 13px; }
  .tg-form-page .tg-form-heading p { font-size: 11px; line-height: 1.9; }
  .tg-form-page :is(.tg-form-panel, .tg-address-content) input:not([type="hidden"]):not([type="checkbox"]),
  .tg-form-page :is(.tg-form-panel, .tg-address-content) select { height: 51px; padding: 13px 12px; font-size: 16px; }
  .tg-form-page .tg-form-panel :is(#agreement, #register-box) { font-size: 10px; margin-top: 20px; }
  .tg-form-page .tg-form-panel #fs-yzm .fasong { min-width: 77px; padding-inline: 12px; font-size: 10px; }
  .tg-form-page .tg-form-panel #login_container { margin-top: 27px; padding-top: 20px; }
  .tg-form-page .tg-address { padding-top: 30px; padding-bottom: 45px; }
  .tg-form-page .tg-address-heading { margin-bottom: 28px; }
  .tg-form-page .tg-address-heading .tg-kicker { font-size: 8px; }
  .tg-form-page .tg-address-heading h1 { font-size: 34px; letter-spacing: -1.5px; margin: 17px 0 14px; }
  .tg-form-page .tg-address-heading p { font-size: 11px; }
  .tg-form-page .tg-address-content { padding: 23px 18px 28px; }
  .tg-form-page .tg-address-content #nameandaddress > h2 { font-size: 22px; }
  .tg-form-page .tg-address-content #address-form { grid-template-columns: 1fr; gap: 15px; }
  .tg-form-page .tg-address-content #citySelectBox2 { grid-template-columns: 1fr; gap: 15px; }
  .tg-form-page .tg-address-content :is(.nameandaddress-info, .citySelectBox2-Box) { padding: 10px 11px 4px; min-height: 84px; }
  .tg-form-page .tg-address-content :is(.nameandaddress-info, .citySelectBox2-Box) > :is(input, select) { padding: 8px 0; height: 39px; font-size: 16px; }
  .tg-form-page .tg-address-content :is(#address-tips, #red-tips) { font-size: 10px; line-height: 2; margin-top: 27px; }
  .tg-form-page .tg-address-content #ConfirmStatement { font-size: 10px; }
  .tg-form-page :is(.tg-form-panel, .tg-address-content) dialog { padding: 25px 22px; font-size: 11px; }
  .tg-form-page .tg-address-content dialog { padding: 28px 22px; }
  .tg-form-page .tg-legal { padding-top: 35px; padding-bottom: 53px; }
  .tg-form-page .tg-legal-heading { padding-bottom: 28px; margin-bottom: 30px; }
  .tg-form-page .tg-legal-heading .tg-kicker { font-size: 8px; }
  .tg-form-page .tg-legal-heading h1 { font-size: 37px; letter-spacing: -1.5px; margin: 19px 0 15px; }
  .tg-form-page .tg-legal-heading p { font-size: 11px; }
  .tg-form-page .tg-legal-document,
  .tg-form-page .tg-legal-document .text-body-1 { font-size: 13px !important; line-height: 1.95 !important; }
  .tg-form-page .tg-legal-document :is(h2, h3, h4, .text-h4, .text-h6) { font-size: 19px !important; margin-top: 27px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-form-page .tg-form-panel :is(input, button, [role="button"]),
  .tg-form-page .tg-address-content :is(input, button, [role="button"]) { transition: none; }
}
