/*
 * Site header (_header.php). Loaded from the header include itself, after the
 * page stylesheets, so it restyles the existing markup on every page.
 * Navy to match the footer; links as pills; white account dropdown.
 */

.nav_wrapper {
  background: #0f1b26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 20px rgba(0, 20, 40, 0.18);
  backdrop-filter: none;
}

.nav_wrapper nav {
  max-width: 100%;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav_wrapper nav .nav-content {
  height: 64px;
  gap: 16px;
}

.nav_wrapper .nav-content .logo {
  height: 64px;
  flex: 0 0 auto;
}

.nav_wrapper .nav-content .logo img {
  display: block;
  height: 34px;
  width: auto;
}

/* ---------- Links (desktop) ---------- */
.nav_wrapper nav .nav-content .links {
  gap: 6px;
}

.nav_wrapper .nav-content .links li {
  padding: 0;
}

.nav_wrapper .nav-content .links > li > a,
.nav_wrapper .nav-content .links > li > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #c9d4de;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav_wrapper .nav-content .links > li > a i,
.nav_wrapper .nav-content .links > li > label i {
  color: var(--primary);
}

.nav_wrapper .nav-content .links > li > a:hover,
.nav_wrapper .nav-content .links > li > a:focus-visible,
.nav_wrapper .nav-content .links > li > label:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

/* Hover colour rules in renteez_style.css tint icons/labels; keep them readable. */
.nav_wrapper .nav-content .links li a:hover > i,
.nav_wrapper .nav-content .links li a:hover > span {
  color: inherit;
}

.nav_wrapper .nav-content .links > li > a:hover i {
  color: var(--primary);
}

.nav_wrapper .nav-content .links > li > a.nav-cta {
  white-space: nowrap;
}

/* Guest calls to action. The label span must not pick up the counter-badge
   styling that renteez_style.css gives every span inside a header link. */
.nav_wrapper .nav-content .links li a span.nav-cta-label {
  position: static;
  top: auto;
  font-size: inherit;
  color: inherit;
}

/* Guest calls to action */
.nav_wrapper .nav-content .links > li > a.nav-cta-outline {
  border: 2px solid var(--primary);
  color: #fff;
}

.nav_wrapper .nav-content .links > li > a.nav-cta-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.nav_wrapper .nav-content .links > li > a.nav-cta-primary i,
.nav_wrapper .nav-content .links > li > a.nav-cta-primary:hover i {
  color: #fff;
}

.nav_wrapper .nav-content .links > li > a.nav-cta-primary:hover,
.nav_wrapper .nav-content .links > li > a.nav-cta-primary:focus-visible {
  background: #0a7fe0;
  border-color: #0a7fe0;
}

/* Avatar in the account item */
.nav_wrapper .avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Message / cart counters as small badges */
.nav_wrapper #message_count,
.nav_wrapper #shopping_cart_count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: -4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  top: -8px;
}

/* ---------- Account dropdown (desktop) ---------- */
@media screen and (min-width: 1401px) {
  .nav_wrapper .nav-content .links ul {
    min-width: 230px;
    padding: 8px;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(3, 68, 106, 0.18);
  }

  .nav_wrapper .nav-content .links li:hover > ul {
    top: 46px;
  }

  .nav_wrapper .nav-content .links ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #1d2530;
    font-size: 14px;
    font-weight: 500;
  }

  .nav_wrapper .nav-content .links ul li a i {
    width: 18px;
    color: var(--primary);
    text-align: center;
  }

  .nav_wrapper .nav-content .links ul li a:hover {
    background: #eef7ff;
    color: #03446A;
  }

  .nav_wrapper .nav-content .links ul li a.danger,
  .nav_wrapper .nav-content .links ul li a.danger i {
    color: #c62828;
  }

  .nav_wrapper .nav-content .links ul li a.danger:hover {
    background: #fdecec;
  }
}

