/* Compra2 account presentation. No scripts or form behavior changes. */
.zx-account-shell {
  --account-ink: #302b34;
  --account-muted: #68616d;
  --account-line: #e8e2ec;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-bottom: 44px;
  color: var(--account-ink);
}
.zx-account-shell, .zx-account-shell * { box-sizing: border-box; }
.zx-account-shell > #content.page-content {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(46, 28, 56, .035);
}
.zx-account-shell .zx-account-nav {
  min-width: 0;
  padding: 24px 14px 18px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: #fff;
}
.zx-account-nav__heading {
  padding: 0 14px 18px;
  color: #302b34;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.zx-account-shell .zx-account-nav .links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.zx-account-shell .zx-account-nav a.zx-account-nav__link {
  display: block;
  float: none;
  width: 100%;
  padding: 0;
  margin: 0;
  color: #5c5562;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  border-radius: 8px;
}
.zx-account-shell .zx-account-nav .link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  line-height: 1.35;
  text-align: left;
}
.zx-account-shell .zx-account-nav .material-icons {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  font-size: 22px;
  color: inherit;
}
.zx-account-shell .zx-account-nav a:hover {
  background: #f8f5fa;
  color: #6d3879;
}
.zx-account-shell .zx-account-nav a[aria-current="page"] {
  background: #f2eaf5;
  color: #743981;
  font-weight: 700;
  box-shadow: inset 3px 0 #854694;
}
.zx-account-nav__note {
  margin: 20px 14px 0;
  padding-top: 18px;
  border-top: 1px solid #eee8f0;
  color: #766c7c;
  font-size: 13px;
  line-height: 1.6;
}
.zx-account-shell a:focus-visible,
.zx-account-shell summary:focus-visible,
.zx-account-shell button:focus-visible {
  outline: 3px solid #854694;
  outline-offset: 3px;
}
.zx-account-shell .form-control:not([type="checkbox"]):not([type="radio"]) {
  min-height: 46px;
  height: auto;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfc6d3;
  border-radius: 7px;
  background: #fff;
  color: #302b34;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: none;
}
.zx-account-shell .form-control:focus {
  border-color: #854694;
  box-shadow: 0 0 0 3px rgba(133,70,148,.13);
}
.zx-account-shell .form-control-comment,
.zx-account-shell .form-control-valign,
.zx-account-shell .form-text { color: #68616d; font-size: 13px; line-height: 1.5; }
.zx-account-shell .btn-primary,
.zx-account-shell .btn-secondary {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
}
.zx-account-shell .btn-primary { background: #854694; border: 1px solid #854694; color: #fff; }
.zx-account-shell .btn-primary:hover { background: #6d3879; border-color: #6d3879; }
.zx-account-shell .btn-secondary { background: #fff; border: 1px solid #854694; color: #743981; }
.zx-account-shell .btn-secondary:hover { background: #f6f0f8; }
.zx-account-shell .btn-link { text-transform: none; }
body:is(#my-account, #identity, #addresses, #address, #history, #contact) #main > .page-header {
  margin: 4px 0 24px;
}
body:is(#my-account, #identity, #addresses, #address, #history, #contact) #main > .page-header h1 {
  color: #302b34;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.5px;
}
body:is(#identity, #address) .zx-account-shell #content form { max-width: 680px; margin: 0 auto; }
body:is(#identity, #address) .zx-account-shell .form-group.row { margin: 0 0 22px; }
body:is(#identity, #address) .zx-account-shell .form-group > .form-control-label {
  display: block;
  float: none;
  width: 100%;
  padding: 0 0 8px;
  color: #49414f;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
body:is(#identity, #address) .zx-account-shell .form-group > .col-md-6 {
  width: 100%;
  float: none;
  padding: 0;
}
body:is(#identity, #address) .zx-account-shell .form-group > .col-md-3.form-control-comment {
  width: 100%;
  float: none;
  padding: 5px 0 0;
}
body:is(#identity, #address) .zx-account-shell .form-group > .col-md-6.col-md-offset-3 { margin-left: 0; }
.zx-account-shell .input-group { width: 100%; }
.zx-account-shell .input-group-btn > .btn {
  min-height: 46px;
  margin-left: -1px;
  border-radius: 0 7px 7px 0;
}
.zx-account-shell .input-group > .form-control { border-radius: 7px 0 0 7px !important; }
.zx-account-shell .form-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eee8f0;
}
.zx-account-shell .form-footer .form-control-submit { float: none !important; }
.zx-account-shell .custom-checkbox label { line-height: 1.55; }
.zx-account-shell .custom-checkbox label em { display: block; margin-top: 6px; color: #68616d; font-size: 13px; font-style: normal; }
#my-account .zx-account-shell > #content { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.zx-account-intro { margin-bottom: 24px; }
.zx-account-eyebrow { display: block; margin-bottom: 8px; color: #854694; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.zx-account-intro h2 { margin: 0 0 8px; color: #302b34; font-size: 26px; line-height: 1.2; letter-spacing: -.4px; }
.zx-account-intro p { margin: 0; color: #68616d; font-size: 15px; line-height: 1.6; }
.zx-account-shell #ziemax-schools > #customer-form {
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid #e8e2ec;
  border-top: 3px solid #f28e20;
  border-radius: 12px;
  background: #fff;
}
.zx-account-shell .zx-account-section-title { margin: 0 0 12px; font-size: 19px; line-height: 1.4; font-weight: 700; }
.zx-account-shell .ziemax-schools__note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eee8f0;
  color: #68616d;
  font-size: 13px;
  line-height: 1.55;
}
.zx-account-shell .ziemax-schools__count { margin-bottom: 20px; font-size: 14px; line-height: 1.6; color: #68616d; }
.zx-account-shell .select2-container { width: 100% !important; max-width: 100%; }
.zx-account-shell .select2-container .select2-selection--multiple {
  min-height: 48px;
  padding: 5px 8px;
  border: 1px solid #cfc6d3;
  border-radius: 7px;
  background: #fff;
}
.zx-account-shell .select2-container--focus .select2-selection--multiple { border-color: #854694; box-shadow: 0 0 0 3px rgba(133,70,148,.13); }
.zx-account-shell .select2-container .select2-search__field { max-width: 100%; min-height: 27px; margin: 3px 0; font-size: 14px; }
.zx-account-shell .ziemax-school-card { padding: 24px; margin-bottom: 20px; border: 1px solid #e8e2ec; border-radius: 12px; }
.zx-account-shell .ziemax-school-card__name { font-size: 17px; line-height: 1.4; color: #302b34; }
.zx-account-shell .ziemax-school-card__meta { margin-top: 5px; color: #68616d; font-size: 13px; }
.zx-account-shell .ziemax-school-card__remove { font-size: 13px; white-space: nowrap; min-height: 32px; }
.zx-account-shell .ziemax-student-list li.ziemax-student--empty { padding: 18px 0; font-size: 14px; color: #68616d; }
.zx-account-shell .ziemax-student-add { margin: 16px 0 8px; }
.zx-account-shell .ziemax-school-card__books { padding-top: 14px; margin-top: 22px; }
.zx-account-shell .ziemax-school-card__books-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  color: var(--zx-purple);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}
.zx-account-shell .ziemax-school-card__books-title > .material-icons,
.zx-account-shell .ziemax-school-card__books-count { flex-shrink: 0; }
.zx-account-shell .ziemax-courses { grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: 14px; }
.zx-account-shell .ziemax-book { min-height: 66px; padding: 8px; background: #fff; }
.zx-account-shell .ziemax-book img { height: 54px; }
.zx-account-shell .ziemax-student__books { justify-content: flex-start; }
.zx-account-shell .ziemax-student-list li.ziemax-student { grid-template-columns: minmax(0,1fr); gap: 12px; }
.zx-account-shell .ziemax-student__books-none { color: #68616d; }
.zx-account-shell [hidden] { display: none !important; }
#addresses .zx-account-shell > #content > .col-lg-4 { width: 50%; padding: 0 10px 0 0; }
.zx-account-shell .address { border: 1px solid #e8e2ec; border-radius: 10px; box-shadow: none; }
.zx-account-shell .address .address-body { padding: 20px; }
.zx-account-shell .address .address-footer { padding: 14px 20px; border-top: 1px solid #eee8f0; }
.zx-account-shell .addresses-footer { padding-top: 18px; }
.zx-account-shell .addresses-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.zx-account-shell table { font-size: 13px; }
.zx-account-shell .alert { border-radius: 8px; line-height: 1.5; }
@media (max-width: 991px) {
  .zx-account-shell { grid-template-columns: 205px minmax(0,1fr); gap: 20px; }
  .zx-account-shell > #content.page-content { padding: 24px; }
  .zx-account-shell .zx-account-nav { padding: 20px 10px 14px; }
  .zx-account-shell .zx-account-nav .link-item { gap: 8px; padding: 11px 10px; font-size: 14px; }
  #addresses .zx-account-shell > #content > .col-lg-4 { width: 100%; padding: 0; }
}
@media (max-width: 767px) {
  .zx-account-shell { grid-template-columns: minmax(0,1fr); gap: 20px; margin-bottom: 28px; }
  .zx-account-shell .zx-account-nav { padding: 16px 12px 12px; }
  .zx-account-nav__heading { padding: 0 8px 12px; font-size: 18px; }
  .zx-account-shell .zx-account-nav .links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .zx-account-shell .zx-account-nav .link-item { min-height: 48px; }
  .zx-account-nav__note { display: none; }
  .zx-account-shell > #content.page-content { padding: 22px 18px; }
  body:is(#my-account, #identity, #addresses, #address, #history, #contact) #main > .page-header h1 { font-size: 25px; }
  .zx-account-intro h2 { font-size: 23px; }
  .zx-account-shell #ziemax-schools > #customer-form, .zx-account-shell .ziemax-school-card { padding: 20px 18px; }
  .zx-account-shell .ziemax-school-card__header { flex-direction: column; gap: 4px; }
  .zx-account-shell .ziemax-student-form { padding: 14px; }
  .zx-account-shell .ziemax-student-form__fields { grid-template-columns: minmax(0,1fr); }
  .zx-account-shell .ziemax-school-card__books-title { gap: 6px; font-size: 13px; }
}

/* Main account keeps its original three cards and full-width school section. */
#my-account .zx-account-shell { grid-template-columns: minmax(0, 1fr); }
#my-account #content .zx-account-cards { margin-bottom: 24px; }
#my-account #content .zx-account-cards .zx-account-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
#my-account #content .zx-account-cards a.zx-account-card {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #49414f;
  text-decoration: none;
  text-transform: none;
  border-radius: 14px;
}
#my-account #content .zx-account-cards .link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  height: 100%;
  padding: 22px 18px;
  border: 1px solid #e5dce9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(57, 31, 67, .035);
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
#my-account #content .zx-account-cards .material-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #f4ecf6;
  color: #854694;
  font-size: 27px;
  line-height: 1;
}
#my-account #content .zx-account-cards a:hover .link-item,
#my-account #content .zx-account-cards a:focus-visible .link-item {
  border-color: #b58abf;
  background: #fdfbfe;
  box-shadow: 0 6px 18px rgba(87, 44, 99, .08);
  color: #743981;
}
#my-account .zx-account-shell .zx-account-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 15px 18px;
  border: 1px solid #f3d2ac;
  border-left: 3px solid #f28e20;
  border-radius: 9px;
  background: #fff6eb;
  color: #714b25;
  font-size: 14px;
  line-height: 1.6;
}
#my-account .zx-account-notice .material-icons {
  flex: 0 0 20px;
  width: 20px;
  margin-top: 1px;
  color: #b46919;
  font-size: 20px;
  line-height: 1;
}
#my-account .zx-account-shell #ziemax-schools > #customer-form { border-top: 1px solid #e8e2ec; }
#my-account .zx-account-shell #customer-form > .form-group { margin-bottom: 0; }
@media (max-width: 767px) {
  #my-account #content .zx-account-cards .zx-account-cards__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #my-account #content .zx-account-cards .link-item {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 80px;
    padding: 16px 18px;
    gap: 14px;
    font-size: 15px;
    text-align: left;
  }
  #my-account #content .zx-account-cards .material-icons { flex-basis: 42px; width: 42px; height: 42px; font-size: 25px; }
  #my-account .zx-account-shell .zx-account-notice { padding: 13px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #my-account #content .zx-account-cards .link-item { transition: none; }
}

#my-account #customer-form .btn.mt-3 { margin-top: 20px !important; }

/* Mis datos: quiet navigation and a single clean column, scoped to identity. */
#identity #wrapper { background: #fff; }
#identity #main > .page-header { margin: 0 0 22px; }
#identity #main > .page-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.3px;
}
#identity .zx-account-shell { grid-template-columns: 244px minmax(0, 1fr); gap: 28px; }
#identity .zx-account-shell .zx-account-nav {
  padding: 16px 12px;
  border-color: #e9e6eb;
  border-radius: 6px;
}
#identity .zx-account-nav__heading,
#identity .zx-account-nav__note { display: none; }
#identity .zx-account-shell .zx-account-nav .links { gap: 3px; }
#identity .zx-account-shell .zx-account-nav a.zx-account-nav__link {
  color: #726a76;
  font-size: 14px;
  font-weight: 400;
  border-radius: 4px;
}
#identity .zx-account-shell .zx-account-nav .link-item {
  min-height: 48px;
  gap: 12px;
  padding: 12px;
  border-radius: 4px;
}
#identity .zx-account-shell .zx-account-nav .material-icons { font-size: 20px; color: #928997; }
#identity .zx-account-shell .zx-account-nav a[aria-current="page"] {
  color: #743981;
  background: #f7f3f8;
  font-weight: 500;
  box-shadow: none;
}
#identity .zx-account-shell .zx-account-nav a[aria-current="page"] .material-icons { color: #854694; }
#identity .zx-account-shell .zx-account-nav a:hover { color: #743981; background: #faf8fb; }
#identity .zx-account-shell > #content.page-content {
  padding: 28px 30px;
  border: 1px solid #e9e6eb;
  border-radius: 6px;
  box-shadow: none;
}
body#identity .zx-account-shell #content form { max-width: none; }
#identity .zx-account-shell #customer-form .form-group.row {
  position: relative;
  margin: 0 0 18px;
}
#identity .zx-account-shell #customer-form .form-control-label {
  margin-bottom: 0;
  padding: 0 0 6px;
  color: #736c77;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}
#identity .zx-account-shell #customer-form .form-control:not([type="checkbox"]):not([type="radio"]) {
  min-height: 46px;
  padding: 11px 13px;
  border-color: #ded9e1;
  border-radius: 6px;
  color: #403947;
  font-size: 14px;
  line-height: 1.5;
}
#identity .zx-account-shell #customer-form .form-control:focus {
  border-color: #a47ab0;
  box-shadow: 0 0 0 2px rgba(133,70,148,.08);
}
#identity .zx-account-shell #customer-form .form-control-comment {
  color: #7b7480;
  font-size: 12px;
  line-height: 1.45;
}
#identity .zx-account-shell #customer-form .js-input-column > .form-control-comment {
  display: block;
  margin-top: 5px;
  padding: 0;
}
#identity .zx-account-shell #customer-form .form-group > .col-md-3.form-control-comment {
  position: absolute;
  top: 1px;
  right: 0;
  width: auto;
  padding: 0;
  font-size: 11px;
}
#identity .zx-account-shell #customer-form .form-control-valign {
  min-height: 28px;
  padding: 0;
}
#identity .zx-account-shell #customer-form .radio-inline { margin-bottom: 0; font-size: 13px; }
#identity .zx-account-shell #customer-form .input-group-btn > .btn {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #ded9e1;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: #854694;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}
#identity .zx-account-shell #customer-form .input-group-btn > .btn:hover { background: #f7f3f8; }
#identity .zx-account-shell #customer-form .custom-checkbox label {
  color: #5d5562;
  font-size: 13px;
  line-height: 1.55;
}
#identity .zx-account-shell #customer-form .custom-checkbox label em {
  margin-top: 5px;
  color: #7b7480;
  font-size: 12px;
  line-height: 1.5;
}
#identity .zx-account-shell #customer-form .form-control-label:empty,
#identity .zx-account-shell #customer-form .form-control-label:has(+ .js-input-column input[type="checkbox"]) { display: none; }
#identity .zx-account-shell #customer-form .form-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eeeaf0;
}
#identity .zx-account-shell #customer-form .form-control-submit {
  min-width: 132px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}
