/*
 * 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: 1180px;
  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: 1px solid rgba(255, 255, 255, 0.22);
  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: auto;
    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; }
}
