/* LMS Laundry Scheduler Plugin Styles */
.lsched-form {
  max-width: 500px;
  margin: 0 auto;
}

.lsched-form * {
  box-sizing: border-box;
}

/* Form Headings with Orange Divider */
.lsched-form h2,
.lsched-addresses-section h2,
.lsched-preferences-section h2,
.lsched-orders-container h2,
.lsched-payment-methods-container h2,
.lsched-payment-history-container h2 {
  padding-bottom: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e67e22 !important;
  color: #333;
}

.lsched-form h3,
.lsched-preferences-section h3 {
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e67e22;
  color: #333;
}

/* City Autocomplete Styles */
.lsched-autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.lsched-autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.lsched-autocomplete-item:last-child {
  border-bottom: none;
}

.lsched-autocomplete-item:hover,
.lsched-autocomplete-item.selected {
  background-color: #e7f3ff;
  color: #0066cc;
}

.lsched-autocomplete-item strong {
  display: block;
  color: #333;
  font-weight: 600;
}

.lsched-autocomplete-item small {
  color: #666;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.lsched-autocomplete-item:hover strong,
.lsched-autocomplete-item.selected strong {
  color: #0066cc;
}

.lsched-city-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1001;
  margin-top: 5px;
  max-width: 250px;
  word-wrap: break-word;
}

.lsched-city-tooltip:before {
  content: '';
  position: absolute;
  top: -5px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
}

/* Position relative for city input containers */
.lsched-form label + input[name="city"] {
  position: relative;
}

.lsched-form > div:has(input[name="city"]) {
  position: relative;
}

/* Modern Icon Action Styles */
.lsched-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #6c757d;
  position: relative;
}

.lsched-icon-action:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.04);
}

.lsched-icon-action:active {
  transform: scale(1.05);
}

.lsched-icon-action .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  transition: color 0.2s ease;
}

/* Edit Icon */
.lsched-icon-edit {
  color: #4CAF50;
}

.lsched-icon-edit:hover {
  background: rgba(76, 175, 80, 0.1);
  color: #2E7D32;
}

/* Delete Icon */
.lsched-icon-delete {
  color: #f44336;
}

.lsched-icon-delete:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

/* Address table action column styling */
.lsched-table td:last-child {
  white-space: nowrap;
  text-align: center;
  min-width: 80px;
  padding: 12px 8px;
}

/* Checkbox Styling */
.lsched-checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 8px;
}

.lsched-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border: 2px solid #cbd5e0;
  border-radius: 0; /* Square shape */
  background-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
  padding: 0 !important;
  align-self: center;
}

.lsched-checkbox:hover {
  border-color: #4a5568;
}

.lsched-checkbox:checked {
  background-color: #2196F3;
  border-color: #2196F3;
}

.lsched-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lsched-checkbox:focus {
  outline: 2px solid #2196F3;
  outline-offset: 2px;
}

.lsched-checkbox-label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  user-select: none;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.4;
}
.lsched-dashboard {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Dashboard Container */
.lsched-dashboard-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Tab Navigation */
.lsched-nav-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e67e22;
  overflow-x: auto;
}

.lsched-tab-btn {
  background: none;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 100px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.lsched-tab-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.lsched-tab-btn.active {
  background: #fff;
  color: #1976d2;
  border-bottom-color: #1976d2;
}

.lsched-tab-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.lsched-tab-text {
  font-weight: 500;
}

/* Tab Content */
.lsched-tab-content {
  padding: 30px;
}

.lsched-tab-pane {
  display: none !important;
}

.lsched-tab-pane.active {
  display: block !important;
}

/* Overview Section */
.lsched-overview-section h2 {
  margin-bottom: 30px;
  color: #333;
}

.lsched-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.lsched-stat-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.lsched-stat-card .stat-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.lsched-stat-card .stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 5px;
}

.lsched-stat-card .stat-label {
  color: #6c757d;
  font-weight: 500;
}

/* Next Pickup Banner */
.lsched-next-pickup-banner {
  background: none;
  border: 1px solid #ff6600;
  color: #333;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.1);
}

.lsched-next-pickup-banner .next-pickup-icon {
  font-size: 48px;
  line-height: 1;
  color: #2196F3;
}

.lsched-next-pickup-banner .next-pickup-icon .dashicons {
  width: 48px;
  height: 48px;
  font-size: 48px;
}

.lsched-next-pickup-banner .next-pickup-content {
  flex: 1;
}

