/**
 * FlexiBrands - Complete Search Styling
 * Consistent brand and product search experience
 */

/* ========================================
   MATERIAL ICONS BASE CLASS
   ======================================== */

/* Material Icons Base - Required for rating stars */
.mi {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ========================================
   HERO REVIEW SEARCH STYLING - MODERN UI
   ======================================== */

/* Hero Container - Transparent, works with any background */
.fb-review-hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

/* Hero Header Styling */
.fb-review-header {
  text-align: center;
  margin-bottom: 40px;
}

.fb-review-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.5px;
}

.fb-review-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Main Search Card - Glass Morphism Style */
.fb-review-card {
  background: var(--fb-hero-card-bg, rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(var(--fb-hero-blur, 10px));
  -webkit-backdrop-filter: blur(var(--fb-hero-blur, 10px));
  border-radius: var(--fb-hero-radius, 20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  overflow: visible; /* Allow dropdowns to escape */
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

/* Tab Navigation - Pill Style */
.fb-review-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
  background: linear-gradient(to bottom, rgba(249, 249, 249, 0.6), transparent);
  border-radius: var(--fb-hero-radius, 20px) var(--fb-hero-radius, 20px) 0 0;
  /* Clip the tabs area to respect card border-radius */
  overflow: hidden;
  margin: -1px -1px 0 -1px; /* Overlap with card border */
  padding-top: 15px; /* Compensate for negative margin */
}

.fb-review-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: var(--fb-hero-radius-sm, 12px);
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: #f8f8f8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fb-review-tab:hover {
  background: var(--fb-hero-primary-10, var(--fb-hero-primary-10, rgba(108, 28, 255, 0.08)));
  color: var(--fb-hero-primary, #6c1cff);
  border-color: var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3)));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--fb-hero-primary-20, var(--fb-hero-primary-20, rgba(108, 28, 255, 0.15)));
}

.fb-review-tab.active {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--fb-hero-shadow, 0 4px 15px var(--fb-hero-shadow, rgba(108, 28, 255, 0.4))),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fb-review-tab-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.fb-review-tab.active .fb-review-tab-icon {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.fb-review-tab:hover .fb-review-tab-icon {
  transform: scale(1.1);
}

/* Panel Container - Compact */
.fb-review-panels {
  padding: 16px 16px 12px;
  overflow: visible;
}

.fb-review-panel {
  display: none;
  animation: fb-fade-in 0.4s ease-out;
  overflow: visible;
}

.fb-review-panel.active {
  display: block;
  overflow: visible;
}

.fb-review-panel-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  font-weight: 500;
}

/* ========================================
   SMART RATING SELECTOR (UX Enhancement)
   ======================================== */

/* Rating Selector Container */
.fb-rating-selector {
  text-align: center;
  margin: 0 0 18px;
  padding: 14px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
}

.fb-rating-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* Star Selector Container */
.fb-star-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Individual Star Buttons */
.fb-star-btn {
  background: none;
  border: none;
  font-size: 40px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  line-height: 1;
  position: relative;
}

.fb-star-btn:hover {
  color: #ffd700;
  transform: scale(1.2) rotate(-10deg);
}

.fb-star-btn:active {
  transform: scale(1.1) rotate(-5deg);
}

/* Selected Star State */
.fb-star-btn.selected {
  color: #f39c12;
  text-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
  animation: fb-star-pulse 0.5s ease;
}

.fb-star-btn.selected:hover {
  color: #e67e22;
  transform: scale(1.15);
}

/* Hover effect - light up stars up to hovered star */
.fb-star-selector:hover .fb-star-btn {
  color: #ddd;
}

.fb-star-btn:hover,
.fb-star-btn:hover ~ .fb-star-btn {
  color: #ddd;
}

.fb-star-selector .fb-star-btn:hover,
.fb-star-selector:has(.fb-star-btn:hover) .fb-star-btn {
  color: #ffd700;
}

.fb-star-btn:hover ~ .fb-star-btn {
  color: #ddd !important;
}

/* Rating Hint Text */
.fb-rating-hint {
  display: block;
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-top: 8px;
}

/* Star Pulse Animation */
@keyframes fb-star-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .fb-rating-selector {
    padding: 15px;
    margin: 0 0 25px;
  }

  .fb-rating-label {
    font-size: 15px;
  }

  .fb-star-btn {
    font-size: 32px;
    gap: 5px;
  }

  .fb-rating-hint {
    font-size: 11px;
  }
}

