/* Restaurant Status Widget Styles - WordPress Plugin */
/* Google Fonts local fallback için optimize edildi */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Position Classes */
.restaurant-position-bottom-right {
  bottom: 20px;
  right: 0px; /* Sağa yapışık */
}

.restaurant-position-bottom-left {
  bottom: 20px;
  left: 0px; /* Sola yapışık */
}

.restaurant-position-top-right {
  top: 20px;
  right: 0px; /* Sağa yapışık */
}

.restaurant-position-top-left {
  top: 20px;
  left: 0px; /* Sola yapışık */
}

/* Inline Widget for Shortcode */
.restaurant-inline {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  margin: 20px auto;
  display: block;
}

/* Widget Container - Optimized */
#restaurant-status-widget,
.restaurant-shortcode-widget {
  position: fixed !important;
  z-index: 999999 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  direction: ltr !important;
  text-align: left !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  contain: layout style paint;
  box-sizing: border-box !important;
  color: white !important;
}

/* Kebaberie Brand Colors */
:root {
  --kebaberie-primary: #dc2626;
  --kebaberie-primary-dark: #b91c1c;
  --kebaberie-green: #059669;
  --kebaberie-green-dark: #047857;
  --kebaberie-red: #ef4444;
  --kebaberie-orange: #f59e0b;
}

/* Widget Collapsed State - Optimized */
#restaurant-status-widget .restaurant-widget-collapsed,
.restaurant-shortcode-widget .restaurant-widget-collapsed {
  display: block !important; /* Always visible by default */
  background: linear-gradient(135deg, var(--kebaberie-green) 0%, var(--kebaberie-green-dark) 100%) !important;
  border-radius: 25px 0 0 25px !important;
  padding: 10px 16px 8px 16px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2) !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: none !important;
  min-width: 150px !important;
  color: white !important;
  font-weight: 500 !important;
  position: relative !important;
  z-index: 1000000 !important;
  box-sizing: border-box !important;
}

/* When collapsed widget is hidden, make sure it's invisible */
#restaurant-status-widget .restaurant-widget-collapsed[style*="display: none"],
.restaurant-shortcode-widget .restaurant-widget-collapsed[style*="display: none"] {
  display: none !important;
}

#restaurant-status-widget .restaurant-widget-collapsed:hover,
.restaurant-shortcode-widget .restaurant-widget-collapsed:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25) !important;
}

/* Widget Top Row */
#restaurant-status-widget .kebaberie-widget-top,
.restaurant-shortcode-widget .kebaberie-widget-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}

/* Widget Bottom Row */
#restaurant-status-widget .kebaberie-widget-bottom,
.restaurant-shortcode-widget .kebaberie-widget-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  opacity: 0.85 !important;
  margin-top: 2px !important;
}