.lsched-next-pickup-banner .next-pickup-label {
  font-size: 14px;
  color: #ff6600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.lsched-next-pickup-banner .next-pickup-date {
  font-size: 24px;
  font-weight: 700;
  color: #2196F3;
  margin-bottom: 8px;
}

.lsched-next-pickup-banner .next-pickup-message {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Quick Actions */
.lsched-quick-actions {
  margin-bottom: 30px;
}

.lsched-quick-actions h3 {
  margin-bottom: 20px;
  color: #333;
}

.lsched-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Recent Orders Preview */
.lsched-recent-orders h3 {
  margin-bottom: 20px;
  color: #333;
}

.lsched-orders-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.lsched-order-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.lsched-order-preview:last-child {
  border-bottom: none;
}

.lsched-order-preview .order-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lsched-order-preview .order-date {
  color: #6c757d;
  font-size: 0.9em;
}

.view-all-orders {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

/* Base button styles moved to theme */

/* Disabled state handled by theme */

/* Table Styles */
.lsched-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px 0;
  padding: 0;
  table-layout: auto;
}

/* Table container to handle overflow */
.lsched-table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Allow tables to be responsive and prevent shifting */
.lsched-form .lsched-table {
  margin: 0;
  max-width: none;
  width: 100%;
  min-width: 600px; /* Ensure table has enough space */
}

/* Allow table containers to use full width */
.lsched-form .lsched-table-container {
  max-width: none;
  width: 100%;
}

/* Schedule form within orders tab */
.lsched-schedule-form {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e67e22;
}

.lsched-schedule-form .lsched-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Remove form width constraints in dashboard context */
.lsched-dashboard .lsched-form {
  max-width: none;
}

/* Wrap tables in overflow container for horizontal scrolling */
.lsched-form h3 + .lsched-table {
  margin: 0;
}

/* Auto-wrap tables that don't already have a container */
.lsched-form .lsched-table:not(.lsched-table-wrapped) {
  display: table;
  table-layout: auto;
}

/* On smaller screens, enable horizontal scrolling */
@media (max-width: 768px) {
  .lsched-form .lsched-table {
    min-width: 500px; /* Maintain minimum readable width */
    width: auto;
  }
  
  /* Ensure the container enables scrolling */
  .lsched-table-container {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
}

.lsched-table th,
.lsched-table td {
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: left;
}
.lsched-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

/* Form Styles */
.lsched-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
}

.lsched-form label small {
  font-weight: normal;
  color: #6c757d;
  font-style: italic;
}

.lsched-form input:not([type="checkbox"]),
.lsched-form select,
.lsched-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.lsched-form input:focus,
.lsched-form select:focus,
.lsched-form textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* Date picker specific styling */
.lsched-form input[type="date"] {
  position: relative;
}

.lsched-form input[type="date"]:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.lsched-date-helper {
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
  font-style: italic;
}

/* jQuery UI Datepicker Enhancements */
.lsched-form input[name="pickup_date"] {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
  margin-bottom: 5px;
}

.lsched-form input[name="pickup_date"]:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* jQuery UI Datepicker custom styles */
.ui-datepicker {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #e9ecef !important;
  padding: 10px !important;
  z-index: 10000 !important; /* Ensure datepicker appears above modals (z-index: 1000) */
}

.ui-datepicker .ui-datepicker-header {
  background: #1976d2 !important;
  color: white !important;
  border: none !important;
  border-radius: 4px 4px 0 0 !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: white !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.ui-datepicker .ui-datepicker-title {
  color: white !important;
  font-weight: 600 !important;
}

.ui-datepicker td {
  border: none !important;
  padding: 2px !important;
}

.ui-datepicker .ui-state-default {
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  color: #495057 !important;
  text-align: center !important;
  padding: 6px !important;
  border-radius: 4px !important;
}

.ui-datepicker .ui-state-hover {
  background: #e9ecef !important;
  border-color: #adb5bd !important;
}

.ui-datepicker .ui-state-active {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
  color: white !important;
}

.ui-datepicker .ui-state-disabled {
  background: #f8f9fa !important;
  color: #6c757d !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.ui-datepicker .weekend {
  background: #fff3cd !important;
  border-color: #ffeaa7 !important;
}

.ui-datepicker .unavailable {
  background: #f8d7da !important;
  border-color: #f5c6cb !important;
}

.ui-datepicker .same-day-blocked {
  background: #d1ecf1 !important;
  border-color: #bee5eb !important;
}

/* Login Section Styles */
.lsched-login-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.lsched-auth-container {
  position: relative;
}

.lsched-auth-panel {
  display: none;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-in;
}

.lsched-auth-panel.active {
  display: block;
}

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

.lsched-auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.lsched-auth-header h2 {
  color: #1976d2;
  margin-bottom: 10px;
  font-size: 24px;
}

.lsched-auth-header p {
  color: #6c757d;
  font-size: 14px;
}

.lsched-auth-form {
  margin-bottom: 20px;
}

.lsched-auth-form .lms-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.lsched-auth-form .lms-form h2 {
  display: none;
}

.lsched-auth-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.lsched-auth-footer p {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.lsched-auth-footer a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 600;
}

.lsched-auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .lsched-auth-panel {
    padding: 30px 20px;
  }
}

/* Login Required Section */
.lsched-login-required {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
}

.lsched-login-required h3 {
  color: #495057;
  margin-bottom: 10px;
  font-size: 18px;
}

.lsched-login-required p {
  color: #6c757d;
  margin-bottom: 20px;
}

/* LMS Login Form Integration */
.lsched-login-required .lms-login-form {
  margin-top: 15px;
}

.lsched-login-required .lms-login-form input[type="text"],
.lsched-login-required .lms-login-form input[type="email"],
.lsched-login-required .lms-login-form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.lsched-login-required .lms-login-form button,
.lsched-login-required .lms-login-form input[type="submit"] {
  width: 100%;
  padding: 12px 20px;
  background: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.lsched-login-required .lms-login-form button:hover,
.lsched-login-required .lms-login-form input[type="submit"]:hover {
  background: #1565c0;
}

/* Registration Toggle */
.lsched-registration-toggle {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e67e22;
}

.lsched-registration-toggle a {
  color: #1976d2;
  text-decoration: none;
  font-size: 14px;
}

.lsched-registration-toggle a:hover {
  text-decoration: underline;
}

/* Order Action Buttons */
.lsched-action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Action Links */
.lsched-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #007cba;
  text-decoration: none;
  font-size: 14px;
}

.lsched-action-link:hover {
  background-color: #f8f9fa;
  color: #005a87;
  text-decoration: underline;
}

.lsched-action-link .lsched-icon {
  font-size: 16px;
}

.lsched-btn-edit {
  background: #28a745 !important;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  min-width: 70px;
}

.lsched-btn-edit:hover {
  background: #218838 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lsched-btn-delete {
  background: #dc3545 !important;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.lsched-btn-delete:hover {
  background: #c82333 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lsched-icon {
  font-size: 14px;
  display: inline-block;
}

.lsched-btn-text {
  font-weight: 500;
}

/* View Button */
.lsched-btn-view {
  background: #17a2b8 !important;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  min-width: 70px;
}

.lsched-btn-view:hover {
  background: #138496 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Status Badge */
.lsched-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #dee2e6;
}

/* Status Badge Variations */
.lsched-status-scheduled {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.lsched-status-in_progress {
  background: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.lsched-status-picked_up {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.lsched-status-completed {
  background: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

/* Order Edit Modal */
.lsched-modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

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

.lsched-modal-content {
  background-color: #fff;
  margin: 5% auto;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

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

.lsched-modal-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #e67e22;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lsched-modal-header h3 {
  margin: 0;
  color: #1976d2;
  font-size: 18px;
}

.lsched-modal-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.lsched-modal-close:hover,
.lsched-modal-close:focus {
  color: #000;
}

.lsched-modal-body {
  padding: 25px;
}

.lsched-modal-body label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
}

.lsched-modal-body input,
.lsched-modal-body select,
.lsched-modal-body textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.lsched-modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.lsched-modal-actions .lsched-btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* View Order Modal */
.lsched-view-modal .lsched-modal-content {
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lsched-view-modal .lsched-modal-header {
  flex-shrink: 0;
}

.lsched-view-modal .lsched-modal-body {
  flex: 1;
  overflow-y: auto;
  max-height: calc(90vh - 120px); /* Account for header and actions */
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

/* Webkit scrollbar styling */
.lsched-view-modal .lsched-modal-body::-webkit-scrollbar {
  width: 8px;
}

.lsched-view-modal .lsched-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.lsched-view-modal .lsched-modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.lsched-view-modal .lsched-modal-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.lsched-view-modal .lsched-modal-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 15px 25px;
  border-top: 1px solid #e67e22;
  background: #f8f9fa;
}

.lsched-detail-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #17a2b8;
}

.lsched-detail-section h4 {
  margin: 0 0 15px 0;
  color: #17a2b8;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lsched-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.lsched-detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lsched-detail-item.full-width {
  grid-column: 1 / -1;
}

.lsched-detail-item label {
  font-weight: 600;
  color: #495057;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lsched-detail-item span {
  color: #212529;
  font-size: 14px;
}

.lsched-status-indicator {
  padding: 4px 8px;
  border-radius: 12px;
  background: #28a745;
  color: white;
  font-size: 12px !important;
  font-weight: 500;
  display: inline-block;
}

.lsched-instructions-box {
  background: white;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  font-style: italic;
  color: #6c757d;
  line-height: 1.5;
}

.lsched-address-box {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.lsched-address-type {
  background: #17a2b8;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.lsched-address-line {
  margin: 5px 0;
  font-size: 14px;
  color: #212529;
}

.lsched-contact-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e67e22;
  font-size: 13px;
  color: #6c757d;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
  .lsched-modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .lsched-modal-header,
  .lsched-modal-body {
    padding: 20px;
  }

  .lsched-modal-actions {
    flex-direction: column;
  }

  .lsched-modal-actions .lsched-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile responsiveness for view modal */
@media (max-width: 768px) {
  .lsched-view-modal .lsched-modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 85vh;
  }

  .lsched-view-modal .lsched-modal-body {
    max-height: calc(85vh - 120px);
    padding: 15px;
  }

  .lsched-view-modal .lsched-modal-header {
    padding: 15px;
  }

  .lsched-view-modal .lsched-modal-actions {
    padding: 15px;
  }

  .lsched-detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lsched-detail-section {
    margin-bottom: 15px;
    padding: 15px;
  }

  .lsched-action-buttons {
    gap: 5px;
  }

  .lsched-btn-view {
    min-width: 60px;
    padding: 6px 8px;
  }
}

/* Preference Profiles Styles */
.lsched-profiles-section {
  margin-bottom: 30px;
}

.lsched-profiles-header,
.lsched-addresses-header,
.lsched-orders-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

.lsched-btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.lsched-profiles-list {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.lsched-profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
  transition: background-color 0.2s ease;
}

.lsched-profile-item:last-child {
  border-bottom: none;
}

.lsched-profile-item:hover {
  background-color: #f8f9fa;
}

.profile-info h4 {
  margin: 0 0 5px 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.default-badge {
  background: #28a745;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
}

.profile-summary {
  margin: 0 0 5px 0;
  color: #666;
  font-size: 14px;
}

.last-used {
  color: #999;
  font-size: 12px;
}

.profile-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lsched-btn-link {
  background: none;
  border: none;
  color: #1976d2;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  padding: 0;
}

.lsched-btn-link:hover {
  color: #1565c0;
}

.lsched-profile-form {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #f8f9fa;
  margin-top: 20px;
}

.lsched-profile-form h3 {
  margin-top: 0;
  color: #333;
}

.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Button secondary styles moved to theme */

.no-profiles {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.no-profiles-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 15px;
  margin: 15px 0;
  color: #856404;
}

.no-profiles-notice a {
  color: #1976d2;
  text-decoration: none;
}

/* Mobile Responsive Tables (Orders and Addresses) */
@media (max-width: 768px) {
  /* Reset table container for mobile card layout */
  .lsched-table-container {
    overflow-x: visible;
    margin: 0 -20px 20px -20px;
    padding: 0 20px;
  }
  
  /* Hide table headers on mobile */
  .lsched-orders-container table thead,
  .lsched-form .lsched-table thead {
    display: none;
  }
  
  /* Convert table rows to cards */
  .lsched-orders-container table,
  .lsched-orders-container tbody,
  .lsched-orders-container tr,
  .lsched-orders-container td,
  .lsched-form .lsched-table,
  .lsched-form .lsched-table tbody,
  .lsched-form .lsched-table tr,
  .lsched-form .lsched-table td {
    display: block;
    width: 100%;
    min-width: auto;
  }
  
  .lsched-orders-container tr,
  .lsched-form .lsched-table tr {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .lsched-orders-container td,
  .lsched-form .lsched-table td {
    padding: 10px 0;
    border: none;
    display: block;
    text-align: left;
  }
  
  .lsched-orders-container td:before,
  .lsched-form .lsched-table td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #666;
    font-size: 13px;
    display: inline;
    margin-right: 5px;
  }
  
  /* Special styling for status badges on mobile */
  .lsched-orders-container .lsched-status-badge {
    display: inline-block;
    margin-left: 0;
  }
  
  /* Action buttons on mobile */
  .lsched-orders-container .lsched-action-buttons {
    justify-content: flex-start;
    padding-top: 10px;
    margin-left: 0;
  }
  
  .lsched-orders-container td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  /* Fix for action links on mobile */
  .lsched-orders-container .lsched-action-link {
    padding: 4px 8px;
    font-size: 13px;
  }
  
  /* Add some spacing between rows in card view */
  .lsched-orders-container td + td {
    padding-top: 12px;
  }
  
  /* Style the first td to not have top padding */
  .lsched-orders-container td:first-child {
    padding-top: 0;
  }
  
  /* Special handling for Actions field - put label above */
  .lsched-orders-container td[data-label="Actions"]:before,
  .lsched-form td[data-label="Actions"]:before {
    display: block;
    margin-bottom: 8px;
  }
  
  /* Address table icon actions on mobile */
  .lsched-form .lsched-icon-action {
    display: inline-block;
    margin-right: 15px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .lsched-form .lsched-icon-action:hover {
    background: #e9ecef;
  }
}

/* Address column specific - show abbreviated on smaller screens */
@media (max-width: 992px) {
  .lsched-address-full {
    display: none;
  }
  
  .lsched-address-short {
    display: inline;
  }
}

@media (min-width: 993px) {
  .lsched-address-full {
    display: inline;
  }
  
  .lsched-address-short {
    display: none;
  }
}

.no-profiles-notice a:hover {
  text-decoration: underline;
}

.profile-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin: 15px 0;
}

.profile-preview h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.profile-preview ul {
  margin: 0;
  padding-left: 20px;
}

.profile-preview li {
  margin-bottom: 5px;
  color: #666;
}

/* Mobile responsive for profiles */
@media (max-width: 768px) {
  .lsched-profiles-header,
  .lsched-addresses-header,
  .lsched-orders-header {
    justify-content: center;
  }

  .lsched-profile-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-actions {
    align-self: flex-end;
  }

  .form-buttons {
    flex-direction: column;
  }
}

/* Edit Order Modal */
.lsched-edit-modal .lsched-modal-content {
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lsched-edit-modal .lsched-modal-header {
  flex-shrink: 0;
}

.lsched-edit-modal .lsched-modal-body {
  flex: 1;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  padding: 25px;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

/* Slide Toggle Styles */
.lsched-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

.lsched-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none !important; /* Hide the actual checkbox but keep it functional */
}

.lsched-toggle-slider {
  position: absolute;
  cursor: pointer !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s ease;
  pointer-events: auto !important; /* Force slider to be clickable */
}

.lsched-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lsched-toggle input:checked + .lsched-toggle-slider {
  background-color: #007cba;
}

.lsched-toggle input:checked + .lsched-toggle-slider:before {
  transform: translateX(26px);
}

.lsched-toggle input:disabled + .lsched-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #e9ecef !important;
}

.lsched-toggle input:disabled:checked + .lsched-toggle-slider {
  background-color: #5a9ac4 !important; /* Muted blue to show it's checked but disabled */
}

.lsched-toggle input:disabled:checked + .lsched-toggle-slider:before {
  transform: translateX(26px); /* Keep slider in ON position */
}

.lsched-toggle input:disabled + .lsched-toggle-slider:before {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lsched-toggle-label:has(input:disabled) {
  opacity: 0.8;
}

.lsched-toggle-label:has(input:disabled):hover .lsched-toggle-slider {
  background-color: #e9ecef !important;
}

.lsched-toggle-label:has(input:disabled:checked):hover .lsched-toggle-slider {
  background-color: #5a9ac4 !important; /* Keep muted blue on hover */
}

.lsched-toggle-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer !important;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  pointer-events: auto !important;
}

.lsched-toggle-label:hover .lsched-toggle-slider {
  background-color: #bbb;
}

.lsched-toggle-label:hover .lsched-toggle input:checked + .lsched-toggle-slider {
  background-color: #005a87;
}

/* Form toggle group styling */
.lsched-toggle-group {
  margin: 15px 0;
}

/* One-Click Schedule Widget Styles */
.lsched-oneclick-container {
  max-width: 600px;
  margin: 0 auto;
}

.lsched-oneclick-widget {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #007cba;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
  transition: all 0.3s ease;
}

.lsched-oneclick-widget:hover {
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.15);
}

.lsched-oneclick-header {
  text-align: center;
  margin-bottom: 20px;
}

.lsched-oneclick-header h3 {
  margin: 0 0 5px 0;
  color: #007cba;
  font-size: 24px;
  font-weight: 600;
}

.lsched-oneclick-subtitle {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.lsched-oneclick-preview {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.lsched-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.lsched-preview-item:last-child {
  border-bottom: none;
}

.lsched-preview-label {
  font-weight: 500;
  color: #555;
  flex: 0 0 auto;
  margin-right: 15px;
}

.lsched-preview-value {
  color: #333;
  text-align: right;
  flex: 1;
  font-weight: 500;
}

.lsched-oneclick-actions {
  text-align: center;
  margin-top: 25px;
}

.lsched-btn-large {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  min-width: 200px;
  transition: all 0.3s ease;
}

/* Button primary styles moved to theme */

.lsched-oneclick-icon {
  margin-right: 8px;
  font-size: 20px;
}

.lsched-oneclick-alternative {
  margin-top: 15px;
}

.lsched-oneclick-alternative small {
  color: #666;
}

.lsched-oneclick-alternative a {
  color: #007cba;
  text-decoration: none;
}

.lsched-oneclick-alternative a:hover {
  text-decoration: underline;
}

.lsched-oneclick-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

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

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

.lsched-oneclick-notice {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lsched-notice-warning {
  border-left: 4px solid #ffc107;
}

.lsched-notice-error {
  border-left: 4px solid #dc3545;
}

.lsched-notice-info {
  border-left: 4px solid #17a2b8;
  background-color: #d1ecf1;
}

.lsched-oneclick-notice h3 {
  margin-top: 0;
  color: #333;
}

.lsched-oneclick-notice p {
  margin-bottom: 20px;
  color: #666;
}

/* Mobile responsive for one-click widget */
@media (max-width: 768px) {
  .lsched-oneclick-widget {
    padding: 20px;
    margin: 0 10px;
  }
  
  .lsched-preview-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .lsched-preview-label {
    margin-bottom: 5px;
    margin-right: 0;
  }
  
  .lsched-preview-value {
    text-align: left;
  }
  
  .lsched-btn-large {
    padding: 12px 30px;
    font-size: 16px;
    min-width: auto;
    width: 100%;
  }
}

/* Payments Tab Styles */
.lsched-payments-container {
  max-width: none;
}

.lsched-payments-section {
  margin-bottom: 40px;
}

.lsched-payments-section h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 10px;
}

.lsched-payment-methods-content,
.lsched-payment-history-content {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  min-height: 100px;
}

.lsched-payments-container em {
  color: #666;
  font-style: italic;
}

/* One-Click Schedule integration in dashboard */
.lsched-oneclick-section {
  margin: 30px 0;
}

.lsched-oneclick-section h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 20px;
}

.lsched-oneclick-widget-container .lsched-oneclick-container {
  max-width: none; /* Remove max-width constraint in dashboard */
}

.lsched-oneclick-widget-container .lsched-oneclick-widget {
  margin: 0; /* Remove auto margins in dashboard */
}

/* Webkit scrollbar styling for edit modal */
.lsched-edit-modal .lsched-modal-body::-webkit-scrollbar {
  width: 8px;
}

.lsched-edit-modal .lsched-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.lsched-edit-modal .lsched-modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.lsched-edit-modal .lsched-modal-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.lsched-edit-modal .lsched-modal-actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 15px 25px;
  border-top: 1px solid #e67e22;
  background: #f8f9fa;
}

/* Edit modal form styling */
.lsched-edit-modal .lsched-form {
  max-width: none;
  margin: 0;
}

.lsched-edit-modal .lsched-form h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #1976d2;
  font-size: 20px;
  text-align: center;
}

.lsched-edit-modal .lsched-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
}

.lsched-edit-modal .lsched-form input:not([type="checkbox"]),
.lsched-edit-modal .lsched-form select,
.lsched-edit-modal .lsched-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.lsched-edit-modal .lsched-form textarea {
  resize: vertical;
  min-height: 80px;
}

.lsched-edit-modal .lsched-date-helper {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.lsched-edit-modal .profile-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  margin-top: 10px;
}

.lsched-edit-modal .profile-preview h4 {
  margin: 0 0 10px 0;
  color: #1976d2;
  font-size: 16px;
}

.lsched-edit-modal .profile-preview ul {
  margin: 0;
  padding-left: 20px;
}

.lsched-edit-modal .profile-preview li {
  margin-bottom: 5px;
  font-size: 14px;
}

.lsched-edit-modal .no-profiles-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

.lsched-edit-modal .no-profiles-notice p {
  margin: 0;
  color: #856404;
}

/* Mobile responsiveness for edit modal */
@media (max-width: 768px) {
  .lsched-edit-modal .lsched-modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 85vh;
  }

  .lsched-edit-modal .lsched-modal-body {
    max-height: calc(85vh - 120px);
    padding: 15px;
  }

  .lsched-edit-modal .lsched-modal-header {
    padding: 15px;
  }

  .lsched-edit-modal .lsched-modal-actions {
    padding: 15px;
  }
}

/* Custom Select Dropdown Styling */
.lsched-custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.lsched-select-display {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  position: relative;
  min-height: 20px;
  box-sizing: border-box;
}

.lsched-select-display:after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 12px;
}