/* Search Input Wrapper - Modern Design */
.fb-review-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  overflow: visible; /* Changed from 'hidden' to allow dropdown to show */
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fb-review-input-wrapper:focus-within {
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 0 0 4px var(--fb-hero-primary-10, var(--fb-hero-primary-10, rgba(108, 28, 255, 0.1))), 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Search Icon */
.fb-review-search-icon {
  position: absolute;
  left: 20px;
  color: #999;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.fb-review-input-wrapper:focus-within .fb-review-search-icon {
  color: var(--fb-hero-primary, #6c1cff);
}

/* Search Input */
.fb-review-input {
  flex: 1;
  padding: 18px 20px 18px 55px !important;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
  font-weight: 500;
}

.fb-review-input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Search Button */
.fb-review-button {
  padding: 18px 28px;
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fb-review-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fb-review-button:hover {
  background: var(--fb-hero-gradient-hover, linear-gradient(135deg, var(--fb-hero-primary-dark, #5a10e0) 0%, #7a3ee8 100%));
  filter: brightness(0.9);
  transform: scale(1.02);
}

.fb-review-button:hover::before {
  opacity: 1;
}

.fb-review-button:active {
  transform: scale(0.98);
}

.fb-review-button svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   SEARCH RESULTS DROPDOWN - CLEAN PRO UI
   ======================================== */

/* Global overlay styling - DISABLED
#fb-overlay,
.fb-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9980 !important;
  transition: opacity 0.25s ease;
}
*/

.fb-review-input-wrapper .fb-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9999 !important;
  display: none;
  animation: fbDropdownFade 0.2s ease-out;
}

.fb-review-input-wrapper .fb-results[style*="display: block"],
.fb-review-input-wrapper .fb-results[style*="display:block"] {
  display: block !important;
}

@keyframes fbDropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Result item - FLAT list rows (no individual cards!) */
.fb-review-input-wrapper .fb-results .fb-result-item,
.fb-results .fb-result-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
  transition: background 0.12s ease !important;
  /* IMPORTANT: Remove all card-like styling */
  border: none !important;
  border-bottom: 1px solid #eee !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.fb-review-input-wrapper .fb-results .fb-result-item:last-child,
.fb-results .fb-result-item:last-child {
  border-bottom: none !important;
}

.fb-review-input-wrapper .fb-results .fb-result-item:hover,
.fb-results .fb-result-item:hover {
  background: #f7f5ff !important;
}

.fb-review-input-wrapper .fb-results .fb-result-item:active,
.fb-results .fb-result-item:active {
  background: #ede9fe !important;
}

/* Result image */
.fb-review-input-wrapper .fb-results .fb-result-image {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-review-input-wrapper .fb-results .fb-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Result info */
.fb-review-input-wrapper .fb-results .fb-result-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fb-review-input-wrapper .fb-results .fb-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-review-input-wrapper .fb-results .fb-result-name .fb-verified-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.fb-review-input-wrapper .fb-results .fb-result-meta {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fb-review-input-wrapper .fb-results .fb-result-meta i {
  font-size: 12px;
  color: #fbbf24;
}

/* Section heading */
.fb-review-input-wrapper .fb-results .fb-results-heading {
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* States */
.fb-review-input-wrapper .fb-results .fb-searching,
.fb-review-input-wrapper .fb-results .fb-no-results,
.fb-review-input-wrapper .fb-results .fb-error {
  padding: 24px 16px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.fb-review-input-wrapper .fb-results .fb-searching {
  color: var(--fb-hero-primary, #6c1cff);
}

/* Scrollbar */
.fb-review-input-wrapper .fb-results::-webkit-scrollbar {
  width: 4px;
}

.fb-review-input-wrapper .fb-results::-webkit-scrollbar-track {
  background: transparent;
}

.fb-review-input-wrapper .fb-results::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.fb-review-input-wrapper .fb-results::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* Mobile dropdown adjustments */
@media (max-width: 600px) {
  .fb-review-input-wrapper .fb-results {
    max-height: 260px;
    border-radius: 10px;
  }

  .fb-review-input-wrapper .fb-results .fb-result-item {
    padding: 8px 12px;
    gap: 10px;
  }

  .fb-review-input-wrapper .fb-results .fb-result-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .fb-review-input-wrapper .fb-results .fb-result-name,
  .fb-review-input-wrapper .fb-results .fb-result-title {
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .fb-review-input-wrapper .fb-results .fb-result-meta {
    font-size: 10px;
  }

  .fb-review-input-wrapper .fb-results .fb-results-heading {
    padding: 6px 12px;
    font-size: 9px;
  }
}

/* Animation */
@keyframes fb-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 767px) {
  .fb-review-hero-container {
    padding: 20px 12px;
  }

  .fb-review-header {
    margin-bottom: 20px;
  }

  .fb-review-title {
    font-size: 28px;
  }

  .fb-review-subtitle {
    font-size: 15px;
  }

  .fb-review-tabs {
    flex-direction: row;
    gap: 6px;
    padding: 10px 12px 0;
  }

  .fb-review-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .fb-review-panels {
    padding: 12px 12px 10px;
  }

  .fb-review-input {
    font-size: 15px;
    padding: 14px 16px 14px 46px !important;
  }

  .fb-review-search-icon {
    left: 14px;
  }

  .fb-review-button {
    padding: 14px 16px;
  }

  .fb-review-card {
    border-radius: 14px;
  }

  .fb-review-panel-subtitle {
    margin: 0 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .fb-review-hero-container {
    padding: 14px 10px;
  }

  .fb-review-title {
    font-size: 24px;
  }

  .fb-review-subtitle {
    font-size: 13px;
  }

  .fb-review-tab span {
    font-size: 12px;
  }

  .fb-review-tab-icon {
    width: 16px;
    height: 16px;
  }

  .fb-review-tab {
    border-width: 1px;
    padding: 8px 10px;
    gap: 4px;
  }

  .fb-review-panels {
    padding: 10px 10px 8px;
  }

  .fb-review-input {
    padding: 12px 14px 12px 42px !important;
    font-size: 14px;
  }

  .fb-review-input-wrapper {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .fb-review-card {
    border-radius: 12px;
  }

  .fb-review-input {
    padding: 14px 16px 14px 45px;
    font-size: 14px;
  }
}

/* ========================================
   ORIGINAL SEARCH STYLING
   ======================================== */

/* Base Container Styles */
.fb-cannabis-container,
.fb-brand-container,
.fb-product-container {
  max-width: 800px;
  margin: 0 auto 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
  position: relative;
  border: 1px solid #e8e8e8;
  color: #333333;
  z-index: 100;
  padding: 20px;
}

/* Header Styles */
.fb-header {
  padding: 10px 0 25px;
  text-align: left;
  margin-bottom: 5px;
}

.fb-title {
  font-size: 28px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px;
  line-height: 1.2;
}

.fb-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.5;
}

/* Form Elements */
.fb-form {
  position: relative;
  margin-bottom: 15px;
}

.fb-form:focus-within {
  z-index: 101;
}

.fb-input-group {
  display: flex;
  position: relative;
  margin-bottom: 20px;
}

/* Improved Input with Darker Border */
.fb-input {
  width: 100%;
  height: 58px;
  padding: 0 45px 0 25px;
  font-size: 16px;
  border: 2px solid #d0d0d0;
  border-radius: 10px;
  transition: all 0.25s ease;
  color: #222222;
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.fb-input:focus {
  outline: none;
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 4px 15px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.15));
}

.fb-input::placeholder {
  color: #999999;
}

/* Search Button Styling */
.fb-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--fb-hero-primary, #6c1cff);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.fb-button:focus {
  outline: none;
}

.fb-button svg {
  width: 20px;
  height: 20px;
  stroke: var(--fb-hero-primary, #6c1cff);
}

/* Enhanced Full Screen Overlay - now handled by main definition at top */
/* Overlay styles consolidated to lines 397-409 with z-index: 9980 */

/* Filter Options */
.fb-filter {
  margin: 10px 0 20px;
  display: flex;
  align-items: center;
}

.fb-filter label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
}

.fb-filter input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--fb-hero-primary, #6c1cff);
  cursor: pointer;
}

/* ========================================
   NEAR ME / GEOLOCATION FEATURE
   ======================================== */

/* Input wrapper needs relative positioning for absolute button */
.fb-review-input-wrapper {
  position: relative;
}

/* Input with Near Me button needs right padding */
.fb-review-input.has-near-me {
  padding-right: 100px !important;
}

/* Near Me Toggle - Inside Search Bar (Right Side) */
.fb-near-me-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
  border: 1px solid #c0c0c0;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  user-select: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fb-near-me-toggle:hover {
  background: linear-gradient(135deg, #d8d8d8 0%, #c8c8c8 100%);
  border-color: #a0a0a0;
  color: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.fb-near-me-toggle.active {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 6px var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25)));
}

.fb-near-me-toggle.active:hover {
  box-shadow: 0 3px 8px var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.35)));
}

.fb-near-me-toggle.loading {
  pointer-events: none;
  opacity: 0.7;
}

.fb-near-me-toggle.loading .fb-near-me-icon {
  animation: fb-pulse 1s ease-in-out infinite;
}

@keyframes fb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.fb-near-me-toggle.error {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

/* Location Icon */
.fb-near-me-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #555;
  stroke-width: 2.5;
}

.fb-near-me-toggle:hover .fb-near-me-icon {
  color: #333;
}

.fb-near-me-toggle.active .fb-near-me-icon {
  color: #fff;
  animation: fb-pulse 1.5s ease-in-out infinite;
}

@keyframes fb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Loading Spinner for Near Me */
.fb-near-me-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--fb-hero-primary-20, rgba(108, 28, 255, 0.2));
  border-top-color: var(--fb-hero-primary, #6c1cff);
  border-radius: 50%;
  animation: fb-spin 0.8s linear infinite;
}

/* Themed Spinner - Uses dynamic colors from settings */
.fb-themed-spinner {
  margin: 0 auto 10px;
  width: 25px;
  height: 25px;
  border: 3px solid #f0f0f0;
  border-radius: 50%;
  border-top-color: var(--fb-hero-primary, #6c1cff);
  animation: fb-spin 0.8s linear infinite;
}

.fb-near-me-toggle.active .fb-near-me-spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

/* Distance Badge on Results */
.fb-result-distance {
  font-size: 11px;
  color: #888;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.fb-result-item .fb-result-distance {
  font-weight: 500;
}

/* Near Me Status Message */
.fb-near-me-status {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 4px;
}

.fb-near-me-status.error {
  color: #ff4757;
}

.fb-near-me-status.success {
  color: var(--fb-hero-primary, #2ecc71);
}

/* Mobile Responsive - Near Me */
@media (max-width: 600px) {
  /* Hide text on mobile, show only icon */
  .fb-near-me-toggle .fb-near-me-text {
    display: none;
  }

  .fb-near-me-toggle {
    padding: 9px;
    border-radius: 50%;
    right: 6px;
    background: #f5f5f5;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  .fb-near-me-toggle:hover {
    background: #e8e8e8;
  }

  .fb-near-me-toggle.active {
    background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
    border: none;
    box-shadow: 0 2px 6px var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3)));
  }

  .fb-review-input.has-near-me {
    padding-right: 52px !important;
  }

  .fb-near-me-icon {
    width: 18px;
    height: 18px;
  }

  /* Fix input wrapper focus border on mobile */
  .fb-review-input-wrapper {
    border-width: 1px;
  }

  .fb-review-input-wrapper:focus-within {
    border-width: 2px;
    box-shadow: 0 0 0 3px var(--fb-hero-primary-10, var(--fb-hero-primary-10, rgba(108, 28, 255, 0.08)));
  }
}

@media (max-width: 400px) {
  .fb-near-me-toggle {
    padding: 8px;
    right: 4px;
  }

  .fb-review-input.has-near-me {
    padding-right: 46px !important;
  }

  .fb-near-me-icon {
    width: 16px;
    height: 16px;
  }
}

/* Category Links and Popular Brands */
.fb-categories {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.fb-categories span {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

.fb-category-link,
.fb-brand-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #666666;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.fb-category-link:hover,
.fb-brand-link:hover {
  background-color: var(--fb-hero-primary-10, rgba(108, 28, 255, 0.05));
  color: var(--fb-hero-primary, #6c1cff);
  transform: translateY(-1px);
}

/* Hide category counts */
.fb-category-count {
  display: none !important;
}

/* Promoted/Featured Brand Styling */
.fb-brand-link.promoted {
  background-color: var(--fb-badge-promoted-light, rgba(255, 152, 0, 0.1));
  color: var(--fb-badge-promoted, #ff9800);
  font-weight: 600;
}

.fb-brand-link.featured {
  background-color: var(--fb-badge-featured-light, rgba(0, 122, 255, 0.1));
  color: var(--fb-badge-featured, #007aff);
}

.fb-brand-link.verified {
  background-color: var(--fb-hero-primary-10, rgba(52, 199, 89, 0.08));
  color: var(--fb-hero-primary, #34c759);
}

.fb-brand-link .fb-verified-icon {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
}

/* MyListing Theme Badge Overrides - Promoted/Featured Listings */
.lf-item-container.level-promoted,
.lf-item.level-promoted {
  border-color: var(--fb-badge-promoted, #ff9800) !important;
}

.lf-item-container.level-promoted .lf-item,
.lf-item-container.level-promoted .lf-background,
.lf-item.level-promoted .lf-background {
  border-color: var(--fb-badge-promoted, #ff9800) !important;
}

.lf-item-container.level-promoted .listing-badge,
.lf-item.level-promoted .listing-badge,
.listing-badge.promoted-badge {
  background: var(--fb-badge-promoted, #ff9800) !important;
  color: #ffffff !important;
}

.lf-item-container.level-featured,
.lf-item.level-featured {
  border-color: var(--fb-badge-featured, #007aff) !important;
}

.lf-item-container.level-featured .lf-item,
.lf-item-container.level-featured .lf-background,
.lf-item.level-featured .lf-background {
  border-color: var(--fb-badge-featured, #007aff) !important;
}

.lf-item-container.level-featured .listing-badge,
.lf-item.level-featured .listing-badge,
.listing-badge.featured-badge {
  background: var(--fb-badge-featured, #007aff) !important;
  color: #ffffff !important;
}

/* Tabs Styling */
.fb-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.fb-tab {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fb-tab:hover {
  color: var(--fb-hero-primary, #6c1cff);
}

.fb-tab.active {
  color: var(--fb-hero-primary, #6c1cff);
}

.fb-tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--fb-hero-primary, #6c1cff);
}

.fb-panels {
  position: relative;
}

.fb-panel {
  display: none;
}

.fb-panel.active {
  display: block;
}

/* Improved Live Search Results */
.fb-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  max-height: 380px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  border: none;
  margin-top: 5px;
  animation: fb-fadeInUp 0.25s ease-out;
}

/* Override display none when results are being shown by JavaScript */
.fb-results[style*="display: block"],
.fb-results[style*="display:block"] {
  display: block !important;
}

.fb-results-section {
  padding-bottom: 5px;
}

.fb-results-section:last-child {
  padding-bottom: 0;
}

.fb-results-heading {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  border-radius: 8px 8px 0 0;
  text-align: left; /* Consistent alignment */
}

/* .fb-result-item base styles moved to unified section ~line 423 */

.fb-result-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
}

.fb-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-letter-placeholder {
  font-size: 22px;
  font-weight: bold;
  color: var(--fb-hero-primary, #6c1cff);
}

/* Improved Result Details Alignment */
.fb-result-details {
  flex: 1;
  min-width: 0;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.fb-result-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  width: 100%;
  text-align: left;
}

.fb-result-meta {
  font-size: 14px;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.fb-result-brand {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: flex;
  align-items: center;
}

.fb-verified-icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
}

.fb-verified-icon.small {
  width: 14px;
  height: 14px;
}

/* Improved Result Badges */
.fb-result-badge {
  margin-left: auto;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  flex-shrink: 0;
  min-width: 65px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hide the product badge */
.fb-result-badge.product {
  display: none;
}

.fb-result-badge.promoted {
  background-color: var(--fb-badge-promoted-light, rgba(255, 149, 0, 0.1));
  color: var(--fb-badge-promoted, #ff9500);
}

.fb-result-badge.featured {
  background-color: var(--fb-badge-featured-light, rgba(0, 122, 255, 0.1));
  color: var(--fb-badge-featured, #007aff);
}

.fb-result-badge.brand {
  background-color: var(--fb-hero-primary-10, rgba(108, 28, 255, 0.1));
  color: var(--fb-hero-primary, #6c1cff);
}

.fb-result-badge.sale {
  background-color: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

/* Search status messages */
.fb-no-results,
.fb-loading,
.fb-error {
  padding: 30px;
  text-align: center;
  color: #666666;
}

.fb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
}

.fb-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #f0f0f0;
  border-radius: 50%;
  border-top-color: var(--fb-hero-primary, #6c1cff);
  animation: fb-spin 0.8s linear infinite;
  margin-bottom: 15px;
}

/* Suggested Brands Section */
.fb-suggested-brands {
  margin-top: 25px;
}

.fb-suggested-brands h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.fb-brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Section Titles */
.fb-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px;
}

/* Brands Container */
.fb-brands-container {
  margin: 30px 0;
}

.fb-brands-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0 0 20px;
}

/* Animations */
@keyframes fb-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fb-fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fb-fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
.fb-results::-webkit-scrollbar {
  width: 8px;
}

.fb-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0 8px 0;
}

.fb-results::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 4px;
}

.fb-results::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}

/* Screen Reader Text - For Accessibility */
.fb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .fb-header {
    text-align: left;
    padding: 10px 0 20px;
  }

  .fb-title {
    font-size: 24px;
  }

  .fb-subtitle {
    font-size: 14px;
  }

  .fb-input {
    height: 52px;
    font-size: 15px;
    padding: 0 45px 0 20px;
  }

  .fb-results {
    max-height: 350px;
  }

  .fb-result-item {
    padding: 15px;
  }

  .fb-result-image {
    width: 48px;
    height: 48px;
  }

  .fb-result-details {
    padding-right: 12px;
  }

  .fb-result-title {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }

  .fb-result-meta {
    font-size: 12px;
    gap: 4px;
  }

  .fb-result-meta .mi {
    font-size: 14px;
  }

  .fb-result-badge {
    padding: 4px 8px;
    font-size: 10px;
    min-width: auto;
  }

  .fb-categories,
  .fb-suggested-brands {
    margin-top: 20px;
    padding-top: 15px;
  }

  .fb-category-link,
  .fb-brand-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .fb-tabs {
    margin-bottom: 15px;
  }

  .fb-tab {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .fb-cannabis-container,
  .fb-brand-container,
  .fb-product-container {
    border-radius: 10px;
    padding: 15px;
  }

  .fb-result-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .fb-categories,
  .fb-brands-grid {
    justify-content: center;
  }

  .fb-category-link,
  .fb-brand-link {
    margin-bottom: 5px;
  }

  .fb-results-heading {
    font-size: 13px;
    padding: 10px 12px;
  }

  .fb-input {
    height: 50px;
    font-size: 14px;
  }
}

/* Top rated */
/* Top Rated Tab Styles */
.fb-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  padding-bottom: 10px;
  padding-top: 5px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.fb-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.fb-tab {
  padding: 7px 16px;
  margin-right: 5px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  color: #555;
  background: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.fb-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.fb-tab.active {
  background: #7e3aff; /* Matches your existing lighter purple */
  color: white;
  border-color: #7e3aff;
  box-shadow: 0 3px 6px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
}

.fb-panels {
  position: relative;
  margin-bottom: 15px;
}

.fb-panel {
  display: none;
}

.fb-panel.active {
  display: block;
}

/* Filters - Match your existing filter tabs */
.fb-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-bottom: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
  scrollbar-width: none; /* Firefox */
}

.fb-filters::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.fb-filter-button {
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  color: #555;
  background: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  flex: 0 0 auto;
}

.fb-filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.fb-filter-button.active {
  background: #7e3aff;
  color: white;
  border-color: #7e3aff;
  box-shadow: 0 3px 6px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
}

.fb-filter-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.fb-rating-filter {
  padding: 7px 16px 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e8e8e8;
  background-color: #f9f9f9;
  color: #555;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 28px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.fb-rating-filter:focus {
  outline: none;
  border-color: #7e3aff;
  box-shadow: 0 3px 6px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.15));
}

/* Empty State */
.fb-rating-empty {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #777;
  margin-bottom: 20px;
}

/* View More Button - Match your existing theme */
.fb-view-more {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.fb-view-more-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #7e3aff; /* Match your existing purple */
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.2));
}

.fb-view-more-btn:hover {
  background-color: var(--fb-hero-secondary, #8f52ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
}

/* Status Indicators - Match your existing color scheme */
.status-open {
  color: var(--fb-hero-primary, #2e7d32);
  font-weight: 500;
}

.status-closed {
  color: #d32f2f; /* Match your existing color */
  font-weight: 500;
}

/* Star Rating Icons - using CSS content */
.fb-result-meta .mi.star::before {
  content: "★";
  color: #f39c12;
}

.fb-result-meta .mi.star_half::before {
  content: "⯨";
  color: #f39c12;
}

.fb-result-meta .mi.star_border::before {
  content: "☆";
  color: #ddd;
}

/* Disable ::after to prevent doubles */
.fb-result-meta .mi.star::after,
.fb-result-meta .mi.star_half::after,
.fb-result-meta .mi.star_border::after {
  content: none !important;
  display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .fb-tab,
  .fb-filter-button,
  .fb-rating-filter {
    padding: 6px 12px;
    font-size: 12px;
  }

  .fb-rating-filter {
    padding-right: 25px;
    background-size: 12px;
    background-position: right 7px center;
  }

  .fb-view-more-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .fb-filters {
    margin-bottom: 10px;
  }

  .fb-view-more {
    margin-top: 15px;
  }
}

/* Rating */
/**
 * FlexiBrands - Top Rated Showcase Styles
 * Complete CSS with link overrides and improved responsiveness
 */

/* Container Styles */
.fb-cannabis-container {
  min-width: 800px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid #e8e8e8;
  color: #333333;
  z-index: 100;
  padding: 25px;
  transition: all 0.3s ease;
}

/* Header Styles */
.fb-header {
  padding: 10px 0 25px;
  text-align: left;
  margin-bottom: 5px;
}

.fb-title {
  font-size: 28px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px;
  line-height: 1.2;
}

.fb-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.5;
}

/* Tab Navigation Styles */
.fb-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  padding-bottom: 10px;
  padding-top: 5px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fb-tabs::-webkit-scrollbar {
  display: none;
}

.fb-tab {
  padding: 8px 18px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  color: #555;
  background: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.fb-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  background-color: #f0f0f0;
  color: #333;
}

.fb-tab.active {
  background: var(--fb-hero-primary, #6c1cff);
  color: white;
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 3px 8px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
}

/* Panel Container */
.fb-panels {
  position: relative;
}

.fb-panel {
  display: none;
}

.fb-panel.active {
  display: block;
}

/* Filter Buttons */
.fb-filters {
  display: flex;
  align-items: center;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.fb-filters::-webkit-scrollbar {
  display: none;
}

.fb-filter-btn {
  padding: 7px 16px;
  margin-right: 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  color: #555;
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.fb-filter-btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
  color: #333;
  border-color: #d0d0d0;
}

.fb-filter-btn.active {
  background: var(--fb-hero-primary, #6c1cff);
  color: white;
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 2px 6px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
}

/* Rating Filter Dropdown */
.fb-filter-dropdown {
  margin-left: auto;
}

.fb-rating-filter {
  padding: 7px 32px 7px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  background-color: #f9f9f9;
  color: #555;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.fb-rating-filter:hover {
  border-color: #d0d0d0;
  background-color: #f0f0f0;
}

.fb-rating-filter:focus {
  outline: none;
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 2px 6px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.2));
}

/* Card Grid Layout */
.fb-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* Card Design */
.fb-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  overflow: visible; /* Changed from hidden to prevent border cut-off */
  display: flex;
  align-items: center;
  border: 1px solid #f0f0f0;
  width: 100%;
  height: 80px;
}

.fb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  border-color: #d5d5d5;
}

.fb-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0;
  height: 100%;
}

/* Circular Logo Image */
.fb-card-image {
  width: 50px;
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f8f8f8;
  overflow: hidden;
  margin: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.fb-card:hover .fb-card-image img {
  transform: scale(1.08);
}

/* Card Content */
.fb-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 15px;
}

.fb-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.fb-card:hover .fb-card-title {
  color: var(--fb-hero-primary, #6c1cff);
}

/* Card Info Row */
.fb-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.fb-card-rating {
  display: flex;
  align-items: center;
  padding-bottom: 4px; /* Prevent rating from being cut off */
}

.fb-card-rating .mi.star::before {
  content: "★";
  color: #f39c12;
  font-size: 14px;
}

.fb-card-rating .mi.star_half::before {
  content: "⯨";
  color: #f39c12;
  font-size: 14px;
}

.fb-card-rating .mi.star_border::before {
  content: "☆";
  color: #ddd;
  font-size: 14px;
}

/* Disable ::after to prevent doubles */
.fb-card-rating .mi.star::after,
.fb-card-rating .mi.star_half::after,
.fb-card-rating .mi.star_border::after {
  content: none !important;
  display: none !important;
}

.fb-rating-count {
  margin-left: 3px;
  color: #888;
  font-size: 11px;
}

/* Status Badges */
.fb-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background-color: rgba(52, 199, 89, 0.1);
  color: #34c759;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fb-card-badge.promoted {
  background-color: rgba(255, 149, 0, 0.1);
  color: #ff9500;
}

.fb-card-badge.open {
  background-color: rgba(52, 199, 89, 0.1);
  color: #34c759;
}

.fb-card-badge.closed {
  background-color: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

/* Verified icon */
.verified-icon {
  color: var(--fb-hero-primary, #34c759);
  font-size: 11px;
  margin-left: 3px;
}

/* Product Info */
.fb-brand-name,
.fb-products-count,
.fb-price {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty State */
.fb-empty {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  color: #777;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

/* View All Button */
.fb-view-more {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
}

.fb-view-all {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--fb-hero-primary, #6c1cff);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
}

.fb-view-all:hover {
  background-color: var(--fb-hero-primary-dark, #5a10e0);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.35));
}

/* Pagination */
.fb-pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 10px;
  gap: 5px;
}

.fb-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 13px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fb-page-btn:hover {
  background-color: #f5f5f5;
  border-color: #d0d0d0;
  color: #333;
}

.fb-page-btn.active {
  background-color: var(--fb-hero-primary, #6c1cff);
  color: white;
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 2px 6px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
}

.fb-page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Link Style Overrides */

/* Card link overrides */
.fb-card-link,
.fb-card-link:visited,
.fb-card-link:focus,
.fb-card-link:active {
  text-decoration: none !important;
  color: #333 !important;
  outline: none;
  box-shadow: none;
}

.fb-card-link:hover {
  text-decoration: none !important;
  color: inherit !important;
  outline: none;
  box-shadow: none;
}

/* Make sure the title color change works with theme styles */
.fb-card-link:hover .fb-card-title {
  color: #6c1cff !important;
}

/* Ensure card content retains proper color regardless of link state */
.fb-card-link .fb-card-info,
.fb-card-link:hover .fb-card-info {
  color: #666 !important;
}

.fb-card-link .fb-rating-count,
.fb-card-link:hover .fb-rating-count {
  color: #888 !important;
}

/* View all button link overrides */
.fb-view-all,
.fb-view-all:visited,
.fb-view-all:focus,
.fb-view-all:active {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--fb-hero-primary, #6c1cff);
  color: white !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
  outline: none;
}

.fb-view-all:hover {
  background-color: var(--fb-hero-primary-dark, #5a10e0);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.35));
  text-decoration: none !important;
}

/* Make sure star ratings keep their color */
.fb-card-rating .mi.star,
.fb-card-rating .mi.star_half,
.fb-card-link:hover .fb-card-rating .mi.star,
.fb-card-link:hover .fb-card-rating .mi.star_half {
  color: #f39c12 !important;
}

.fb-card-rating .mi.star_border,
.fb-card-link:hover .fb-card-rating .mi.star_border {
  color: #ddd !important;
}

/* Ensure badge colors don't change with link hover */
.fb-card-badge,
.fb-card-link:hover .fb-card-badge {
  color: #34c759 !important;
}

.fb-card-badge.promoted,
.fb-card-link:hover .fb-card-badge.promoted {
  color: #ff9500 !important;
}

.fb-card-badge.closed,
.fb-card-link:hover .fb-card-badge.closed {
  color: #ff3b30 !important;
}

/* Fix for tabs and filters to prevent theme styles interference */
.fb-tab,
.fb-tab:focus,
.fb-tab:active {
  color: #555 !important;
  text-decoration: none !important;
  outline: none;
}

.fb-tab:hover {
  color: #333 !important;
  text-decoration: none !important;
}

.fb-tab.active,
.fb-tab.active:hover,
.fb-tab.active:focus {
  color: white !important;
}

.fb-filter-btn,
.fb-filter-btn:focus,
.fb-filter-btn:active {
  color: #555 !important;
  text-decoration: none !important;
  outline: none;
}

.fb-filter-btn:hover {
  color: #333 !important;
  text-decoration: none !important;
}

.fb-filter-btn.active,
.fb-filter-btn.active:hover,
.fb-filter-btn.active:focus {
  color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .fb-cannabis-container {
    min-width: 700px;
  }

  .fb-card-list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 767px) {
  .fb-cannabis-container {
    min-width: 500px;
    padding: 20px;
  }

  .fb-title {
    font-size: 24px;
  }

  .fb-subtitle {
    font-size: 14px;
  }

  .fb-card-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  .fb-card {
    height: 70px;
  }

  .fb-card-image {
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin: 0 10px 0 12px;
  }

  .fb-card-title {
    font-size: 14px;
  }

  .fb-card-info {
    font-size: 11px;
    gap: 8px;
  }

  .fb-filter-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .fb-tab {
    padding: 6px 14px;
    font-size: 12px;
  }

  .fb-view-all {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .fb-cannabis-container {
    min-width: 100%;
    padding: 15px;
    border-radius: 8px;
  }

  .fb-header {
    padding: 5px 0 15px;
  }

  .fb-card-list {
    grid-template-columns: 1fr;
  }

  .fb-card-info {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fb-card-info::-webkit-scrollbar {
    display: none;
  }
}

/* Search input top header */
/* Enhanced search input visibility for dark header */
.dark-forms.header-search {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0 8px;
  transition: all 0.3s ease;
}

.dark-forms.header-search:hover,
.dark-forms.header-search.is-focused {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.dark-forms.header-search > input {
  padding-left: 40px;
  padding-right: 15px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400;
}

.dark-forms.header-search > i {
  left: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.dark-forms.header-search.is-focused > i {
  color: rgba(255, 255, 255, 0.9) !important;
}

.dark-forms.header-search ::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1;
}

.dark-forms.header-search:hover ::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ========================================
   UNIFIED SEARCH - NESTED TAB STRUCTURE
   ======================================== */

/* Unified container specific styles */
.fb-unified-container {
  max-width: 1000px;
}

/* Main tabs (Level 1) - Larger and more prominent */
.fb-main-tabs {
  padding: 24px 24px 0;
  gap: 12px;
  background: linear-gradient(to bottom, rgba(249, 249, 249, 0.8), transparent);
}

.fb-main-tabs .fb-review-tab {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
}

.fb-main-tabs .fb-review-tab-icon {
  width: 22px;
  height: 22px;
}

/* Sub-tabs (Level 2) - Smaller, nested appearance */
.fb-sub-tabs {
  padding: 20px 20px 0;
  gap: 6px;
  background: linear-gradient(to bottom, rgba(243, 243, 243, 0.4), transparent);
  margin-bottom: 10px;
}

.fb-sub-tabs .fb-review-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  color: #666;
}

.fb-sub-tabs .fb-review-tab-icon {
  width: 18px;
  height: 18px;
}

.fb-sub-tabs .fb-review-tab:hover {
  background: var(--fb-hero-primary-10, rgba(108, 28, 255, 0.08));
  border-color: var(--fb-hero-primary-20, rgba(108, 28, 255, 0.2));
  color: var(--fb-hero-primary, #6c1cff);
}

.fb-sub-tabs .fb-review-tab.active {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
}

/* Sub-panels container */
.fb-review-subpanels {
  position: relative;
}

.fb-review-subpanels > .fb-review-panel {
  display: none;
  animation: fb-fadeIn 0.3s ease;
}

.fb-review-subpanels > .fb-review-panel.active {
  display: block;
}

/* Nested panel padding adjustment */
.fb-review-subpanels > .fb-review-panel > .fb-review-panel-subtitle {
  margin-top: 15px;
}

/* Responsive - Nested tabs */
@media (max-width: 767px) {
  .fb-unified-container {
    max-width: 100%;
  }

  .fb-main-tabs {
    padding: 10px 12px 0;
    gap: 6px;
    flex-direction: row;
  }

  .fb-main-tabs .fb-review-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .fb-main-tabs .fb-review-tab-icon {
    width: 18px;
    height: 18px;
  }

  .fb-sub-tabs {
    padding: 10px 12px 0;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
    margin-bottom: 4px;
  }

  .fb-sub-tabs::-webkit-scrollbar {
    display: none;
  }

  .fb-sub-tabs .fb-review-tab {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    flex: 1;
    min-width: 0;
  }

  .fb-sub-tabs .fb-review-tab span {
    display: inline;
    font-size: 12px;
  }

  .fb-sub-tabs .fb-review-tab-icon {
    width: 16px;
    height: 16px;
  }

  .fb-review-subpanels > .fb-review-panel > .fb-review-panel-subtitle {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .fb-main-tabs .fb-review-tab span {
    font-size: 12px;
  }

  .fb-main-tabs .fb-review-tab {
    padding: 8px 10px;
  }

  .fb-sub-tabs {
    gap: 4px;
  }

  .fb-sub-tabs .fb-review-tab {
    padding: 6px 8px;
    font-size: 11px;
  }

  .fb-sub-tabs .fb-review-tab span {
    display: inline;
    font-size: 11px;
  }

  .fb-sub-tabs .fb-review-tab-icon {
    width: 14px;
    height: 14px;
  }
}

/* Visual hierarchy - Main panels */
.fb-review-card > .fb-review-panels > .fb-review-panel {
  padding-bottom: 24px;
}

/* ========================================
   DISPENSARY FILTERS STYLING
   ======================================== */

.fb-dispensary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  align-items: center;
}

.fb-filter-item {
  display: flex;
  align-items: center;
}

.fb-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
  gap: 8px;
  transition: color 0.2s ease;
}

.fb-checkbox-label:hover {
  color: var(--fb-hero-primary, #6c1cff);
}

.fb-filter-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--fb-hero-primary, #6c1cff);
}

.fb-filter-select select.fb-filter-dropdown {
  padding: 8px 32px 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #4b5563;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%234b5563" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.fb-filter-select select.fb-filter-dropdown:hover {
  border-color: #9ca3af;
}

.fb-filter-select select.fb-filter-dropdown:focus {
  outline: none;
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 0 0 3px var(--fb-hero-primary-10, rgba(108, 28, 255, 0.1));
}

/* Verified Icon in Search Results */
.fb-verified-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ========================================
   STATIC/FEATURED RESULTS SECTION
   ======================================== */

.fb-static-results-container {
  margin-top: 48px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fb-static-results-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 24px 0;
  text-align: center;
}

.fb-static-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.fb-static-result-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fb-static-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.15));
  border-color: var(--fb-hero-primary, #6c1cff);
}

.fb-static-result-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-static-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-static-result-details {
  flex: 1;
  min-width: 0;
}

.fb-static-result-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-static-loading {
  text-align: center;
  padding: 32px;
  color: #6b7280;
  font-size: 14px;
}

/* Badge in static results */
.fb-static-result-item .fb-result-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 4px 10px;
}

.fb-static-result-item .fb-result-badge.promoted {
  background: var(--fb-badge-promoted, #f59e0b);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 4px var(--fb-badge-promoted-light, rgba(251, 191, 36, 0.3));
}

.fb-static-result-item .fb-result-badge.featured {
  background: var(--fb-badge-featured, #007aff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 4px var(--fb-badge-featured-light, rgba(0, 122, 255, 0.3));
}

/* Responsive */
@media (max-width: 768px) {
  .fb-static-results-container {
    margin-top: 32px;
    padding: 24px 16px;
  }

  .fb-static-results-title {
    font-size: 20px;
  }

  .fb-static-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fb-static-result-item {
    padding: 16px;
  }

  .fb-static-result-image {
    width: 60px;
    height: 60px;
  }
}

/* ========================================
   UNIFIED SEARCH STATIC RESULTS (Horizontal Scrollable)
   ======================================== */

.fb-unified-static-results {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  position: relative;
}

/* Scrollable container */
.fb-unified-static-results .fb-static-results-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px 2px;
  margin: 0 -2px;

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3))) transparent;
}

/* Webkit scrollbar styling */
.fb-unified-static-results .fb-static-results-grid::-webkit-scrollbar {
  height: 6px;
}

.fb-unified-static-results .fb-static-results-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.fb-unified-static-results .fb-static-results-grid::-webkit-scrollbar-thumb {
  background: var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3)));
  border-radius: 3px;
  transition: background 0.2s ease;
}

.fb-unified-static-results .fb-static-results-grid::-webkit-scrollbar-thumb:hover {
  background: var(--fb-hero-primary, #6c1cff);
}

/* Hide scrollbar on hover-capable devices until hovered */
@media (hover: hover) {
  .fb-unified-static-results .fb-static-results-grid::-webkit-scrollbar-thumb {
    background: transparent;
  }

  .fb-unified-static-results .fb-static-results-grid:hover::-webkit-scrollbar-thumb {
    background: var(--fb-hero-primary-30, var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3)));
  }
}

/* Compact horizontal card */
.fb-unified-static-results .fb-static-result-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 220px;
}

.fb-unified-static-results .fb-static-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.15));
  border-color: var(--fb-hero-primary, #6c1cff);
  background-color: #f8f4ff;
}

/* Small image on left */
.fb-unified-static-results .fb-static-result-image {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-unified-static-results .fb-static-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details */
.fb-unified-static-results .fb-static-result-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fb-unified-static-results .fb-static-result-title {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-unified-static-results .fb-result-meta {
  font-size: 10px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.fb-unified-static-results .fb-result-meta i {
  font-size: 11px;
  color: #fbbf24;
}

.fb-unified-static-results .fb-result-distance {
  font-size: 10px;
  color: #47824f;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  white-space: nowrap;
}

.fb-unified-static-results .fb-result-distance i {
  font-size: 11px;
  color: #47824f;
}

.fb-unified-static-results .fb-static-loading,
.fb-unified-static-results .fb-no-results,
.fb-unified-static-results .fb-error {
  text-align: center;
  padding: 16px;
  color: #6b7280;
  font-size: 13px;
  width: 100%;
  flex-shrink: 0;
}

/* Small badge */
.fb-unified-static-results .fb-result-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.fb-unified-static-results .fb-result-badge.promoted {
  background: var(--fb-badge-promoted, #f59e0b);
  color: #fff;
  box-shadow: 0 1px 2px var(--fb-badge-promoted-light, rgba(251, 191, 36, 0.3));
}

.fb-unified-static-results .fb-result-badge.featured {
  background: var(--fb-badge-featured, #73ff00a1);
  color: #30302f;
  box-shadow: 0 1px 2px var(--fb-badge-featured-light, rgba(0, 122, 255, 0.3));
}

.fb-unified-static-results .fb-result-badge.verified {
  display: none;
}

/* Scroll fade indicators */
.fb-unified-static-results::before,
.fb-unified-static-results::after {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fb-unified-static-results::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}

.fb-unified-static-results::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}

.fb-unified-static-results.can-scroll-left::before,
.fb-unified-static-results.can-scroll-right::after {
  opacity: 1;
}

/* Responsive for unified search */
@media (max-width: 768px) {
  .fb-unified-static-results .fb-static-result-item {
    min-width: 160px;
    max-width: 190px;
    padding: 8px 10px;
    gap: 8px;
  }

  .fb-unified-static-results .fb-static-result-image {
    width: 36px;
    height: 36px;
  }

  .fb-unified-static-results .fb-static-result-title {
    font-size: 11px;
  }

  .fb-unified-static-results .fb-result-meta {
    font-size: 10px;
  }
}

/* ========================================
   SIMPLE MULTI-STEP REVIEW FLOW
   ======================================== */

.fb-review-flow {
  padding: 16px;
  margin-top: 12px;
  overflow: visible !important;
}

.fb-step {
  display: none;
  text-align: left;
  animation: fadeIn 0.4s ease-in-out;
  overflow: visible !important;
}

.fb-step.active {
  display: block;
  overflow: visible !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fb-step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: center;
}

.fb-step-description {
  font-size: 13px;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.3;
  font-style: italic;
  text-align: center;
}

/* Step 1: Stars */
.fb-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.fb-star {
  background: none;
  border: none;
  font-size: 32px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
}

.fb-star:hover,
.fb-star.active {
  color: var(--fb-hero-accent, #ffc107);
  transform: scale(1.1);
}

.fb-rating-text {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin: 0;
}

/* Step 2: Categories */
.fb-categories {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.fb-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  background: #f8f8f8;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  width: 220px;
  height: 160px;
  justify-content: center;
}

.fb-category:hover {
  border-color: var(--fb-hero-primary, #6c1cff);
  background: var(--fb-hero-primary-10, rgba(108, 28, 255, 0.08));
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--fb-hero-primary-20, rgba(108, 28, 255, 0.15));
}

.fb-category.active {
  border-color: var(--fb-hero-primary, #6c1cff);
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
}

.fb-category-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.fb-category.active .fb-category-icon,
.fb-category:hover .fb-category-icon {
  transform: scale(1.1);
}

.fb-category span:last-child {
  font-weight: 600;
  font-size: 14px;
}

/* Step 2: Search Box - Compact */
.fb-search-box {
  max-width: 500px;
  margin: 0 auto;
}

.fb-search-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: #f8f8f8;
}

.fb-search-input:focus {
  outline: none;
  border-color: var(--fb-hero-primary, #6c1cff);
  background: white;
  box-shadow: 0 0 0 3px var(--fb-hero-primary-10, rgba(108, 28, 255, 0.1));
}

.fb-search-results {
  margin-top: 16px;
}

/* Fix dropdown results visibility - Ensure it appears above everything */
.fb-review-input-wrapper {
  position: relative;
  z-index: 1000;
}

/* Review flow dropdown - clean styling */
.fb-review-flow .fb-review-input-wrapper .fb-results {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin-top: 0 !important;
}

.fb-review-flow .fb-review-input-wrapper {
  z-index: 1000 !important;
  position: relative !important;
  overflow: visible !important;
}

/* Override any dynamic styles */
.fb-review-flow .fb-results[style*="z-index"] {
  z-index: 99999 !important;
}

.fb-review-flow .fb-results[style*="position"] {
  position: absolute !important;
}

/* Clean result items for all dropdowns - FLAT LIST (no cards!) */
.fb-results .fb-result-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
  cursor: pointer !important;
  transition: background 0.12s ease !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.fb-results .fb-result-item:hover {
  background: #f7f5ff !important;
}

.fb-results .fb-result-item:last-child {
  border-bottom: none !important;
}

/* Search result items - unified clean styling */
.fb-results-section {
  padding: 0;
}

.fb-results-heading {
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  background: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fb-result-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  border: none !important;
  box-shadow: none !important;
}

.fb-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-result-details,
.fb-result-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fb-result-name {
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-result-rating,
.fb-result-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
}

.fb-result-rating .mi,
.fb-result-meta .mi {
  font-size: 12px;
  color: #fbbf24;
}

/* Navigation Buttons */
.fb-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.fb-nav-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f8f8;
  color: #555;
}

.fb-nav-btn:hover:not(:disabled) {
  border-color: var(--fb-hero-primary, #6c1cff);
  background: var(--fb-hero-primary-10, rgba(108, 28, 255, 0.08));
  color: var(--fb-hero-primary, #6c1cff);
  transform: translateY(-2px);
}

.fb-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fb-prev-btn {
  margin-right: auto;
}

.fb-next-btn {
  margin-left: auto;
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: white;
  border-color: transparent;
}

.fb-next-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a16e6 0%, #7a3fff 100%);
  color: white;
  border-color: transparent;
}

/* NOTE: .fb-result-item card styles removed - now using flat list design
   See line ~423 for the unified flat list styling */

.fb-result-content {
  flex: 1;
}

.fb-result-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #333;
}

.fb-result-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.fb-result-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.fb-result-action {
  margin-left: 12px;
}

.fb-review-btn {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fb-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
}

/* Loading and States */
.fb-loading,
.fb-no-results,
.fb-error {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

.fb-error {
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
  .fb-review-flow {
    padding: 10px;
    margin-top: 6px;
  }

  .fb-categories {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .fb-category {
    width: auto;
    min-width: 0;
    flex: 1;
    max-width: 140px;
    height: auto;
    padding: 12px 10px;
    flex-direction: column;
    gap: 6px;
  }

  .fb-category-icon {
    width: 26px;
    height: 26px;
  }

  .fb-category span:last-child {
    font-size: 12px;
  }

  .fb-step-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .fb-step-description {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .fb-result-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .fb-result-action {
    margin-left: 0;
  }

  .fb-review-btn {
    width: 100%;
  }
}

/* Results Grid - Bigger Cards with More Space */
.fb-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* Result Cards - Much Bigger and Better */
.fb-result-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fb-result-card:hover {
  border-color: var(--fb-hero-primary, #6c1cff);
  box-shadow: 0 16px 40px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.25));
  transform: translateY(-8px);
}

.fb-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.fb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fb-result-card:hover .fb-card-image img {
  transform: scale(1.1);
}

.fb-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.fb-card-badge.promoted {
  background: rgba(255, 107, 53, 0.9);
  color: white;
}

.fb-card-badge.featured {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.fb-card-badge.verified {
  background: rgba(23, 162, 184, 0.9);
  color: white;
}

.fb-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fb-card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #333;
  line-height: 1.3;
}

.fb-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 4px; /* Prevent rating from being cut off */
}

.fb-card-rating .mi {
  font-size: 18px;
  color: var(--fb-hero-accent, #ffc107);
}

.fb-rating-count {
  font-size: 14px;
  color: #666;
}

.fb-card-description {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.fb-card-location,
.fb-card-address {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.fb-card-action {
  padding: 0 24px 24px 24px;
  margin-top: auto;
}

.fb-review-btn {
  width: 100%;
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fb-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--fb-hero-shadow, rgba(108, 28, 255, 0.4));
}

.fb-btn-text {
  font-size: 15px;
}

.fb-btn-rating {
  font-size: 18px;
  font-weight: 700;
}

/* Enhanced Responsive for Cards */
@media (max-width: 768px) {
  .fb-review-flow {
    padding: 10px;
    margin-top: 6px;
  }

  .fb-step-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .fb-stars {
    gap: 6px;
  }

  .fb-star {
    font-size: 28px;
  }

  .fb-categories {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .fb-category {
    width: auto;
    min-width: 0;
    flex: 1;
    max-width: 140px;
    height: auto;
    padding: 12px 10px;
    gap: 6px;
  }

  .fb-category-icon {
    width: 26px;
    height: 26px;
  }

  .fb-category span:last-child {
    font-size: 12px;
  }

  .fb-search-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .fb-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fb-card-image {
    height: 180px;
  }

  .fb-card-content {
    padding: 16px;
  }

  .fb-card-title {
    font-size: 16px;
  }

  .fb-card-action {
    padding: 0 16px 16px 16px;
  }
}

@media (max-width: 480px) {
  .fb-review-flow {
    padding: 8px;
  }

  .fb-step-content h3 {
    font-size: 15px;
  }

  .fb-star {
    font-size: 26px;
  }

  .fb-category {
    padding: 10px 8px;
    max-width: 120px;
    gap: 4px;
  }

  .fb-category-icon {
    width: 22px;
    height: 22px;
  }

  .fb-category span:last-child {
    font-size: 11px;
  }

  .fb-icon {
    font-size: 22px;
  }

  .fb-card-image {
    height: 160px;
  }

  .fb-unified-static-results .fb-static-result-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Review Banner Styles */
.fb-review-banner {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
  animation: slideDown 0.5s ease-out;
}

.fb-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.fb-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-banner-icon i {
  font-size: 24px;
  color: var(--fb-hero-accent, #ffc107);
}

.fb-banner-text {
  flex: 1;
}

.fb-banner-text h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.fb-banner-text p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.fb-banner-text strong {
  color: var(--fb-hero-accent, #ffc107);
  font-weight: 600;
}

.fb-banner-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fb-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.fb-banner-close i {
  font-size: 16px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   NEW REVIEW FORM STYLES
   ======================================== */

/* Rating Container */
.fb-rating-container {
  margin-bottom: 18px;
}

.fb-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

/* User Details Container */
.fb-details-container {
  margin-bottom: 18px;
}

.fb-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.fb-field-group {
  display: flex;
  flex-direction: column;
}

.fb-form-input {
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: #333;
  background: #f8f8f8;
  transition: all 0.3s ease;
}

.fb-form-input:focus {
  outline: none;
  border-color: var(--fb-hero-primary, #6c1cff);
  background: #fff;
  box-shadow: 0 0 0 3px var(--fb-hero-primary-10, rgba(108, 28, 255, 0.1));
}

.fb-form-input::placeholder {
  color: #999;
}

.fb-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
  margin: 0;
  padding: 8px 10px;
  background: var(--fb-hero-primary-10, rgba(108, 28, 255, 0.05));
  border-radius: 8px;
  line-height: 1.4;
}

.fb-privacy-note svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Mobile responsive for form fields */
@media (max-width: 640px) {
  .fb-details-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.fb-optional-text {
  font-weight: 400;
  color: #888;
  font-size: 13px;
}

/* Comment Textarea */
.fb-comment-container {
  margin-bottom: 18px;
}

.fb-comment-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: #333;
  background: #f8f8f8;
  resize: vertical;
  transition: all 0.3s ease;
  min-height: 120px;
}

.fb-comment-input:focus {
  outline: none;
  border-color: var(--fb-hero-primary, #6c1cff);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--fb-hero-primary-10, rgba(108, 28, 255, 0.1));
}

.fb-comment-input::placeholder {
  color: #999;
}

/* Character Counter */
.fb-char-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.fb-char-count {
  font-weight: 600;
  color: var(--fb-hero-primary, #6c1cff);
}

.fb-char-note {
  font-size: 12px;
  font-weight: 500;
}

/* Submit Button */
.fb-submit-btn {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--fb-hero-primary-30, rgba(108, 28, 255, 0.3));
}

.fb-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--fb-hero-shadow, rgba(108, 28, 255, 0.4));
}

.fb-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status Messages */
.fb-submit-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

.fb-submit-status svg {
  flex-shrink: 0;
}

.fb-status-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.fb-status-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.fb-status-loading {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Spinner Animation */
.fb-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Selected Name Highlight */
.fb-selected-name {
  color: var(--fb-hero-primary, #6c1cff);
  font-weight: 700;
}

/* Category Name Highlight */
.fb-category-name {
  color: var(--fb-hero-primary, #6c1cff);
  font-weight: 600;
}

/* Prevent link navigation in review flow - let JavaScript handle clicks */
.fb-review-flow .fb-results a {
  pointer-events: none;
}

.fb-review-flow .fb-results .fb-result-item {
  pointer-events: auto;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .fb-comment-input {
    font-size: 14px;
    padding: 12px 14px;
  }

  .fb-submit-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .fb-step-nav {
    flex-direction: column;
    gap: 12px;
  }

  .fb-prev-btn {
    order: 2;
  }

  .fb-submit-btn {
    order: 1;
  }
}

/* ========================================
   SMALL AD BANNER STYLES - PROMOTIONAL BANNERS
   ======================================== */

.small-ad-container {
  width: 364px;
  height: 254px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.small-ad-banner {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.small-ad-banner:hover {
  transform: scale(1.02);
}

.small-ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  pointer-events: none;
}

.small-ad-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  z-index: 1;
}

.small-ad-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.small-ad-heading {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  word-wrap: break-word;
}

.small-ad-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.small-ad-btn {
  background-color: #ffffff;
  color: #c44569;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: fit-content;
  align-self: flex-start;
  flex-shrink: 0;
}

.small-ad-btn:hover {
  background-color: #ffd93d;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ========================================
   EQUAL HEIGHT CARDS - CAROUSEL & SEARCH
   ======================================== */

/* Ensure carousel items have equal heights */
.fb-reviews-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.fb-reviews-carousel .owl-item {
  display: flex;
  align-items: stretch;
}

.fb-carousel-review-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
}

.fb-carousel-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--fb-hero-primary, #6c1cff);
}

/* Ad card styles - Equal height support */
.fb-carousel-ad-card {
  background: transparent;
  border-radius: 10px;
  padding: 0;
  margin: 6px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: visible;
}

.fb-carousel-ad-card.adsratings > * {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Search result cards - Equal height */
.fb-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.fb-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  overflow: visible;
  display: flex;
  align-items: center;
  border: 1px solid #f0f0f0;
  width: 100%;
  height: 80px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .small-ad-container {
    width: 100%;
    max-width: 364px;
    height: 254px;
  }
}

@media (max-width: 400px) {
  .small-ad-container {
    width: 100%;
    max-width: 364px;
    height: 254px;
  }

  .small-ad-heading {
    font-size: 22px;
  }

  .small-ad-desc {
    font-size: 12px;
  }

  .small-ad-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ========================================
   LAYOUT 4 - TOGGLE MODE STYLES
   ======================================== */

.fb-layout-4 .fb-mode-panel {
  display: none;
}

.fb-layout-4 .fb-mode-panel.active {
  display: block;
  animation: fbFadeIn 0.3s ease;
}

@keyframes fbFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fb-mode-toggle-section {
  border-top: none;
  margin-top: 10px;
}

.fb-mode-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  border: none;
  border-radius: 0 0 var(--fb-hero-radius, 20px) var(--fb-hero-radius, 20px);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--fb-hero-text, #ffffff);
  transition: all 0.3s ease;
}

.fb-mode-toggle-btn:hover {
  filter: brightness(1.1);
  color: var(--fb-hero-text, #ffffff);
}

.fb-mode-toggle-btn .fb-toggle-icon {
  color: var(--fb-hero-text, #ffffff);
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.fb-mode-toggle-btn.fb-toggle-search .fb-toggle-icon {
  color: var(--fb-hero-text, #ffffff);
}

.fb-mode-toggle-btn .fb-arrow-icon {
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 18px;
  height: 18px;
  color: var(--fb-hero-text, #ffffff);
}

.fb-mode-toggle-btn:hover .fb-arrow-icon {
  opacity: 1;
  transform: translateX(3px);
}

/* Mode-specific styling - back to search uses same gradient */
.fb-layout-4[data-mode="review"] .fb-mode-toggle-btn.fb-toggle-search {
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
}

/* Layout 4 Responsive */
@media (max-width: 768px) {
  .fb-mode-toggle-btn {
    padding: 14px 16px;
    font-size: 13px;
    gap: 8px;
    border-radius: 0 0 14px 14px;
  }

  .fb-mode-toggle-btn .fb-toggle-icon,
  .fb-mode-toggle-btn .fb-arrow-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .fb-mode-toggle-btn {
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 0 0 12px 12px;
  }
}

/* ========================================
   LAYOUT 5 - COMPACT TOGGLE MODE STYLES
   ======================================== */

.fb-layout-5 {
  max-width: 700px;
}

.fb-layout-5 .fb-review-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.fb-layout-5 .fb-mode-panel {
  display: none;
}

.fb-layout-5 .fb-mode-panel.active {
  display: block;
  animation: fbFadeIn 0.25s ease;
}

/* Compact tabs */
.fb-layout-5 .fb-review-tabs {
  padding: 12px 12px 0;
  gap: 6px;
}

.fb-layout-5 .fb-review-tab {
  padding: 10px 14px;
  font-size: 13px;
  gap: 6px;
}

.fb-layout-5 .fb-review-tab-icon {
  width: 16px;
  height: 16px;
}

/* Compact panels */
.fb-layout-5 .fb-review-panels {
  padding: 16px 12px 10px;
}

.fb-layout-5 .fb-review-panel-subtitle {
  font-size: 13px;
  margin: 0 0 16px;
}

/* Compact search input */
.fb-layout-5 .fb-review-input-wrapper {
  margin-bottom: 12px;
}

.fb-layout-5 .fb-review-input {
  padding: 10px 12px 10px 38px;
  font-size: 14px;
}

.fb-layout-5 .fb-review-search-icon {
  width: 16px;
  height: 16px;
  left: 12px;
}

/* Compact static results */
.fb-layout-5 .fb-unified-static-results {
  margin-top: 12px;
  padding-top: 12px;
}

.fb-layout-5 .fb-static-results-grid {
  gap: 8px;
  padding-bottom: 8px;
}

.fb-layout-5 .fb-static-result-item {
  padding: 8px 10px;
  min-width: 140px;
  max-width: 170px;
}

.fb-layout-5 .fb-static-result-image {
  width: 36px;
  height: 36px;
}

.fb-layout-5 .fb-static-result-title {
  font-size: 12px;
}

/* Compact toggle button */
.fb-layout-5 .fb-mode-toggle-section {
  margin-top: 6px;
}

.fb-layout-5 .fb-mode-toggle-btn {
  padding: 12px 16px;
  font-size: 13px;
  gap: 8px;
  background: var(--fb-hero-gradient, linear-gradient(135deg, #6c1cff 0%, #8f52ff 100%));
  color: var(--fb-hero-text, #ffffff);
  border-radius: 0 0 var(--fb-hero-radius-sm, 12px) var(--fb-hero-radius-sm, 12px);
}

.fb-layout-5 .fb-mode-toggle-btn .fb-toggle-icon,
.fb-layout-5 .fb-mode-toggle-btn .fb-arrow-icon {
  width: 16px;
  height: 16px;
  color: var(--fb-hero-text, #ffffff);
}

/* Compact review flow */
.fb-layout-5 .fb-review-flow {
  padding: 16px;
}

.fb-layout-5 .fb-step-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.fb-layout-5 .fb-step-description {
  font-size: 13px;
  margin-bottom: 16px;
}

/* Compact categories */
.fb-layout-5 .fb-categories {
  gap: 10px;
}

.fb-layout-5 .fb-category {
  padding: 14px 18px;
  min-width: 90px;
}

.fb-layout-5 .fb-category-icon {
  width: 28px;
  height: 28px;
}

.fb-layout-5 .fb-category span {
  font-size: 12px;
}

/* Compact rating */
.fb-layout-5 .fb-rating-container {
  margin-bottom: 16px;
}

.fb-layout-5 .fb-stars {
  gap: 4px;
}

.fb-layout-5 .fb-star {
  font-size: 28px;
  padding: 4px;
}

/* Compact form fields */
.fb-layout-5 .fb-details-row {
  gap: 10px;
}

.fb-layout-5 .fb-form-input {
  padding: 10px 12px;
  font-size: 13px;
}

.fb-layout-5 .fb-form-label {
  font-size: 12px;
  margin-bottom: 4px;
}

.fb-layout-5 .fb-comment-input {
  padding: 10px 12px;
  font-size: 13px;
}

/* Compact buttons */
.fb-layout-5 .fb-nav-btn {
  padding: 10px 18px;
  font-size: 13px;
}

.fb-layout-5 .fb-submit-btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* Layout 5 Responsive */
@media (max-width: 600px) {
  .fb-layout-5 {
    max-width: 100%;
  }

  .fb-layout-5 .fb-review-tabs {
    padding: 10px 10px 0;
    gap: 4px;
  }

  .fb-layout-5 .fb-review-tab {
    padding: 8px 10px;
    font-size: 12px;
  }

  .fb-layout-5 .fb-review-tab span {
    display: none;
  }

  .fb-layout-5 .fb-review-tab-icon {
    width: 20px;
    height: 20px;
  }

  .fb-layout-5 .fb-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fb-layout-5 .fb-category {
    flex: 1;
    min-width: 80px;
    padding: 12px;
  }

  .fb-layout-5 .fb-mode-toggle-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ========================================
   GENERAL RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Ensure proper overflow for search results dropdown */
.fb-review-input-wrapper {
  position: relative;
  overflow: visible;
}

.fb-review-panels {
  overflow: visible;
}

.fb-review-subpanels {
  overflow: visible;
}

/* Fix for tabs on very small screens */
@media (max-width: 400px) {
  .fb-review-tabs {
    padding: 8px 8px 0;
    gap: 3px;
  }

  .fb-review-tab {
    padding: 7px 6px;
    font-size: 11px;
    gap: 3px;
  }

  .fb-review-tab-icon {
    width: 14px;
    height: 14px;
  }

  .fb-sub-tabs .fb-review-tab span {
    display: inline;
    font-size: 10px;
  }

  .fb-sub-tabs .fb-review-tab-icon {
    width: 13px;
    height: 13px;
  }
}
