/* MYV sandbox redesign, Nov 2026: auth2 pages. Loaded after myv-design-fixes.css (see template/head.php). */

/* ===== Reset password (reset-password.php), final design "Reset password 1" (Nov 2026) =====
   One 440px card (full width on phones): form with live checks, "Password saved", "This link has run out".
   Fields, rules and the green button reuse the Change password styles (.myv-pw-*) in myv-design-fixes.css. */
html body .myv-reset { padding: 0 0 48px; font-family: 'Figtree', Arial, sans-serif; color: #1B211C; }
html body .myv-reset [hidden] { display: none !important; }
html body .myv-reset-card { width: 100%; max-width: 440px; box-sizing: border-box; margin: 24px auto 0; padding: 32px; background: #FFFFFF; border: 1px solid #E2E7E3; border-radius: 8px; box-shadow: 0 4px 16px rgba(27, 33, 28, .06); }
html body .myv-reset-center { text-align: center; }
html body .myv-reset-icon { width: 52px; height: 52px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #E8F4E9; color: #2E6430; }
html body .myv-reset-icon.is-done { background: #2E6430; color: #FFFFFF; }
html body .myv-reset-icon.is-warn { background: #FFF4E0; color: #8A5300; }
html body .myv-reset .myv-reset-h1 { margin: 0 !important; font-family: inherit !important; font-size: 24px !important; line-height: 1.25 !important; font-weight: 700 !important; color: #1B211C !important; text-transform: none !important; text-align: center !important; }
html body .myv-reset-sub { margin: 6px 0 22px; font-size: 14px; color: #667068; word-break: break-word; }
html body .myv-reset-text { margin: 8px 0 22px; font-size: 15px; line-height: 22px; color: #3D4740; }
html body .myv-reset form { text-align: left; }
html body .myv-reset .myv-pw-save:hover { background: #1F3F21; color: #FFFFFF; }
html body .myv-reset .myv-pw-save:disabled:hover { background: #A6ADA8; }
html body .myv-reset-back { margin: 16px 0 0; text-align: center; }
html body .myv-reset-back a, html body .myv-reset-help a { color: #2E6430 !important; font-weight: 600; text-decoration: none; }
html body .myv-reset-back a:hover, html body .myv-reset-help a:hover { text-decoration: underline; }
html body .myv-reset-help { max-width: 440px; margin: 18px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: #667068; }
@media (max-width: 767.98px) {
  html body .myv-reset { padding: 0 0 32px; }
  html body .myv-reset-card { max-width: none; margin-top: 4px; padding: 20px; }
}

/* Page edge (Nov 2026 review): the body already gives the 24px / 16px gutter, so the log-in page wrapper adds no side
   space of its own (it had 24px / 16px more, which pushed the breadcrumb and cards in from the page edge). */
html body .myv-auth { padding-left: 0 !important; padding-right: 0 !important; }

/* ===== Address book (template/account/address_panel.php + address_script.php), final design "Address book 1" (Nov 2026) =====
   Desktop: heading + count, green "+ Add an address", cards 3 per row (2 below 1200px) with an "Add an address" tile;
   the Add / Edit form slides in from the right (480px). Phone (< 992px): pills, count + "+ Add", one card per row,
   the form is a bottom sheet. Remove asks inside the card (no pop-up); the card fades out with no reload. */
html body .myv-ab { font-family: 'Figtree', Arial, sans-serif; }
html body .myv-ab .myv-ab-top { align-items: flex-end; margin-bottom: 18px; }
html body .myv-ab-sub { margin: 4px 0 0; font-size: 14px; color: #667068; }
html body .myv-ab-primary { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: #2E6430; color: #FFFFFF; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
html body .myv-ab-primary:hover { background: #1F3F21; }
html body .myv-ab-primary:disabled { background: #A6ADA8; cursor: default; }
html body .myv-ab-outline { height: 44px; padding: 0 18px; border: 1.5px solid #2E6430; border-radius: 8px; background: #FFFFFF; color: #2E6430; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
html body .myv-ab-phone { display: none !important; }
html body .myv-ab [hidden], html body .myv-ab-layer[hidden], html body .myv-ab-panel [hidden] { display: none !important; }
html body .myv-ab-note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: 8px; background: #E8F4E9; border: 1px solid #CFE3D1; color: #1F3F21; font-size: 14px; font-weight: 600; }
html body .myv-ab-note-tick { display: flex; color: #2E6430; }
html body .myv-ab-note-text { flex: 1; }
html body .myv-ab-note-x { border: 0; background: none; padding: 0 2px; color: #1F3F21; font-size: 20px; line-height: 1; cursor: pointer; }
html body .myv-ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
html body .myv-ab-loading { grid-column: 1 / -1; margin: 0; padding: 24px 0; color: #667068; font-size: 15px; }
html body .myv-ab-card { display: flex; flex-direction: column; min-width: 0; padding: 16px; background: #FFFFFF; border: 1px solid #E2E7E3; border-radius: 8px; transition: opacity .2s ease, transform .2s ease; }
html body .myv-ab-card.is-default { border: 1.5px solid #5C9A62; }
html body .myv-ab-card.is-removing { opacity: 0; transform: scale(.97); pointer-events: none; }
html body .myv-ab-badge { align-self: flex-start; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 3px 10px; border-radius: 12px; background: #E8F4E9; color: #2E6430; font-size: 12px; font-weight: 700; }
html body .myv-ab .myv-ab-name { margin: 0 !important; font-family: inherit !important; font-size: 16px !important; line-height: 1.35 !important; font-weight: 700 !important; color: #1B211C !important; text-transform: none !important; overflow-wrap: anywhere; }
html body .myv-ab-lines { margin-top: 6px; font-size: 14px; line-height: 21px; color: #3D4740; overflow-wrap: anywhere; }
html body .myv-ab-contact { margin-top: 8px; font-size: 14px; line-height: 21px; color: #667068; overflow-wrap: anywhere; }
html body .myv-ab-spacer { flex: 1; }
html body .myv-ab-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #EEF0F0; }
html body .myv-ab-actions button { height: 32px; padding: 0; border: 0; background: none; color: #2E6430; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
html body .myv-ab-actions button:hover { text-decoration: underline; }
html body .myv-ab-actions button.is-remove { margin-left: auto; color: #C62828; }
html body .myv-ab-confirm { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #FDECEC; }
html body .myv-ab-confirm b { display: block; font-size: 14px; font-weight: 600; color: #8E1F1F; }
html body .myv-ab-confirm span { display: block; margin-top: 2px; font-size: 13px; color: #8E1F1F; }
html body .myv-ab-confirm div { display: flex; gap: 8px; margin-top: 8px; }
html body .myv-ab-danger, html body .myv-ab-keep { height: 36px; padding: 0 14px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
html body .myv-ab-danger { border: 0; background: #C62828; color: #FFFFFF; }
html body .myv-ab-keep { border: 1px solid #CBD2D6; background: #FFFFFF; color: #1B211C; }
html body .myv-ab-tile { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #5C9A62; border-radius: 8px; background: #FFFFFF; color: #2E6430; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
html body .myv-ab-tile span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #E8F4E9; font-size: 26px; line-height: 1; }
html body .myv-ab-tile:hover { background: #F7FBF7; }
html body .myv-ab-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; background: #F7F9F7; border-radius: 8px; font-size: 15px; color: #3D4740; }
html body .myv-ab-empty b { color: #1B211C; }
html body .myv-ab-empty .myv-ab-outline { margin-top: 10px; height: 40px; }
/* the form: slide-in panel (desktop) / bottom sheet (phone) */
html.myv-ab-lock, html.myv-ab-lock body { overflow: hidden !important; }
html body .myv-ab-layer { position: fixed; inset: 0; z-index: 2000; font-family: 'Figtree', Arial, sans-serif; color: #1B211C; }
html body .myv-ab-backdrop { position: absolute; inset: 0; background: rgba(27, 33, 28, .45); opacity: 0; transition: opacity .25s ease; }
html body .myv-ab-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; display: flex; flex-direction: column; background: #FFFFFF; box-shadow: -8px 0 24px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .25s ease; }
html body .myv-ab-layer.is-open .myv-ab-backdrop { opacity: 1; }
html body .myv-ab-layer.is-open .myv-ab-panel { transform: none; }
html body .myv-ab-grip { display: none; }
html body .myv-ab-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #E2E7E3; }
html body .myv-ab-layer .myv-ab-title { margin: 0 !important; font-family: inherit !important; font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #1B211C !important; text-transform: none !important; }
html body .myv-ab-x { width: 40px; height: 40px; margin-right: -8px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: #1B211C; cursor: pointer; }
html body .myv-ab-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html body .myv-ab-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; }
html body .myv-ab-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
html body .myv-ab-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: #1B211C; }
html body .myv-ab-field.is-wide { grid-column: span 2; }
html body .myv-ab-field b { color: #C62828; font-weight: 600; }
html body .myv-ab-field i { font-style: normal; font-weight: 400; color: #667068; }
html body .myv-ab-field input { width: 100%; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid #CBD2D6 !important; border-radius: 8px !important; background: #FFFFFF !important; box-shadow: none !important; font-family: inherit; font-size: 15px; font-weight: 400; color: #1B211C; outline: none; }
html body .myv-ab-field input:focus { border-color: #2E6430 !important; box-shadow: 0 0 0 3px rgba(46, 100, 48, .15) !important; }
html body .myv-ab-field.is-bad input { border: 1.5px solid #C62828 !important; }
html body .myv-ab-field em { display: none; font-style: normal; font-size: 13px; font-weight: 500; color: #C62828; }
html body .myv-ab-field.is-bad em { display: block; }
html body .myv-ab-fixed { height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid #E2E7E3; border-radius: 8px; background: #F4F6F5; font-weight: 400; color: #3D4740; }
html body .myv-ab-default { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 15px; font-weight: 400; cursor: pointer; }
html body .myv-ab-default input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #2E6430; }
html body .myv-ab-default:has(input:disabled) { color: #667068; cursor: default; }
html body .myv-ab-err { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #FDECEC; color: #8E1F1F; font-size: 14px; }
html body .myv-ab-foot { flex: none; display: flex; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid #E2E7E3; }
html body .myv-ab-foot .myv-ab-primary { flex: 1; }
@media (max-width: 1199.98px) {
  html body .myv-ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  html body .myv-ab-desk { display: none !important; }
  html body .myv-ab-phone { display: flex !important; }
  html body .myv-ab .myv-ab-top { margin-bottom: 0; }
  html body .myv-ab-bar { align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  html body .myv-ab-bar .myv-ab-sub { margin: 0; }
  html body .myv-ab-bar .myv-ord-outline { flex: none; height: 38px; padding: 0 14px; }
  html body .myv-ab-grid { grid-template-columns: 1fr; gap: 12px; }
  html body .myv-ab-tile { display: none; }
  /* bottom sheet */
  html body .myv-ab-panel { top: 56px; left: 0; width: auto; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); transform: translateY(100%); }
  html body .myv-ab-grip { display: flex; flex: none; justify-content: center; padding-top: 8px; }
  html body .myv-ab-grip span { width: 40px; height: 4px; border-radius: 2px; background: #CBD2D6; }
  html body .myv-ab-head { padding: 6px 16px 12px; }
  html body .myv-ab-layer .myv-ab-title { font-size: 17px !important; }
  html body .myv-ab-body { padding: 16px; }
  html body .myv-ab-field.is-phone-wide { grid-column: span 2; }
  html body .myv-ab-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  html body .myv-ab-foot .myv-ab-outline { order: -1; }
}

/* ===== Log in page: "Forgot your password?" pop-up in the site design (login_page.php, Nov 2026) ===== */
html body .myv-forgot .modal-dialog { max-width: 440px; }
html body .myv-forgot .modal-content { border: 0; border-radius: 12px; overflow: hidden; font-family: 'Figtree', Arial, sans-serif; color: #1B211C; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
html body .myv-forgot-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0 24px; }
html body .myv-forgot .myv-forgot-title { margin: 0 !important; font-family: inherit !important; font-size: 20px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #1B211C !important; text-transform: none !important; }
html body .myv-forgot-x { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: #1B211C; cursor: pointer; }
html body .myv-forgot-body { display: flex; flex-direction: column; padding: 8px 24px 24px; }
html body .myv-forgot-text { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #3D4740; }
html body .myv-forgot .myv-auth-in { margin-bottom: 16px; }
html body .myv-forgot .myv-auth-primary:disabled { opacity: .6; cursor: default; }
html body .myv-forgot-help { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #667068; }
html body .myv-forgot-help a { color: #2E6430 !important; font-weight: 600; text-decoration: none; }
@media (max-width: 575.98px) {
  html body .myv-forgot .modal-dialog { margin: 16px; }
  html body .myv-forgot-head { padding: 14px 12px 0 20px; }
  html body .myv-forgot-body { padding: 8px 20px 20px; }
}