.lsched-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.lsched-select-dropdown.active {
  display: block;
}

.lsched-option {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.lsched-option:last-child {
  border-bottom: none;
}

.lsched-option:hover {
  background-color: #f8f9fa;
}

.lsched-option.selected {
  background-color: #e3f2fd;
  color: #1976d2;
}

/* Add New Option Styling - Now fully customizable */
.lsched-add-new-option {
  background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%) !important;
  color: #0066cc !important;
  font-weight: 700 !important;
  font-style: italic !important;
  text-decoration: underline !important;
  position: relative;
}

.lsched-add-new-option:before {
  content: "🔗";
  margin-right: 5px;
}

.lsched-add-new-option:hover {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
  color: #ffffff !important;
  text-decoration: underline !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lsched-add-new-option:hover:before {
  content: "➕";
}

/* Address Helper Message */
.lsched-address-helper {
  border-radius: 6px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-in;
}

/* Preference Helper Message */
.lsched-preference-helper {
  border-radius: 6px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-in;
}

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

/* Success message for address creation */
.lsched-address-success {
  background: #d4edda;
  border-left: 4px solid #28a745;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  color: #155724;
  font-weight: 500;
}

/* Mobile Hamburger Menu Styles */
.lsched-mobile-menu-header {
  display: none;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e67e22;
  align-items: center;
  justify-content: space-between;
}

.lsched-hamburger-btn {
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lsched-hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.lsched-hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.lsched-hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.lsched-hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Tab Navigation Styles */
.lsched-mobile-tab-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 2px solid #e67e22;
}

.lsched-mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  min-height: 80px;
}