/* Keep native password guidance while editing; autofill must not cover the form. */
#identity .field-password-policy:not(:focus-within):not(:has(.has-error)) .password-strength-feedback { display: none !important; }
body#identity:not(:has(.field-password-policy:focus-within)) > .popover { display: none; }
#identity .password-strength-feedback .password-requirements { font-size: 12px; line-height: 1.5; }
#identity .password-strength-feedback .password-requirements p { margin-bottom: 6px; }
@media (max-width: 991px) and (min-width: 768px) {
  #identity .zx-account-shell { grid-template-columns: 205px minmax(0,1fr); gap: 20px; }
  #identity .zx-account-shell > #content.page-content { padding: 24px; }
}
@media (max-width: 767px) {
  #identity .zx-account-shell { grid-template-columns: minmax(0,1fr); gap: 18px; }
  #identity .zx-account-shell .zx-account-nav { padding: 8px; }
  #identity .zx-account-shell .zx-account-nav .link-item { min-height: 44px; gap: 8px; padding: 10px 8px; font-size: 13px; }
  #identity .zx-account-shell > #content.page-content { padding: 22px 18px; }
  #identity .zx-account-shell #customer-form .form-control:not([type="checkbox"]):not([type="radio"]) { font-size: 16px; }
}


/* Optional profile fields retained for native submission, omitted from Mis datos. */
#identity #customer-form .form-group:has(input[name="id_gender"]),
#identity #customer-form .form-group:has(input[name="birthday"]) {
  display: none;
}


