/* Fence Details Display Styles */
#smartfence-embed-root .fence-details-container { 
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

#smartfence-embed-root .fence-detail-section { 
  margin-bottom: 2rem;
}

#smartfence-embed-root .fence-detail-section:last-child { 
  margin-bottom: 0;
}

#smartfence-embed-root .fence-detail-heading { 
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
  display: flex;
  align-items: center;
}

#smartfence-embed-root .fence-detail-heading::before { 
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1rem;
  background: #3498db;
  margin-right: 0.75rem;
  border-radius: 2px;
}

/* Styles Grid */
#smartfence-embed-root .fence-styles-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#smartfence-embed-root .fence-style-item { 
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: default;
  border: 2px solid transparent;
}

/* Style Preview (for specific style display) */
#smartfence-embed-root .style-preview-container { 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#smartfence-embed-root .style-preview-image { 
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
}

#smartfence-embed-root .fence-style-image-wrapper { 
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

#smartfence-embed-root .fence-style-image { 
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

#smartfence-embed-root .fence-style-name { 
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  line-height: 1.3;
}

/* Addons Grid */
#smartfence-embed-root .fence-addons-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#smartfence-embed-root .fence-addon-item { 
  background: white;
  border-radius: 8px;
  padding: 0.875rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  cursor: default;
  border: 2px solid transparent;
}

#smartfence-embed-root .fence-addon-image-wrapper { 
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.625rem;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

#smartfence-embed-root .fence-addon-image { 
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

#smartfence-embed-root .fence-addon-name { 
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  line-height: 1.3;
}

/* Heights List */
#smartfence-embed-root .fence-heights-list { 
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

#smartfence-embed-root .fence-height-badge { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: white;
  color: #2c3e50;
  border: 2px solid #3498db;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
}

/* Gates List */
#smartfence-embed-root .fence-gates-list { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

#smartfence-embed-root .fence-gate-item { 
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e50;
  cursor: default;
}

#smartfence-embed-root .fence-gate-item i { 
  margin-right: 0.625rem;
  color: #27ae60;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #smartfence-embed-root .fence-details-container { 
    padding: 1rem;
  }
  
  .fence-styles-grid,
  #smartfence-embed-root .fence-addons-grid { 
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .fence-style-image-wrapper,
  #smartfence-embed-root .fence-addon-image-wrapper { 
    height: 80px;
  }
  
  #smartfence-embed-root .fence-gates-list { 
    grid-template-columns: 1fr;
  }
  
  #smartfence-embed-root .fence-detail-heading { 
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .fence-styles-grid,
  #smartfence-embed-root .fence-addons-grid { 
    grid-template-columns: repeat(2, 1fr);
  }
  
  #smartfence-embed-root .fence-heights-list { 
    gap: 0.5rem;
  }
  
  #smartfence-embed-root .fence-height-badge { 
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}