.lsched-mobile-tab-btn .lsched-tab-icon {
  font-size: 24px;
  line-height: 1;
}

.lsched-mobile-tab-btn .lsched-tab-text {
  text-align: center;
  line-height: 1.2;
}

.lsched-mobile-tab-btn:hover,
.lsched-mobile-tab-btn:focus {
  border-color: #e67e22;
  background: #fff8f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  outline: none;
}

.lsched-mobile-tab-btn.active {
  background: #e67e22;
  border-color: #d35400;
  color: white;
  font-weight: 600;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Show mobile button grid on mobile devices */
  .lsched-mobile-tab-nav {
    display: grid;
  }

  /* Hide desktop tabs on mobile - use button grid instead */
  .lsched-nav-tabs {
    display: none;
  }

  /* Ensure dashboard container doesn't interfere with layout */
  .lsched-dashboard-container {
    position: relative;
    overflow: visible;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ensure tab content is visible on mobile */
@media (max-width: 768px) {
  .lsched-tab-content {
    padding: 20px 10px;
  }
  
  .lsched-tab-pane {
    padding: 0;
  }
  
  /* Adjust dashboard container on mobile */
  .lsched-dashboard-container {
    margin: 0;
    padding: 0;
  }
  
  /* Make tables responsive on mobile */
  .lsched-table {
    font-size: 14px;
  }
  
  .lsched-table td,
  .lsched-table th {
    padding: 8px;
  }
  
  /* Adjust stats grid on mobile */
  .lsched-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Adjust action buttons on mobile */
  .lsched-action-buttons {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .lsched-action-link {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  /* Adjust overview section on mobile */
  .lsched-overview-section h2 {
    font-size: 20px;
  }
  
  .lsched-overview-section h3 {
    font-size: 16px;
  }
  
  /* Make forms more mobile friendly */
  .lsched-form input,
  .lsched-form select,
  .lsched-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Profile In Use Badge */
.lsched-profile-in-use-badge {
  background: #e67e22;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Disabled Delete Button */
.lsched-icon-delete-disabled {
  opacity: 0.3;
  cursor: not-allowed !important;
  pointer-events: none;
}

.lsched-icon-delete-disabled:hover {
  color: inherit !important;
  transform: none !important;
}

/* Order History Toggle */
.lsched-toggle-history {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  margin-left: auto;
}

.lsched-toggle-history input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.lsched-toggle-history span {
  color: #666;
  font-weight: 500;
}

.lsched-toggle-history:hover span {
  color: #333;
}

/* Order row styling for historical orders */
.order-historical {
  opacity: 0.7;
  background-color: #f9f9f9;
}

.order-historical:hover {
  opacity: 1;
}

.lsched-orders-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Orders Header Layout */
.lsched-orders-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Refresh Button */
.lsched-btn-icon {
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lsched-btn-icon:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

.lsched-btn-icon:active {
  transform: scale(0.95);
}

.lsched-btn-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.lsched-btn-icon.refreshing .dashicons {
  animation: spin 1s linear infinite;
}

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

/* Disabled submit button styling */
button[form="lsched-edit-order-form"]:disabled {
  cursor: not-allowed;
  background-color: #ccc !important;
  border-color: #999 !important;
}

button[form="lsched-edit-order-form"]:disabled:hover {
  background-color: #ccc !important;
  transform: none !important;
}

/* Address Cards - Amazon Style */
.lsched-address-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.lsched-address-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

.lsched-address-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lsched-address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.lsched-address-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.lsched-address-card-actions {
  display: flex;
  gap: 8px;
}

.lsched-address-card-body {
  margin-bottom: 15px;
}

.lsched-address-card-body p {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.lsched-address-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lsched-address-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lsched-badge-default {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.lsched-badge-billing {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #64b5f6;
}

.lsched-no-addresses {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
}

.lsched-no-addresses p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* Responsive adjustments for address cards */
@media (max-width: 768px) {
  .lsched-address-cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lsched-address-card {
    padding: 15px;
  }

  .lsched-address-card-header h4 {
    font-size: 14px;
  }

  .lsched-address-card-body p {
    font-size: 13px;
  }
}

/* Preference Profile Cards - Amazon Style */
.lsched-profile-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.lsched-profile-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

.lsched-profile-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lsched-profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.lsched-profile-card-header h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.lsched-profile-description {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.lsched-profile-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lsched-profile-card-body {
  margin-bottom: 15px;
}

.lsched-profile-detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 6px 0;
}

.lsched-profile-detail:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.lsched-profile-instructions {
  flex-direction: column;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #e0e0e0 !important;
  margin-top: 8px;
}

.lsched-profile-instructions .lsched-profile-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.lsched-profile-instructions .lsched-profile-value {
  line-height: 1.5;
}

.lsched-profile-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.lsched-profile-value {
  font-size: 14px;
  color: #333;
}

.lsched-profile-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lsched-profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lsched-profile-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lsched-badge-in-use {
  background-color: #fff3e0;
  color: #e65100;
  border: 1px solid #ffb74d;
}

.lsched-no-profiles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
}

.lsched-no-profiles p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* Responsive adjustments for profile cards */
@media (max-width: 768px) {
  .lsched-profile-cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lsched-profile-card {
    padding: 15px;
  }

  .lsched-profile-card-header h4 {
    font-size: 14px;
  }

  .lsched-profile-detail {
    flex-direction: column;
    gap: 4px;
  }

  .lsched-profile-label,
  .lsched-profile-value {
    font-size: 13px;
  }
}

/* Frequency Display - Two-line with styled day name */
.lsched-frequency-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lsched-frequency-main {
  font-weight: 500;
  color: #333;
}

.lsched-frequency-day {
  font-size: 0.85em;
  color: #666;
  font-style: italic;
  font-weight: 400;
}

/* Mobile responsive - keep single column */
@media (max-width: 768px) {
  .lsched-frequency-display {
    gap: 3px;
  }
  
  .lsched-frequency-day {
    font-size: 0.8em;
  }
}