/* ---------- Hamburger menu (logged-in, up to 1400px) ---------- */
@media screen and (max-width: 1400px) {
  .nav_wrapper nav {
    padding: 0 16px;
  }

  .nav_wrapper .menu-icon {
    color: #fff;
    font-size: 22px;
  }

  .nav_wrapper nav .nav-content .links,
  .nav_wrapper nav #show-menu:checked ~ .nav-content .links,
  .nav_wrapper nav #show-menu:not(:checked) ~ .nav-content .links {
    width: 280px;
    max-width: 85vw;
    padding: 12px 10px 24px;
    background: #0f1b26;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.35);
  }

  .nav_wrapper .nav-content .links > li > a,
  .nav_wrapper .nav-content .links > li > label,
  .nav_wrapper .nav-content .links ul li a {
    display: flex;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    color: #dbe4ec;
    font-size: 16px;
    box-sizing: border-box;
  }

  .nav_wrapper .nav-content .links ul {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav_wrapper .nav-content .links ul li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .nav_wrapper nav {
    margin: 0 auto;
  }

  /* Guests only have two links: keep them inline, no hamburger, logo on the left. */
  .nav_wrapper.is-guest .nav-content .logo {
    margin: 0;
  }

  .nav_wrapper.is-guest .menu-icon {
    display: none;
  }

  .nav_wrapper.is-guest nav .nav-content .links,
  .nav_wrapper.is-guest nav #show-menu:checked ~ .nav-content .links,
  .nav_wrapper.is-guest nav #show-menu:not(:checked) ~ .nav-content .links {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    transition: none;
  }

  .nav_wrapper.is-guest .nav-content .links li {
    margin: 0;
  }

  .nav_wrapper.is-guest .nav-content .links > li > a {
    display: inline-flex;
    width: auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
  }
}

/* Phones: logo left, compact pills right. */
@media screen and (max-width: 480px) {
  .nav_wrapper .nav-content .logo img {
    height: 28px;
  }

  .nav_wrapper.is-guest .nav-content .links > li > a {
    padding: 7px 12px;
    font-size: 14px;
  }

  .nav_wrapper.is-guest .nav-content .links > li > a.nav-cta-outline i {
    display: none;
  }
}

/* Narrow phones on pages that also show the header search icon:
   "Add item" becomes a round "+" button so both pills stay on one line. */
@media screen and (max-width: 420px) {
  .nav_wrapper.is-guest .nav-content .links > li > a.nav-cta-outline {
    padding: 7px 10px;
  }

  .nav_wrapper.is-guest .nav-content .links > li > a.nav-cta-outline i {
    display: inline-block;
    color: #fff;
  }

  .nav_wrapper.is-guest .nav-content .links > li > a.nav-cta-outline .nav-cta-label {
    display: none;
  }
}

/* The account item has two versions: a link (desktop) and a label that toggles
   the menu (hamburger). Keep renteez_style.css's pairing: one or the other. */
@media screen and (min-width: 1401px) {
  .nav_wrapper .nav-content .links > li > label {
    display: none;
  }
}

@media screen and (max-width: 1400px) {
  .nav_wrapper .nav-content .links li a.desktop-link {
    display: none;
  }
}

/* Phone side menu (.sticky-container, renteez_style.css): it used to be a
   120px strip parked at right: -80px, which made every signed-in page 80px
   wider than a phone screen (sideways scrolling). Anchor a 40px icon strip at
   the edge instead and widen each item leftward on hover: same look, no overflow. */
.sticky-container {
  right: 0;
  width: 40px;
}

.sticky li {
  width: 40px;
  overflow: hidden;
  white-space: nowrap;
}

.sticky li:hover {
  width: 118px;
  margin-left: -78px;
}

/* Offline/online notice (#inet_popup, renteez_style.css): it hid by sliding
   400px off the right edge, which also widened pages on phones. Fade it in
   place instead. */
