/* GemTrove Account Experience R3: accessible viewport-fit registration. */
/* Override older one-screen rules that trap the form and its submit button. */
html:has(.gt-customer-auth--register),
body:has(.gt-customer-auth--register){height:auto!important;min-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important}
.gt-customer-auth--register,
.gt-customer-auth--register.gt-auth-one-screen,
.gt-customer-auth--register.gt-auth-register-screen{
  height:auto!important;max-height:none!important;min-height:0!important;
  overflow:visible!important;box-sizing:border-box!important;
  padding:clamp(8px,1.5vh,14px) 12px 90px!important;
}
.gt-customer-auth--register>.gt-auth{
  box-sizing:border-box!important;width:min(100%,650px)!important;max-width:650px!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 auto!important;padding:clamp(12px,1.7vh,20px)!important;
  overflow:visible!important;border-radius:16px!important;
}
.gt-customer-auth--register .gt-auth-brand{margin:0 auto 2px!important}
.gt-customer-auth--register h1{margin:3px 0 5px!important;line-height:1.03!important;font-size:clamp(24px,2.5vw,32px)!important;text-align:center!important}
.gt-customer-auth--register .gt-auth>p{margin:4px 0 8px!important;line-height:1.2!important}
.gt-customer-auth--register .gt-auth-back{display:inline-block!important;margin:2px 0 5px!important}
.gt-customer-auth--register form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 12px!important;min-width:0!important}
.gt-customer-auth--register form>[data-r3c1-antibot],
.gt-customer-auth--register form>.gt-grid,
.gt-customer-auth--register form>.gt-registration-consent,
.gt-customer-auth--register form>.gt-field:has(input[name="marketing_consent"]){grid-column:1/-1!important}
.gt-customer-auth--register form>.gt-field{min-width:0!important;margin:0!important}
.gt-customer-auth--register .gt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.gt-customer-auth--register .gt-grid>.gt-field{margin:0!important;min-width:0!important}
.gt-customer-auth--register .gt-field label{font-size:14px!important;line-height:1.15!important;margin-bottom:3px!important}
.gt-customer-auth--register .gt-field input:not([type="checkbox"]){height:40px!important;min-height:40px!important;padding:8px 10px!important;border-radius:9px!important}
.gt-customer-auth--register .gt-field .gt-small{font-size:11px!important;line-height:1.15!important}
.gt-customer-auth--register .gt-registration-consent{margin:3px 0!important;padding:9px 11px!important;border-radius:11px!important}
.gt-customer-auth--register .gt-registration-consent>strong{margin-bottom:4px!important;font-size:15px!important}
.gt-customer-auth--register .gt-registration-consent label{display:flex!important;align-items:flex-start!important;gap:7px!important;margin:3px 0!important}
.gt-customer-auth--register .gt-registration-consent .gt-small{font-size:11px!important;line-height:1.2!important;margin:4px 0 0!important}
.gt-customer-auth--register input[name="legal_acceptance"],
.gt-customer-auth--register input[name="marketing_consent"]{
  appearance:auto!important;-webkit-appearance:checkbox!important;
  display:inline-block!important;width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;
  margin:0 6px 0 0!important;padding:0!important;vertical-align:middle!important;
  flex:0 0 16px!important;transform:none!important;border-radius:2px!important;
}
.gt-customer-auth--register .gt-field:has(input[name="marketing_consent"]) label{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:2px!important;font-size:13px!important}
/* Existing genuine submit stays inside the original form, so native validation and CSRF still work. */
.gt-customer-auth--register form>button.gt-btn{
  position:fixed!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
  left:50%!important;transform:translateX(-50%)!important;
  z-index:1000!important;width:min(520px,calc(100vw - 24px))!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;
  padding:8px 14px!important;margin:0!important;border:1px solid #c7a16b!important;
  border-radius:11px!important;background:#132d51!important;color:#fff!important;
  font-size:18px!important;box-shadow:0 4px 18px rgba(16,40,75,.26)!important;
}
.gt-customer-auth--register form>button.gt-btn:focus-visible{outline:3px solid #c99b55!important;outline-offset:3px!important}
/* Do not turn the email/Google provider choice into a floating submit action. */
@media(max-width:540px){
  .gt-customer-auth--register form{grid-template-columns:1fr!important;gap:6px!important}
  .gt-customer-auth--register form>.gt-grid{grid-column:1!important}
  .gt-customer-auth--register .gt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .gt-customer-auth--register>.gt-auth{padding:10px!important}
  .gt-customer-auth--register h1{font-size:25px!important}
  .gt-customer-auth--register .gt-registration-consent .gt-small{font-size:10px!important}
}
@media(max-height:650px){
 .gt-customer-auth--register .gt-auth>p{font-size:13px!important}
 .gt-customer-auth--register .gt-field input:not([type="checkbox"]){height:37px!important;min-height:37px!important}
}
@media(prefers-reduced-motion:reduce){.gt-customer-auth--register form>button.gt-btn{transition:none!important}}
