/**
 * GeoVee Scheduler – Modern UI Skin (frontend)
 * Style-only overrides. No JS/logic changes.
 * Keeps existing availability overlay colors (Blue standard, Green offer/radius).
 */

.geovee-container, .geovee-booking-modal-content, .geovee-available-times {
  font-size: 14px;
  line-height: 1.35;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.geovee-container {
  max-width: 860px;
  padding: 6px 10px;
}

.geovee-search-form { margin-bottom: 14px; }

.geovee-address-input {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 12px !important; font-size: 14px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.geovee-address-input:focus {
  outline: none !important;
  /* Remove blue focus ring/border */
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: none !important;
}

.geovee-search-button {
  border-radius: 12px !important;
  padding: 10px 14px !important; font-size: 14px !important;
  /* Match primary UI color */
  background: #6B7A8F !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.12);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.geovee-search-button:hover { filter: brightness(1.03); }
.geovee-search-button:active { transform: translateY(1px); }

/* Card shell */
.geovee-available-times {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

/* View toggle buttons */
.geovee-view-toggle {
  gap: 10px;
}

.geovee-view-button {
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 14px !important;
  background: #fff !important;
  font-weight: 600;
}

.geovee-view-button.active {
  /* Match primary UI color */
  background: #6B7A8F !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #fff !important;
}

/* Ensure icons inside active view button are visible */
.geovee-view-button.active svg,
.geovee-view-button.active path {
  fill: #fff !important;
  color: #fff !important;
}

/* Legend */
.geovee-legend {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.8);
}

.geovee-legend-item {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.86);
}

.geovee-legend-color {
  border-radius: 6px !important;
  box-shadow: none !important;
  border: 1px solid rgba(2, 6, 23, 0.10);
}

/* Calendar */
.geovee-calendar-view { padding: 18px; }

.geovee-calendar-header { margin-bottom: 14px; }

.geovee-calendar-month {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

.geovee-calendar-prev,
.geovee-calendar-next {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: rgba(248, 250, 252, 0.9) !important;
  padding: 10px 12px !important;
}

.geovee-calendar-grid {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.geovee-calendar-days-header {
  background: rgba(248, 250, 252, 0.9) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.geovee-calendar-day-name {
  font-weight: 700 !important;
  color: rgba(15, 23, 42, 0.72) !important;
  letter-spacing: 0.16px;
  text-transform: none;
}

.geovee-calendar-days {
  gap: 8px !important;
  padding: 12px !important;
  background: #fff;
}

/* Day cells: modern, crisp, clickable */
.geovee-calendar-day {
  border-radius: 6px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: rgba(248, 250, 252, 0.65) !important;
  color: rgba(2, 6, 23, 0.92) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.geovee-calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10);
  /* Remove blue hover border */
  border-color: rgba(15, 23, 42, 0.14) !important;
}

/* Keep your overlays (blue/green) – inline CSS already sets backgrounds.
   These tweaks only refine shape/typography. */
.geovee-calendar-day.has-availability {
  border-radius: 6px !important;
}

/* List view time slots */
.geovee-time-slot {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: rgba(248, 250, 252, 0.75) !important;
}

.geovee-time-slot:hover {
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.10);
  transform: translateY(-1px);
}

/* Booking modal */
.geovee-booking-modal-overlay { backdrop-filter: blur(6px); }

.geovee-booking-modal-content {
  border-radius: 18px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

.geovee-booking-modal-header {
  padding: 14px 16px !important;
  background: rgba(248, 250, 252, 0.85);
}

.geovee-booking-modal-header h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
}

.geovee-booking-modal-body { padding: 14px 16px !important; }

.geovee-form-group label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: rgba(2, 6, 23, 0.80) !important;
}

.geovee-booking-modal input[type="text"],
.geovee-booking-modal input[type="email"],
.geovee-booking-modal input[type="tel"],
.geovee-booking-modal input[type="number"],
.geovee-booking-modal select,
.geovee-booking-modal textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 9px 11px !important;
  font-size: 13px !important;
}

.geovee-booking-modal input:focus,
.geovee-booking-modal select:focus,
.geovee-booking-modal textarea:focus {
  outline: none !important;
  /* Remove blue focus ring/border */
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: none !important;
}

/* Service selection panels */
.geovee-service-categories-list,
.geovee-selected-services-panel {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.06);
}

