/* Each student or school and its compact book cards share a rounded frame. */
#index .zx-suggestions { box-sizing:border-box; width:100%; max-width:1280px; margin:24px auto 36px; padding:0 16px; min-width:0; }
#index .zx-suggestions__list { display:grid; gap:16px; margin:0; padding:0; border:0; background:transparent; }
#index .zx-student-line {
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:center;
  box-sizing:border-box; gap:16px 28px; min-width:0; padding:20px 24px;
  border:1px solid #dfd2e5; border-radius:14px; background:#fff;
}
#index .zx-student-line__heading {
  margin:0; color:#514158; font-size:16px; line-height:1.85; font-weight:400;
  text-transform:none; overflow-wrap:anywhere;
}
#index .zx-student-line__heading strong { font-weight:600; color:#514158; }
#index .zx-student-line__level { white-space:nowrap; }
#index .zx-student-line__school { color:#655b6b; }
#index .zx-student-line__info, #index .zx-student-line__books { min-width:0; }
#index .zx-student-line__actions { display:flex; align-items:center; gap:22px; margin-top:5px; }
#index .zx-student-line__actions form { margin:0; padding:0; }
#index .zx-student-line__actions a, #index .zx-student-line__actions button {
  display:inline-flex; align-items:center; min-height:36px; padding:0; margin:0; border:0; background:transparent;
  font:inherit; font-size:13px; line-height:1.4; color:#854394; cursor:pointer; text-decoration:none;
}
#index .zx-student-line__actions button { color:#817588; }
#index .zx-student-line__actions a:hover, #index .zx-student-line__actions button:hover { text-decoration:underline; }
#index .zx-student-line__actions button:disabled { opacity:.55; cursor:wait; }
#index .zx-student-line__actions button:focus-visible { outline:2px solid #854394; outline-offset:3px; }
#index .zx-child-home-feedback { margin:0 0 16px; }
#index .zx-student-line__empty { margin:0; font-size:13px; color:#8a818f; line-height:1.6; }
#index .zx-suggestion-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
#index .zx-suggestion-books > li { display: block; min-width: 0; width: 100%; }
#index .zx-suggestion-book { box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #eee7f1; border-radius: 9px; min-height: 118px; height: 100%; width: 100%; max-width: none; background: #fff; }
#index .zx-suggestion-book__cover { display: flex; align-items: center; justify-content: center; flex: 0 0 68px; width: 68px; height: 96px; }
#index .zx-suggestion-book__cover img { width: 68px; height: 96px; object-fit: contain; }
#index .zx-suggestion-book__info { min-width: 0; }
#index .zx-suggestion-book h4 { margin: 0 0 8px; font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
#index .zx-suggestion-book h4 a { color: #47404c; }
#index .zx-suggestion-book__price-label { display: block; color: #8b499c; font-size: 10px; line-height: 1.4; }
#index .zx-suggestion-book__price { display: block; margin-top: 3px; color: #854394; font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
#index .zx-suggestion-book:focus-within,
#index .zx-suggestion-book:hover { border-color: #c9add3; }
#index .zx-suggestions a:focus-visible { outline:2px solid #854394; outline-offset:3px; border-radius:3px; }
@media(max-width:767px) {
  #index .zx-suggestions { padding:0 12px; }
  #index .zx-suggestions__list { gap:16px; }
  #index .zx-student-line { grid-template-columns:minmax(0,1fr); gap:16px; padding:16px; }
  #index .zx-student-line__heading { font-size:16px; line-height:1.7; }
}

/* Leave clear space above the invitation when school books are visible. */
#index .zx-suggestions__list + .ziemax-home-invite { margin:24px 0 0; }


/* Share the retail cart control without changing school prices or compact card sizing. */
#index .zx-suggestion-book { position:relative; --catalog-purple:#854394; }
#index .zx-suggestion-book__info { padding-bottom:54px; }
#index .zx-suggestion-book__cart { position:absolute; right:10px; bottom:10px; width:44px; height:44px; margin:0; padding:0; pointer-events:none; }
#index .zx-suggestion-book .zx-catalog__buy { left:auto; right:0; bottom:0; }
#index .zx-suggestion-book__status { margin:8px 0 0; color:#514158; font-size:12px; line-height:1.5; }
#index .zx-suggestion-book__status[hidden] { display:none; }
@media (hover:hover) and (pointer:fine) {
  #index .zx-suggestion-book:hover .zx-catalog__buy,
  #index .zx-suggestion-book:focus-within .zx-catalog__buy { opacity:1; transform:none; pointer-events:auto; }
}