.inet_popup {
  transform: translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.inet_popup.show {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* data-tooltip hints are hover-only; on touch screens their (invisible) bubbles
   still took up room past the right edge and made forms scroll sideways. */
@media (hover: none) {
  [data-tooltip]::before,
  [data-tooltip]::after {
    display: none !important;
  }
}

/* ---------- "Your wait will be over soon!" dialog (RenteezSoonDialog in js/renteez_script.js) ---------- */
.swal2-popup.rz-soon {
  width: min(470px, calc(100vw - 32px));
  padding: 30px 26px 24px;
  border-radius: 24px;
  box-shadow: 0 30px 70px -20px rgba(3, 68, 106, 0.45);
  font-family: inherit;
}

.rz-soon .rz-soon-body { margin: 0; padding: 0; overflow: visible; color: #16212c; }

.rz-soon .rz-soon-close {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.7rem;
  color: #8a97a5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rz-soon .rz-soon-close:hover { background: #f1f5f9; color: #16212c; }
.rz-soon .rz-soon-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.25); }

.rz-soon-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36abff, #0077e6);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 14px 28px -10px rgba(0, 145, 255, 0.65);
  animation: rz-soon-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.rz-soon-badge::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(0, 145, 255, 0.25);
  border-radius: 50%;
  animation: rz-soon-ring 1.4s ease-out 0.2s both;
}

.rz-soon-badge i { animation: rz-soon-tilt 1.1s ease 0.35s both; }

.rz-soon .rz-soon-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: #16212c;
}

.rz-soon .rz-soon-text {
  margin: 8px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: center;
  color: #5f6d7b;
}

.rz-soon-options { display: grid; gap: 10px; margin-top: 20px; }

.rz-soon .rz-soon-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  background: #f6f9fc;
  color: #16212c;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rz-soon .rz-soon-option:hover { border-color: #0091ff; background: #eef7ff; transform: translateY(-1px); }
.rz-soon .rz-soon-option:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.25); }

.rz-soon-option-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e3f2ff;
  color: #0091ff;
  font-size: 1.05rem;
}

