/**
 * Public styles for Store Brand Locator
 */

/* CSS Variables for Colors - will be overridden by inline styles */
:root {
  --sbl-primary-color: #667eea;
  --sbl-secondary-color: #764ba2;
}

/* Submission Form */
.sbl-submission-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.sbl-form {
  background: #fff;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Form Header */
.sbl-form-header {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  padding: 30px 40px 25px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sbl-form-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.sbl-form-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.sbl-form-header-icon svg {
  color: #fff;
}

.sbl-form-title {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.sbl-form-subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* Form Sections */
.sbl-form-section {
  padding: 20px 40px;
  border-bottom: 1px solid #f0f0f0;
}

.sbl-form-section:last-of-type {
  border-bottom: none;
}

.sbl-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.sbl-section-title svg {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.sbl-section-description {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.sbl-form-row {
  margin-bottom: 8px;
}

.sbl-form-row:last-child {
  margin-bottom: 0;
}

.sbl-form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.sbl-form-row-half {
  margin-bottom: 0;
}

.sbl-label-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.sbl-label-icon {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.sbl-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sbl-input-wrapper.sbl-address-input {
  border: none;
  padding: 0;
}

.sbl-input-wrapper input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafafa;
  color: #333;
  font-family: inherit;
  margin-bottom: 0;
}

.sbl-input-wrapper input::placeholder {
  color: #999;
}

.sbl-input-wrapper input:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.sbl-input-icon {
  position: absolute;
  left: 16px;
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.sbl-address-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.sbl-address-input-wrapper input {
  box-shadow: none !important;
}

.sbl-address-input-wrapper:focus-within {
  border-color: var(--sbl-primary-color);
  background: #fff;
  box-shadow: none !important;
}

.sbl-address-icon-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  flex-shrink: 0;
  padding-left: 15px;
}

.sbl-address-icon {
  width: 20px;
  height: 20px;
  color: #666;
  display: block;
  flex-shrink: 0;
}

.sbl-address-input-wrapper input.sbl-address-input-field {
  flex: 1;
  border: none;
  padding: 12px 10px 12px 0;
  font-size: 15px;
  background: transparent;
  outline: none;
  min-width: 0;
  margin: 0;
}

.sbl-address-input-wrapper input.sbl-address-input-field::placeholder {
  color: #999;
}

.sbl-address-input-wrapper input.sbl-address-input-field {
  padding-right: 40px;
}

.sbl-address-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s ease;
  z-index: 1;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.sbl-field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.sbl-field-hint svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color);
}

.sbl-input-wrapper input.sbl-field-has-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.sbl-input-wrapper input.sbl-field-has-error:focus {
  background: none !important;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.sbl-address-input-wrapper.sbl-field-has-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.sbl-address-input-wrapper.sbl-field-has-error:focus-within {
  border-color: #ef4444;
  background-color: #fef2f2;
  box-shadow: none !important;
}

.sbl-address-input-wrapper input:focus {
  background: none !important;
}
/* Brand Search Styles */
.sbl-brands-search-wrapper {
  margin-bottom: 20px;
}

.sbl-brands-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.sbl-brands-search-input-wrapper input {
  box-shadow: none !important;
}

.sbl-brands-search-input-wrapper:focus-within {
  border-color: var(--sbl-primary-color);
  background: #fff;
  box-shadow: none !important;
}

.sbl-brands-search-icon-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  flex-shrink: 0;
  padding-left: 15px;
}

.sbl-brands-search-icon {
  width: 20px;
  height: 20px;
  color: #666;
  display: block;
  flex-shrink: 0;
}

.sbl-brands-search-input {
  flex: 1;
  border: none;
  padding: 12px 10px 12px 0;
  font-size: 15px;
  background: transparent;
  outline: none;
  min-width: 0;
  margin: 0;
  color: #333;
  box-shadow: none !important;
}

.sbl-brands-search-input::placeholder {
  color: #999;
}

.sbl-brands-grid:has(+ .sbl-field-error.sbl-error-visible),
.sbl-form-row:has(.sbl-field-error.sbl-error-visible) .sbl-brands-grid {
  position: relative;
}

.sbl-form-row:has(.sbl-field-error.sbl-error-visible) .sbl-brand-card-content {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.sbl-field-error {
  display: block;
  color: #dc3232;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.sbl-field-error.sbl-error-visible {
  opacity: 1;
  transform: translateY(0);
}

.sbl-form-row .description {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 0;
}

.sbl-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.sbl-brand-card {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.sbl-brand-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sbl-brand-card-content {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sbl-brand-card-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.sbl-brand-card:hover .sbl-brand-card-content {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.sbl-brand-card:hover .sbl-brand-card-content::before {
  opacity: 1;
}

.sbl-brand-checkbox-input:checked + .sbl-brand-card-content {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  border-color: var(--sbl-primary-color);
  color: #fff;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.sbl-brand-checkbox-input:checked + .sbl-brand-card-content::before {
  opacity: 0;
}

.sbl-brand-card-logo {
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.sbl-brand-card-logo img {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: block;
}

.sbl-brand-checkbox-input:checked
  + .sbl-brand-card-content
  .sbl-brand-card-logo {
  background: transparent;
  padding: 0;
}

.sbl-brand-checkbox-input:checked
  + .sbl-brand-card-content
  .sbl-brand-card-logo
  img {
  filter: grayscale(0%) brightness(1.2)
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 10;
}

.sbl-brand-card-logo-placeholder {
  width: 100% !important;
  height: 100%;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sbl-primary-color);
}

.sbl-brand-checkbox-input:checked
  + .sbl-brand-card-content
  .sbl-brand-card-logo-placeholder {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sbl-brand-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.sbl-brand-checkbox-input:checked
  + .sbl-brand-card-content
  .sbl-brand-card-name {
  color: #fff;
}

.sbl-brand-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sbl-primary-color);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.sbl-brand-checkbox-input:checked
  + .sbl-brand-card-content
  .sbl-brand-card-check {
  opacity: 1;
  transform: scale(1);
}

.sbl-brand-checkbox-input:checked
  + .sbl-brand-card-content
  .sbl-brand-card-check
  svg {
  color: var(--sbl-primary-color);
}

.sbl-submit-row {
  margin-top: 0;
  padding: 35px 40px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding: 10px;
}

.sbl-submit-button {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  padding: 16px 50px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.sbl-submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.sbl-submit-button:hover:not(:disabled)::before {
  left: 100%;
}

.sbl-submit-button:hover:not(:disabled) {
  background: linear-gradient(
    135deg,
    var(--sbl-secondary-color) 0%,
    var(--sbl-primary-color) 100%
  );
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-3px);
}

.sbl-submit-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sbl-submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

.sbl-submit-button .sbl-button-text {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.sbl-submit-button .sbl-button-text svg {
  flex-shrink: 0;
}

.sbl-button-text {
  display: inline-block;
}

.sbl-button-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sbl-spinner-svg {
  animation: spin 1s linear infinite;
}

.sbl-spinner-path {
  transform-origin: center;
  animation: spin 1s linear infinite;
}

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

.sbl-form-messages {
  margin-bottom: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.sbl-form-messages.success {
  background: #d4edda;
  border: 2px solid #c3e6cb;
  color: #155724;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sbl-form-messages.error {
  background: #f8d7da;
  border: 2px solid #f5c6cb;
  color: #721c24;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sbl-message-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.sbl-message-text {
  flex: 1;
  font-weight: 500;
}

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

.required {
  color: #dc3232;
}

/* Store Locator Container */
.sbl-store-locator-container {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  overflow: hidden;
}

/* Header Section */
.sbl-locator-header {
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: #fff;
}

.sbl-locator-title {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.sbl-locator-subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* Controls Section */
.sbl-locator-controls {
  padding: 20px 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.sbl-search-box {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
}

.sbl-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.sbl-search-input-wrapper:focus-within {
  border-color: #0073aa;
  box-shadow: none !important;
}

.sbl-search-icon-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  /* height: 48px; */
  flex-shrink: 0;
  padding-left: 15px;
}

.sbl-search-icon {
  width: 20px;
  height: 20px;
  color: #666;
  display: block;
  flex-shrink: 0;
}

.sbl-search-input-wrapper input.sbl-search-input {
  flex: 1;
  border: none;
  /* padding: 12px 40px 12px 0; */
  font-size: 15px;
  background: transparent;
  outline: none;
  min-width: 0;
  margin: 0;
}

.sbl-search-input-wrapper input.sbl-search-input::placeholder {
  color: #999;
}

.sbl-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.sbl-clear-search:hover {
  color: #333;
}

.sbl-filter-box {
  min-width: 200px;
  position: relative;
}

.sbl-filter-box select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

.sbl-filter-box select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Brand Searchable Dropdown */
.sbl-brand-search-dropdown {
  position: relative;
  width: 100%;
}

.sbl-brand-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.sbl-brand-search-input-wrapper:focus-within {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1) !important;
}

.sbl-brand-search-icon-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  flex-shrink: 0;
  padding-left: 15px;
}

.sbl-brand-search-icon {
  width: 20px;
  height: 20px;
  color: #666;
  display: block;
  flex-shrink: 0;
}

.sbl-brand-search-input {
  flex: 1;
  border: none;
  padding: 12px 10px 12px 0;
  font-size: 15px;
  background: transparent;
  outline: none;
  min-width: 0;
  margin: 0;
  color: #333;
  box-shadow: none !important;
  cursor: pointer;
}

.sbl-brand-search-input::placeholder {
  color: #999;
}

.sbl-brand-search-input:focus {
  cursor: text;
}

.sbl-brand-search-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.sbl-brand-search-dropdown.sbl-open .sbl-brand-search-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.sbl-brand-search-clear {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.sbl-brand-search-clear:hover {
  color: #333;
}

.sbl-brand-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  pointer-events: auto;
}

.sbl-brand-search-loading {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.sbl-brand-search-list {
  max-height: 300px;
  overflow-y: auto;
  pointer-events: auto;
}

.sbl-brand-search-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.sbl-brand-search-item:last-child {
  border-bottom: none;
}

.sbl-brand-search-item:hover {
  background-color: #f5f5f5;
}

.sbl-brand-search-item-selected {
  background-color: #e3f2fd;
  color: #0073aa;
  font-weight: 500;
}

.sbl-brand-search-item-selected:hover {
  background-color: #bbdefb;
}

.sbl-brand-search-no-results {
  color: #999;
  font-style: italic;
  cursor: default;
}

.sbl-brand-search-no-results:hover {
  background-color: transparent;
}

.sbl-toggle-sidebar {
  padding: 12px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin: 0;
}

.sbl-toggle-sidebar:hover {
  background: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Main Content Area */
.sbl-locator-content {
  display: flex;
  position: relative;
  min-height: 600px;
  height: 100%;
}

/* Sidebar */
.sbl-store-sidebar {
  width: 0;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  transition: width 0.3s ease;
  overflow: hidden;
  display: none;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
}

.sbl-store-sidebar.sbl-sidebar-open {
  width: 350px;
  display: flex;
}

.sbl-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  flex-shrink: 0;
}

.sbl-sidebar-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.sbl-store-count {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  background: #0073aa;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.sbl-close-sidebar {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.sbl-close-sidebar:hover {
  color: #333;
}

.sbl-sidebar-search {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  flex-shrink: 0;
}

.sbl-store-list {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  padding: 10px;
  max-height: 27rem;
}

.sbl-loading-stores,
.sbl-no-stores {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.sbl-store-item {
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sbl-store-item:hover {
  background: #fff;
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
  transform: translateY(-2px);
}

.sbl-store-item.sbl-store-item-active {
  background: #e7f3ff;
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.sbl-store-item-header {
  margin-bottom: 10px;
}

.sbl-store-item-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sbl-store-item-body {
  font-size: 14px;
  color: #666;
}

.sbl-store-item-address,
.sbl-store-item-phone,
.sbl-store-item-contact,
.sbl-store-item-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.sbl-store-item-address svg,
.sbl-store-item-phone svg,
.sbl-store-item-contact svg,
.sbl-store-item-email svg {
  flex-shrink: 0;
  color: #0073aa;
}

.sbl-store-item-phone a,
.sbl-store-item-email a {
  color: #0073aa;
  text-decoration: none;
}

.sbl-store-item-phone a:hover,
.sbl-store-item-email a:hover {
  text-decoration: underline;
}

.sbl-store-item-contact .sbl-contact-label {
  font-weight: 600;
  color: #495057;
}

.sbl-store-item-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}

.sbl-store-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #0073aa;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: middle;
}

.sbl-store-brand-tag.sbl-more-brands {
  background: #666;
}

/* Store List "Show More" Dropdown */
.sbl-store-list-more {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0;
}

.sbl-show-more-stores {
  width: 100%;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #0073aa;
  border-radius: 8px;
  color: #0073aa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.sbl-show-more-stores:hover {
  background: #0073aa;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.sbl-show-more-stores.sbl-dropdown-open {
  background: #0073aa;
  color: #fff;
  border-color: #005a87;
}

.sbl-show-more-stores svg {
  transition: transform 0.3s ease;
}

.sbl-show-more-stores.sbl-dropdown-open svg {
  transform: rotate(180deg);
}

.sbl-store-list-dropdown {
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.sbl-store-dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sbl-store-dropdown-item:last-child {
  border-bottom: none;
}

.sbl-store-dropdown-item:hover {
  background: #f8f9fa;
  padding-left: 20px;
}

.sbl-store-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.sbl-store-dropdown-address {
  font-size: 12px;
  color: #666;
}

/* Map Container */
.sbl-map-container {
  flex: 1;
  position: relative;
  transition: margin-left 0.3s ease;
  min-width: 0;
}

.sbl-map-container.sbl-map-with-sidebar {
  margin-left: 0;
}

.sbl-map {
  width: 100%;
  height: 600px;
  border-radius: 0;
}

.sbl-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sbl-overlay-content {
  text-align: center;
  padding: 40px;
}

.sbl-overlay-content p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

/* Enhanced Info Window Styles */
.sbl-info-window {
  max-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.sbl-info-header {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.sbl-info-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.sbl-info-body {
  padding: 5px 0;
}

.sbl-info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.sbl-info-row:last-child {
  margin-bottom: 0;
}

.sbl-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #0073aa;
}

.sbl-info-content {
  flex: 1;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.sbl-info-content p {
  margin: 0;
}

.sbl-info-address {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px !important;
}

.sbl-info-location {
  font-size: 13px;
  color: #999;
}

.sbl-info-link {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.sbl-info-link:hover {
  text-decoration: underline;
}

.sbl-info-brands {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.sbl-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.sbl-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #0073aa;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: middle;
}

.sbl-brand-show-more,
.sbl-brand-show-less,
.sbl-store-brand-show-more,
.sbl-store-brand-show-less {
  display: inline-flex;
  align-items: center;
  padding: 0px 7px;
  background: transparent;
  color: #0073aa;
  border: 1px solid #0073aa;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  vertical-align: middle;
  margin: 0;
}

.sbl-brand-show-more:hover,
.sbl-brand-show-less:hover,
.sbl-store-brand-show-more:hover,
.sbl-store-brand-show-less:hover {
  background: #0073aa;
  color: #fff;
}

.sbl-info-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

.sbl-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sbl-directions-btn:hover {
  background: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Map Display - Legacy Support */
.sbl-map-wrapper {
  margin: 20px 0;
}

/* Info Window Styling - Legacy (overridden by enhanced styles above) */
.sbl-info-window {
  max-width: 300px;
}

.sbl-info-window h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

.sbl-info-window p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.sbl-info-window strong {
  color: #333;
}

/* Responsive Design for Store Locator */
@media screen and (max-width: 1024px) {
  .sbl-store-sidebar.sbl-sidebar-open {
    width: 300px;
  }
}

@media screen and (max-width: 768px) {
  .sbl-locator-header {
    padding: 20px 20px 15px;
  }

  .sbl-locator-title {
    font-size: 24px;
  }

  .sbl-locator-controls {
    padding: 15px 20px;
    flex-direction: column;
  }

  .sbl-search-box,
  .sbl-filter-box {
    width: 100%;
    min-width: auto;
  }

  .sbl-toggle-sidebar {
    width: 100%;
    justify-content: center;
  }

  .sbl-store-sidebar.sbl-sidebar-open {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
  }

  .sbl-locator-content {
    min-height: 500px;
    flex-direction: column;
  }

  .sbl-map-container {
    flex: 1;
    min-height: 500px;
  }

  .sbl-map {
    height: 500px;
    min-height: 500px;
  }

  .sbl-info-window {
    max-width: 280px;
  }
}

@media screen and (max-width: 480px) {
  .sbl-locator-title {
    font-size: 20px;
  }

  .sbl-locator-subtitle {
    font-size: 14px;
  }

  .sbl-locator-content {
    min-height: 70vh;
    flex-direction: column;
  }

  .sbl-map-container {
    flex: 1;
    min-height: 70vh;
  }

  .sbl-map {
    height: 70vh;
    min-height: 70vh;
  }

  .sbl-info-window {
    max-width: 250px;
  }

  .sbl-toggle-text {
    display: none;
  }
}

/* Brand Directory */
/* Brand Directory Wrapper */
.sbl-brand-directory-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Directory Header */
.sbl-directory-header {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.sbl-directory-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

.sbl-directory-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.sbl-directory-header-icon svg {
  color: #fff;
}

.sbl-directory-title {
  margin: 0 0 10px 0;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.sbl-directory-subtitle {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* Directory Controls */
.sbl-directory-controls {
  background: #f8f9fa;
  padding: 25px 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
}

.sbl-directory-controls > * {
  display: flex;
  align-items: center;
  min-height: 48px;
}

/* Ensure sort container alignment - override any conflicting styles */
.sbl-directory-controls .sbl-directory-sort {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  flex-wrap: nowrap;
  height: 48px !important;
}

.sbl-directory-controls .sbl-sort-label {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1 !important;
}

.sbl-directory-controls .sbl-sort-select {
  margin: 0 !important;
  align-self: center !important;
  height: 48px !important;
  padding: 12px 40px 12px 15px !important;
  box-sizing: border-box !important;
}

.sbl-directory-search {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.sbl-directory-search .sbl-search-icon {
  position: absolute;
  left: 16px;
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.sbl-directory-search .sbl-search-input {
  width: 100%;
  padding: 12px 45px 12px 48px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
  height: 48px;
  box-sizing: border-box;
  line-height: 24px;
  margin: 0;
}

.sbl-directory-search .sbl-search-input:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.sbl-directory-search .sbl-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 1;
}

.sbl-directory-search .sbl-clear-search:hover {
  color: #333;
}

.sbl-directory-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
}

.sbl-sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  height: auto;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.sbl-sort-label svg {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.sbl-sort-select {
  padding: 12px 40px 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  color: #333;
  font-weight: 500;
  height: 48px;
  box-sizing: border-box;
  line-height: 24px;
  vertical-align: middle;
}

.sbl-sort-select:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sbl-sort-select:hover {
  border-color: #cbd5e0;
}

.sbl-sort-select option {
  padding: 10px 15px;
  color: #333;
}

.sbl-directory-view-toggle {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  height: 48px;
  box-sizing: border-box;
  align-items: center;
}

.sbl-view-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  color: #666;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
}

.sbl-view-btn:hover {
  background: #f0f0f0;
  color: var(--sbl-primary-color);
}

.sbl-view-btn.active {
  background: var(--sbl-primary-color);
  color: #fff;
}

/* Directory Info */
.sbl-directory-info {
  padding: 15px 40px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sbl-results-count {
  font-size: 14px;
  color: #666;
}

.sbl-per-page-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sbl-per-page-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.sbl-per-page-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  margin: 0;
}

.sbl-per-page-select:hover {
  border-color: #999;
}

.sbl-per-page-select:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.sbl-results-count strong {
  color: var(--sbl-primary-color);
  font-weight: 700;
}

/* Brand Directory */
.sbl-brand-directory {
  padding: 40px;
  background: #fff;
  margin-bottom: 3rem;
}

.sbl-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.sbl-brands-grid.sbl-view-list {
  grid-template-columns: 1fr;
  gap: 20px;
}

.sbl-brand-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.sbl-brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: transparent;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card {
  display: flex;
  align-items: stretch;
  min-height: 160px;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card:hover {
  transform: translateX(5px);
}

.sbl-brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

.sbl-brand-card-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-inner {
  flex-direction: row;
  text-align: left;
  align-items: center;
}

.sbl-brand-card-header {
  position: relative;
  padding: 30px 30px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-header {
  padding: 25px;
  border-bottom: none;
  border-right: 1px solid #f0f0f0;
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.sbl-brand-card-logo {
  text-align: center;
  width: 100%;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-logo {
  width: 120px;
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbl-brand-card-logo img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.sbl-brand-card:hover .sbl-brand-card-logo img {
  transform: scale(1.05);
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-logo img {
  max-height: 80px;
  width: auto;
  height: auto;
}

.sbl-brand-card-logo.sbl-no-logo {
  background: #0857a4 !important;
  padding: 25px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  width: 60% !important;
  height: 50% !important;
  font-weight: 200 !important;
  position: relative !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
}

.sbl-brand-card-logo.sbl-no-logo svg {
  display: none;
}

.sbl-brand-initial {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.sbl-brand-website-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sbl-primary-color);
  transition: all 0.3s ease;
  z-index: 2;
}

.sbl-brand-card:hover .sbl-brand-website-badge {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

.sbl-brand-website-badge svg {
  width: 14px;
  height: 14px;
}

.sbl-brand-card-content {
  flex: 1;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-content {
  text-align: left;
  flex: 1;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: none !important;
}

.sbl-brands-grid .sbl-brand-card:hover .sbl-brand-card-content {
  border-color: transparent !important;
  border: none !important;
}

.sbl-brand-card-title {
  margin-bottom: 12px;
}

.sbl-brand-card-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-title {
  margin-bottom: 10px;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-title h3 {
  font-size: 20px;
  margin-bottom: 0;
  line-height: 1.2;
}

.sbl-brand-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-excerpt {
  margin-bottom: 12px;
  flex: 0;
}

.sbl-brand-card-excerpt p {
  margin: 0;
}

.sbl-brand-card-stats {
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-stats {
  margin-bottom: 15px;
  padding: 12px 15px;
}

.sbl-brand-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #495057;
}

.sbl-brands-grid.sbl-view-list .sbl-brand-stat-item {
  justify-content: flex-start;
}

.sbl-brand-stat-item svg {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.sbl-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  line-height: 1;
}

.sbl-stat-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.sbl-brand-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sbl-brands-grid.sbl-view-list .sbl-brand-card-action {
  margin-top: 0;
  align-self: flex-start;
}

.sbl-brand-card:hover .sbl-brand-card-action {
  gap: 12px;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sbl-brand-card-action svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sbl-brand-card:hover .sbl-brand-card-action svg {
  transform: translateX(3px);
}

.sbl-no-brands,
.sbl-no-results {
  text-align: center;
  padding: 60px 40px;
  background: #f8f9fa;
  border-radius: 16px;
  margin: 40px 0;
}

.sbl-no-results-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #999;
}

.sbl-no-brands h3,
.sbl-no-results h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #333;
}

.sbl-no-brands p,
.sbl-no-results p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

/* Pagination */
.sbl-pagination {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid #f0f0f0;
}

.sbl-pagination .page-numbers {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 4px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.sbl-pagination .page-numbers:hover {
  background: var(--sbl-primary-color);
  color: #fff;
  border-color: var(--sbl-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sbl-pagination .page-numbers.current {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sbl-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.sbl-pagination .page-numbers.dots:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: #333;
  border-color: transparent;
}

/* Custom pagination links (for AJAX pagination) */
.sbl-pagination .sbl-page-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 4px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sbl-pagination .sbl-page-link:hover {
  background: var(--sbl-primary-color);
  color: #fff;
  border-color: var(--sbl-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sbl-pagination .sbl-page-link.sbl-page-current {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  cursor: default;
}

.sbl-pagination .sbl-page-dots {
  display: inline-block;
  padding: 10px 8px;
  margin: 0 4px;
  color: #666;
  font-weight: 600;
}

/* Loading state for brand grid */
.sbl-brands-grid.sbl-loading {
  position: relative;
  min-height: 300px;
}

.sbl-brands-grid.sbl-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--sbl-primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Form Brands Info and Pagination */
.sbl-form-brands-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px 0;
}

.sbl-form-brands-count {
  font-size: 14px;
  color: #666;
}

.sbl-form-brands-count strong {
  color: var(--sbl-primary-color);
  font-weight: 700;
}

.sbl-form-per-page-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sbl-form-per-page-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.sbl-form-per-page-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  margin: 0;
}

.sbl-form-per-page-select:hover {
  border-color: #999;
}

.sbl-form-per-page-select:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.sbl-form-pagination {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.sbl-form-pagination .sbl-form-page-link {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.sbl-form-pagination .sbl-form-page-link:hover {
  background: var(--sbl-primary-color);
  color: #fff;
  border-color: var(--sbl-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sbl-form-pagination .sbl-form-page-link.sbl-form-page-current {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  cursor: default;
}

.sbl-form-pagination .sbl-form-page-dots {
  display: inline-block;
  padding: 8px 6px;
  margin: 0 3px;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Brand Map Page */
.sbl-brand-map-wrapper {
  padding: 20px 0;
}

.sbl-brand-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sbl-brand-logo {
  flex-shrink: 0;
}

.sbl-brand-logo img {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

.sbl-brand-info {
  flex-grow: 1;
}

.sbl-brand-info h2 {
  margin: 0 0 15px 0;
  font-size: 32px;
  color: #333;
}

.sbl-brand-description {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.6;
}

.sbl-brand-website a {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.sbl-brand-website a:hover {
  background: #005a87;
}

.sbl-back-link {
  margin-top: 20px;
  text-align: center;
}

.sbl-back-link a {
  display: inline-block;
  padding: 10px 20px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.sbl-back-link a:hover {
  background: #e0e0e0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .sbl-directory-header {
    padding: 35px 25px;
  }

  .sbl-directory-title {
    font-size: 28px;
  }

  .sbl-directory-subtitle {
    font-size: 16px;
  }

  .sbl-directory-controls {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .sbl-directory-search {
    width: 100%;
    min-width: auto;
  }

  .sbl-directory-sort {
    width: 100%;
    justify-content: space-between;
  }

  .sbl-sort-select {
    flex: 1;
    min-width: auto;
  }

  .sbl-directory-view-toggle {
    display: none !important;
  }

  .sbl-directory-info {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sbl-per-page-selector {
    margin-top: 10px;
  }

  .sbl-brand-directory {
    padding: 25px 20px;
  }

  .sbl-brands-grid {
    gap: 20px;
  }

  .sbl-brand-card {
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.09);
  }

  .sbl-brand-card-header {
    padding: 28px 25px 22px;
    min-height: 170px;
  }

  .sbl-brand-card-logo img {
    max-height: 110px;
    max-width: 160px;
    padding: 14px;
  }

  .sbl-brand-card-content {
    padding: 22px 20px 20px;
  }

  .sbl-brand-card-title h3 {
    font-size: 18px;
  }

  .sbl-brand-card-action {
    padding: 13px 22px;
    font-size: 14px;
  }

  .sbl-brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .sbl-map {
    height: 400px;
  }

  .sbl-brand-header {
    flex-direction: column;
    text-align: center;
  }

  .sbl-brand-logo img {
    max-width: 150px;
    margin: 0 auto;
  }

  .sbl-submission-form-wrapper {
    padding: 10px;
  }

  .sbl-form-header {
    padding: 30px 25px 25px;
  }

  .sbl-form-title {
    font-size: 24px;
  }

  .sbl-form-subtitle {
    font-size: 14px;
  }

  .sbl-form-section {
    padding: 25px 20px;
  }

  .sbl-section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .sbl-form-row-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sbl-brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .sbl-submit-row {
    padding: 25px 20px;
  }

  .sbl-submit-button {
    width: 100%;
    min-width: auto;
    padding: 14px 30px;
  }
}

@media screen and (max-width: 480px) {
  .sbl-form-header-icon {
    width: 60px;
    height: 60px;
  }

  .sbl-form-title {
    font-size: 20px;
  }

  .sbl-directory-header {
    padding: 30px 20px;
  }

  .sbl-directory-header-icon {
    width: 60px;
    height: 60px;
  }

  .sbl-directory-title {
    font-size: 24px;
  }

  .sbl-directory-subtitle {
    font-size: 14px;
  }

  .sbl-directory-controls {
    padding: 15px;
    padding-bottom: 3rem !important;
  }

  .sbl-directory-sort {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sbl-sort-label {
    width: 100%;
  }

  .sbl-directory-view-toggle {
    display: none !important;
  }

  .sbl-brand-directory {
    padding: 20px 12px;
  }

  .sbl-brands-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sbl-brand-card {
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .sbl-brand-card-inner {
    padding: 0;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-inner {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .sbl-brand-card-header {
    padding: 25px 20px 20px;
    min-height: 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-header {
    padding: 25px 20px 20px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .sbl-brand-card-logo {
    min-height: 100px;
    margin-bottom: 0;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-logo {
    width: 100%;
    margin: 0 auto 15px;
  }

  .sbl-brand-card-logo img {
    max-height: 100px;
    max-width: 140px;
    width: auto;
    height: auto;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-logo img {
    max-height: 100px;
    max-width: 140px;
  }

  .sbl-brand-card-logo.sbl-no-logo {
    width: 80px !important;
    height: 80px !important;
    padding: 20px !important;
    margin: 0 auto 15px !important;
  }

  .sbl-brand-initial {
    font-size: 36px;
  }

  .sbl-brand-website-badge {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }

  .sbl-brand-website-badge svg {
    width: 12px;
    height: 12px;
  }

  .sbl-brand-card-content {
    min-height: auto;
    padding: 20px 18px 18px;
    text-align: center;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-content {
    padding: 20px 18px 18px;
    text-align: center;
    align-items: center;
  }

  .sbl-brand-card-title {
    margin-bottom: 10px;
  }

  .sbl-brand-card-title h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-title {
    margin-bottom: 10px;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-title h3 {
    font-size: 18px;
  }

  .sbl-brand-card-excerpt {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-excerpt {
    margin-bottom: 16px;
  }

  .sbl-brand-card-stats {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-stats {
    margin-bottom: 16px;
    padding: 12px 16px;
  }

  .sbl-brand-stat-item {
    gap: 8px;
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-stat-item {
    justify-content: center;
  }

  .sbl-brand-stat-item svg {
    width: 16px;
    height: 16px;
  }

  .sbl-stat-value {
    font-size: 16px;
  }

  .sbl-stat-label {
    font-size: 11px;
  }

  .sbl-brand-card-action {
    padding: 14px 24px;
    font-size: 13px;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  }

  .sbl-brands-grid.sbl-view-list .sbl-brand-card-action {
    width: 100%;
  }

  .sbl-brand-card-action svg {
    width: 16px;
    height: 16px;
  }

  .sbl-map {
    height: 300px;
  }
}

/* Ultimate Member Integration - User Stores Display */
.um-profile-sbl-stores {
  margin-top: 0;
  padding: 0;
}

.um-sbl-stores-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.um-sbl-header-content {
  flex: 1;
  display: grid;
  align-items: center;
  gap: 15px;
}

.um-sbl-header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.um-sbl-header-text h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.um-sbl-stores-count {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.um-sbl-add-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.um-sbl-add-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: #fff;
}

.um-sbl-add-store-btn svg {
  flex-shrink: 0;
}

/* Empty State */
.um-sbl-empty-stores {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 16px;
  border: 2px dashed #e0e0e0;
}

.um-sbl-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #ccc;
}

.um-sbl-empty-stores h4 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.um-sbl-empty-stores p {
  margin: 0 0 25px 0;
  font-size: 16px;
  color: #666;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.um-sbl-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.um-sbl-empty-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: #fff;
}

.um-sbl-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 0;
}

.um-sbl-store-card {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.um-sbl-store-card:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  transform: translateY(-4px);
  border-color: var(--sbl-primary-color);
}

.um-sbl-store-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}

.um-sbl-store-title {
  margin: 0;
  flex: 1;
}

.um-sbl-store-title a {
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.3s;
  line-height: 1.3;
}

.um-sbl-store-title a:hover {
  color: var(--sbl-primary-color);
}

.um-sbl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.um-sbl-status-badge svg {
  flex-shrink: 0;
}

.um-sbl-status-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.um-sbl-status-approved {
  background: #d1f2eb;
  color: #0d7377;
  border: 1px solid #85e0d4;
}

.um-sbl-store-body {
  margin-bottom: 20px;
}

.um-sbl-store-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.um-sbl-store-detail:last-child {
  margin-bottom: 0;
}

.um-sbl-icon {
  flex-shrink: 0;
  color: var(--sbl-primary-color);
  margin-top: 2px;
}

.um-sbl-text {
  flex: 1;
  word-break: break-word;
}

.um-sbl-text a {
  color: var(--sbl-primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.um-sbl-text a:hover {
  color: var(--sbl-secondary-color);
  text-decoration: underline;
}

.um-sbl-store-brands {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.um-sbl-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  font-size: 13px;
  margin-bottom: 8px;
}

.um-sbl-label svg {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.um-sbl-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.um-sbl-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: middle;
}

.um-sbl-brand-show-more,
.um-sbl-brand-show-less {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: transparent;
  color: var(--sbl-primary-color);
  border: 1px solid var(--sbl-primary-color);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: middle;
  margin-bottom: 0;
}

.um-sbl-brand-show-more:hover,
.um-sbl-brand-show-less:hover {
  background: var(--sbl-primary-color);
  color: #fff;
}

.um-sbl-store-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.um-sbl-map-link,
.um-sbl-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem 0rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
  margin: 0;
  height: auto;
}

.um-sbl-map-link {
  background: #0073aa;
  color: #fff;
}

.um-sbl-map-link:hover {
  background: #005a87;
  color: #fff;
}

.um-sbl-edit-link {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.um-sbl-edit-link:hover {
  background: #e0e0e0;
  color: #333;
}

/* Responsive Design for UM Integration */
@media screen and (max-width: 768px) {
  .um-sbl-stores-grid {
    grid-template-columns: 1fr;
  }

  .um-sbl-store-header {
    flex-direction: column;
  }

  .um-sbl-status-badge {
    align-self: flex-start;
  }
}

@media screen and (max-width: 480px) {
  .um-sbl-store-actions {
    flex-direction: column;
  }

  .um-sbl-map-link,
  .um-sbl-edit-link {
    width: 100%;
    text-align: center;
  }
}

/* Success Modal */
.sbl-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sbl-modal.sbl-modal-active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.sbl-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.sbl-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  z-index: 1;
}

.sbl-modal-content.sbl-edit-modal-content {
  max-width: 800px;
  width: 95%;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

/* Fix Google Maps autocomplete dropdown z-index in edit modal */
#sbl-edit-store-modal .pac-container,
.sbl-modal .pac-container {
  z-index: 999999 !important;
  position: fixed !important;
}

/* Ensure modal content doesn't clip autocomplete dropdown when needed */
/* Note: overflow is managed dynamically via JavaScript */

/* Alternative: allow overflow on the address input wrapper */
.sbl-address-input-wrapper {
  position: relative;
  z-index: 1;
}

#sbl-edit-store-modal .sbl-address-input-wrapper {
  z-index: 999998;
}

/* Brand grid in edit modal - 4 columns */
#sbl-edit-store-modal .sbl-brands-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

@media screen and (min-width: 768px) {
  #sbl-edit-store-modal .sbl-brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sbl-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.sbl-modal-header .sbl-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff !important;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sbl-modal-header .sbl-modal-title svg {
  color: #fff !important;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sbl-modal-header .sbl-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}

.sbl-modal-header .sbl-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sbl-modal-header .sbl-modal-close svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: #fff;
  fill: none;
  display: block;
  margin: 0;
}

.sbl-modal-body {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

/* Edit Modal Loading State */
.sbl-edit-loading {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.sbl-loading-spinner {
  margin-bottom: 20px;
  color: var(--sbl-primary-color, #667eea);
}

.sbl-loading-spinner .sbl-spinner-svg {
  animation: spin 1s linear infinite;
  width: 48px;
  height: 48px;
}

.sbl-loading-text {
  color: #666;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

.sbl-modal.sbl-modal-active .sbl-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.sbl-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbl-success-icon {
  background: #d4edda;
  color: #28a745;
}

.sbl-modal-icon svg {
  width: 100%;
  height: 100%;
}

.sbl-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
}

.sbl-modal-message {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 20px;
}

.sbl-modal-button {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sbl-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.sbl-modal-button:active {
  transform: translateY(0);
}

/* Edit Modal Button Styles */
.sbl-edit-modal-content .sbl-submit-row {
  padding: 16px 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: 0;
}

.sbl-edit-modal-content .sbl-submit-button {
  padding: 10px 24px !important;
  font-size: 13px !important;
  min-width: auto !important;
  height: auto !important;
}

.sbl-edit-modal-content .sbl-submit-button .sbl-button-text {
  gap: 6px !important;
}

.sbl-edit-modal-content .sbl-submit-button svg {
  width: 16px !important;
  height: 16px !important;
}

.sbl-cancel-button {
  background: #6c757d;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  min-width: auto;
}

.sbl-cancel-button:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

body.sbl-modal-open {
  overflow: hidden;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
  .sbl-modal-content {
    padding: 30px 25px;
    max-width: 90%;
  }

  .sbl-modal-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .sbl-modal-title {
    font-size: 24px;
  }

  .sbl-modal-message {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .sbl-modal-content {
    padding: 25px 20px;
  }

  .sbl-modal-icon {
    width: 50px;
    height: 50px;
  }

  .sbl-modal-title {
    font-size: 20px;
  }

  .sbl-modal-message {
    font-size: 13px;
  }
}

/* Brand Stores Page */
.sbl-brand-stores-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.sbl-brand-stores-header {
  margin-bottom: 40px;
}

.sbl-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 30px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sbl-back-button:hover {
  background: #e9ecef;
  color: #212529;
}

.sbl-back-button svg {
  flex-shrink: 0;
}

.sbl-brand-info-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sbl-brand-logo-large {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sbl-brand-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbl-brand-logo-large.sbl-no-logo {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
}

.sbl-brand-logo-large.sbl-no-logo svg {
  width: 60px;
  height: 60px;
}

.sbl-brand-initial-large {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

.sbl-brand-info-content {
  flex: 1;
}

.sbl-brand-title {
  margin: 0 0 15px 0;
  font-size: 32px;
  font-weight: 700;
  color: #212529;
}

.sbl-brand-description {
  margin: 0 0 20px 0;
  color: #6c757d;
  line-height: 1.6;
}

.sbl-brand-website-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sbl-brand-website-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: #fff;
}

.sbl-stores-count-info {
  margin-bottom: 30px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.sbl-stores-count {
  font-size: 16px;
  color: #495057;
}

.sbl-stores-count strong {
  color: #212529;
  font-weight: 700;
}

.sbl-brand-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.sbl-brand-store-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.sbl-brand-store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sbl-brand-store-header {
  margin-bottom: 20px;
}

.sbl-brand-store-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.sbl-brand-store-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sbl-brand-store-title a:hover {
  color: var(--sbl-primary-color);
}

.sbl-brand-store-body {
  margin-bottom: 20px;
}

.sbl-brand-store-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.sbl-brand-store-detail:last-child {
  margin-bottom: 0;
}

.sbl-store-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #6c757d;
}

.sbl-store-text {
  flex: 1;
  color: #495057;
  line-height: 1.6;
}

.sbl-store-text a {
  color: var(--sbl-primary-color);
  text-decoration: none;
}

.sbl-store-text a:hover {
  text-decoration: underline;
}

.sbl-contact-label {
  font-weight: 600;
  color: #495057;
  margin-right: 6px;
}

.sbl-brand-store-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.sbl-store-map-link,
.sbl-store-details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sbl-store-map-link {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
}

.sbl-store-map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: #fff;
}

.sbl-store-details-link:hover {
  background: #e9ecef;
  color: #212529;
}

.sbl-store-details-link svg {
  flex-shrink: 0;
}

.sbl-no-stores {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 16px;
  border: 2px dashed #e0e0e0;
}

.sbl-no-stores-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #adb5bd;
}

.sbl-no-stores-icon svg {
  width: 100%;
  height: 100%;
}

.sbl-no-stores h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #495057;
}

.sbl-no-stores p {
  margin: 0;
  color: #6c757d;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .sbl-brand-info-header {
    flex-direction: column;
    text-align: center;
  }

  .sbl-brand-logo-large {
    margin: 0 auto;
  }

  .sbl-brand-title {
    font-size: 24px;
  }

  .sbl-brand-stores-grid {
    grid-template-columns: 1fr;
  }

  .sbl-brand-store-actions {
    flex-direction: column;
  }

  .sbl-store-map-link,
  .sbl-store-details-link {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Map Modal Styles
   ============================================ */

.sbl-map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sbl-map-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.sbl-map-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
  animation: sbl-modal-fade-in 0.3s ease-out;
}

@keyframes sbl-modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sbl-map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
  flex-shrink: 0;
}

.sbl-map-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #212529;
}

.sbl-map-modal-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.sbl-map-modal-close:hover {
  background: #f8f9fa;
  color: #212529;
}

.sbl-map-modal-close svg {
  width: 24px;
  height: 24px;
}

.sbl-map-modal-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.sbl-modal-map {
  width: 100%;
  height: calc(90vh - 80px);
  min-height: 500px;
  border-radius: 0 0 16px 16px;
}

/* Prevent body scroll when modal is open */
body.sbl-modal-open {
  overflow: hidden;
}

/* Info Window Styles in Modal */
.sbl-info-window {
  padding: 0 12px 12px 12px;
  min-width: 200px;
  max-width: 300px;
  position: relative;
}

/* Style Google Maps info window close button with absolute positioning */
.gm-style .gm-style-iw-c {
  max-height: 30rem !important;
}

.gm-style-iw-d {
  position: relative;
  max-height: 30rem !important;
  padding-top: 20px !important;
}

.gm-style-iw-chr {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  cursor: pointer !important;
  z-index: 1000 !important;
}

.sbl-info-window-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.sbl-info-window-address,
.sbl-info-window-phone,
.sbl-info-window-contact,
.sbl-info-window-email {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sbl-info-window-address svg,
.sbl-info-window-phone svg,
.sbl-info-window-contact svg,
.sbl-info-window-email svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #adb5bd;
}

.sbl-info-window-phone a,
.sbl-info-window-email a {
  color: #0073aa;
  text-decoration: none;
}

.sbl-info-window-phone a:hover,
.sbl-info-window-email a:hover {
  text-decoration: underline;
}

.sbl-info-window-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.sbl-info-window-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sbl-info-window-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  color: #fff;
}

/* Update button style for modal trigger */
.sbl-store-map-link.sbl-open-map-modal {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .sbl-map-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .sbl-map-modal-header {
    padding: 16px 20px;
  }

  .sbl-map-modal-title {
    font-size: 18px;
  }

  .sbl-modal-map {
    height: calc(95vh - 70px);
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .sbl-map-modal-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .sbl-modal-map {
    height: calc(100vh - 70px);
    border-radius: 0;
  }
}

/* Google Places Autocomplete Dropdown Styling */
.pac-container {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  margin-top: 4px !important;
  padding: 8px 0 !important;
  font-family: inherit !important;
  overflow: hidden !important;
}

.pac-item {
  padding: 12px 16px !important;
  cursor: pointer !important;
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-size: 14px !important;
  color: #333 !important;
  transition: background-color 0.2s ease !important;
}

.pac-item:last-child {
  border-bottom: none !important;
}

.pac-item:hover,
.pac-item-selected {
  background-color: #f8f9fa !important;
}

.pac-item-query {
  color: #333 !important;
  font-size: 14px !important;
}

.pac-icon {
  margin-right: 8px !important;
  width: 16px !important;
  height: 16px !important;
}

.pac-matched {
  font-weight: 600 !important;
  color: var(--sbl-primary-color) !important;
}

.pac-item-query .pac-matched {
  color: var(--sbl-primary-color) !important;
}

.pac-logo:after {
  display: none !important;
}