/* Mis hijos: a separate account view sharing the existing student records. */
#my-account #content .zx-children-entry { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; margin:0 0 24px; border:1px solid #e8e2ec; border-radius:8px; background:#fff; }
.zx-children-entry p { margin:0; color:#77717b; font-size:13px; line-height:1.5; }
.zx-children-entry strong { display:block; margin-bottom:3px; color:#302b34; font-size:16px; }
#my-account.zx-children-active #wrapper,
#history #wrapper { background:#fff; }
#my-account .zx-account-shell:is(.zx-account-shell--children, .zx-account-shell--sections),
#history .zx-account-shell { grid-template-columns:244px minmax(0,1fr); }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) #content { min-width:0; }
#my-account.zx-children-active #main > .page-header h1,
body#history #main > .page-header h1 { font-size:24px; font-weight:600; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav,
#history .zx-account-shell .zx-account-nav { padding:16px 12px; border-color:#e8e6e9; border-radius:6px; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav__heading,
#history .zx-account-shell .zx-account-nav__heading,
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav__note,
#history .zx-account-shell .zx-account-nav__note { display:none; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav .links,
#history .zx-account-shell .zx-account-nav .links { gap:3px; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav .link-item,
#history .zx-account-shell .zx-account-nav .link-item { min-height:48px; padding:11px 12px; gap:12px; font-size:14px; font-weight:400; border-radius:4px; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav .material-icons,
#history .zx-account-shell .zx-account-nav .material-icons { font-size:20px; color:#928997; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav a[aria-current="page"],
#history .zx-account-shell .zx-account-nav a[aria-current="page"] { background:#f7f1f9; color:#743981; box-shadow:none; }
#my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav a[aria-current="page"] .material-icons,
#history .zx-account-shell .zx-account-nav a[aria-current="page"] .material-icons { color:#854694; }
.zx-children-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 20px; min-height:44px; }
.zx-children-toolbar p { margin:0; color:#77717b; font-size:13px; }
.zx-children-toolbar button { white-space:nowrap; }
.zx-children-empty,
.zx-account-empty { text-align:center; padding:46px 24px; border:1px solid #e8e6e9; border-radius:6px; background:#fff; margin-bottom:20px; }
.zx-children-empty > .material-icons,
.zx-account-empty > .material-icons { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; background:#f7f1f9; color:#854694; font-size:28px; border-radius:50%; margin-bottom:18px; }
.zx-children-empty h2,
.zx-account-empty h2 { font-size:19px; font-weight:500; margin:0 0 10px; }
.zx-children-empty p,
.zx-account-empty p { color:#77717b; font-size:14px; line-height:1.6; margin:0 auto 12px; max-width:380px; }
#my-account .zx-child-card { padding:28px 30px; margin:0 0 20px; background:#fff; border:1px solid #e8e6e9; border-radius:6px; }
.zx-child-card__header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:22px; }
.zx-child-card__header h2 { margin:0; font-size:18px; line-height:1.45; font-weight:500; overflow-wrap:anywhere; }
.zx-child-card__header p { margin:5px 0 0; color:#77717b; font-size:13px; }
.zx-child-card__header .btn-link { font-size:13px; min-height:36px; padding:6px; white-space:nowrap; }
#my-account .zx-child-card .ziemax-student-form { margin:0; padding:0; border:0; background:transparent; }
#my-account .zx-child-card .ziemax-student-form__fields { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
#my-account .zx-child-card .form-group { margin:0 0 22px; }
#my-account .zx-child-card label, .zx-child-school > span { display:block; font-size:13px; font-weight:400; color:#77717b; margin-bottom:7px; }
#my-account .zx-child-card .form-control { font-size:14px; min-height:46px; border-color:#dedbe1; border-radius:6px; width:100%; }
#my-account .zx-child-card .form-control:focus { border-color:#854694; }
.zx-child-school { margin-bottom:22px; }
.zx-child-school p { margin:0; padding:13px; border:1px solid #e8e6e9; border-radius:6px; font-size:14px; line-height:1.5; color:#49414f; background:#faf9fb; overflow-wrap:anywhere; }
.zx-child-help { display:block; font-size:13px; line-height:1.5; color:#77717b; margin:8px 0 0; }
a.zx-child-help { color:#854694; }
.zx-child-books { border-top:1px solid #eeeaf0; margin-top:24px; padding-top:14px; }
.zx-child-books summary { padding:8px 0; cursor:pointer; font-size:14px; color:#743981; }
.zx-child-books summary span { font-size:12px; color:#77717b; margin-left:8px; }
.zx-child-books .ziemax-student__books { padding-top:12px; }
@media (max-width:991px) {
  #my-account .zx-account-shell:is(.zx-account-shell--children, .zx-account-shell--sections),
#history .zx-account-shell { grid-template-columns:205px minmax(0,1fr); gap:20px; }
  #my-account .zx-child-card { padding:24px; }
}
@media (max-width:767px) {
  #my-account .zx-account-shell:is(.zx-account-shell--children, .zx-account-shell--sections),
#history .zx-account-shell { grid-template-columns:minmax(0,1fr); gap:18px; }
  #my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav,
#history .zx-account-shell .zx-account-nav { padding:8px; }
  #my-account :is(.zx-account-shell--children, .zx-account-shell--sections) .zx-account-nav .link-item,
#history .zx-account-shell .zx-account-nav .link-item { min-height:44px; padding:10px 8px; font-size:13px; gap:8px; }
  #my-account .zx-child-card { padding:22px 18px; }
  #my-account .zx-child-card .form-control { font-size:16px; }
  #my-account #content .zx-children-entry { flex-wrap:wrap; padding:18px; }
  .zx-children-empty,
.zx-account-empty { padding:32px 18px; }
  .zx-children-toolbar { gap:10px; }
}

/* Shared privacy notice and declarations for both student enrolment forms. */
#my-account #zx-child-add .zx-child-intro { margin:-10px 0 24px; color:#746b79; font-size:14px; line-height:1.6; }
#my-account .ziemax-student-form .zx-child-privacy { margin:4px 0 26px; padding:22px 24px 0; border:1px solid #e7ddec; border-radius:10px; background:#faf7fc; color:#514758; }
#my-account .ziemax-student-form .zx-child-privacy__header { display:flex; align-items:flex-start; gap:12px; margin-bottom:20px; }
#my-account .ziemax-student-form .zx-child-privacy__header > .material-icons { display:flex; align-items:center; justify-content:center; flex:0 0 36px; height:36px; border-radius:10px; background:#efe5f3; color:#7e418d; font-size:19px; }
#my-account .ziemax-student-form .zx-child-privacy h3 { margin:0 0 5px; color:#3f3047; font-size:16px; font-weight:600; line-height:1.5; text-transform:none; }
#my-account .ziemax-student-form .zx-child-privacy__header p { margin:0; font-size:13px; color:#72647a; line-height:1.55; }
#my-account .ziemax-student-form .zx-child-privacy__details { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr); gap:18px 26px; margin:0 0 20px; }
#my-account .ziemax-student-form .zx-child-privacy__details dt { margin-bottom:6px; font-size:12px; font-weight:600; color:#6d4479; }
#my-account .ziemax-student-form .zx-child-privacy__details dd { margin:0; font-size:13px; line-height:1.7; }
#my-account .ziemax-student-form .zx-child-privacy__rights { grid-column:1 / -1; }
#my-account .ziemax-student-form .zx-child-privacy a,
#my-account .ziemax-student-form .zx-child-declaration a { color:#733584; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
#my-account .ziemax-student-form .zx-child-privacy a:hover,
#my-account .ziemax-student-form .zx-child-declaration a:hover { color:#4b2356; }
#my-account .ziemax-student-form .zx-child-privacy__policy { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; border-top:1px solid #e7ddec; padding:14px 0; font-size:13px; font-weight:500; }
#my-account .ziemax-student-form .zx-child-privacy__policy span { font-size:11px; color:#756c7b; font-weight:400; }
#my-account .ziemax-student-form .zx-child-privacy__policy .material-icons { font-size:16px; margin-left:auto; }
#my-account .ziemax-student-form .zx-child-declarations { margin:0 0 22px; padding:0; border:0; min-width:0; }
#my-account .ziemax-student-form .zx-child-declarations legend { padding:0; margin:0 0 12px; font-size:14px; font-weight:500; color:#44384b; }
#my-account .ziemax-student-form label.zx-child-declaration { display:flex; align-items:flex-start; gap:11px; margin:0; padding:10px 0; color:#62586a; font-size:13px; font-weight:400; line-height:1.7; text-align:left; cursor:pointer; }
#my-account .ziemax-student-form .zx-child-declaration > span { min-width:0; flex:1; }
#my-account .ziemax-student-form .zx-child-declaration input[type="checkbox"] { flex:0 0 18px; width:18px; height:18px; margin:2px 0 0; position:static; opacity:1; appearance:auto; accent-color:#854694; cursor:pointer; }
#my-account .ziemax-student-form .zx-child-declaration input:focus-visible,
#my-account .ziemax-student-form a:focus-visible { outline:2px solid #854694; outline-offset:4px; }
#my-account .ziemax-student-form .zx-child-submit { padding:16px 0 0; border-top:1px solid #eeeaef; }
@media (max-width:767px) {
  #my-account .ziemax-student-form .zx-child-privacy { padding:18px 16px 0; margin-bottom:22px; }
  #my-account .ziemax-student-form .zx-child-privacy__details { grid-template-columns:minmax(0,1fr); gap:16px; }
  #my-account .ziemax-student-form .zx-child-privacy__header { gap:10px; }
  #my-account .ziemax-student-form .zx-child-privacy__policy span { flex-basis:100%; order:1; }
  #my-account .ziemax-student-form .zx-child-submit .btn { width:100%; }
}

/* The school enrolment panel shares the clean Mis hijos account presentation. */
#my-account:not(.zx-children-active) #wrapper { background:#fff; }
#my-account #ziemax-schools { scroll-margin-top:24px; }
#my-account #ziemax-schools > #customer-form,
#my-account #ziemax-schools .ziemax-school-card {
  border:1px solid #e8e6e9; border-radius:8px; box-shadow:none;
}
#my-account #ziemax-schools .zx-account-section-title { font-size:20px; font-weight:600; color:#302b34; }
#my-account #ziemax-schools .ziemax-school-card { padding:28px; }
#my-account #ziemax-schools .ziemax-school-card__name { font-size:17px; font-weight:600; line-height:1.5; }
#my-account #ziemax-schools .ziemax-school-card__meta,
#my-account #ziemax-schools .ziemax-schools__count { color:#77717b; font-size:13px; }
#my-account #ziemax-schools .ziemax-student--empty { color:#77717b; font-size:13px; }
#my-account #ziemax-schools .ziemax-student-add {
  margin:18px 0 0; border:1px solid #e8e2ec; border-radius:8px; background:#fff; overflow:hidden;
}
#my-account #ziemax-schools .ziemax-student-add > .zx-student-add-toggle {
  display:flex; align-items:center; gap:12px; width:100%; min-height:66px;
  padding:14px 18px; margin:0; border:0; border-radius:0; background:#faf7fb;
  color:#743981; text-align:left; text-transform:none; white-space:normal;
  cursor:pointer; list-style:none; box-shadow:none;
}
#my-account #ziemax-schools .zx-student-add-toggle::-webkit-details-marker { display:none; }
#my-account #ziemax-schools .zx-student-add-toggle > .material-icons:first-child {
  display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 36px; height:36px; border-radius:50%; background:#f0e5f4; font-size:21px;
}
#my-account #ziemax-schools .zx-student-add-toggle strong { display:block; font-size:15px; font-weight:600; line-height:1.4; }
#my-account #ziemax-schools .zx-student-add-toggle small { display:block; margin-top:3px; color:#77717b; font-size:12px; font-weight:400; line-height:1.5; }
#my-account #ziemax-schools .zx-student-add-toggle__chevron { margin-left:auto; font-size:22px; transition:transform .18s ease; }
#my-account #ziemax-schools .ziemax-student-add[open] .zx-student-add-toggle__chevron { transform:rotate(180deg); }
#my-account #ziemax-schools .zx-student-add-toggle:hover { background:#f4edf7; }
#my-account #ziemax-schools .zx-student-add-toggle:focus:not(:focus-visible) { outline:none; }
#my-account #ziemax-schools .zx-student-add-toggle:focus-visible { outline:2px solid #854694; outline-offset:-3px; }
#my-account #ziemax-schools .zx-student-add-body { padding:24px; border-top:1px solid #e8e2ec; }
#my-account #ziemax-schools .zx-student-add-body__heading { margin-bottom:22px; }
#my-account #ziemax-schools .zx-student-add-body__heading h3 { margin:0 0 7px; color:#302b34; font-size:18px; font-weight:500; line-height:1.4; }
#my-account #ziemax-schools .zx-student-add-body__heading p { margin:0; font-size:13px; line-height:1.6; color:#77717b; }
#my-account #ziemax-schools .ziemax-student-form { padding:0; margin:0; border:0; background:transparent; }
#my-account #ziemax-schools .ziemax-student-form__fields { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:22px; margin-bottom:22px; }
#my-account #ziemax-schools .ziemax-student-form__fields label { display:block; margin:0 0 8px; color:#77717b; font-size:13px; font-weight:400; }
#my-account #ziemax-schools .ziemax-student-form .form-control {
  width:100%; min-height:46px; height:46px; padding:11px 13px;
  border:1px solid #dedbe1; border-radius:6px; background-color:#fff;
  color:#49414f; font-size:14px; line-height:1.5; box-shadow:none;
}
#my-account #ziemax-schools .ziemax-student-form .form-control:focus { border-color:#854694; box-shadow:0 0 0 3px rgba(133,70,148,.10); outline:none; }
#my-account #ziemax-schools .ziemax-student-form .form-control::placeholder { color:#9a949e; opacity:1; }
#my-account #ziemax-schools .ziemax-student-form > .btn-primary { min-height:44px; padding:11px 22px; border-radius:6px; font-size:14px; font-weight:600; box-shadow:none; }
#my-account #ziemax-schools .ziemax-student__edit { padding:20px; border:1px solid #e8e6e9; border-radius:8px; background:#faf9fb; }
@media (max-width:767px) {
  #my-account #ziemax-schools .ziemax-school-card { padding:20px 16px; }
  #my-account #ziemax-schools .zx-student-add-toggle { gap:10px; }
  #my-account #ziemax-schools .ziemax-student-add > .zx-student-add-toggle { padding:14px; }
  #my-account #ziemax-schools .zx-student-add-body { padding:20px 16px; }
  #my-account #ziemax-schools .ziemax-student-form__fields { grid-template-columns:minmax(0,1fr); gap:20px; }
  #my-account #ziemax-schools .ziemax-student-form .form-control { font-size:16px; }
  #my-account #ziemax-schools .ziemax-student-form > .btn-primary { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  #my-account #ziemax-schools .zx-student-add-toggle__chevron { transition:none; }
}

/* Compact account overview: schools first, children second, account shortcuts third. */
#my-account #content .zx-account-cards { margin:0 0 20px; }
#my-account #content .zx-account-cards .zx-account-cards__grid { gap:12px; }
#my-account #content .zx-account-cards .link-item {
  flex-direction:row; justify-content:flex-start; gap:10px; min-height:64px;
  padding:12px 14px; border-radius:8px; font-size:14px; text-align:left; box-shadow:none;
}
#my-account #content .zx-account-cards .material-icons { flex:0 0 32px; width:32px; height:32px; font-size:21px; }
#my-account #content .zx-children-entry { padding:14px 18px; margin:0 0 16px; gap:12px; }
#my-account #content .zx-children-entry strong { font-size:15px; }
#my-account #content .zx-children-entry .btn { min-height:44px; padding:10px 16px; font-size:13px; }
#my-account .zx-account-shell #ziemax-schools > #customer-form { padding:18px 20px; margin-bottom:14px; }
#my-account #ziemax-schools .zx-account-section-title { font-size:18px; margin-bottom:10px; }
#my-account #ziemax-schools .zx-school-help { font-size:13px; color:#77717b; margin:0 0 12px; line-height:1.5; }
#my-account #ziemax-schools .ziemax-school-card { padding:18px 20px; margin-bottom:14px; }
#my-account #ziemax-schools .ziemax-student-add > .zx-student-add-toggle { min-height:54px; padding:10px 14px; }
@media (max-width:767px) {
  #my-account #content .zx-account-cards .zx-account-cards__grid { gap:8px; }
  #my-account #content .zx-account-cards .link-item { min-height:56px; padding:10px 12px; }
  #my-account .zx-account-shell #ziemax-schools > #customer-form,
  #my-account #ziemax-schools .ziemax-school-card { padding:16px; }
  #my-account #content .zx-children-entry { padding:14px 16px; }
}

/* School search: readable selections and a dedicated typing row. */
#my-account #ziemax-schools .select2-container .select2-selection--multiple {
  min-height:58px; padding:10px 12px; border:1px solid #d9cde0;
  border-radius:10px; background:#fff; cursor:text;
}
#my-account #ziemax-schools .select2-container--focus .select2-selection--multiple,
#my-account #ziemax-schools .select2-container--open .select2-selection--multiple {
  border-color:#854694; box-shadow:0 0 0 3px rgba(133,70,148,.12);
}
#my-account #ziemax-schools .select2-selection--multiple .select2-selection__rendered {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  width:100%; padding:0; margin:0; overflow:visible;
}
#my-account #ziemax-schools .select2-selection--multiple .select2-selection__choice {
  display:flex; align-items:center; gap:8px; float:none; max-width:100%;
  margin:0; padding:6px 12px 6px 6px; border:1px solid #e4d5eb; border-radius:8px;
  background:#f5eef8; color:#593266; font-size:14px; line-height:1.5;
  white-space:normal; overflow-wrap:anywhere;
}
#my-account #ziemax-schools .select2-selection--multiple .select2-selection__choice__remove {
  position:static; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 28px; width:28px; height:28px; padding:0; margin:0;
  border:0; border-radius:6px; background:#eaddf0; color:#663975;
  font-size:20px; line-height:1; font-weight:400; cursor:pointer;
}
#my-account #ziemax-schools .select2-selection__choice__remove:hover,
#my-account #ziemax-schools .select2-selection__choice__remove:focus-visible { background:#dac4e4; color:#43234d; }
#my-account #ziemax-schools .select2-search--inline {
  display:flex; align-items:center; gap:8px; float:none; flex:1 1 120px;
  width:auto; min-width:0; padding:3px 2px;
}
#my-account #ziemax-schools .select2-search--inline::before {
  content:"\e8b6"; font-family:'Material Icons'; font-size:22px; line-height:1; color:#854694;
}
#my-account #ziemax-schools .select2-search--inline .select2-search__field {
  flex:1; width:100% !important; min-width:0; min-height:32px; margin:0;
  padding:4px 0; border:0; background:transparent; color:#403548; font-size:15px; line-height:24px;
}
#my-account #ziemax-schools .select2-search__field::placeholder { color:#817387; opacity:1; }
#my-account .select2-dropdown:has(#select2-school-results) {
  border:1px solid #d9cde0; border-radius:10px; overflow:hidden;
  box-shadow:0 8px 24px rgba(57,31,67,.12); background:#fff;
}
#my-account #select2-school-results { max-height:280px; padding:6px; }
#my-account #select2-school-results .select2-results__option {
  padding:12px 14px; margin:2px 0; border-radius:6px;
  font-size:14px; line-height:1.5; color:#493d50; overflow-wrap:anywhere;
}
#my-account #select2-school-results .select2-results__option[aria-selected=true] { background:#f2e9f6; color:#633771; }
#my-account #select2-school-results .select2-results__option--highlighted { background:#854694; color:#fff; }
#my-account #select2-school-results .select2-results__message { color:#786b80; background:#faf8fb; }
@media(max-width:767px) {
  #my-account #ziemax-schools .select2-container .select2-selection--multiple { padding:8px; }
  #my-account #ziemax-schools .select2-search--inline .select2-search__field { font-size:16px; }
  #my-account #ziemax-schools .select2-selection--multiple .select2-selection__choice { font-size:13px; }
}