.geovee-selected-services-panel h4,
.geovee-service-categories-list h4 {
  font-weight: 800 !important;
}

.geovee-service-remove-btn,
.geovee-add-service-btn,
button.geovee-add-button,
button.geovee-submit-booking {
  border-radius: 12px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}


button.geovee-submit-booking {
  background: #6B7A8F !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}

button.geovee-submit-booking:hover { filter: brightness(1.03); }


/* Booking modal footer buttons */
.geovee-booking-modal-footer button{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.geovee-booking-cancel{ background: rgba(248,250,252,0.9) !important; border: 1px solid rgba(15,23,42,0.14) !important; }
.geovee-booking-submit{ background: #0b5fff !important; border: 1px solid rgba(0,0,0,0.08) !important; }

/* Service selector tighten */
.geovee-service-selection h4{ font-size: 13px !important; margin-bottom: 10px !important; }
.geovee-service-item-row{
  padding: 10px 12px !important;
  font-size: 13px !important;
}
.geovee-service-item-row input,
.geovee-service-item-row select{
  height: 34px !important;
  font-size: 13px !important;
}
.geovee-service-add-btn{
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

/* Remove old schedule button if theme still prints it somewhere */
.geovee-schedule-button{ display:none !important; }

/* ==============================
   Availability styling (outline-only) + legend swatches
   - Prevent mobile media queries in public CSS from overriding text colors
   - No filled day blocks; use border outline only
   ============================== */

/* =========================================================
   OUTLINE calendar days across ALL breakpoints (desktop + mobile)
   - Standard availability: 3px outline #6B7A8F
   - Radius/Offer dates:    3px outline #F7882F
   IMPORTANT: Styling only. No logic changes.
========================================================= */

/* Reset any legacy fills */
.geovee-calendar-day.has-availability,
.geovee-calendar-day.has-offers,
.geovee-calendar-day.has-availability.has-offers{
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Standard availability days (outline) */
.geovee-calendar-day.has-availability{
  border: 3px solid #6B7A8F !important;
}

/* Offer/radius days (outline) */
.geovee-calendar-day.has-offers,
.geovee-calendar-day.has-availability.has-offers{
  border: 3px solid #F7882F !important;
}

/* Subtle hover tint (still no fill) */
.geovee-calendar-day.has-availability:hover{
  background: rgba(107, 122, 143, 0.06) !important;
}
.geovee-calendar-day.has-offers:hover,
.geovee-calendar-day.has-availability.has-offers:hover{
  background: rgba(247, 136, 47, 0.06) !important;
}

/* Calendar day text: crisp + readable for OUTLINE days (all viewports) */
.geovee-calendar-day.has-availability .geovee-calendar-day-number,
.geovee-calendar-day.has-availability .geovee-calendar-day-slots,
.geovee-calendar-day.has-availability .geovee-calendar-day-offers,
.geovee-calendar-day.has-offers .geovee-calendar-day-number,
.geovee-calendar-day.has-offers .geovee-calendar-day-slots,
.geovee-calendar-day.has-offers .geovee-calendar-day-offers{
  color: #0f172a !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}

/* Offer label inside days: keep it clean for outline-style calendar */
.geovee-calendar-day .geovee-calendar-day-offers{
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  /* Hide offer/radius text inside calendar day boxes (desktop + mobile).
     Keep offer logic/classes intact for coloring + legend. */
  display: none !important;
  width: calc(100% - 10px) !important;
  max-width: 100% !important;
  margin: 2px auto 0 !important;
  padding: 2px 4px !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.15 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Offer label color */
.geovee-calendar-day.has-offers .geovee-calendar-day-offers,
.geovee-calendar-day.has-availability.has-offers .geovee-calendar-day-offers{
  color: #F7882F !important;
}

/* Legend swatches: OUTLINE to match calendar */
.geovee-availability-legend .geovee-legend-swatch{
  background: transparent !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  width: 14px;
  height: 14px;
}
.geovee-availability-legend .geovee-swatch-standard{ border: 3px solid #6B7A8F !important; }
.geovee-availability-legend .geovee-swatch-offer{ border: 3px solid #F7882F !important; }

/* List view offer labels: match palette */
.geovee-time-slot-offer.is-standard{ color: #6B7A8F !important; }
.geovee-time-slot-offer.is-offer{ color: #F7882F !important; font-weight: 700 !important; }



/* === Unified Button Color (Slate) === */
.geovee-add-service-btn,
button.geovee-add-button,
.geovee-add-button,
.geovee-service-remove-btn,
.geovee-booking-modal-footer button.geovee-booking-cancel,
.geovee-booking-modal-footer button,
button.geovee-submit-booking,
button.geovee-add,
button.geovee-add-btn,
.geovee-view-button,
.geovee-search-button {
  background: #6B7A8F !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #fff !important;
}

.geovee-add-service-btn:hover,
button.geovee-add-button:hover,
.geovee-service-remove-btn:hover,
.geovee-booking-modal-footer button:hover,
button.geovee-submit-booking:hover,
.geovee-view-button:hover,
.geovee-search-button:hover {
  filter: brightness(1.05);
}

.geovee-add-service-btn:active,
button.geovee-add-button:active,
.geovee-service-remove-btn:active,
.geovee-booking-modal-footer button:active,
button.geovee-submit-booking:active,
.geovee-view-button:active,
.geovee-search-button:active {
  transform: translateY(1px);
}

/* Keep inactive view buttons neutral */
.geovee-view-button:not(.active) {
  background: #fff !important;
  color: rgba(2,6,23,0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
}

.geovee-calendar-day * { border-radius: 6px !important; }

/* =========================
   Fix13: Force ALL buttons to use primary UI color (#6B7A8F)
   (Some markup uses .geovee-view-btn / .geovee-service-add-btn, not the older class names)
   ========================= */
:root{
  --geovee-primary: #6B7A8F;
  --geovee-offer: #F7882F;
}

/* Search button already uses .geovee-search-button – keep it but ensure no theme overrides */
.geovee-search-button,
.geovee-search-button:visited{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}

/* View toggle buttons (actual markup uses .geovee-view-btn) */
.geovee-view-btn{
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  padding: 10px 14px !important;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 600 !important;
}
.geovee-view-btn.active,
.geovee-view-btn[aria-pressed="true"]{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}
.geovee-view-btn.active .dashicons,
.geovee-view-btn.active svg,
.geovee-view-btn.active path{
  color: #fff !important;
  fill: #fff !important;
}

/* "Add" buttons inside services panel */
.geovee-service-add-btn{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}
.geovee-service-add-btn:hover{ filter: brightness(1.03); }
.geovee-service-add-btn:active{ transform: translateY(1px); }

/* Modal footer + primary action buttons */
button.geovee-submit-booking,
.geovee-booking-modal-footer button,
.geovee-booking-modal-footer .button,
.geovee-booking-modal-footer input[type="button"],
.geovee-booking-modal-footer input[type="submit"]{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}
.geovee-booking-modal-footer button:hover,
button.geovee-submit-booking:hover{ filter: brightness(1.03); }

/* "Back" button should be same color too (no secondary gray) */
.geovee-booking-modal-footer button.geovee-booking-cancel{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}

/* Ensure WP/Theme button classes can't force old blue */
.geovee-container .button.button-primary,
.geovee-container .button-primary,
.geovee-container .btn-primary{
  background: var(--geovee-primary) !important;
  border-color: var(--geovee-primary) !important;
  color: #fff !important;
}

/* ===== NearbyBooker Branding (hardwired) =====
   Goal: professional, unobtrusive placement in the LOWER-RIGHT corner
   of the [geovee_customer] shortcode — never overlapping error/results UI.
   NOTE: Uses !important to defeat theme/Elementor overrides.
*/

/* Anchor absolute positioning to the shortcode wrapper */
/* =============================
   NearbyBooker Branding (SVG)
   - Lower-right
   - Clickable
   - NEVER clipped
   ============================= */

.geovee-container{
  position: relative !important;
  overflow: visible !important;
  /* Dedicated “safe zone” so the logo never touches UI lines/boxes */
  padding-bottom: 76px !important;
}

.geovee-container .geovee-branding{
  position: absolute !important;
  right: 14px !important;
  bottom: 12px !important;
  z-index: 10 !important;
  opacity: 0.92 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.geovee-container .geovee-branding a{
  display: inline-block !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  overflow: visible !important;
  max-width: none !important;
}

.geovee-container .geovee-branding img,
.geovee-container .geovee-branding svg{
  width: 150px !important;
  height: auto !important;
  display: block !important;
  max-width: none !important; /* prevents right-side clipping */
}

@media (max-width: 768px){
  .geovee-container{ padding-bottom: 68px !important; }
  .geovee-container .geovee-branding{ right: 12px !important; bottom: 10px !important; }
  .geovee-container .geovee-branding img,
  .geovee-container .geovee-branding svg{ width: 120px !important; }
}

/* Google Places dropdown always above the logo */
.pac-container{ z-index: 999999 !important; }


/* =========================================
   HARD KILL: remove any outer blue focus/border
   Scope: GeoVee/NearbyBooker customer widget only
   ========================================= */
.geovee-container,
.geovee-results-container,
.geovee-service-selection-container,
.geovee-available-times,
.geovee-map-container {
  outline: none !important;
  box-shadow: none !important;
}

/* Some themes apply focus rings via :focus-within */
.geovee-container:focus,
.geovee-container:focus-within,
.geovee-results-container:focus,
.geovee-results-container:focus-within,
.geovee-service-selection-container:focus,
.geovee-service-selection-container:focus-within,
.geovee-available-times:focus,
.geovee-available-times:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove any border on the OUTER results frame (internal borders stay intact) */
.geovee-results-container {
  border: none !important;
}

/* ===== Compact "no-scroll" calendar + times layout (desktop) ===== */
@media (min-width: 769px) {
  .geovee-calendar-view { padding: 12px !important; }
  .geovee-calendar-header { margin-bottom: 12px !important; }
  .geovee-calendar-month { font-size: 16px !important; }
  .geovee-calendar-day-name { padding: 6px 4px !important; font-size: 12px !important; }
  .geovee-calendar-day { padding: 4px 2px !important; min-height: 54px !important; aspect-ratio: auto !important; }
  .geovee-calendar-day-number { margin-bottom: 2px !important; font-size: 12px !important; line-height: 1.1 !important; }
  .geovee-calendar-day-slots { font-size: 10px !important; line-height: 1.1 !important; }
  .geovee-calendar-day-detail { padding: 10px !important; }
  .geovee-day-detail-header { gap: 10px !important; margin-bottom: 10px !important; padding-bottom: 10px !important; }
  .geovee-day-detail-title { font-size: 16px !important; }
  .geovee-day-detail-slots { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: 10px !important; }
  .geovee-time-slot { padding: 10px 12px !important; }
}



/* =========================================================
   NearbyBooker: Ultra-compact calendar (baked-in)
   Goal: calendar stays small (like mini-month) while times/buttons remain readable.
   ========================================================= */
@media (min-width: 769px) {
  /* Two-column layout: times/slots left, mini calendar right */
  .geovee-calendar-view {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    column-gap: 14px !important;
    align-items: start !important;
  }
  .geovee-calendar-header,
  .geovee-calendar-grid {
    grid-column: 2 !important;
  }
  .geovee-calendar-day-detail {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    padding: 10px !important;
  }

  /* Mini calendar sizing */
  .geovee-calendar-view { padding: 12px !important; }
  .geovee-calendar-header { margin-bottom: 8px !important; }
  .geovee-calendar-month { font-size: 14px !important; }

  .geovee-calendar-prev,
  .geovee-calendar-next {
    padding: 6px 8px !important;
  }

  .geovee-calendar-days-header { border-bottom-width: 1px !important; }
  .geovee-calendar-day-name {
    padding: 4px 2px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  .geovee-calendar-day {
    padding: 3px 2px !important;
    min-height: 34px !important;
    aspect-ratio: auto !important;
    border-radius: 6px !important;
    border-width: 1px !important;
  }
  .geovee-calendar-day-number {
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 1px !important;
  }
  .geovee-calendar-day-availability {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  /* Day detail (times) stays readable but tighter */
  .geovee-day-detail-header {
    gap: 10px !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    border-bottom-width: 1px !important;
  }
  .geovee-day-detail-title { font-size: 16px !important; }

  .geovee-day-detail-slots {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .geovee-time-slot {
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }
  .geovee-time-slot-time { font-size: 13px !important; }
  .geovee-time-slot-offer { font-size: 11px !important; }
}

/* Keep mini calendar usable on smaller desktops */
@media (min-width: 769px) and (max-width: 1024px) {
  .geovee-calendar-view {
    grid-template-columns: 1fr 280px !important;
  }
}

/* If theme tries to force square day cells, override */
.geovee-calendar-day { aspect-ratio: auto !important; }

/* Arrival time window helper text */
.geovee-arrival-window-hint{font-size:13px;margin-top:4px;margin-bottom:10px;}

/* =========================================================
   NearbyBooker mobile-only fix: service subcategory rows clipping
   Scope: booking modal service category items only
   Goal: stop right-side cutoff on phones without touching desktop layout/logic
   ========================================================= */
@media (max-width: 768px){
  .geovee-booking-modal-content,
  .geovee-booking-modal-body,
  .geovee-service-selection,
  .geovee-service-selection-container,
  .geovee-service-categories-list,
  .geovee-category-items{
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .geovee-service-selection .geovee-service-categories-list,
  .geovee-service-selection .geovee-selected-services-panel{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .geovee-service-item-row{
    display: grid !important;
    grid-template-columns: auto minmax(84px, 92px) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .geovee-service-item-row > div:first-child{
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .geovee-service-item-row > div:nth-child(2){
    margin: 0 !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    justify-self: start !important;
  }

  .geovee-service-item-row > input.geovee-service-qty{
    width: 100% !important;
    min-width: 84px !important;
    max-width: 92px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .geovee-service-item-row > .geovee-service-add-btn{
    width: auto !important;
    min-width: 78px !important;
    margin: 0 !important;
    justify-self: end !important;
    white-space: nowrap !important;
    padding: 8px 12px !important;
  }
}

/* =====================================================
   2026 cleanup pass from v2 base
   - tight layout
   - no giant blobs
   - compact service selector
   - qty steppers instead of Add-button workflow
   ===================================================== */
:root{
  --nbb-text:#172033;
  --nbb-muted:#667085;
  --nbb-line:#d9e0ea;
  --nbb-soft:#f7f9fc;
  --nbb-soft-2:#eef2f7;
  --nbb-primary:#6B7A8F;
  --nbb-danger:#e23d3d;
}

.geovee-container{
  max-width: 920px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.geovee-search-form,
.geovee-results-container{
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.geovee-input-group{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.geovee-address-input{
  height: 52px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border:1px solid var(--nbb-line) !important;
  box-shadow:none !important;
  font-size:15px !important;
}
.geovee-search-button{
  height:52px !important;
  min-width: 190px;
  padding: 0 22px !important;
  border-radius: 14px !important;
  box-shadow:none !important;
}

.geovee-results-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 18px 0 14px !important;
}
.geovee-results-title{
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: var(--nbb-text) !important;
  margin:0 !important;
}
.geovee-view-toggle{
  background: var(--nbb-soft) !important;
  border:1px solid var(--nbb-line) !important;
  border-radius: 14px !important;
  padding:4px !important;
  gap:6px !important;
}
.geovee-view-btn{
  min-height:42px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
}
.geovee-legend,
.geovee-availability-legend{
  background: #fff !important;
  border:1px solid var(--nbb-line) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}
.geovee-calendar-view,
.geovee-list-view .geovee-results-content{
  background:#fff;
  border:1px solid var(--nbb-line);
  border-radius:18px;
  padding:18px !important;
  box-shadow:none !important;
}
.geovee-day-detail-header{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.geovee-day-detail-title,
.geovee-calendar-month{
  color: var(--nbb-text) !important;
}
.geovee-arrival-window-hint{
  color: var(--nbb-muted) !important;
  font-size: 15px !important;
}
.geovee-time-slot{
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

/* Modal shell */
.geovee-booking-modal-content{
  width:min(960px, calc(100vw - 30px)) !important;
  max-height:min(86vh, 900px) !important;
  border-radius: 18px !important;
  overflow:hidden;
}
.geovee-booking-modal-header{
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--nbb-line) !important;
  background:#fff !important;
}
.geovee-booking-modal-header h3{
  font-size: 17px !important;
  letter-spacing:.01em;
}
.geovee-booking-modal-body{
  padding: 18px 20px !important;
  background:#fff !important;
}
.geovee-booking-selected-slot{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
  padding: 0 0 12px !important;
  border-bottom:1px solid var(--nbb-line);
}
.geovee-booking-slot-date,
.geovee-booking-slot-time{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 12px;
  border-radius:10px;
  font-weight:700;
  line-height:1;
  color: var(--nbb-text);
  background:#f8fafc;
  border:1px solid var(--nbb-line);
}
.geovee-booking-slot-time{
  white-space:nowrap;
}

/* Service selection */
.geovee-service-selection h4{
  margin: 0 0 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--nbb-text) !important;
}
.geovee-service-selection-container{
  align-items:start;
}
.geovee-service-panel-label{
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nbb-muted);
  margin: 0 0 8px;
}
.geovee-service-categories-list,
.geovee-selected-services-panel{
  border:1px solid var(--nbb-line) !important;
  border-radius:16px !important;
  box-shadow:none !important;
  background:#fff !important;
  padding:14px !important;
}
.geovee-selected-services-panel{
  position:sticky;
  top:16px;
}
.geovee-selected-services-panel h5{
  font-size: 14px !important;
  font-weight:800 !important;
  color: var(--nbb-text) !important;
  margin:0 0 12px !important;
}
.geovee-service-category-item{
  border:1px solid var(--nbb-line) !important;
  border-radius: 14px !important;
  margin-bottom:10px !important;
  background:#fff !important;
}
.geovee-category-header{
  padding: 13px 14px !important;
  min-height: 56px;
}
.geovee-category-header--plain{
  background:#fff !important;
}
.geovee-category-header--plain strong{
  font-size: 15px !important;
  color: var(--nbb-text) !important;
}
.geovee-category-header--plain > div > div{
  color: var(--nbb-muted) !important;
  font-size: 12px !important;
  margin-top:3px !important;
}
.geovee-category-items{
  padding: 0 10px 10px !important;
  background:#fff !important;
}
.geovee-service-item-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center !important;
  gap:12px !important;
  padding: 10px 12px !important;
  margin: 0 0 8px !important;
  background: var(--nbb-soft) !important;
  border:1px solid transparent !important;
  border-radius: 12px !important;
}
.geovee-service-item-row.is-selected{
  background:#f1f5fa !important;
  border-color:#c8d2e0 !important;
}
.geovee-service-item-main{min-width:0;}
.geovee-service-item-title{
  font-size: 14px !important;
  line-height:1.25 !important;
  font-weight: 700 !important;
  color: var(--nbb-text) !important;
}
.geovee-service-item-desc{
  font-size: 12px !important;
  color: var(--nbb-muted) !important;
  margin-top:4px !important;
  line-height:1.35 !important;
}
.geovee-service-item-price{
  margin:0 !important;
  min-width:72px;
  text-align:right;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--nbb-text) !important;
}
.geovee-service-qty-wrap{
  display:inline-grid;
  grid-template-columns:34px 58px 34px;
  border:1px solid var(--nbb-line);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
}
.geovee-service-qty-btn{
  height:38px;
  border:0;
  border-right:1px solid var(--nbb-line);
  background:var(--nbb-soft);
  color:var(--nbb-text);
  font-size:18px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  padding:0;
}
.geovee-service-qty-plus{
  border-right:0;
  border-left:1px solid var(--nbb-line);
}
.geovee-service-qty{
  width:58px !important;
  min-width:58px !important;
  height:38px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  text-align:center;
  font-size:14px !important;
  font-weight:700 !important;
  padding:0 !important;
  margin:0 !important;
  -moz-appearance:textfield;
}
.geovee-service-qty::-webkit-outer-spin-button,
.geovee-service-qty::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.geovee-service-add-btn{ display:none !important; }

.geovee-selected-services-list{
  min-height: 64px !important;
}
.geovee-selected-service-item{
  border:1px solid var(--nbb-line) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin-bottom:8px !important;
  background: var(--nbb-soft) !important;
}
.geovee-selected-service-item > div:first-child > div:first-child{
  color: var(--nbb-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.geovee-selected-service-item > div:first-child > div:last-child{
  color: var(--nbb-muted) !important;
  font-size: 11px !important;
}
.geovee-selected-service-cost{
  color: var(--nbb-text) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.geovee-service-remove-btn{
  background:#fff !important;
  color: var(--nbb-danger) !important;
  border:1px solid #f1b2b2 !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height:1 !important;
}
.geovee-grand-total{
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top:1px solid var(--nbb-line) !important;
}
.geovee-grand-total strong{ color: var(--nbb-text) !important; }
.geovee-grand-total-value{
  font-size: 24px !important;
  line-height:1 !important;
}

/* Form fields under services */
.geovee-booking-field{ margin-bottom: 12px !important; }
.geovee-booking-field-label{
  display:block;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--nbb-text) !important;
}
.geovee-booking-field-input,
.geovee-booking-form input[type="text"],
.geovee-booking-form input[type="email"],
.geovee-booking-form input[type="tel"],
.geovee-booking-form textarea,
.geovee-booking-form select{
  height: 46px !important;
  border-radius: 12px !important;
  border:1px solid var(--nbb-line) !important;
  box-shadow:none !important;
}
.geovee-booking-form textarea{ min-height: 110px; padding-top: 12px !important; }

@media (max-width: 900px){
  .geovee-results-header{ align-items:stretch; flex-direction:column; }
  .geovee-input-group{ grid-template-columns:1fr; }
  .geovee-search-button{ min-width:0; width:100%; }
  .geovee-service-selection-container{ grid-template-columns:1fr !important; }
  .geovee-selected-services-panel{ position:static; }
}
@media (max-width: 680px){
  .geovee-booking-modal-content{ width: calc(100vw - 16px) !important; }
  .geovee-booking-modal-body{ padding: 14px !important; }
  .geovee-service-item-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "main price"
      "qty qty";
    gap:10px !important;
  }
  .geovee-service-item-main{ grid-area:main; }
  .geovee-service-item-price{ grid-area:price; }
  .geovee-service-qty-wrap{ grid-area:qty; justify-self:start; }
}


/* ===== v9 surgical fixes: branding position + selected date/time alignment ===== */
.geovee-container{
  padding-bottom: 96px !important;
}
.geovee-container .geovee-branding{
  right: 14px !important;
  bottom: -24px !important;
  z-index: 2 !important;
}
.geovee-container .geovee-branding a,
.geovee-container .geovee-branding img,
.geovee-container .geovee-branding svg{
  vertical-align: bottom !important;
}

.geovee-booking-selected-slot{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}
.geovee-booking-slot-date,
.geovee-booking-slot-time{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  line-height: 40px !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}
.geovee-booking-slot-time{
  min-width: 170px !important;
}

@media (max-width: 768px){
  .geovee-container{
    padding-bottom: 88px !important;
  }
  .geovee-container .geovee-branding{
    right: 10px !important;
    bottom: -18px !important;
  }
  .geovee-booking-selected-slot{
    gap: 8px !important;
  }
  .geovee-booking-slot-date,
  .geovee-booking-slot-time{
    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
    padding: 0 12px !important;
  }
}

/* ===== v10 visual softening: reduce heavy bold look, keep layout intact ===== */
.geovee-booking-modal-content,
.geovee-booking-modal-content *{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.geovee-booking-modal-content,
.geovee-booking-modal-body,
.geovee-service-selection,
.geovee-selected-services-panel,
.geovee-booking-form,
.geovee-booking-form input,
.geovee-booking-form textarea,
.geovee-booking-form select{
  color:#334155 !important;
}

.geovee-booking-modal-header h3,
.geovee-service-selection h4,
.geovee-selected-services-panel h5,
.geovee-booking-field-label,
.geovee-grand-total strong,
.geovee-category-header--plain strong{
  font-weight:600 !important;
  color:#1f2937 !important;
}

.geovee-service-panel-label,
.geovee-category-header--plain > div > div,
.geovee-service-item-desc,
.geovee-selected-service-item > div:first-child > div:last-child{
  color:#64748b !important;
  font-weight:400 !important;
}

.geovee-service-item-title,
.geovee-selected-service-item > div:first-child > div:first-child,
.geovee-booking-slot-date,
.geovee-booking-slot-time{
  font-weight:600 !important;
  color:#1f2937 !important;
}

.geovee-service-item-price,
.geovee-selected-service-cost,
.geovee-grand-total-value{
  font-weight:600 !important;
  color:#334155 !important;
}

.geovee-service-item-row{
  background:#f8fafc !important;
  border-color:#e2e8f0 !important;
}
.geovee-service-item-row.is-selected{
  background:#f1f5f9 !important;
  border-color:#cbd5e1 !important;
}
.geovee-selected-service-item,
.geovee-selected-services-panel,
.geovee-service-categories-list,
.geovee-service-category-item{
  border-color:#e2e8f0 !important;
}
.geovee-selected-service-item{
  background:#f8fafc !important;
}

.geovee-service-qty-wrap{
  border-color:#dbe3ec !important;
  background:#fff !important;
}
.geovee-service-qty-btn{
  background:#f8fafc !important;
  color:#475569 !important;
  font-weight:500 !important;
}
.geovee-service-qty{
  color:#1f2937 !important;
  font-weight:600 !important;
}

.geovee-service-remove-btn{
  background:#fff !important;
  color:#ef4444 !important;
  border-color:#fecaca !important;
  font-weight:600 !important;
}

.geovee-booking-form input[type="text"],
.geovee-booking-form input[type="email"],
.geovee-booking-form input[type="tel"],
.geovee-booking-form textarea,
.geovee-booking-form select,
.geovee-booking-field-input{
  color:#334155 !important;
}

.geovee-booking-slot-date,
.geovee-booking-slot-time{
  background:#f8fafc !important;
  border-color:#dbe3ec !important;
}

/* ===== v11 mobile service row overlap fix ===== */
@media (max-width: 680px){
  .geovee-service-item-row{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "main"
      "price"
      "qty" !important;
    align-items: start !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .geovee-service-item-main{
    grid-area: main !important;
    min-width: 0 !important;
  }
  .geovee-service-item-title{
    display: block !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .geovee-service-item-desc{
    display: block !important;
    margin-top: 4px !important;
  }
  .geovee-service-item-price{
    grid-area: price !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: start !important;
  }
  .geovee-service-qty-wrap{
    grid-area: qty !important;
    justify-self: start !important;
    width: auto !important;
    max-width: 100% !important;
  }
}

/* ===== v12 category image cards ===== */
.geovee-category-header{
  position: relative;
}

.geovee-category-header--image{
  min-height: 148px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background-size: cover;
  background-position: center center;
  color: #fff;
}

.geovee-category-header--image .geovee-category-header-copy{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 44px);
}

.geovee-category-header--image .geovee-category-title{
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.18;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.geovee-category-header--image .geovee-category-description{
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  line-height: 1.35;
  max-width: 52ch;
}

.geovee-category-header--image .dashicons{
  color: #fff;
  width: 34px;
  height: 34px;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(2px);
  flex: 0 0 auto;
}

.geovee-category-header--plain{
  background: #f8fafc;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.geovee-category-header--plain .geovee-category-header-copy{
  min-width: 0;
}

.geovee-category-header--plain .geovee-category-title{
  display: block;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.geovee-category-header--plain .geovee-category-description{
  margin-top: 4px;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.35;
}

.geovee-category-header--plain .dashicons{
  color: #475569;
}

.geovee-service-category-item.has-category-image{
  border-color: #d8dee8 !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}

.geovee-service-category-item.no-category-image{
  border-color: #d8dee8 !important;
}

@media (max-width: 782px){
  .geovee-category-header--image{
    min-height: 124px;
    padding: 14px;
  }

  .geovee-category-header--image .geovee-category-title{
    font-size: 1rem;
  }

  .geovee-category-header--image .geovee-category-description{
    font-size: .86rem;
  }
}


/* v13 fix: image category cards were being blanked by global header styles */
.geovee-category-header--image{
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  padding: 18px !important;
  min-height: 148px !important;
}
.geovee-category-header--image strong,
.geovee-category-header--image .geovee-category-title{
  color:#fff !important;
}
.geovee-category-header--image > div > div,
.geovee-category-header--image .geovee-category-description{
  color:rgba(255,255,255,.92) !important;
}


/* v14: keep category cards collapsed on initial load and crop images only within NBB card display */
.geovee-service-category-item.has-category-image{
  overflow: hidden;
}

.geovee-category-header--image{
  position: relative;
  isolation: isolate;
  min-height: 156px !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.geovee-category-header--image::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.62) 62%, rgba(15,23,42,.80) 100%);
  z-index: 0;
}

.geovee-category-header--image > *{
  position: relative;
  z-index: 1;
}

@media (max-width: 782px){
  .geovee-category-header--image{
    min-height: 132px !important;
    }
}


/* ===== v18: independent scroll for category chooser only ===== */
.geovee-booking-modal .geovee-service-categories-list{
  max-height: min(52vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 10px !important;
  scrollbar-gutter: stable;
}
.geovee-booking-modal .geovee-service-categories-list::-webkit-scrollbar{
  width: 10px;
}
.geovee-booking-modal .geovee-service-categories-list::-webkit-scrollbar-thumb{
  background: rgba(107,122,143,.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.geovee-booking-modal .geovee-service-categories-list::-webkit-scrollbar-track{
  background: transparent;
}
@media (max-width: 900px){
  .geovee-booking-modal .geovee-service-categories-list{
    max-height: min(42vh, 420px) !important;
  }
}