/* Service Items in Bottom Row */
#restaurant-status-widget .kebaberie-service-item,
.restaurant-shortcode-widget .kebaberie-service-item {
  padding: 2px 6px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  background: rgba(255, 255, 255, 0.1) !important;
  min-width: auto !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Service Separator */
#restaurant-status-widget .kebaberie-service-separator,
.restaurant-shortcode-widget .kebaberie-service-separator {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 8px !important;
  font-weight: bold !important;
}

/* Service Status Colors */
#restaurant-status-widget .kebaberie-service-item.open,
.restaurant-shortcode-widget .kebaberie-service-item.open {
  background: rgba(16, 185, 129, 0.3) !important;
  color: #d1fae5 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4) !important;
}

#restaurant-status-widget .kebaberie-service-item.closed,
.restaurant-shortcode-widget .kebaberie-service-item.closed {
  color: #ffffff !important;
}

/* EXPANDED WIDGET STYLES - High Priority */
#restaurant-status-widget .kebaberie-widget-expanded,
.restaurant-shortcode-widget .kebaberie-widget-expanded {
  display: none !important; /* Hidden by default, shown via JavaScript */
  background: white !important;
  border-radius: 20px 0 0 20px !important;
  padding: 0 !important;
  min-width: 320px !important;
  max-width: 380px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-right: none !important;
  position: relative !important;
  z-index: 1000000 !important;
  color: #1e293b !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  box-sizing: border-box !important;
}

/* When expanded widget is shown, make sure it's visible */
#restaurant-status-widget .kebaberie-widget-expanded[style*="display: block"],
#restaurant-status-widget .kebaberie-widget-expanded[style*="display: inline"],
.restaurant-shortcode-widget .kebaberie-widget-expanded[style*="display: block"],
.restaurant-shortcode-widget .kebaberie-widget-expanded[style*="display: inline"] {
  display: block !important;
}

/* ACTION BUTTONS - Override Theme Styles */
#restaurant-status-widget .kebaberie-action-button,
.restaurant-shortcode-widget .kebaberie-action-button {
  background: linear-gradient(135deg, var(--kebaberie-primary) 0%, var(--kebaberie-primary-dark) 100%) !important;
  color: white !important;
  text-decoration: none !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

#restaurant-status-widget .kebaberie-action-button:hover,
.restaurant-shortcode-widget .kebaberie-action-button:hover {
  background: linear-gradient(135deg, var(--kebaberie-primary-dark) 0%, #991b1b 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
  color: white !important;
  text-decoration: none !important;
}

/* CLOSE BUTTON - High Priority */
#restaurant-status-widget .kebaberie-close-btn,
.restaurant-shortcode-widget .kebaberie-close-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px !important;
  border-radius: 8px !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

#restaurant-status-widget .kebaberie-close-btn:hover,
.restaurant-shortcode-widget .kebaberie-close-btn:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Service Items */
.kebaberie-service-item {
  transition: color 0.2s ease;
}

/* ========== THEME OVERRIDE - NUCLEAR OPTION ========== */
/* Bu kurallar en güçlü olup tema CSS'ini override eder */

body #restaurant-status-widget *,
body .restaurant-shortcode-widget * {
  box-sizing: border-box !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Buton Resets - Tüm tema stillerini sıfırla */
body #restaurant-status-widget button,
body .restaurant-shortcode-widget button,
body #restaurant-status-widget .kebaberie-action-button,
body .restaurant-shortcode-widget .kebaberie-action-button,
body #restaurant-status-widget .kebaberie-close-btn,
body .restaurant-shortcode-widget .kebaberie-close-btn {
  all: unset !important;
  display: inline-block !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  box-sizing: border-box !important;
}

/* Action Button Re-styling */
body #restaurant-status-widget .kebaberie-action-button,
body .restaurant-shortcode-widget .kebaberie-action-button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
}

body #restaurant-status-widget .kebaberie-action-button:hover,
body .restaurant-shortcode-widget .kebaberie-action-button:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Close Button Re-styling */
body #restaurant-status-widget .kebaberie-close-btn,
body .restaurant-shortcode-widget .kebaberie-close-btn {
  background: transparent !important;
  color: #64748b !important;
  padding: 8px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body #restaurant-status-widget .kebaberie-close-btn:hover,
body .restaurant-shortcode-widget .kebaberie-close-btn:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Tab Buttons Nuclear Override */
body #restaurant-status-widget .kebaberie-tab,
body .restaurant-shortcode-widget .kebaberie-tab,
body #restaurant-status-widget .kebaberie-schedule-tabs button,
body .restaurant-shortcode-widget .kebaberie-schedule-tabs button {
  all: unset !important;
  flex: 1 !important;
  padding: 12px 16px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body #restaurant-status-widget .kebaberie-tab:hover,
body .restaurant-shortcode-widget .kebaberie-tab:hover {
  background: rgba(220, 38, 38, 0.05) !important;
  color: #dc2626 !important;
}

body #restaurant-status-widget .kebaberie-tab.active,
body .restaurant-shortcode-widget .kebaberie-tab.active {
  background: white !important;
  color: #dc2626 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) !important;
}

body #restaurant-status-widget .kebaberie-tab.active:hover,
body .restaurant-shortcode-widget .kebaberie-tab.active:hover {
  background: white !important;
  color: #dc2626 !important;
}

/* Close Button Nuclear Override - Most Important */
body #restaurant-status-widget .kebaberie-close-btn,
body .restaurant-shortcode-widget .kebaberie-close-btn,
body #restaurant-status-widget .kebaberie-widget-header .kebaberie-close-btn,
body .restaurant-shortcode-widget .kebaberie-widget-header .kebaberie-close-btn {
  all: unset !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  outline: none !important;
  text-decoration: none !important;
}

body #restaurant-status-widget .kebaberie-close-btn:hover,
body .restaurant-shortcode-widget .kebaberie-close-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05) !important;
  color: white !important;
}

body #restaurant-status-widget .kebaberie-close-btn:active,
body .restaurant-shortcode-widget .kebaberie-close-btn:active {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: scale(0.95) !important;
  color: white !important;
}

/* Close Button SVG Styling */
body #restaurant-status-widget .kebaberie-close-btn svg,
body .restaurant-shortcode-widget .kebaberie-close-btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke: white !important;
  stroke-width: 2px !important;
  fill: none !important;
  pointer-events: none !important;
}

body #restaurant-status-widget .kebaberie-close-btn path,
body .restaurant-shortcode-widget .kebaberie-close-btn path {
  stroke: white !important;
  pointer-events: none !important;
}

/* Header Nuclear Override */
body #restaurant-status-widget .kebaberie-widget-header,
body .restaurant-shortcode-widget .kebaberie-widget-header {
  background: #000 !important;
  padding: 16px 20px !important;
  color: white !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* Schedule Tabs Container Nuclear Override */
body #restaurant-status-widget .kebaberie-schedule-tabs,
body .restaurant-shortcode-widget .kebaberie-schedule-tabs {
  display: flex !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  padding: 4px !important;
  margin-bottom: 20px !important;
  gap: 4px !important;
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
}

/* Widget Container Nuclear Override */
body #restaurant-status-widget,
body .restaurant-shortcode-widget {
  position: fixed !important;
  z-index: 400 !important; /* Maximum z-index */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: initial !important;
}

/* Collapsed Widget Nuclear Override */
body #restaurant-status-widget .restaurant-widget-collapsed,
body .restaurant-shortcode-widget .restaurant-widget-collapsed {
  background: #000 !important;
  border-radius: 25px 0 0 25px !important;
  padding: 10px 16px 8px 16px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: none !important;
  min-width: 150px !important;
  color: white !important;
  font-weight: 500 !important;
  position: relative !important;
  z-index: 2147483647 !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Expanded Widget Nuclear Override */
body #restaurant-status-widget .kebaberie-widget-expanded,
body .restaurant-shortcode-widget .kebaberie-widget-expanded {
  background: white !important;
  border-radius: 20px 0 0 20px !important;
  padding: 0 !important;
  min-width: 320px !important;
  max-width: 380px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-right: none !important;
  position: relative !important;
  z-index: 2147483647 !important;
  color: #1e293b !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* ========== END THEME OVERRIDE ========== */

.kebaberie-service-item.open {
  color: #a7f3d0;
}

.kebaberie-service-item.closed {
  color: #fca5a5;
  opacity: 0.6;
}

/* Status Indicator - Optimized */
.kebaberie-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  /* Removed: animation: status-pulse 1.5s infinite; - Performance optimization */
}

.kebaberie-status-indicator.closed {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Expanded Widget - Optimized */
.kebaberie-widget-expanded {
  background: white;
  border-radius: 16px 0 0 16px; /* Rounded left, flat right */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-right: none; /* No border on right side */
  width: 320px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  animation: widget-expand 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Widget Header - Optimized */
.kebaberie-widget-header {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  padding: 16px 20px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.kebaberie-widget-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px);
  opacity: 0.3;
}

.kebaberie-widget-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  position: relative !important;
  z-index: 1 !important;
  color: white !important;
  flex: 1 !important;
}

.kebaberie-logo {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #dc2626;
  font-size: 12px;
}

.kebaberie-close-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.kebaberie-close-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05) !important;
}

/* Widget Content */
.kebaberie-widget-content {
  padding: 20px;
}

/* Status Section */
.kebaberie-status-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* Status Icon - Optimized */
.kebaberie-status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  /* Removed: animation: status-pulse 1.5s infinite; - Performance optimization */
}

.kebaberie-status-icon.closed {
  background: #10b981;
}

.kebaberie-status-text {
  font-weight: 600;
  color: white !important; /* Force white color for collapsed state */
  font-size: 15px;
}

.kebaberie-status-text.closed {
  color: white !important;
}

.kebaberie-status-text.open {
  color: white !important;
}

/* Next Opening */
.kebaberie-next-opening {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.kebaberie-next-opening-text {
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
}

/* Schedule Tabs - Improved */
.kebaberie-schedule-tabs {
  display: flex !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  padding: 4px !important;
  margin-bottom: 20px !important;
  gap: 4px !important;
  border: 1px solid #e2e8f0 !important;
}

.kebaberie-tab {
  flex: 1 !important;
  padding: 12px 16px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.kebaberie-tab:hover {
  background: rgba(220, 38, 38, 0.05) !important;
  color: #dc2626 !important;
}

.kebaberie-tab.active {
  background: white !important;
  color: #dc2626 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) !important;
}

.kebaberie-tab.active:hover {
  background: white !important;
  color: #dc2626 !important;
}

/* Schedule Content */
.kebaberie-schedule-content {
  margin-bottom: 20px;
}

.kebaberie-schedule-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.kebaberie-schedule-day:last-child {
  border-bottom: none;
}

.kebaberie-day-name {
  font-weight: 500;
  color: #374151;
  font-size: 13px;
}

.kebaberie-day-name.today {
  color: #000;
  font-weight: 700;
  font-size: 16px;
}

.kebaberie-day-hours {
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}

.kebaberie-day-hours.current {
  color: #056849;
  font-weight: 600;
}

/* Action Button */
.kebaberie-action-button {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.kebaberie-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.kebaberie-action-button:active {
  transform: translateY(0);
}

/* Animations - Reduced for performance */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

@keyframes widget-expand {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Performance optimizations for common elements */
.kebaberie-widget-collapsed,
.kebaberie-widget-expanded,
.kebaberie-status-indicator,
.kebaberie-tab,
.kebaberie-action-button {
  /* Force hardware acceleration only when needed */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Mobile bottom bar spacing - Enhanced UX with dynamic positioning support */
@media (max-width: 768px) {
  /* Base mobile positioning - will be overridden by dynamic JavaScript */
  #restaurant-status-widget,
  .restaurant-shortcode-widget {
    /* Default mobile positioning - can be overridden by admin settings */
  }
  
  .restaurant-widget-expanded {
    width: calc(100vw - 10px);
    border-radius: 12px 0 0 0; /* Only top-left rounded on mobile */
    border-right: none;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .restaurant-widget-collapsed {
    border-radius: 20px 0 0 0; /* Only top-left rounded on mobile */
    border-right: none;
    padding: 8px 14px 6px 14px;
    min-width: 140px;
    font-size: 13px;
  }
  
  .kebaberie-widget-bottom {
    font-size: 8px;
    gap: 10px;
  }
  
  .kebaberie-widget-header {
    padding: 12px 14px;
  }
  
  .kebaberie-widget-title {
    font-size: 14px;
    gap: 8px;
  }
  
  .kebaberie-logo {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .kebaberie-close-btn {
    width: 24px;
    height: 24px;
    top: 10px;
    right: 10px;
    font-size: 16px;
  }
  
  .kebaberie-widget-content {
    padding: 16px;
  }
  
  .kebaberie-status-section {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 10px;
  }
  
  .kebaberie-status-text {
    font-size: 13px;
  }
  
  .kebaberie-schedule-tabs {
    margin-bottom: 12px;
  }
  
  .kebaberie-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .kebaberie-schedule-content {
    margin-bottom: 16px;
  }
  
  .kebaberie-schedule-day {
    padding: 6px 0;
  }
  
  .kebaberie-day-name {
    font-size: 12px;
  }
  
  .kebaberie-day-hours {
    font-size: 12px;
  }
  
  .kebaberie-action-button {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* Extra Small Mobile - Widget */
@media (max-width: 380px) {
  #kebaberie-status-widget,
  .kebaberie-shortcode-widget {
    bottom: 60px !important;
  }
  
  .kebaberie-widget-expanded {
    width: calc(100vw - 5px);
    border-radius: 10px 0 0 0;
    max-height: 75vh;
  }
  
  .kebaberie-widget-collapsed {
    border-radius: 18px 0 0 0;
    padding: 7px 12px 5px 12px;
    min-width: 130px;
    font-size: 12px;
  }
  
  .kebaberie-widget-bottom {
    font-size: 7px;
    gap: 8px;
  }
  
  .kebaberie-status-text {
    font-size: 13px;
  }
  
  .kebaberie-widget-header {
    padding: 10px 12px;
  }
  
  .kebaberie-widget-title {
    font-size: 13px;
    gap: 6px;
  }
  
  .kebaberie-logo {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  
  .kebaberie-close-btn {
    width: 22px;
    height: 22px;
    top: 8px;
    right: 8px;
    font-size: 14px;
  }
  
  .kebaberie-widget-content {
    padding: 14px;
  }
  
  .kebaberie-status-section {
    padding: 10px;
    margin-bottom: 14px;
  }
  
  .kebaberie-status-text {
    font-size: 12px;
  }
  
  .kebaberie-tab {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .kebaberie-schedule-day {
    padding: 5px 0;
  }
  
  .kebaberie-day-name,
  .kebaberie-day-hours {
    font-size: 11px;
  }
  
  .kebaberie-action-button {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
  }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
  /* Ensure touch targets are at least 44px */
  .kebaberie-service-option {
    min-height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(10, 121, 104, 0.1);
    tap-highlight-color: rgba(10, 121, 104, 0.1);
  }
  
  .kebaberie-service-option:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .kebaberie-tab {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
    tap-highlight-color: rgba(220, 38, 38, 0.1);
  }
  
  .kebaberie-tab:active {
    transform: scale(0.98);
  }
  
  .kebaberie-close-btn,
  .kebaberie-popup-close {
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    tap-highlight-color: rgba(255, 255, 255, 0.1);
  }
  
  .kebaberie-close-btn:active,
  .kebaberie-popup-close:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  .kebaberie-action-button,
  .kebaberie-popup-button {
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
    tap-highlight-color: rgba(220, 38, 38, 0.1);
  }
  
  .kebaberie-action-button:active,
  .kebaberie-popup-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Smooth scrolling */
  .kebaberie-popup-content,
  .kebaberie-widget-expanded,
  .kebaberie-selector-options {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
  
  /* Prevent text selection on interactive elements */
  .kebaberie-service-option,
  .kebaberie-tab,
  .kebaberie-close-btn,
  .kebaberie-popup-close,
  .kebaberie-action-button,
  .kebaberie-popup-button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Safe area insets for newer phones */
  @supports (padding: max(0px)) {
    #kebaberie-status-widget,
    .kebaberie-shortcode-widget {
      bottom: max(70px, env(safe-area-inset-bottom, 70px)) !important;
      right: max(0px, env(safe-area-inset-right, 0px)) !important;
    }
    
    .kebaberie-popup {
      margin-bottom: max(5px, env(safe-area-inset-bottom, 5px));
      margin-left: max(5px, env(safe-area-inset-left, 5px));
      margin-right: max(5px, env(safe-area-inset-right, 5px));
    }
  }
}

/* Special handling for left positions */
.kebaberie-position-bottom-left .kebaberie-widget-collapsed,
.kebaberie-position-top-left .kebaberie-widget-collapsed {
  border-radius: 0 25px 25px 0; /* Rounded right, flat left */
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px 12px 20px;
}

.kebaberie-position-bottom-left .kebaberie-widget-expanded,
.kebaberie-position-top-left .kebaberie-widget-expanded {
  border-radius: 0 16px 16px 0; /* Rounded right, flat left */
  border-left: none;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .kebaberie-status-indicator,
  .kebaberie-status-icon {
    box-shadow: 0 0 0 1.5px rgba(16, 185, 129, 0.3);
  }
  
  .kebaberie-status-indicator.closed,
  .kebaberie-status-icon.closed {
    box-shadow: 0 0 0 1.5px rgba(16, 185, 129, 0.3);
  }
}

/* ==================== POPUP STYLES ==================== */

/* Popup Overlay */
.kebaberie-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Popup Container */
.kebaberie-popup {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 440px;
  width: 92%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: popupSlide 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

/* Popup Header */
.kebaberie-popup-header {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 24px 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kebaberie-popup-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='80' cy='40' r='1' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='40' cy='80' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.kebaberie-popup-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.kebaberie-popup-logo {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kebaberie-popup-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 8px;
  font-weight: 500;
}

.kebaberie-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.kebaberie-popup-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Popup Content */
.kebaberie-popup-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

/* Status Main - Disabled for better UX */
/*
.kebaberie-status-main {
  text-align: center;
  margin-bottom: 24px;
}

.kebaberie-status-main .kebaberie-status-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kebaberie-status-main .kebaberie-status-icon svg {
  width: 24px;
  height: 24px;
  color: #dc2626;
}

.kebaberie-status-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.kebaberie-status-subtitle {
  font-size: 14px;
  color: #6b7280;
}
*/

/* Services Grid */
.kebaberie-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.kebaberie-service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.kebaberie-service-card .kebaberie-service-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kebaberie-service-card .kebaberie-service-icon svg {
  width: 20px;
  height: 20px;
  color: #dc2626;
}

.kebaberie-service-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.kebaberie-service-status {
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  padding: 2px 8px;
  background: #fef2f2;
  border-radius: 6px;
  display: inline-block;
}

.kebaberie-service-status.open {
  color: #065f46;
  background: #d1fae5;
}

/* Info Grid */
.kebaberie-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.kebaberie-info-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 12px;
}

.kebaberie-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kebaberie-card-icon {
  width: 16px;
  height: 16px;
  color: #3b82f6;
}

.kebaberie-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
}

.kebaberie-card-content {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

/* Hours Card */
.kebaberie-hours-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.kebaberie-hours-list {
  margin-top: 8px;
}

.kebaberie-hours-item {
  padding: 4px 0;
  font-size: 13px;
  color: #0c4a6e;
  font-weight: 500;
  border-bottom: 1px solid rgba(125, 211, 252, 0.3);
}

.kebaberie-hours-item:last-child {
  border-bottom: none;
}

/* Custom Message */
.kebaberie-custom-message {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

/* Popup Button */
.kebaberie-popup-button {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
  min-width: 140px;
}

.kebaberie-popup-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.kebaberie-popup-button:active {
  transform: translateY(0);
}

/* Popup Animations */
@keyframes fadeIn {
  from { 
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes popupSlide {
  from { 
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  to { 
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Mobile Popup Responsive - Enhanced UX */
@media (max-width: 768px) {
  .kebaberie-popup {
    width: 98%;
    max-width: calc(100vw - 10px);
    max-height: 85vh;
    border-radius: 12px;
    margin: 5px;
  }
  
  .kebaberie-popup-header {
    padding: 16px 16px 12px;
  }
  
  .kebaberie-popup-title {
    font-size: 16px;
    gap: 8px;
  }
  
  .kebaberie-popup-logo {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .kebaberie-popup-subtitle {
    font-size: 13px;
    margin-top: 6px;
  }
  
  .kebaberie-popup-close {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
    font-size: 16px;
  }
  
  .kebaberie-popup-content {
    padding: 16px;
    max-height: calc(85vh - 100px);
  }
  
  .kebaberie-status-main {
    margin-bottom: 16px;
  }
  
  .kebaberie-status-main .kebaberie-status-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  
  .kebaberie-status-main .kebaberie-status-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .kebaberie-status-title {
    font-size: 16px;
    margin-bottom: 3px;
  }
  
  .kebaberie-status-subtitle {
    font-size: 13px;
  }
  
  .kebaberie-services-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .kebaberie-service-card {
    padding: 12px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
  }
  
  .kebaberie-service-card .kebaberie-service-icon {
    width: 35px;
    height: 35px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .kebaberie-service-card .kebaberie-service-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .kebaberie-service-info {
    flex: 1;
  }
  
  .kebaberie-service-title {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .kebaberie-service-status {
    font-size: 12px;
    padding: 2px 6px;
  }
  
  .kebaberie-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .kebaberie-info-card {
    padding: 10px;
  }
  
  .kebaberie-card-title {
    font-size: 11px;
  }
  
  .kebaberie-card-content {
    font-size: 13px;
  }
  
  .kebaberie-hours-card {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .kebaberie-hours-item {
    font-size: 12px;
    padding: 3px 0;
  }
  
  .kebaberie-custom-message {
    padding: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
  }
  
  .kebaberie-popup-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 6px;
  }
}

/* Extra Small Mobile - Popup */
@media (max-width: 380px) {
  .kebaberie-popup {
    width: 99%;
    max-width: calc(100vw - 5px);
    max-height: 80vh;
    border-radius: 10px;
    margin: 2px;
  }
  
  .kebaberie-popup-header {
    padding: 14px 14px 10px;
  }
  
  .kebaberie-popup-title {
    font-size: 15px;
    gap: 6px;
  }
  
  .kebaberie-popup-logo {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .kebaberie-popup-subtitle {
    font-size: 12px;
    margin-top: 4px;
  }
  
  .kebaberie-popup-close {
    width: 26px;
    height: 26px;
    top: 10px;
    right: 10px;
    font-size: 14px;
  }
  
  .kebaberie-popup-content {
    padding: 14px;
    max-height: calc(80vh - 90px);
  }
  
  .kebaberie-status-main {
    margin-bottom: 12px;
  }
  
  .kebaberie-status-main .kebaberie-status-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 6px;
  }
  
  .kebaberie-status-main .kebaberie-status-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .kebaberie-status-title {
    font-size: 15px;
    margin-bottom: 2px;
  }
  
  .kebaberie-status-subtitle {
    font-size: 12px;
  }
  
  .kebaberie-service-card {
    padding: 10px 8px;
    gap: 10px;
  }
  
  .kebaberie-service-card .kebaberie-service-icon {
    width: 30px;
    height: 30px;
  }
  
  .kebaberie-service-card .kebaberie-service-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .kebaberie-service-title {
    font-size: 13px;
  }
  
  .kebaberie-service-status {
    font-size: 11px;
    padding: 1px 5px;
  }
  
  .kebaberie-info-card {
    padding: 8px;
  }
  
  .kebaberie-card-header {
    gap: 6px;
    margin-bottom: 6px;
  }
  
  .kebaberie-card-icon {
    width: 14px;
    height: 14px;
  }
  
  .kebaberie-card-title {
    font-size: 10px;
  }
  
  .kebaberie-card-content {
    font-size: 12px;
  }
  
  .kebaberie-hours-card {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .kebaberie-hours-item {
    font-size: 11px;
    padding: 2px 0;
  }
  
  .kebaberie-custom-message {
    padding: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.3;
  }
  
  .kebaberie-popup-button {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 6px;
  }
}

/* Landscape Mobile - Popup */
@media (max-width: 768px) and (orientation: landscape) {
  .kebaberie-popup {
    max-height: 95vh;
    width: 95%;
  }
  
  .kebaberie-popup-header {
    padding: 12px 16px 10px;
  }
  
  .kebaberie-popup-content {
    max-height: calc(95vh - 80px);
    padding: 14px 16px;
  }
  
  .kebaberie-services-grid,
  .kebaberie-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .kebaberie-service-card {
    padding: 8px 6px;
    gap: 8px;
  }
  
  .kebaberie-service-card .kebaberie-service-icon {
    width: 30px;
    height: 30px;
  }
  
  .kebaberie-service-title {
    font-size: 12px;
  }
  
  .kebaberie-service-status {
    font-size: 10px;
  }
}

/* Popup Scrollbar */
.kebaberie-popup-content::-webkit-scrollbar {
  width: 6px;
}

.kebaberie-popup-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.kebaberie-popup-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.kebaberie-popup-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==================== END POPUP STYLES ==================== */

/* ========== CLEAN SERVICE SELECTOR STYLES ========== */

.kebaberie-service-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.kebaberie-service-selector {
    background: white;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUpSelector 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Header */
.kebaberie-selector-header {
    background: linear-gradient(135deg, var(--kebaberie-green) 0%, var(--kebaberie-green-dark) 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.kebaberie-selector-logo {
    font-size: 3rem;
    margin-bottom: 16px;
}

.kebaberie-selector-logo-img {
    width: 60px;
    height: 80px;
    margin-bottom: 16px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.kebaberie-selector-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white !important;
    line-height: 1.2;
}

.kebaberie-selector-header p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
    color: white !important;
}

/* Options Container */
.kebaberie-selector-options {
    padding: 32px 24px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Service Option Cards */
.kebaberie-service-option {
    background: #f8f9fa;
    border: 0;
    border-radius: 20px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kebaberie-service-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.15);
    background: #f8fffe;
}

.kebaberie-service-option.closed {
    background: #f1f3f4;
    opacity: 0.9;
}

.kebaberie-service-option.closed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 163, 175, 0.15);
    background: #f5f5f5;
    opacity: 1;
}

/* Service Icon */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--kebaberie-green) 0%, var(--kebaberie-green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.kebaberie-service-option:hover .service-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.kebaberie-service-option.closed .service-icon {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

/* Service Info */
.kebaberie-service-option h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.service-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Status Badge */
.service-status {
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--kebaberie-primary);
}

.service-status.open {
    color: var(--kebaberie-green);
}

.service-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Availability Info */
.service-availability {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kebaberie-orange);
    margin-bottom: 8px;
}

.service-availability.open {
    color: var(--kebaberie-green);
}

.service-availability.closed {
    color: var(--kebaberie-orange);
}

/* Next Opening */
.service-next-opening {
    font-size: 0.75rem;
    color: var(--kebaberie-orange);
    font-weight: 600;
    font-style: italic;
    text-align: center;
}

.service-next-opening.open {
    color: var(--kebaberie-green);
}

.service-next-opening.closed {
    color: var(--kebaberie-orange);
}

/* Action Indicator */
.service-action {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--kebaberie-green);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.kebaberie-service-option:hover .service-action {
    opacity: 1;
}

.service-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Footer */
.kebaberie-selector-footer {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid rgba(5, 150, 105, 0.1);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--kebaberie-green);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--kebaberie-green);
    fill: none;
    stroke-width: 2;
}

.kebaberie-selector-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpSelector {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kebaberie-service-selector {
        width: 98%;
        max-width: calc(100vw - 18px);
        max-height: 100vh;
        margin: 20px;
        border-radius: 15px;
    }
    
    .kebaberie-selector-header {
        padding: 32px 24px 24px;
    }
    
    .kebaberie-selector-header h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .kebaberie-selector-header p {
        font-size: 0.9rem;
    }
    
    .kebaberie-selector-options {
        grid-template-columns: 1fr;
        padding: 24px 20px 20px;
        gap: 12px;
    }
    
    .kebaberie-service-option {
        padding: 20px 16px;
        min-height: 140px;
        border-radius: 16px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .service-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .kebaberie-service-option h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .service-description {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .service-status {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin-bottom: 6px;
    }
    
    .service-availability {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .service-next-opening {
        font-size: 0.7rem;
    }
    
    .kebaberie-selector-footer {
        padding: 16px 20px;
    }
    
    .info-badge {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
    
    .kebaberie-selector-footer p {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .kebaberie-service-selector {
        width: 98%;
        border-radius: 16px;
    }
    
    .kebaberie-selector-header {
        padding: 28px 20px 20px;
    }
    
    .kebaberie-selector-header h2 {
        font-size: 1.3rem;
    }
    
    .kebaberie-selector-options {
        padding: 20px 16px 16px;
        gap: 10px;
    }
    
    .kebaberie-service-option {
        padding: 18px 14px;
        min-height: 120px;
    }
    
    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }
    
    .service-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .kebaberie-service-option h3 {
        font-size: 0.95rem;
    }
    
    .service-description {
        font-size: 0.75rem;
    }
    
    .service-status {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .service-availability {
        font-size: 0.7rem;
    }
    
    .service-next-opening {
        font-size: 0.65rem;
    }
}

/* ========== END CLEAN SERVICE SELECTOR STYLES ========== */

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .kebaberie-widget-expanded {
    background: #1f2937;
    border-color: #374151;
  }
  
  .kebaberie-widget-content {
    color: #f9fafb;
  }
  
  .kebaberie-status-section {
    background: #374151;
    border-color: #4b5563;
  }
  
  .kebaberie-status-text {
    color: #f9fafb;
  }
  
  .kebaberie-schedule-tabs {
    background: #374151;
  }
  
  .kebaberie-tab {
    color: #9ca3af;
  }
  
  .kebaberie-tab.active {
    background: #1f2937;
    color: #dc2626;
  }
  
  .kebaberie-day-name {
    color: #e5e7eb;
  }
  
  .kebaberie-day-hours {
    color: #9ca3af;
  }
  
  /* Dark mode for popup */
  .kebaberie-popup {
    background: #1f2937;
    border: 1px solid #374151;
  }
  
  .kebaberie-popup-content {
    color: #f9fafb;
  }
  
  .kebaberie-status-title {
    color: #f9fafb;
  }
  
  .kebaberie-service-card {
    background: #374151;
    border-color: #4b5563;
  }
  
  .kebaberie-service-title {
    color: #e5e7eb;
  }
  
  .kebaberie-info-card {
    background: #374151;
    border-color: #4b5563;
  }
  
  .kebaberie-card-title {
    color: #93c5fd;
  }
  
  .kebaberie-card-content {
    color: #dbeafe;
  }
  
  .kebaberie-hours-card {
    background: #374151;
    border-color: #4b5563;
  }
  
  .kebaberie-hours-item {
    color: #7dd3fc;
  }
  
  .kebaberie-custom-message {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
  }
}

/* Schedule Loading and Error States - Improved */
.kebaberie-schedule-loading {
  text-align: center !important;
  padding: 20px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: italic !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  margin: 10px 0 !important;
  animation: pulse 2s infinite !important;
}

.kebaberie-schedule-loading-retry {
  text-align: center !important;
  padding: 20px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  margin: 10px 0 !important;
}

.kebaberie-loading-spinner {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-top: 2px solid white !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
}

.kebaberie-schedule-error {
  text-align: center !important;
  padding: 20px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 8px !important;
  margin: 10px 0 !important;
}

.kebaberie-error-message {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #fca5a5 !important;
  margin-bottom: 12px !important;
  font-weight: 500 !important;
}

.kebaberie-error-message svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #ef4444 !important;
}

.kebaberie-retry-btn {
  background: linear-gradient(135deg, var(--kebaberie-primary) 0%, var(--kebaberie-primary-dark) 100%) !important;
  color: white !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

.kebaberie-retry-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3) !important;
  background: var(--kebaberie-primary-dark) !important;
}

.kebaberie-retry-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

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

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Better visibility for debug logs */
.kebaberie-debug-info {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  margin: 5px 0 !important;
  font-family: monospace !important;
}

/* Force hide original loading message if it gets stuck */
.kebaberie-schedule-content .kebaberie-schedule-loading[style*="display: none"] {
  display: none !important;
}