/* Select2 4.1 places the search beside the rendered list, outside its flex layout. */
#my-account #ziemax-schools .select2-container .select2-selection--multiple {
  display:flex; flex-wrap:nowrap; align-items:center; gap:8px;
}
#my-account #ziemax-schools .select2-selection--multiple > .select2-selection__rendered {
  flex:0 1 auto; width:auto; min-width:0; margin:0;
}
#my-account #ziemax-schools .select2-selection--multiple > .select2-search--inline {
  flex:1 1 100px; width:auto; min-width:64px; margin:0; align-self:center;
}
#my-account #ziemax-schools .select2-selection--multiple > .select2-selection__rendered:has(> .select2-search--inline) {
  flex:1 1 auto; flex-wrap:nowrap; width:100%;
}
#my-account #ziemax-schools .select2-search--inline::before { flex-shrink:0; }
#my-account #ziemax-schools .select2-search--inline .select2-search__field { height:32px; vertical-align:middle; }

/* Keep the school notice beside its save action. */
#my-account #customer-form .zx-school-save-row {
  display:flex; align-items:center; gap:16px; margin-top:16px;
}
#my-account #customer-form .zx-school-save-row > .btn.mt-3 {
  flex:0 0 auto; margin:0 !important;
}
#my-account .zx-account-shell #customer-form .zx-school-save-row > .zx-account-notice {
  flex:1; min-width:0; margin:0; padding:10px 14px; font-size:12px; line-height:1.5;
}
@media(max-width:575px) {
  #my-account #customer-form .zx-school-save-row { gap:10px; align-items:flex-start; }
  #my-account .zx-account-shell #customer-form .zx-school-save-row > .zx-account-notice { padding:8px 10px; }
}

