/* ===== PHX register page: captcha card, "Agreements" card, Continue row (2026-11-22). Works with phx-register.js.
   The reCAPTCHA widget itself is Google's iframe and cannot be restyled; only the card around it. ===== */

/* captcha card: one column, title "Security check", short gray help text, widget below */
html body .register-page form fieldset:has(.g-recaptcha){display:block!important}
html body .register-page form fieldset:has(.g-recaptcha) legend{font-size:0!important}
html body .register-page form fieldset:has(.g-recaptcha) legend::after{content:"Security check"!important;display:inline!important;font:700 16px/22.4px "Plus Jakarta Sans",Inter,system-ui,sans-serif;color:#0b1324}
html body .register-page form fieldset:has(.g-recaptcha) .form-group{display:flex!important;flex-direction:column;align-items:flex-start;gap:12px;width:100%!important;max-width:none!important;margin:0!important}
html body .register-page form fieldset:has(.g-recaptcha) .form-group > label.control-label.control-label{width:auto!important;max-width:none!important;flex:none!important;padding:0!important;text-align:left!important}
html body .register-page form fieldset:has(.g-recaptcha) .form-group > .col-sm-10{width:auto!important;max-width:none!important;flex:none!important;padding:0!important;line-height:0}
html body .register-page .g-recaptcha{border-radius:4px;box-shadow:0 1px 2px rgba(15,23,42,.06)}

/* button row. phx-register.js moves the agree checkbox into the "Agreements" card;
   the checkbox/link rules below only matter if that script does not run. */
html body .register-page .buttons{margin-top:8px!important}
html body .register-page .buttons .pull-right{display:flex!important;align-items:center!important;justify-content:flex-end;gap:8px;width:100%;float:none!important;
  font:400 13.5px/1.4 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;color:#6b7280!important}
html body .register-page .buttons .pull-right > input[type=checkbox]{order:-1;width:18px!important;height:18px!important;margin:0 2px 0 0!important;accent-color:#111;cursor:pointer;flex:0 0 auto}
html body .register-page .buttons .pull-right a.agree{display:inline!important;margin:0 18px 0 -4px!important;color:#111!important;text-decoration:underline!important;text-underline-offset:3px;text-decoration-color:rgba(17,17,17,.3)!important}
html body .register-page .buttons .pull-right a.agree b{font-weight:500!important;font-size:13.5px!important}
html body .register-page .buttons .pull-right a.agree:hover{text-decoration-color:#111!important}
html body .register-page .buttons .pull-right .btn-primary{margin:0!important;min-width:170px}

/* "Agreements" card (phx-register.js): Privacy Policy + email consent as two checkbox rows; OpenCart's Yes/No radios hidden */
html body .register-page fieldset.phx-consent-set{display:block!important}
html body .register-page fieldset.phx-consent-set .phx-nl-old{display:none!important}
html body .register-page .phx-consent{display:flex;flex-direction:column;gap:14px}
html body .register-page .phx-consent-row{display:flex!important;align-items:flex-start;gap:12px;margin:0!important;padding:0!important;cursor:pointer;width:auto!important;max-width:none!important;
  font:400 14px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;color:#374151!important;text-align:left!important}
html body .register-page .phx-consent-row input[type=checkbox]{flex:0 0 auto;width:18px!important;height:18px!important;margin:1px 0 0!important;accent-color:#111!important;cursor:pointer}
html body .register-page .phx-consent-row a.agree{display:inline!important;margin:0!important;color:#111!important;text-decoration:underline!important;text-underline-offset:3px;text-decoration-color:rgba(17,17,17,.3)!important}
html body .register-page .phx-consent-row a.agree b{font-weight:600!important;font-size:14px!important}
html body .register-page .phx-consent-row a.agree:hover{text-decoration-color:#111!important}
html body .register-page .phx-consent-row em{font-style:normal;color:#dc2626}
html body .register-page .phx-consent-row small{display:block;margin-top:2px;font-size:12.5px;color:#9ca3af}
html body .register-page .phx-consent-err{display:none;margin:-6px 0 0 30px;font:500 12.5px/1.4 Inter,system-ui,sans-serif;color:#dc2626}
html body .register-page .phx-consent.phx-show-err .phx-consent-err{display:block}
html body .register-page .phx-consent.phx-show-err .phx-consent-req input{outline:2px solid #dc2626;outline-offset:2px}

/* captcha card waits until Continue is pressed (kept in the page, not display:none, so Google's widget loads normally) */
html body .register-page form fieldset.phx-cap-wait{max-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0;overflow:hidden!important;box-shadow:none!important}
html body .register-page form fieldset.phx-cap-open{animation:phxCapIn .35s ease both}
@keyframes phxCapIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media (max-width:767px){
  html body .register-page .buttons .pull-right{flex-wrap:wrap;justify-content:flex-start}
  html body .register-page .buttons .pull-right .btn-primary{flex:1 0 100%}
}
