/* Customer storefront layout and theme. Cotton UI supplies component styles. */
:root  {
  --color-accent: #218451;
  --color-accent-content: #17663d;
  --color-accent-foreground: #fff;
  --color-input-bg: #fff;
  --color-surface: #fff;
  --color-box-border: #e3e7e5;
  --radius-control: .55rem;
  --radius-button: .55rem;
  --radius-box: .8rem;
  --shadow-box: 0 1px 3px #17241e06, 0 6px 18px #17241e03;
  --focus-ring-color: #21845130;
  --site-ink: #252a2d;
  --site-muted: #67717a;
  --site-line: #e5e8e7;
}
[x-cloak], [hidden], .customer-site .hidden  {
  display: none !important;
}
.customer-site  {
  margin: 0;
  background: #f6f8f7;
  color: var(--site-ink);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.customer-site a  {
  text-underline-offset: 3px;
}
.customer-site button, .customer-site input, .customer-site select, .customer-site textarea  {
  font: inherit;
}
.customer-site button:not(:disabled), .customer-site summary  {
  cursor: pointer;
}
.customer-site :focus-visible  {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.customer-site h1  {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.3;
}
.customer-site h2  {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.customer-site h3  {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.container  {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}
.site-content  {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 48px;
}
.site-header { background: #090909; color: #fff; border-bottom: 1px solid #292b2a; }
.site-navigation { max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 20px; min-height: 88px; padding: 12px 20px; }
.site-logo { flex-shrink: 0; }
.site-logo img { width: 154px; height: 56px; object-fit: contain; }
.site-navigation-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.site-navigation-links > a, .site-menu-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #e6e6e6; border: 0; background: none; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.site-navigation-links > a:hover, .site-menu-trigger:hover,
.site-navigation-links > a[aria-current="page"], .site-menu.is-open > .site-menu-trigger { background: #242624; color: #fff; }
.site-header :focus-visible { outline-color: #f4c746; }
.site-menu { position: relative; }
.site-menu-trigger svg { color: #a3aaa5; transition: transform .15s; }
.site-menu.is-open > .site-menu-trigger svg { transform: rotate(180deg); }
.site-menu-panel { position: absolute; z-index: 40; top: calc(100% + 12px); left: 0; width: 330px; padding: 16px; background: #fff; color: var(--site-ink); border: 1px solid var(--site-line); border-radius: 14px; box-shadow: 0 16px 40px #0003; }
/* Keep the pointer inside the menu while crossing the gap below its trigger. */
.site-menu-panel::before { content: ""; position: absolute; top: -13px; left: 0; right: 0; height: 13px; }
.site-menu-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.site-menu-link { display: flex; align-items: center; padding: 10px 8px; border-radius: 7px; font-size: 13px; text-decoration: none; transition: background-color .15s, color .15s; }
.site-menu-link:hover, .site-menu-link:focus-visible { background: #eef5f0; color: var(--color-accent-content); }
.site-menu-heading { grid-column: 1 / -1; padding: 10px 8px 2px; color: var(--site-muted); font-size: 11px; font-weight: 600; }
.site-account-link { margin-left: auto; }
.site-search { display: flex; height: 40px; width: 185px; margin-left: 8px; flex-shrink: 0; border: 1px solid #393c39; border-radius: 9px; overflow: hidden; background: #1b1d1b; }
.site-search:focus-within { border-color: #89918b; box-shadow: 0 0 0 2px #89918b33; }
.site-search :focus-visible { outline: none; }
.site-search input { width: 100%; min-width: 0; padding: 8px 12px; border: 0; background: transparent; color: #fff; font-size: 13px; }
.site-search input::placeholder { color: #a0a7a1; }
.site-search button { display: grid; place-items: center; background: transparent; color: #a0a7a1; border: 0; width: 38px; flex-shrink: 0; transition: background-color .15s, color .15s; }
.site-search button:hover { background: #2b2e2b; color: #fff; }
.site-cart { position: relative; display: grid; place-items: center; color: #fff; font-size: 20px; text-decoration: none; padding: 9px; border: 1px solid #393c39; border-radius: 9px; margin-right: 6px; transition: background-color .15s; }
.site-cart:hover { background: #242624; }
.site-cart-count { position: absolute; top: -7px; right: -7px; background: var(--color-accent); color: white; min-width: 18px; height: 18px; border-radius: 50%; font-size: 10px; display: grid; place-items: center; padding-inline: 3px; }
.site-mobile-toggle { display: none; }
.site-breadcrumbs { margin: 0 0 20px; }
.site-breadcrumbs ol { font-size: 12px; line-height: 1.6; }
.site-breadcrumbs li { min-width: 0; }
.site-breadcrumbs [aria-current="page"] { overflow-wrap: anywhere; }
.site-breadcrumbs a:hover { color: var(--color-accent-content); text-decoration: underline; }
.site-footer  {
  background: #0d0e10;
  color: #a7adb4;
  padding: 38px 20px 43px;
}
.site-footer-inner  {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
}
.site-footer img  {
  height: 35px;
  max-width: 180px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.site-footer h2  {
  font-size: 13px;
  color: #e8ebee;
  margin-bottom: 10px;
  letter-spacing: normal;
}
.site-footer a  {
  display: block;
  text-decoration: none;
}
.site-footer a:hover  {
  color: #fff;
}
.site-messages  {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.message-row  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.message-row button, .site-toast button  {
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 20px;
}
.site-toast  {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  display: flex;
  gap: 24px;
  align-items: center;
  color: #fff;
  background: #25392e;
  padding: 14px 20px;
  border-radius: .65rem;
  box-shadow: 0 6px 24px #0002;
}
.frontend-button  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}
.frontend-field  {
  margin-bottom: 18px;
}
.frontend-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .frontend-field select, .frontend-field textarea  {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6dcda;
  border-radius: var(--radius-control);
  background: var(--color-input-bg);
  padding: 9px 12px;
  color: var(--site-ink);
  box-shadow: 0 1px 2px #00000004;
}
.frontend-field input[type=checkbox], .frontend-field input[type=radio]  {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  accent-color: var(--color-accent);
  margin-right: 7px;
}
.frontend-field input:disabled, .frontend-field select:disabled  {
  opacity: .6;
  cursor: not-allowed;
}
.frontend-field textarea  {
  min-height: 100px;
}
.frontend-field [aria-invalid=true]  {
  border-color: #c14e43 !important;
}
.field-help  {
  color: var(--site-muted);
  font-size: 12px;
  line-height: 1.6;
}
.field-help ul  {
  list-style: disc;
  padding-left: 18px;
}
.field-errors, .errorlist  {
  color: #a83830;
  font-size: 13px;
  margin: 6px 0 0;
  list-style: none;
  padding: 0;
}
.page-heading, .site-content > h1  {
  margin-bottom: 24px;
}
.page-heading p, .muted  {
  color: var(--site-muted);
}
.page-actions  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.table-scroll  {
  overflow-x: auto;
}
.customer-site table  {
  width: 100%;
  border-collapse: collapse;
}
.customer-site th  {
  text-align: left;
  font-weight: 600;
}
.customer-site th, .customer-site td  {
  padding: 13px 15px;
  border-bottom: 1px solid var(--site-line);
}
.customer-site th  {
  color: #4e5861;
  background: #f7f9f8;
  font-size: 12px;
}
.customer-site caption  {
  text-align: left;
  margin-bottom: 12px;
}
.customer-site hr  {
  border: 0;
  border-top: 1px solid var(--site-line);
  margin-block: 24px;
}
.customer-site [x-bind="dialog"]  {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.error-page  {
  max-width: 720px;
  margin: 40px auto;
}
.error-page h1, .error-page h3  {
  margin-bottom: 16px;
}
@media(max-width:1100px) {
  .site-navigation { gap: 12px; }
  .site-navigation-links > a, .site-menu-trigger { padding-inline: 9px; }
  .site-search { width: 155px; }
  .site-logo img { width: 135px; }
}
@media(max-width:900px) {
  .site-navigation { flex-wrap: wrap; gap: 12px; min-height: 76px; }
  .site-logo img { width: 140px; height: 49px; }
  .site-mobile-toggle { display: block; margin-left: auto; border: 1px solid #393c39; border-radius: 9px; background: transparent; color: white; padding: 8px 12px; }
  .site-navigation-links { display: none; order: 3; width: 100%; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 12px 0 4px; border-top: 1px solid #303330; }
  .site-navigation-links.is-open { display: flex; }
  .site-navigation-links > a, .site-menu-trigger { justify-content: space-between; padding: 12px; font-size: 14px; }
  .site-menu-trigger { width: 100%; }
  .site-menu-panel::before { display: none; }
  .site-menu-panel { position: static; width: 100%; margin: 6px 0 10px; box-shadow: none; }
  .site-account-link { margin-left: 0; justify-content: flex-start !important; }
  .site-search { width: 100%; margin: 8px 0; }
  .site-cart { margin-left: 0; }
  .site-footer-inner  {
    gap: 30px;
  }
}
@media(max-width:560px)  {
  .container  {
    padding-inline: 14px;
  }
  .site-content  {
    padding-top: 20px;
    padding-bottom: 30px;
  }
  .site-navigation { padding: 10px 16px; }
  .site-footer-inner  {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .site-footer-inner > div:first-child  {
    grid-column: 1 / -1;
  }
  .site-toast  {
    bottom: 14px;
    right: 14px;
    max-width: calc(100vw - 28px);
  }
}
@media(prefers-reduced-motion:reduce)  {
  .customer-site *, .customer-site *::before, .customer-site *::after  {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Match the leading calendar icons in the shared rental controls. */
.rental-store-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
  color: var(--color-ink-500, #6b7280);
}
.rental-store-stock {
  position: absolute;
  right: -5px;
  bottom: -5px;
  background: var(--color-input-bg);
  font-size: 12px;
  line-height: 1;
}
#storeSelectorDropdown [x-ref="trigger"] > div {
  gap: 8px;
}
#storeSelectorDropdown [x-ref="trigger"] [x-html="selectedOption?.icon"] {
  width: 16px;
  height: 16px;
}

.info-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--site-muted);
  border-radius: 50%;
}
.info-tooltip-trigger:hover, .info-tooltip-trigger:focus-visible {
  color: var(--color-accent);
  background: #2184510d;
}

/* Cotton's filled neutral variants need the same hover feedback as primary. */
.customer-site [data-button-variant="default"]:not(:disabled):not([aria-disabled="true"]):hover {
  background-color: var(--color-ink-100);
  border-color: var(--color-ink-300);
}
.customer-site [data-button-variant="subtle"]:not(:disabled):not([aria-disabled="true"]):hover {
  background-color: var(--color-ink-200);
  border-color: var(--color-ink-300);
}
