/* MPS Shop: login */
/* ---------- Joomla "User Registration" page: password panel on the right ---------- */
.mps-reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.mps-reg-side { position: sticky; top: 24px; }
@media (max-width: 959px) { .mps-reg-grid { grid-template-columns: minmax(0, 1fr); } .mps-reg-side { display: none; } }
/* hide Joomla's "Minimum Requirements" line and its strength bar */
.mps-reg-page #jform_password1-rules,
.mps-reg-page #member-registration .password-group > :not(.input-group),
.mps-reg-page #member-registration meter { display: none !important; }
.mps-reg-page .mps-pw-panel { margin: 0 0 20px; padding: 18px 20px; border: 1px solid #e3e6e3; border-radius: 8px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.mps-reg-page .mps-pw-title { margin: 0 0 10px; font-weight: 600; }
.mps-reg-page .mps-pw-panel ul { margin: 0; padding: 0; list-style: none; }
.mps-reg-page .mps-pw-panel li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; color: #444; }
.mps-reg-page .mps-pw-panel .mps-no { color: #c92222; }
.mps-reg-page .mps-pw-panel .mps-ok { color: #2e8540; display: none; }
.mps-reg-page .mps-pw-panel li.ok .mps-no { display: none; }
.mps-reg-page .mps-pw-panel li.ok .mps-ok { display: inline-flex; }
.mps-reg-page .mps-pw-panel li.ok { color: #2e8540; }

/* ===== 5. mps-login.css ===== */
/* ---------- Joomla login page ---------- */
.mps-login-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.mps-login-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.mps-login-links .uk-button { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; min-width: 0; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.mps-login-btn svg.mps-ico, .mps-login-links svg.mps-ico { display: block !important; flex: none; width: 18px; height: 18px; }
@media (max-width: 640px) { .mps-login-links .uk-button { flex: 1 1 100%; } }

/* ===== 6. mps-hreg.css ===== */
/* ---------- HikaShop registration page (Create an account) ---------- */
.mps-hreg { --mps-green: #394b40; --mps-line: #e3e6e3; --mps-soft: #6b6f6b; color: #222; }
.mps-hreg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.mps-hreg-side { position: sticky; top: 24px; display: grid; gap: 16px; }
@media (max-width: 959px) { .mps-hreg-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .mps-hreg-side { position: static; } }
.mps-hreg fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.mps-hreg .mps-hreg-h { margin: 0 0 16px; }
.mps-hreg .hikashop_registration_address_info_line .mps-hreg-h { margin-top: 12px; }
/* labels are off on this page: placeholders and a red * inside required boxes */
.mps-hreg .hikashop_registration_email_line > .hkcontrol-label,
.mps-hreg .hikashop_registration_password_line > .hkcontrol-label,
.mps-hreg .hikashop_registration_password2_line > .hkcontrol-label,
.mps-hreg .hikashop_registration_required_info_line > .hkcontrol-label,
.mps-hreg .hikashop_registration_button_line > .hkcontrol-label { display: none !important; }
/* Joomla's own rules line and strength meter are replaced by the panel */
.mps-hreg [id$="-rules"], .mps-hreg .password-group > meter, .mps-hreg .password-group > output { display: none !important; }
/* address rows: two boxes side by side with a gap, full width otherwise */
.mps-hreg .hk-row-fluid.hikashop_address_row { display: flex; gap: 16px; margin: 0; }
.mps-hreg .hk-row-fluid.hikashop_address_row:empty { display: none; }
.mps-hreg .hk-row-fluid.hikashop_address_row > [class*="hkc-"] { flex: 1 1 0; min-width: 0; width: auto; float: none; padding: 0; }
.mps-hreg .hikashop_address_field_input { float: none; width: 100%; padding: 0; }
@media (max-width: 640px) { .mps-hreg .hk-row-fluid.hikashop_address_row { flex-wrap: wrap; gap: 0; } .mps-hreg .hk-row-fluid.hikashop_address_row > [class*="hkc-"] { flex: 1 1 100%; } }
.mps-hreg .hikashop_field_error_msg { display: block; margin-top: 4px; font-size: 13px; color: #c92222; }
.mps-hreg .hikashop_registration_required_info_line { font-size: 13px; color: var(--mps-soft); }
.mps-hreg .mps-hreg-btn { display: flex !important; align-items: center; justify-content: center; gap: 8px; }
.mps-hreg .mps-hreg-btn svg, .mps-hreg-loginbtn svg { display: block; flex: none; }
/* right-hand cards */
.mps-hreg-card { padding: 18px 20px; border: 1px solid var(--mps-line, #e3e6e3); border-radius: 8px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.mps-hreg .mps-hreg-grid > fieldset .mps-hreg-pw { margin: 0 0 16px; box-shadow: none; }
.mps-hreg-title { margin: 0 0 10px; font-weight: 600; }
.mps-hreg-pw ul { margin: 0; padding: 0; list-style: none; }
.mps-hreg-pw li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; color: #444; }
.mps-hreg-pw .mps-no { color: #c92222; display: inline-flex; }
.mps-hreg-pw .mps-ok { color: #2e8540; display: none; }
.mps-hreg-pw li.ok .mps-no { display: none; }
.mps-hreg-pw li.ok .mps-ok { display: inline-flex; }
.mps-hreg-pw li.ok { color: #2e8540; }
.mps-hreg-loginbtn { display: flex !important; align-items: center; justify-content: center; gap: 8px; }
/* form fields: labels above, full width */
.mps-hreg .hkform-horizontal { margin: 0; padding: 0; border: 0; }
.mps-hreg .hkform-group { display: block; margin: 0 0 16px; }
.mps-hreg .hkform-group > .hkcontrol-label { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; text-align: left; font-size: 14px; font-weight: 600; color: #333; }
.mps-hreg .hkform-group > .hkcontrol-label:empty { display: none; }
.mps-hreg .hkform-group > .hkc-sm-8, .mps-hreg .hkform-group > .hikashop_address_field_input { float: none; width: 100%; margin: 0; padding: 0; }
.mps-hreg .hkform-group input.form-control,
.mps-hreg .hkform-group select.form-select,
.mps-hreg .hkform-group select.hikashop_field_dropdown {
  width: 100% !important; max-width: none; height: 46px; padding: 0 12px; border: 1px solid #c7c7c7; border-radius: 8px; background-color: #fff; font-size: 16px; box-shadow: none;
}
.mps-hreg .hkform-group input.form-control:focus,
.mps-hreg .hkform-group select:focus { border-color: var(--mps-green); outline: 2px solid rgba(57,75,64,.2); }
.mps-hreg .hikashop_field_required_label { color: #c92222; margin-left: 2px; }
/* red * inside required boxes (the script marks them), for use with labels switched off */
.mps-hreg .mps-req { position: relative; }
.mps-hreg .mps-req::after { content: "*"; position: absolute; top: 9px; right: 12px; color: #c92222; font-size: 20px; line-height: 1; pointer-events: none; }
/* drop-downs: our own arrow, so it can sit to the LEFT of the red * and every * lines up */
.mps-hreg .hkform-group select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important;
  background-position: right 12px center !important; background-size: 16px 16px !important; padding-right: 40px !important;
}
.mps-hreg .mps-req select { background-position: right 32px center !important; padding-right: 58px !important; }
.mps-hreg .mps-req:has(.input-password-toggle)::after { right: 60px; }  /* clear of the show-password button */
.mps-hreg .mps-req input.form-control { padding-right: 28px; box-sizing: border-box; }
.mps-hreg .hkform-group input.form-control, .mps-hreg .hkform-group select { box-sizing: border-box; }
.mps-hreg .hkform-group:has(> .hkcontrol-label .hikashop_field_required_label) .mps-req::after { content: none; }  /* labels on: their * is enough */
.mps-hreg .hika_registration_address legend,
.mps-hreg .hikashop_registration_shipping_address_title legend { display: block; margin: 26px 0 14px; padding: 0; border: 0; }   /* theme heading style (uk-h4) */
.mps-hreg .hikashop_registration_same_address_line .hkc-sm-8 { display: flex; align-items: center; gap: 10px; }
.mps-hreg .hikashop_registration_same_address_line input { width: 20px; height: 20px; margin: 0; accent-color: var(--mps-green); }
.mps-hreg .hikashop_registration_required_info_line { font-size: 13px; color: var(--mps-soft); }
.mps-hreg .password-group .input-group { display: flex !important; flex-wrap: nowrap !important; align-items: stretch; width: 100%; }
.mps-hreg .password-group .input-group input.form-control { flex: 1 1 auto; width: 1% !important; min-width: 0; }
.mps-hreg .password-group .input-password-toggle { flex: 0 0 48px; width: 48px; height: 46px; margin: 0; display: flex; align-items: center; justify-content: center; }
.mps-hreg .password-group .input-group input { border-radius: 8px 0 0 8px !important; }
.mps-hreg .password-group .input-password-toggle { border: 1px solid #c7c7c7; border-left: 0; border-radius: 0 8px 8px 0; background: #f6f7f6; padding: 0 14px; }
/* country box: flag of the chosen country on the left (the script sets --mps-flag) */
.mps-hreg .hkform-group select.mps-flagged {
  background-image: var(--mps-flag), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left 12px center, right 12px center !important;
  background-size: 24px 18px, 16px 16px !important;
  padding-left: 46px !important;
}
.mps-hreg .mps-req select.mps-flagged { background-position: left 12px center, right 32px center !important; }
/* e-mail, passwords and the button: full width, lined up with the address fields */
.mps-hreg .hkform-group.hikashop_registration_email_line,
.mps-hreg .hkform-group.hikashop_registration_password_line,
.mps-hreg .hkform-group.hikashop_registration_password2_line,
.mps-hreg .hkform-group.hikashop_registration_required_info_line,
.mps-hreg .hkform-group.hikashop_registration_button_line { display: block !important; margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
.mps-hreg .hikashop_registration_email_line > .hkc-sm-8,
.mps-hreg .hikashop_registration_password_line > .hkc-sm-8,
.mps-hreg .hikashop_registration_password2_line > .hkc-sm-8,
.mps-hreg .hikashop_registration_required_info_line > .hkc-sm-8,
.mps-hreg .hikashop_registration_button_line > .hkc-sm-8 {
  display: block !important; float: none !important; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; margin: 0 !important; padding: 0 !important; text-align: left !important; }
.mps-hreg .hikashop_registration_button_line .mps-hreg-btn { width: 100% !important; margin: 0 !important; }
.mps-hreg .hkform-horizontal, .mps-hreg .hikashop_contentpane { margin: 0 !important; padding: 0 !important; }
.mps-hreg .hk-row-fluid.hikashop_address_row { margin-left: 0 !important; margin-right: 0 !important; }
.mps-hreg .hikashop_address_row .hkform-group { margin-left: 0 !important; margin-right: 0 !important; }
