/* Rental Now page: product cards, search, P Rating categories and the cart panel. Uses the site's variables (style.css). */

.rnSection { padding: 80px 40px 90px; background: var(--bg2); }
.rnTop { max-width: 1280px; margin: 0 auto 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rnTop .section-title { margin: 0; }
.rnCartBtn {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 11px 18px;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; cursor: pointer; transition: background var(--trans);
}
.rnCartBtn:hover { background: var(--accent2); }
.rnCartBtn svg { width: 20px; height: 20px; }
.rnBadge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--accent);
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

.rnLayout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.rnSide { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.rnBox { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.rnBox h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.rnSearch {
  width: 100%; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--text); background: transparent;
}
.rnSearchBox { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.rnSearchBox svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.rnCats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rnCat {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 500;
  text-align: left; cursor: pointer;
}
.rnCat:hover { background: var(--bg2); }
.rnCat.active { background: var(--accent); color: #fff; font-weight: 700; }
.rnCount { font-size: 12px; opacity: 0.7; }

.rnGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.rnCard { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.rnImg {
  aspect-ratio: 4 / 3; border-radius: 12px; background: #eceff4; overflow: hidden; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.rnImg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rnNoImg { display: flex; align-items: center; justify-content: center; color: #9aa4b2; } /* gray picture icon, no letter */
.rnNoImg svg { width: 64px; height: 64px; }
.rnNoImg.small svg { width: 24px; height: 24px; }
.rnName { margin: 16px 4px 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--text); }
.rnDesc {
  margin: 0 4px; font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 42px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rnBottom { margin-top: auto; padding-top: 18px; }
.rnPrice { margin: 0 4px 12px; font-size: 24px; font-weight: 700; color: var(--text); }
.rnPrice small { font-size: 13px; font-weight: 400; color: var(--muted); }
.rnPrice.na { color: var(--muted); }
.rnActions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rnQty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--bg2); }
.rnQty button { width: 34px; height: 38px; border: 0; background: transparent; font-size: 18px; color: var(--text); cursor: pointer; border-radius: 999px; }
.rnQty button:disabled { opacity: 0.35; cursor: not-allowed; }
.rnQty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.rnAdd {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; cursor: pointer; transition: background var(--trans);
}
.rnAdd svg { width: 17px; height: 17px; }
.rnAdd:hover:not(:disabled) { background: var(--accent2); }
.rnAdd:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; }
.rnAdd.added { background: #059669; }

.rnStatus { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 15px; }
.rnStatus button { margin-left: 8px; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* cart panel (design only for now) */
.rnOverlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 1999; }
.rnCart {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; background: #fff; z-index: 2000;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
}
.rnCart[hidden], .rnOverlay[hidden] { display: none; }
.rnCartHead { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.rnCartHead h3 { margin: 0; font-size: 18px; }
.rnClose { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.rnCartList { flex: 1; overflow-y: auto; padding: 8px 20px; }
.rnItem { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rnItem .rnThumb { width: 56px; height: 44px; border-radius: 8px; background: #eceff4; object-fit: cover; }
.rnThumbNone { display: flex; align-items: center; justify-content: center; }
.rnItemName { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rnItemMeta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rnItemBtns { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.rnItemBtns button { width: 26px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: 50%; cursor: pointer; }
.rnItemBtns span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; }
.rnRemove { border: 0; background: none; color: #dc2626; font-size: 12px; cursor: pointer; }
.rnCartEmpty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.rnCartFoot { padding: 18px 20px; border-top: 1px solid var(--border); }
.rnTotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.rnCheckout { width: 100%; padding: 13px; border: 0; border-radius: 999px; background: #cbd5e1; color: #fff; font-weight: 700; cursor: not-allowed; }
.rnSoon { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .rnSection { padding: 80px 16px 70px; }
  .rnLayout { grid-template-columns: 1fr; }
  .rnSide { position: static; }
  .rnCats { flex-direction: row; flex-wrap: wrap; }
  .rnCat { width: auto; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; gap: 10px; }
  .rnGrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* checkout form */
.rnCheckout:not(:disabled) { background: var(--accent); cursor: pointer; }
.rnCheckout:not(:disabled):hover { background: var(--accent2); }
.rnField { margin-top: 16px; }
.rnField > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.rnField > label span { font-weight: 400; color: var(--muted); }
.rnField input[type="text"], .rnField input[type="email"], .rnField input[type="tel"], .rnField input[type="date"] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); background: #fff;
}
.rnField input:focus { outline: 3px solid rgba(59, 130, 246, 0.25); border-color: var(--accent2); }
.rnField input.bad { border-color: #dc2626; }
.rnField input:disabled { background: var(--bg2); color: var(--muted); }
.rnSame { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; color: var(--muted) !important; margin: 0 0 8px !important; cursor: pointer; }
.rnErr { margin: 5px 0 0; font-size: 12px; color: #dc2626; min-height: 0; }
.rnErr:empty { display: none; }
.rnHp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rnFormErr { margin: 12px 0 0; font-size: 13px; }
.rnSubmit { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.rnSubmit:hover:not(:disabled) { background: var(--accent2); }
.rnSubmit:disabled { background: #cbd5e1; cursor: wait; }
.rnThanks { padding: 30px 26px 30px; text-align: center; }
.rnThanks h3 { margin: 12px 0 8px; font-size: 22px; }
.rnThanks p { color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.rnTick { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: #059669; color: #fff; font-size: 32px; line-height: 60px; }
.pac-container { z-index: 2200 !important; } /* Google's address suggestions must show above the form */

/* checkout page: steps on the left, the cart on the right */

.rnCartBtn[hidden] { display: none; } /* these have their own display rule, which would otherwise beat [hidden] */

/* the side panel's second view: Your details */
.rnView { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rnView[hidden] { display: none; }
.rnHeadLeft { display: flex; align-items: center; gap: 10px; }
.rnBackArrow { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); padding: 2px 6px; border-radius: 8px; }
.rnBackArrow:hover { background: var(--bg2); }
.rnDetailsBody { flex: 1; overflow-y: auto; padding: 6px 20px 20px; }
/* "Your details" mini cart: shown as a small invoice/receipt so the price math is easy to read at a glance */
.rnMini { margin: 10px 0 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; }
.rnMiniLabel { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rnMiniItem { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.rnMiniItem:first-child { padding-top: 0; }
.rnMiniItem:last-of-type { border-bottom: none; padding-bottom: 2px; }
.rnMiniRow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rnMiniRow b { font-weight: 700; white-space: nowrap; }
.rnMiniTotal { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; margin-top: 2px; border-top: 2px solid var(--text); font-weight: 800; font-size: 15px; }
.rnJpayContainer { margin-top: 14px; transition: opacity 0.2s; }
.rnJpayContainer.rnDisabled { opacity: 0.45; pointer-events: none; } /* always visible, just not usable until the form looks complete */
.rnForm .rnField:first-child { margin-top: 12px; }
#rnDetailsFoot[hidden] { display: none; }
.rnCheckout:not(:disabled) { cursor: pointer; }
.rnThanks .rnCheckout { margin-top: 14px; }
/* phone: the Canada (+1) code box in front of the number, like the CRM forms */
.rnPhoneRow { display: flex; gap: 8px; }
.rnPhoneRow select { flex: none; padding: 11px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--bg2); }
.rnPhoneRow input { flex: 1; min-width: 0; }

/* skeleton loading effect while the products load */
.rnSk { pointer-events: none; }
.rnSkImg, .rnSkLine, .rnSkQty, .rnSkBtn, .rnSkPill {
  background: linear-gradient(90deg, #eceff4 25%, #f6f8fb 50%, #eceff4 75%); background-size: 200% 100%; animation: rnShimmer 1.3s ease-in-out infinite;
}
.rnSkImg { aspect-ratio: 4 / 3; border-radius: 12px; }
.rnSkLine { height: 12px; border-radius: 6px; margin: 10px 4px 0; }
.rnSkLine.tall { height: 18px; margin-top: 18px; }
.rnSkLine.price { height: 22px; margin-top: 22px; }
.rnSkLine.w35 { width: 35%; } .rnSkLine.w70 { width: 70%; } .rnSkLine.w85 { width: 85%; } .rnSkLine.w100 { width: calc(100% - 8px); }
.rnSkRow { display: flex; gap: 10px; margin-top: 16px; }
.rnSkQty { width: 96px; height: 40px; border-radius: 999px; }
.rnSkBtn { flex: 1; height: 40px; border-radius: 999px; }
.rnSkPill { height: 38px; width: 100%; min-width: 96px; border-radius: 10px; margin-bottom: 4px; }
@keyframes rnShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rnSkImg, .rnSkLine, .rnSkQty, .rnSkBtn, .rnSkPill { animation: none; } }