/* Invitation appears only when a school has no registered students. */
#my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt {
  display:flex; align-items:center; gap:16px; margin:16px 0 0; padding:18px 20px;
  border:1px solid #e4d6eb; border-left:4px solid #854694; border-radius:8px;
  background:linear-gradient(110deg,#f6eff9,#fcfafd); color:#593366;
}
#my-account #ziemax-schools .zx-student-prompt__icon {
  display:flex; align-items:center; justify-content:center; flex:0 0 42px;
  width:42px; height:42px; border-radius:50%; background:#ecdef3; color:#854694; font-size:25px;
}
#my-account #ziemax-schools .zx-student-prompt strong {
  display:block; margin:0 0 5px; color:#633573; font-size:16px; font-weight:600; line-height:1.4;
}
#my-account #ziemax-schools .zx-student-prompt p { margin:0; color:#706277; font-size:13px; line-height:1.6; }
@media(max-width:575px) {
  #my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt { align-items:flex-start; padding:14px; gap:12px; }
  #my-account #ziemax-schools .zx-student-prompt strong { font-size:15px; }
}

/* Handwritten invitation, without a banner background or frame. */
#my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt {
  display:block; margin:16px 0 0; padding:6px 0 10px;
  border:0; border-radius:0; background:transparent; box-shadow:none;
}
#my-account #ziemax-schools .zx-student-prompt strong,
#my-account #ziemax-schools .zx-student-prompt p {
  font-family:'Segoe Print','Bradley Hand','Comic Sans MS',cursive;
  font-weight:700; color:#633573; line-height:1.6;
}
#my-account #ziemax-schools .zx-student-prompt strong { font-size:22px; margin:0 0 4px; }
#my-account #ziemax-schools .zx-student-prompt p { font-size:18px; margin:0; }
@media(max-width:575px) {
  #my-account #ziemax-schools .zx-student-prompt strong { font-size:20px; }
  #my-account #ziemax-schools .zx-student-prompt p { font-size:16px; }
}

