/* Signup pages (buyer + manufacturer). One page scroll. The terms dialog is the only inner scroll. */
html, body.notloggedin { overflow-x: hidden; overflow-y: auto; height: auto; }
.notloggedin .reg-page .login-row { height: auto !important; min-height: 0; overflow: visible; align-items: flex-start; }
.reg-page .registerform { overflow: visible; max-height: none; }
.reg-page { padding-left: 12px; padding-right: 12px; }
.reg-page .login-row { height: auto; min-height: 0; margin: 24px 0 32px; }
.reg-page .login-row > .col-sm { padding: 0; min-width: 0; }
.reg-page .login-logo { margin-bottom: 20px; }
.reg-page .login-logo img { max-width: 220px; width: 60%; height: auto; }
.reg-page .registerform { width: 100%; max-width: 640px; padding: 32px; box-sizing: border-box; }
.reg-page .form-register-heading { font-size: 1.6rem; line-height: 1.25; margin-bottom: 20px; overflow-wrap: anywhere; }
.reg-page .form-signin .row { margin-left: -6px; margin-right: -6px; }
.reg-page .form-signin .row > [class*="col"] { padding-left: 6px; padding-right: 6px; min-width: 0; }
.reg-page .form-group { margin-bottom: 14px; position: relative; }
.df-hp{position:absolute;left:-9999px;height:0;width:0;overflow:hidden}
.df-place-list{position:absolute;left:0;right:0;top:100%;z-index:30;margin-top:4px;background:#fff;border:1px solid #ced4da;border-radius:8px;box-shadow:0 8px 24px rgba(20,16,40,.12);max-height:240px;overflow:auto}
.df-place-option{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #f0eef5;background:#fff;color:#212529;text-align:left;font:inherit;cursor:pointer}
.df-place-option small{color:#6c6a80;font-size:12px}
.df-place-option.is-active,.df-place-option:hover{background:#f6f4fb}
.df-place-credit{padding:6px 12px 8px;color:#8a86a0;font-size:11px}
.reg-page .form-control.df-good { border-color: #198754; padding-right: 32px; }
.reg-page .form-control.df-bad { border-color: #d8402c; }
.reg-page .df-live-ok { position: absolute; right: 12px; bottom: 10px; color: #198754; font-size: 14px; font-weight: 700; line-height: 1; pointer-events: none; }
.reg-page .df-live-error { display: block; color: #d8402c; font-size: 13px; margin-top: 4px; }
.reg-page .form-signin label { color: #555; font-size: 14px; margin-bottom: 4px; display: block; }
.reg-page .form-signin .form-control { min-height: 48px; padding: 10px 12px; font-size: 16px; letter-spacing: normal; border-radius: 8px; }
.reg-page .form-signin .form-control::placeholder { letter-spacing: normal; color: #9aa0a6; }
.reg-page .form-signin select.form-control { padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.reg-page .form-check { padding-left: 0; }
.reg-page .form-check-label { display: flex; gap: 10px; align-items: flex-start; color: #333; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
.reg-page .form-check-input { position: static; margin: 2px 0 0; width: 22px; height: 22px; flex: 0 0 22px; }
.reg-page .invalid-feedback { display: block; font-size: 13px; }
.reg-hint { color: #b45309; font-size: 13px; min-height: 0; margin: -6px 0 8px; }
.reg-hint:empty { display: none; }
.reg-address-confirm { font-size: 14px; }
.reg-address-confirm .form-check-label { color: inherit; }
.reg-page .g-recaptcha { max-width: 100%; overflow: hidden; }
.reg-actions { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 10px; margin-top: 8px; }
.role-choice { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.role-choice legend { font-size: 1.05rem; font-weight: 650; margin-bottom: 4px; float: none; width: auto; }
.role-lead { color: #6c757d; font-size: .9rem; margin: 0 0 10px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card { margin: 0; cursor: pointer; display: block; min-width: 0; }
.role-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-body { display: flex; flex-direction: column; gap: 4px; border: 2px solid #dee2e6; border-radius: 12px; padding: 14px; height: 100%; background: #fff; }
.role-card input:checked + .role-body { border-color: #514a88; background: #f4f3fb; box-shadow: inset 0 0 0 1px #514a88; }
.role-card input:focus-visible + .role-body { outline: 2px solid #514a88; outline-offset: 2px; }
.role-kicker { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #514a88; font-weight: 700; }
.role-title { font-weight: 650; font-size: 1.02rem; color: #222; }
.role-text { font-size: .84rem; color: #6c757d; line-height: 1.4; }
.role-both { margin: 10px 0 0; font-size: .95rem; }
.role-both button { background: none; border: 0; padding: 8px 0; color: #514a88; font-weight: 650; text-decoration: underline; cursor: pointer; min-height: 44px; }
.role-mfr { margin: 4px 0 0; font-size: .85rem; }
#roleBothWarning { margin-top: 10px; }
#roleBothWarning[hidden] { display: none !important; }
#role_choice.is-invalid { outline: none; }
.reg-actions .btn { min-height: 48px; padding: 10px 24px; font-size: 16px; border-radius: 8px; }

/* Terms dialog: the page behind does not scroll, and only the dialog body scrolls. */
.reg-terms-dialog.modal-dialog { max-height: calc(100vh - 32px); margin: 16px auto; overflow: hidden; }
.reg-terms-dialog .modal-content { max-height: calc(100vh - 32px); overflow: hidden; display: flex; flex-direction: column; }
.reg-terms-dialog .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: none; flex: 1 1 auto; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.reg-terms-dialog .modal-body h1 { font-size: 1.3rem; }

@media (max-width: 575.98px) {
	.role-grid { grid-template-columns: 1fr; }
	.role-body { min-height: 44px; }
	.reg-page { padding-left: 0; padding-right: 0; }
	.reg-page .login-row { margin: 12px 0 20px; }
	.reg-page .registerform { padding: 20px 16px; border-radius: 12px; }
	.reg-page .form-register-heading { font-size: 1.35rem; }
	.reg-actions { flex-direction: column; }
	.reg-actions .btn { width: 100%; }
	.reg-page .g-recaptcha { transform: scale(.88); transform-origin: 0 0; height: 70px; }
	.reg-terms-dialog { margin: 8px; }
	.reg-terms-dialog .modal-body { max-height: calc(100vh - 160px); padding: 14px; }
	.reg-terms-dialog .modal-footer { flex-wrap: nowrap; gap: 8px; }
	.reg-terms-dialog .modal-footer .btn { flex: 1 1 0; min-height: 48px; margin: 0; }
}
@media (max-width: 340px) {
	.reg-page .registerform { padding: 16px 12px; }
	.reg-page .g-recaptcha { transform: scale(.8); height: 64px; }
}