.rz-soon-option strong { display: block; font-size: 0.97rem; font-weight: 700; line-height: 1.3; color: #16212c; }
.rz-soon-option strong + span { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.4; color: #5f6d7b; }
.rz-soon-option-go { font-size: 0.75rem; color: #a9b6c3; }

.rz-soon-option strong em {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #12b981;
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.rz-soon .rz-soon-option-offer { border-color: #bfe9d8; background: #f1fbf7; }
.rz-soon .rz-soon-option-offer .rz-soon-option-icon { background: #d6f5e8; color: #0e9f6e; }
.rz-soon .rz-soon-option-offer:hover { border-color: #12b981; background: #e8f8f1; }

.rz-soon .rz-soon-actions {
  display: grid !important;        /* SweetAlert sets display: flex inline */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 22px 0 0;
  padding: 0;
}

.rz-soon .rz-soon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 999px;
  background: #fff;
  color: #16212c;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rz-soon .rz-soon-btn:hover { border-color: #b8d9f5; color: #03446a; transform: translateY(-1px); }
.rz-soon .rz-soon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.25); }

.rz-soon .rz-soon-btn-primary {
  border-color: #0091ff;
  background: #0091ff;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 145, 255, 0.3);
}

.rz-soon .rz-soon-btn-primary:hover { border-color: #0a7fe0; background: #0a7fe0; color: #fff; }

@keyframes rz-soon-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes rz-soon-ring { from { opacity: 1; transform: scale(0.8); } to { opacity: 0; transform: scale(1.35); } }
@keyframes rz-soon-tilt { 0% { transform: rotate(0); } 60% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }

@media (max-width: 420px) {
  .swal2-popup.rz-soon { padding: 26px 16px 18px; }
  .rz-soon .rz-soon-actions { grid-template-columns: minmax(0, 1fr); }
  .rz-soon .rz-soon-btn-primary { order: -1; }
  .rz-soon-option-go { display: none; }
  .rz-soon .rz-soon-option { grid-template-columns: 44px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .rz-soon-badge, .rz-soon-badge::before, .rz-soon-badge i { animation: none; }
}

/* ---------- Notification card (RenteezToast in js/renteez_script.js) ---------- */
/* Above the sticky site header */
.swal2-container.rz-toast-container { z-index: 20000; padding: 12px; }

.swal2-popup.swal2-toast.rz-toast {
  display: block !important;       /* SweetAlert sets display: grid inline */
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 14px 44px 14px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(3, 68, 106, 0.45);
  font-family: inherit;
  --rz-toast: #0091ff;
  --rz-toast-soft: #e3f2ff;
}

.swal2-popup.swal2-toast.rz-toast-success { --rz-toast: #0e9f6e; --rz-toast-soft: #d6f5e8; }
.swal2-popup.swal2-toast.rz-toast-warning { --rz-toast: #c27803; --rz-toast-soft: #fdf1d3; }
.swal2-popup.swal2-toast.rz-toast-error   { --rz-toast: #d92d20; --rz-toast-soft: #fde4e1; }

.rz-toast .rz-toast-body { margin: 0; padding: 0; overflow: visible; text-align: left; }
.rz-toast-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px; }

.rz-toast-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rz-toast-soft);
  color: var(--rz-toast);
  font-size: 1.1rem;
}

.rz-toast-main { align-self: center; min-width: 0; }

.rz-toast .rz-toast-msg {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: #16212c;
  overflow-wrap: anywhere;
}

.rz-toast .rz-toast-msg strong { font-weight: 700; }

.rz-toast-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.rz-toast .rz-toast-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 999px;
  background: #fff;
  color: #16212c;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rz-toast .rz-toast-btn:hover { border-color: #b8d9f5; color: #03446a; transform: translateY(-1px); }
.rz-toast .rz-toast-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.25); }
.rz-toast .rz-toast-btn-primary { border-color: #0091ff; background: #0091ff; color: #fff; box-shadow: 0 8px 18px rgba(0, 145, 255, 0.28); }
.rz-toast .rz-toast-btn-primary:hover { border-color: #0a7fe0; background: #0a7fe0; color: #fff; }

.swal2-popup.swal2-toast.rz-toast .rz-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #8a97a5;
}

.swal2-popup.swal2-toast.rz-toast .rz-toast-close:hover { background: #f1f5f9; color: #16212c; }
.rz-toast .rz-toast-bar { height: 3px; background: var(--rz-toast); opacity: 0.7; }

@media (max-width: 420px) {
  .rz-toast-actions .rz-toast-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Account button + side panel (_header.php #rz-drawer) ---------- */
.nav_wrapper .nav-content .links > li > .rz-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  margin: 0;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e6edf3;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav_wrapper .nav-content .links > li > .rz-account-btn:hover,
.nav_wrapper .nav-content .links > li > .rz-account-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav_wrapper .nav-content .links > li > .rz-account-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.45); }
.nav_wrapper .rz-account-caret { font-size: 13px; color: var(--primary); }
.nav_wrapper .rz-account-btn.admin .avatar-img { border-color: #f5b301; }

.rz-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 27, 38, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rz-drawer-backdrop.is-open { opacity: 1; }

/* Width of the docked account sidebar; 0 when there is none (see below). */
:root { --rz-side: 0px; }

.rz-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  width: min(320px, 88vw);
  background: #fff;
  box-shadow: 18px 0 50px rgba(3, 27, 46, 0.35);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  font-family: inherit;
}

.rz-drawer.is-open { transform: none; }
.rz-drawer[hidden], .rz-drawer-backdrop[hidden] { display: none; }
html.rz-drawer-lock, html.rz-drawer-lock body { overflow: hidden; }

.rz-drawer-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(0, 145, 255, 0.35), transparent 60%),
    #0f1b26;
  color: #fff;
}

.rz-drawer-avatar { width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: #eef2f6; object-fit: cover; }
.rz-drawer-who { min-width: 0; }

.rz-drawer .rz-drawer-name,
.rz-drawer .rz-drawer-user {
  margin: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rz-drawer .rz-drawer-name { font-size: 1.02rem; font-weight: 700; color: #fff; }
.rz-drawer .rz-drawer-user { margin-top: 2px; font-size: 0.82rem; color: #a9bccd; }

.rz-drawer .rz-drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.rz-drawer .rz-drawer-close:hover { background: rgba(255, 255, 255, 0.2); }
.rz-drawer .rz-drawer-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.5); }

.rz-drawer-nav { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px 12px; overscroll-behavior: contain; }

/* Section headers fold their group (<details class='rz-drawer-section'>). */
.rz-drawer-section + .rz-drawer-section { margin-top: 4px; }
.rz-drawer .rz-drawer-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  color: #8a97a5;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rz-drawer-nav summary::-webkit-details-marker { display: none; }
.rz-drawer .rz-drawer-group:hover { background: #f3f6f9; color: #5f6d7b; }
.rz-drawer-nav summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #0091ff; }
.rz-drawer-chev { font-size: 0.7em; transition: transform 0.18s ease; }
.rz-drawer-nav details:not([open]) > summary .rz-drawer-chev { transform: rotate(-90deg); }

/* The admin group sits in a tinted card so it reads apart from personal links. */
.rz-drawer-section.is-admin { margin-top: 12px; padding: 2px 4px 4px; border: 1px solid #e3ecf5; border-radius: 12px; background: #f7fafd; }
.rz-drawer-section.is-admin > .rz-drawer-group { margin-top: 2px; color: #03446a; }
.rz-drawer-section.is-admin > .rz-drawer-group span i { margin-right: 7px; color: #0091ff; }

/* Sub-menu: a row like a link that opens an indented list of links. */
.rz-drawer-sub > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1d2530;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.rz-drawer-sub > summary > i:first-child { width: 20px; color: var(--primary, #0091ff); text-align: center; }
.rz-drawer-sub > summary span { flex: 1 1 auto; }
.rz-drawer-sub > summary:hover { background: #eef7ff; color: #03446a; }
.rz-drawer-sub > summary .rz-drawer-chev { color: #8a97a5; }
.rz-drawer-sub[open] > summary { color: #03446a; font-weight: 600; }
.rz-drawer-n { padding: 1px 7px; border-radius: 999px; background: #e9eff5; color: #5f6d7b; font-size: 0.7rem; font-style: normal; font-weight: 700; }
.rz-drawer-sub[open] > summary .rz-drawer-n { display: none; }
/* Sub-menu items: indented under their menu, one size smaller and lighter, so menu and
   sub-menu read apart. ".rz-drawer-nav" makes these win over the general link rule below. */
.rz-drawer-nav .rz-drawer-sub > ul { position: relative; margin: 2px 0 6px 30px; padding-left: 10px; border-left: 2px solid #dbe7f2; }
.rz-drawer-nav .rz-drawer-sub > ul a { gap: 10px; padding: 7px 10px; font-size: 0.85rem; color: #3d4b59; }
.rz-drawer-nav .rz-drawer-sub > ul a i { width: 16px; font-size: 0.8rem; color: #6b9fd1; }
.rz-drawer-nav .rz-drawer-sub > ul a:hover { color: #03446a; }
.rz-drawer-nav .rz-drawer-sub > ul a:hover i, .rz-drawer-nav .rz-drawer-sub > ul a.is-current i { color: var(--primary, #0091ff); }
.rz-drawer-nav .rz-drawer-sub > ul a.is-current { color: #03446a; font-weight: 700; }

.rz-drawer-nav ul { margin: 0; padding: 0; list-style: none; }

.rz-drawer-nav a,
.rz-drawer-foot a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1d2530;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rz-drawer-nav a i,
.rz-drawer-foot a i { width: 20px; color: var(--primary, #0091ff); text-align: center; }
.rz-drawer-nav a span { flex: 1 1 auto; }
.rz-drawer-nav a:hover { background: #eef7ff; color: #03446a; }
.rz-drawer-nav a:focus-visible, .rz-drawer-foot a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #0091ff; }
.rz-drawer-nav a.is-current { background: #e3f2ff; color: #03446a; font-weight: 700; }

.rz-drawer-count {
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.rz-drawer-foot { padding: 10px; border-top: 1px solid #e6ecf2; }
.rz-drawer-foot a.rz-drawer-logout, .rz-drawer-foot a.rz-drawer-logout i { color: #c62828; }
.rz-drawer-foot a.rz-drawer-logout:hover { background: #fdecec; }

/* In the phone menu the account button is a full-width row like the other links. */
@media screen and (max-width: 1400px) {
  .nav_wrapper .nav-content .links > li > .rz-account-btn {
    width: 100%;
    padding: 9px 14px;
    border-color: transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }

  .nav_wrapper .rz-account-name { flex: 1 1 auto; text-align: left; }
}

/* Wide screens: the account menu is a sidebar docked on the left, under the
   top bar, and every page moves right by its width (--rz-side). */
@media screen and (min-width: 1280px) {
  html.rz-has-sidebar { --rz-side: 248px; }
  html.rz-has-sidebar body { padding-left: var(--rz-side); }
  /* the fixed top bar has no left offset of its own: keep it full width */
  html.rz-has-sidebar .nav_wrapper { left: 0; right: 0; width: auto; }

  html.rz-has-sidebar .rz-drawer,
  html.rz-has-sidebar .rz-drawer[hidden] {
    display: flex;
    top: 64px;
    z-index: 900;                    /* under the top bar, dialogs and toasts */
    width: var(--rz-side);
    border-right: 1px solid #e3e9ef;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  html.rz-has-sidebar .rz-drawer-backdrop { display: none; }
  html.rz-has-sidebar .rz-drawer-close { display: none; }

  html.rz-has-sidebar .rz-drawer-head {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px 14px 14px;
  }

  html.rz-has-sidebar .rz-drawer-avatar { width: 40px; height: 40px; }
  html.rz-has-sidebar .rz-account-caret { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rz-drawer, .rz-drawer-backdrop, .rz-drawer-chev { transition: none; }
}

/* Site announcement (System settings), under the top bar */
.rz-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff4de;
  border-bottom: 1px solid #f5d9a8;
  color: #6b3d00;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.rz-announce i { color: #e0940f; }
.rz-announce a { color: #8a4b08; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rz-announce a:hover { color: #5a2f00; }
.rz-announce-msg { min-width: 0; }

/* Ticker (announcement_scroll on): the message row scrolls right to left and loops. */
.rz-announce.is-ticker { justify-content: flex-start; padding: 10px 0 10px 16px; overflow: hidden; text-align: left; }
.rz-announce.is-ticker > i { position: relative; z-index: 1; flex: none; padding-right: 10px; background: #fff4de; box-shadow: 8px 0 8px -4px #fff4de; }
.rz-ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.rz-ticker-track { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; will-change: transform; }
.rz-ticker-item { flex: none; padding-right: var(--rz-ticker-gap, 80px); }
.rz-ticker-set { display: inline-flex; flex: none; flex-wrap: nowrap; }
.rz-announce-sep { margin: 0 12px; color: #e0940f; font-weight: 800; }
.rz-announce.is-ticker.is-ready .rz-ticker-track { animation: rz-ticker var(--rz-ticker-duration, 30s) linear infinite; }
.rz-announce.is-ticker:hover .rz-ticker-track, .rz-announce.is-ticker:focus-within .rz-ticker-track { animation-play-state: paused; }
@keyframes rz-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .rz-announce.is-ticker.is-ready .rz-ticker-track { animation: none; }
  .rz-announce.is-ticker .rz-ticker-track > [aria-hidden="true"] { display: none; }
  .rz-ticker-set { flex-wrap: wrap; }
  .rz-ticker-track { white-space: normal; }
}

/* Help pill (admin_lib.php renteez_help_pill, js/admin_page.js helpPill): an "i" button next
   to a heading; its text shows on hover, keyboard focus or tap (.is-open, see _header.php). */
.rz-help { position: relative; display: inline-flex; vertical-align: middle; margin-left: 8px; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; }
.rz-help-btn {
  display: inline-grid; place-items: center; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: #e6f3ff; color: #0a7fe0; font-size: 13px; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.rz-help-btn:hover, .rz-help.is-open .rz-help-btn { background: #0091ff; color: #fff; }
.rz-help-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.35); }
.rz-help-pop {
  position: absolute; top: calc(100% + 8px); left: -10px; z-index: 950; width: max-content; max-width: min(320px, 80vw);
  padding: 10px 12px; border-radius: 10px; background: #16212c; color: #eef4fa; box-shadow: 0 10px 28px rgba(16, 33, 48, 0.28);
  font-family: inherit; font-size: 0.85rem; font-weight: 500; line-height: 1.5; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.rz-help-pop::before { content: ""; position: absolute; top: -5px; left: 16px; width: 10px; height: 10px; background: #16212c; transform: rotate(45deg); }
.rz-help:hover .rz-help-pop, .rz-help:focus-within .rz-help-pop, .rz-help.is-open .rz-help-pop { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .rz-help-pop, .rz-help-btn { transition: none; } }