/* Hand-drawn cue toward the existing Add student control. */
#my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt {
  position:relative; padding-left:48px; overflow:visible;
}
#my-account #ziemax-schools .zx-student-prompt__arrow {
  position:absolute; left:-6px; bottom:-53px; width:46px; height:calc(100% + 36px);
  color:#854694; pointer-events:none; z-index:1;
}
@media(max-width:575px) {
  #my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt { padding-left:38px; }
  #my-account #ziemax-schools .zx-student-prompt__arrow { left:-8px; width:38px; }
}

/* Keep the entire arrow in the invitation, clear of the button and its icon. */
#my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt {
  padding-left:108px; min-height:94px;
}
#my-account #ziemax-schools .zx-student-prompt__arrow {
  color:#000; left:0; bottom:0; width:66px; height:84px;
}
@media(max-width:575px) {
  #my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt { padding-left:92px; }
  #my-account #ziemax-schools .zx-student-prompt__arrow { left:0; bottom:0; width:52px; height:72px; }
}

/* Original curved arrow with a small clockwise tilt toward Add student. */
#my-account #ziemax-schools .zx-student-prompt__arrow {
  left:24px; bottom:-12px; width:66px; height:84px;
  transform:rotate(25deg); transform-origin:center;
}
@media(max-width:575px) {
  #my-account #ziemax-schools .zx-student-prompt__arrow { left:26px; bottom:-12px; width:58px; height:74px; }
}

/* Keep each student's details and suggested books together on one row. */
#my-account #ziemax-schools .ziemax-student-list > li.ziemax-student:not(.ziemax-student--empty) {
  grid-template-columns:minmax(0,220px) minmax(0,1fr);
  gap:16px 24px;
  align-items:center;
}
#my-account #ziemax-schools .ziemax-student > .ziemax-student__main,
#my-account #ziemax-schools .ziemax-student > .ziemax-student__books {
  min-width:0;
}
#my-account #ziemax-schools .ziemax-student__info,
#my-account #ziemax-schools .ziemax-student__books .ziemax-book__name {
  overflow-wrap:anywhere;
}
#my-account #ziemax-schools .ziemax-student > .ziemax-student__books .ziemax-book {
  box-sizing:border-box;
  max-width:min(260px,100%);
  min-width:0;
}
#my-account #ziemax-schools .ziemax-student > .ziemax-student__edit {
  grid-column:1 / -1;
}
@media (max-width:575px) {
  #my-account #ziemax-schools .ziemax-student-list > li.ziemax-student:not(.ziemax-student--empty) {
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    gap:16px 12px;
  }
}

/* Order history uses the same typography and white panels as Mis hijos. */
#history .zx-account-shell > #content.page-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #302b34;
  font-size: 16px;
}
#history #content .zx-history-intro {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 20px;
  color: #77717b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
#history #content .zx-history-orders {
  padding: 20px;
  border: 1px solid #e8e6e9;
  border-radius: 6px;
  background: #fff;
  overflow-x: auto;
}
#history #content .zx-history-orders table {
  margin-bottom: 0;
  color: #49414f;
  font-size: 14px;
  line-height: 1.5;
}
#history #content .zx-history-orders th,
#history #content .zx-history-orders td {
  border-color: #e8e6e9;
  padding: 12px;
  vertical-align: middle;
}
#history #content .zx-history-orders thead th {
  background: #faf9fb;
  color: #77717b;
  font-size: 13px;
  font-weight: 500;
}
#history #content .zx-history-orders tbody th { font-weight: 500; }
#history #content .zx-history-orders .label { font-size: 12px; line-height: 1.4; }
#history #content .zx-history-orders .order h3 { font-size: 18px; font-weight: 500; }
#history #content .zx-history-orders .order .date,
#history #content .zx-history-orders .order .total { font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) {
  #history #content .zx-history-orders { padding: 18px; }
}

/* Center the single-line invitation beside the arrow; allow text to wrap on mobile. */
#my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt {
  display:grid; grid-template-columns:66px minmax(0,1fr); gap:42px;
  align-items:center; padding:22px 0 0;
}
#my-account #ziemax-schools .zx-student-prompt > div { grid-column:2; min-width:0; }
#my-account #ziemax-schools .zx-student-prompt__arrow { position:relative; bottom:auto; }
@media(max-width:575px) {
  #my-account #ziemax-schools .ziemax-student-list > .zx-student-prompt {
    grid-template-columns:58px minmax(0,1fr); gap:34px;
  }
  #my-account #ziemax-schools .zx-student-prompt__arrow { bottom:auto; }
}

/* Keep the selected-schools heading and student summary together. */
#my-account #ziemax-schools .zx-selected-schools-heading {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 20px; margin-bottom:20px;
}
#my-account #ziemax-schools .zx-selected-schools-heading > .zx-account-section-title,
#my-account #ziemax-schools .zx-selected-schools-heading > .ziemax-schools__count {
  margin:0;
}
#my-account #ziemax-schools .zx-selected-schools-heading > .zx-account-section-title {
  flex:0 1 auto;
}

/* Shared account typography: changing tabs must not restyle the navigation. */
body:is(#my-account, #identity, #addresses, #address, #history, #contact) {
  --zx-account-font: "Space Grotesk", system-ui, sans-serif;
  font-family: var(--zx-account-font);
}
body:is(#my-account, #identity, #addresses, #address, #history, #contact) #main > .page-header h1 {
  font-family: var(--zx-account-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.3px;
}
body #wrapper .zx-account-shell {
  font-family: var(--zx-account-font, "Space Grotesk", system-ui, sans-serif);
}
body #wrapper .zx-account-shell :is(input, select, textarea, button) {
  font-family: inherit;
}
body #wrapper .zx-account-shell .zx-account-nav {
  padding: 16px 12px;
  border-color: #e8e6e9;
  border-radius: 6px;
}
body #wrapper .zx-account-shell .zx-account-nav__heading,
body #wrapper .zx-account-shell .zx-account-nav__note {
  display: none;
}
body #wrapper .zx-account-shell .zx-account-nav .links { gap: 3px; }
body #wrapper .zx-account-shell .zx-account-nav a.zx-account-nav__link {
  color: #726a76;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  border-radius: 4px;
}
body #wrapper .zx-account-shell .zx-account-nav .link-item {
  min-height: 48px;
  padding: 11px 12px;
  gap: 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
body #wrapper .zx-account-shell .zx-account-nav .material-icons {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #928997;
}
body #wrapper .zx-account-shell .zx-account-nav a[aria-current="page"] {
  color: #743981;
  background: #f7f1f9;
  font-weight: 500;
  box-shadow: none;
}
body #wrapper .zx-account-shell .zx-account-nav a[aria-current="page"] .material-icons {
  color: #854694;
}
body #wrapper .zx-account-shell .zx-account-nav a:hover {
  color: #743981;
  background: #faf8fb;
}
@media (max-width: 767px) {
  body #wrapper .zx-account-shell .zx-account-nav { padding: 8px; }
  body #wrapper .zx-account-shell .zx-account-nav .link-item {
    min-height: 44px;
    padding: 10px 8px;
    gap: 8px;
  }
}


/* The help page has the same account sidebar on direct and footer entry. */
#contact #wrapper #content-wrapper { width: 100%; }
#contact .zx-contact-shell--guest { display: block; }
#contact .zx-contact-shell > #content.zx-contact-panels {
  container: zx-help / inline-size;
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
#contact #left-column.zx-contact-info {
  width: auto;
  min-width: 0;
  float: none;
  padding: 0;
  margin: 0;
}
#contact .zx-contact-message {
  min-width: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid #e8e2ec;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(46, 28, 56, .035);
}
#contact .zx-contact-message .contact-form { padding: 0; }
#contact .zx-contact-message textarea.form-control { min-height: 100px; }
#contact .zx-contact-shell .contact-rich { padding: 26px 23px; }
@container zx-help (max-width: 620px) {
  #contact #left-column.zx-contact-info,
  #contact .zx-contact-message { grid-column: 1 / -1; }
  #contact .zx-contact-message { grid-row: 1; }
}
@media (max-width: 767px) {
  #contact .zx-contact-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #contact .zx-contact-message { padding: 24px 20px; }
}


/* Saved children appear as rows; forms open only while adding or editing. */
#my-account .zx-children-list {
  display: block;
  width: 100%;
  min-width: 0;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid #e8e2ec;
  border-radius: 8px;
  background: #fff;
}
#my-account #mis-hijos .zx-children-list__item { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; }
#my-account .zx-children-list__item + .zx-children-list__item { border-top: 1px solid #eeeaf0; }
#my-account .zx-children-list .zx-child-row {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px 22px 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
#my-account .zx-child-row__summary {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
}
#my-account .zx-child-row__info { flex: 1; min-width: 0; }
#my-account .zx-child-row__info h2 {
  margin: 0 0 7px;
  color: #3c3541;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#my-account .zx-child-row__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  color: #756c7b;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#my-account .zx-child-row__grade {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 4px;
  background: #f6f0f8;
  color: #743981;
  font-weight: 500;
}
#my-account .zx-child-row__meta > span { max-width: 100%; }
#my-account .zx-child-row__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
#my-account .zx-child-row__actions form { margin: 0; padding: 0; border: 0; }
#my-account .zx-child-row__actions .btn-link {
  min-height: 44px;
  padding: 10px 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #854694;
  white-space: nowrap;
}
#my-account .zx-child-row__actions .zx-child-row__remove { color: #77717b; font-weight: 400; }
#my-account .zx-child-row .btn-link:hover { color: #622f6e; background: #faf7fc; }
#my-account .zx-child-row .btn-link:focus-visible,
#my-account .zx-child-row .zx-child-books summary:focus-visible {
  outline: 2px solid #854694;
  outline-offset: 2px;
  border-radius: 4px;
}
#my-account .zx-child-row .zx-child-books { margin: 7px 0 0; padding: 0; border: 0; }
#my-account .zx-child-row .zx-child-books summary { display: list-item; width: fit-content; padding: 7px 0; font-size: 13px; }
#my-account .zx-child-row .zx-child-books[open] .ziemax-student__books { padding: 10px 0 6px; }
#my-account .zx-child-editor {
  margin: 16px 0 12px;
  padding: 22px 0 8px;
  border-top: 1px solid #eeeaf0;
}
#my-account .zx-child-editor[hidden] { display: none !important; }
#my-account .zx-child-editor .zx-child-card__header { align-items: center; margin: 0 0 20px; }
#my-account .zx-child-editor h3 { margin: 0; color: #49414f; font-size: 15px; font-weight: 600; }
@media (max-width: 767px) {
  #my-account .zx-children-list .zx-child-row { padding: 16px 16px 10px; }
  #my-account .zx-child-row__summary { flex-wrap: wrap; gap: 6px; }
  #my-account .zx-child-row__info { flex-basis: 100%; }
  #my-account .zx-child-row__meta { align-items: flex-start; flex-direction: column; gap: 6px; }
  #my-account .zx-child-row__actions { margin-left: -9px; }
  #my-account .zx-child-row .zx-child-books { margin-top: 0; }
  #my-account .zx-child-editor { margin-top: 10px; padding-top: 18px; }
}

/* School search within the compact child forms. */
#mis-hijos .zx-child-school-picker { position:relative; min-width:0; }
#mis-hijos .zx-child-school-picker .select2-container { display:block; width:100%!important; max-width:100%; }
#mis-hijos .zx-child-school-picker .select2-selection--single {
  height:auto; min-height:48px; border:1px solid #ddcee4; border-radius:6px; background:#fff;
  display:flex; align-items:center; padding:10px 34px 10px 14px;
}
#mis-hijos .zx-child-school-picker .select2-selection__rendered {
  padding:0; color:#4a414f; white-space:normal; overflow-wrap:anywhere; line-height:1.5; font-size:14px;
}
#mis-hijos .zx-child-school-picker .select2-selection__placeholder { color:#92869a; }
#mis-hijos .zx-child-school-picker .select2-selection__arrow { top:50%; transform:translateY(-50%); right:8px; }
#mis-hijos .zx-child-school-picker .select2-container--focus .select2-selection,
#mis-hijos .zx-child-school-picker .select2-container--open .select2-selection {
  border-color:#854694; box-shadow:0 0 0 3px rgba(133,70,148,.13);
}
#mis-hijos .zx-child-school-picker .select2-dropdown {
  border:1px solid #ddcee4; border-radius:6px; box-shadow:0 8px 22px rgba(60,30,70,.12); overflow:hidden;
}
#mis-hijos .zx-child-school-picker .select2-search--dropdown { padding:10px; }
#mis-hijos .zx-child-school-picker .select2-search__field {
  width:100%; border:1px solid #ddcee4; border-radius:4px; min-height:42px; padding:8px 10px; font-size:16px;
}
#mis-hijos .zx-child-school-picker .select2-results__options { max-height:230px; padding:4px; }
#mis-hijos .zx-child-school-picker .select2-results__option {
  display:block; width:100%; padding:10px; margin:0; white-space:normal; overflow-wrap:anywhere; font-size:14px; line-height:1.5;
}
#mis-hijos .zx-child-school-picker .select2-results__option--highlighted { background:#854694; color:#fff; }
#mis-hijos .zx-child-school-picker .select2-results__message { color:#786b80; }
#mis-hijos .zx-child-school-picker .zx-child-help { margin:8px 0 0; }
