/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
#podsfw_admin_override_mode {
  width: auto !important;
  height: 16px !important;
  width: 16px !important;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background-color: #fff;
  clear: none;
  cursor: pointer;
  display: inline-block;
  line-height: 0;
  margin: 0 4px 0 0;
  outline: 0;
  padding: 0 !important;
  text-align: center;
  vertical-align: middle;
  min-width: 16px !important;
  appearance: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: 0.05s border-color ease-in-out;
}

#podsfw_admin_override_mode:checked {
  background-color: #fff;
  border-color: #2271b1;
}

.podsfw-override-checkbox-wrapper {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

/* Override mode select boxes styling */
#podsfw_admin_override_start_hour,
#podsfw_admin_override_end_hour {
  max-width: 120px !important;
  width: 120px !important;
  min-width: 120px !important;
}

/* Override mode date field */
#podsfw_admin_override_date {
  max-width: 200px !important;
  width: 200px !important;
}
/* Checkbox Groups for Categories and User Roles */
.podsfw-checkbox-group {
  margin: 15px 0;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.podsfw-sub-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #23282d;
  font-size: 14px;
}

.podsfw-checkbox-item {
  display: inline-block;
  margin: 5px 15px 5px 0;
  padding: 5px 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  line-height: 1.3;
}

.podsfw-checkbox-item:hover {
  background: #e7f3ff;
  border-color: #0073aa;
}

.podsfw-checkbox-item input[type="checkbox"] {
  margin-right: 6px;
  margin-top: 0;
}

.podsfw-checkbox-item:has(input:checked) {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.podsfw-checkbox-item:has(input:checked):hover {
  background: #005a87;
}

/* Category Tree Styling */
.podsfw-category-tree {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  padding: 10px;
  margin-bottom: 10px;
}

.podsfw-category-item {
  margin: 2px 0;
}

.podsfw-category-row {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.podsfw-category-row:hover {
  background: #f0f8ff;
}

.podsfw-category-indent {
  display: inline-block;
  height: 1px;
}

.podsfw-category-toggle {
  cursor: pointer;
  color: #666;
  margin-right: 8px;
  transition: transform 0.2s;
  font-size: 16px;
  width: 16px;
  text-align: center;
}

.podsfw-category-toggle.expanded {
  transform: rotate(90deg);
  color: #0073aa;
}

.podsfw-category-spacer {
  width: 16px;
  margin-right: 8px;
}

.podsfw-category-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
}

.podsfw-category-checkbox input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 0;
}

.podsfw-category-name {
  font-weight: 500;
}

.podsfw-category-children {
  margin-left: 20px;
  border-left: 2px solid #e0e0e0;
  padding-left: 10px;
}

.podsfw-category-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.podsfw-category-controls .button {
  font-size: 12px;
  padding: 4px 8px;
  height: auto;
  line-height: 1.4;
}

/* Selected state for category items */
.podsfw-category-row:has(input:checked) {
  background: #e7f3ff;
}

.podsfw-category-row:has(input:checked) .podsfw-category-name {
  color: #0073aa;
  font-weight: 600;
}

/* Selected children indicator */
.podsfw-selected-children-indicator {
  color: #0073aa;
  font-size: 12px;
  margin-left: 5px;
  opacity: 0.8;
}

/* Parent category with selected children - highlight */
.podsfw-category-row:has(.podsfw-selected-children-indicator) {
  background: #f0f8ff;
  border-left: 3px solid #0073aa;
}

.podsfw-category-row:has(.podsfw-selected-children-indicator):hover {
  background: #e7f3ff;
}

/* Product autocomplete styling */
.podsfw-checkbox-group .podsfw-autocomplete {
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
}

.podsfw-checkbox-group .podsfw-selected-list {
  margin-top: 5px;
  margin-bottom: 15px;
}

/* Spacing between sections */
.podsfw-checkbox-group + .podsfw-checkbox-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
#podsfw-time-slots-repeater {
  margin: 20px 0;
}

#podsfw-time-slots-repeater table.widefat {
  margin-bottom: 15px;
  border-collapse: collapse;
  width: 100%;
}

#podsfw-time-slots-repeater table.widefat th,
#podsfw-time-slots-repeater table.widefat td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

#podsfw-time-slots-repeater table.widefat th {
  background-color: #f8f9fa;
  font-weight: 600;
}

#podsfw-time-slots-repeater input[type="text"],
#podsfw-time-slots-repeater input[type="time"],
#podsfw-time-slots-repeater input[type="number"] {
  width: 100%;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#podsfw-time-slots-repeater .slot-days-checkboxes {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  background: #f9f9f9;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

#podsfw-time-slots-repeater .slot-days-checkboxes label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 3px;
  transition: background-color 0.2s;
  font-size: 12px;
  line-height: 1.3;
}

#podsfw-time-slots-repeater .slot-days-checkboxes label:hover {
  background-color: #e7f3ff;
}

#podsfw-time-slots-repeater .slot-days-checkboxes input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 0;
}

#podsfw-time-slots-repeater .button.remove-slot {
  color: #dc3232;
  border-color: #dc3232;
}

#podsfw-time-slots-repeater .button.remove-slot:hover {
  background-color: #dc3232;
  color: white;
}

/* Make sure the time inputs are wide enough */
#podsfw-time-slots-repeater input[type="time"] {
  min-width: 120px;
}

/* Style for the capacity and fee inputs */
#podsfw-time-slots-repeater input.slot-capacity,
#podsfw-time-slots-repeater input.slot-fee {
  width: 80px;
}

/* Status Toggle Switch Styling */
.slot-status-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Slot Shipping Methods Assignment Interface - Matrix Design */
.podsfw-slot-shipping-assignments {
  margin-top: 15px;
  background: #fff;
}

/* Shipping Methods Radio Group Styling */
.podsfw-radio-group {
  margin-bottom: 15px;
}

.podsfw-radio-option {
  display: block;
  margin-bottom: 5px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podsfw-radio-option:hover {
  background: #f0f0f0;
  border-color: #999;
}

.podsfw-radio-option input[type="radio"] {
  margin-right: 10px;
  margin-top: 0;
}

.podsfw-radio-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.podsfw-radio-desc {
  display: block;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.podsfw-specific-methods {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

/* ZIP codes table remove column styling */
.podsfw-remove-header {
  min-width: 80px;
  text-align: center;
  background: #f8f9fa !important;
}

.podsfw-zip-remove {
  text-align: center;
  vertical-align: middle;
}

.podsfw-zip-remove .button-link-delete {
  color: #dc3232;
  border-color: #dc3232;
}

.podsfw-zip-remove .button-link-delete:hover {
  background-color: #dc3232;
  color: white;
}

/* Control Panel */
.podsfw-control-panel {
  background: #f8f9fa;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.podsfw-search-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 300px;
}

.podsfw-search-filter input,
.podsfw-search-filter select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
}

/* Matrix Container */
.podsfw-matrix-container {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
}

.podsfw-slot-matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

.podsfw-slot-matrix th,
.podsfw-slot-matrix td {
  padding: 8px 12px;
  text-align: center;
  border: 1px solid #e5e5e5;
  vertical-align: middle;
}

.podsfw-slot-matrix th {
  background: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.podsfw-method-header {
  text-align: left !important;
  min-width: 200px;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f8f9fa !important;
}

.podsfw-actions-header {
  min-width: 120px;
  position: sticky;
  right: 0;
  z-index: 5;
  background: #f8f9fa !important;
}

.podsfw-slot-header {
  min-width: 100px;
  max-width: 120px;
  font-size: 11px;
  line-height: 1.2;
}

.podsfw-slot-header .slot-label {
  font-weight: 600;
  margin-bottom: 2px;
}

.podsfw-slot-header .slot-time {
  font-size: 10px;
  color: #666;
  font-weight: normal;
}

.podsfw-method-name {
  text-align: left !important;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff !important;
  min-width: 200px;
}

.podsfw-method-actions {
  position: sticky;
  right: 0;
  z-index: 5;
  background: #fff !important;
  min-width: 120px;
}

.podsfw-method-actions .button {
  font-size: 10px;
  padding: 4px 8px;
  margin: 2px;
  height: auto;
  line-height: 1.2;
}

.podsfw-slot-cell {
  padding: 4px !important;
  min-width: 100px;
  max-width: 120px;
}

.podsfw-slot-checkbox {
  margin: 0;
  transform: scale(1.2);
  cursor: pointer;
}

.podsfw-slot-checkbox:checked {
  accent-color: #0073aa;
}

/* Shipping Zones Checkbox Styling - Match existing table styles */
.podsfw-zone-slot-checkbox {
  margin: 0;
  transform: scale(1.2);
  cursor: pointer;
}

.podsfw-zone-slot-checkbox:checked {
  accent-color: #0073aa;
}

/* Row hover effects */
.podsfw-method-row:hover {
  background-color: #f8f9fa;
}

.podsfw-method-row:hover .podsfw-method-name,
.podsfw-method-row:hover .podsfw-method-actions {
  background: #f8f9fa !important;
}

/* Summary Panel */
.podsfw-summary-panel {
  background: #f8f9fa;
  padding: 12px 15px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.podsfw-summary-stats {
  display: flex;
  gap: 20px;
}

.podsfw-stat {
  font-size: 13px;
  color: #666;
}

.podsfw-stat strong {
  color: #0073aa;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .podsfw-control-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .podsfw-search-filter {
    min-width: auto;
  }

  .podsfw-bulk-actions {
    justify-content: center;
  }

  .podsfw-summary-stats {
    flex-direction: column;
    gap: 5px;
  }
}

/* Keyboard shortcuts hint */
.podsfw-keyboard-hint {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}

.slot-status-checkbox {
  display: none !important;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.slot-status-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.slot-status-label::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slot-status-label.active {
  background-color: #4caf50;
}

.slot-status-label.active::before {
  transform: translateX(26px);
}

.slot-status-label.inactive {
  background-color: #f44336;
}

.slot-status-label.inactive::before {
  transform: translateX(0);
}

.slot-status-label:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slot-status-label.active:hover {
  background-color: #45a049;
}

.slot-status-label.inactive:hover {
  background-color: #da190b;
}

/* Multiple select styling */
#podsfw-time-slots-repeater select[multiple] {
  height: auto;
  min-height: 100px;
}
#podsfw-blackout-dates-picker ul {
  margin: 0 0 10px 0;
  padding: 0;
}
#podsfw-blackout-dates-picker li {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
#podsfw-blackout-dates-picker .button {
  margin-left: 8px;
}
/* Autocomplete selected items styling */
.podsfw-selected-list {
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
  margin-top: 5px;
}
.podsfw-selected-item {
  background: #f3f4f6;
  color: #222;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 3px 10px 3px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  position: relative;
  transition:
    background 0.2s,
    border 0.2s;
}
.podsfw-selected-item:hover {
  background: #e5e7eb;
  border-color: #a1a1aa;
}
.podsfw-remove {
  color: #b91c1c;
  margin-left: 8px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
}
.podsfw-remove:hover,
.podsfw-remove:focus {
  background: #fee2e2;
  color: #7f1d1d;
  outline: none;
}
/* Ensure autocomplete input has margin from selected list */
.podsfw-autocomplete {
  margin-bottom: 2px;
}

/* WordPress Standard Button Styling */

/* Primary Save Button - Uses WordPress default primary styling */
.wp-core-ui .button-primary {
  /* WordPress handles this automatically */
}

/* Secondary Add Buttons - Use WordPress secondary styling */
#podsfw-time-slots-repeater .button.add-slot,
.podsfw-add-button {
  margin-top: 10px;
  /* Use WordPress secondary button styling */
}

/* Remove buttons - Keep original red styling */
#podsfw-time-slots-repeater .button.remove-slot {
  color: #dc3232;
  border-color: #dc3232;
}

#podsfw-time-slots-repeater .button.remove-slot:hover {
  background-color: #dc3232;
  color: white;
}

/* Small utility classes for button grouping */
.podsfw-button-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.podsfw-button-group .button {
  margin: 0 !important;
}
.podsfw-section .button-primary {
  margin-top: 10px !important;
}

/* Responsive Button Improvements */
@media (max-width: 768px) {
  .wp-core-ui .button-primary,
  #podsfw-time-slots-repeater .button.add-slot,
  .podsfw-add-button {
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  .podsfw-button-group {
    flex-direction: column;
    gap: 4px;
  }
}

.podsfw-field-group .select2-selection--multiple {
  border: none !important;
}

/* Admin Orders List View - Delivery Columns */
.column-podsfw_delivery_date,
.column-podsfw_delivery_time {
  width: 120px;
  text-align: center;
}

.column-podsfw_delivery_date strong,
.column-podsfw_delivery_time strong {
  color: #007cba;
  font-weight: 600;
}

.column-podsfw_delivery_date span,
.column-podsfw_delivery_time span {
  color: #999;
  font-style: italic;
}

/* Sortable column indicators */
.column-podsfw_delivery_date.sortable,
.column-podsfw_delivery_time.sortable {
  cursor: pointer;
}

.column-podsfw_delivery_date.sortable:hover,
.column-podsfw_delivery_time.sortable:hover {
  background-color: #f0f0f1;
}

/* Sort direction indicators */
.column-podsfw_delivery_date.sorted.asc::after,
.column-podsfw_delivery_time.sorted.asc::after {
  content: "\f142";
  font-family: dashicons;
  margin-left: 5px;
  color: #007cba;
}

.column-podsfw_delivery_date.sorted.desc::after,
.column-podsfw_delivery_time.sorted.desc::after {
  content: "\f140";
  font-family: dashicons;
  margin-left: 5px;
  color: #007cba;
}

/* HPOS table sortable styles */
.wp-list-table .column-podsfw_delivery_date.sortable,
.wp-list-table .column-podsfw_delivery_time.sortable {
  cursor: pointer;
}

.wp-list-table .column-podsfw_delivery_date.sortable:hover,
.wp-list-table .column-podsfw_delivery_time.sortable:hover {
  background-color: #f0f0f1;
}

/* Product Quantities Column */
.column-podsfw_product_qty {
  width: 150px;
  font-size: 12px;
  line-height: 1.4;
}

.column-podsfw_product_qty br {
  margin-bottom: 2px;
}

/* Responsive adjustments for admin columns */
@media screen and (max-width: 1200px) {
  .column-podsfw_delivery_date,
  .column-podsfw_delivery_time {
    width: 100px;
    font-size: 12px;
  }
}

@media screen and (max-width: 960px) {
  .column-podsfw_delivery_date,
  .column-podsfw_delivery_time {
    display: none;
  }
}

/* Upgrade Modal Styles */
.podsfw-upgrade-trigger {
  cursor: pointer;
  color: #666;
  font-size: 16px;
  line-height: 1;
  margin-left: 5px;
  transition: all 0.2s ease;
  display: inline-block;
}

.podsfw-upgrade-trigger:hover {
  color: #0073aa;
  transform: scale(1.1);
}

.podsfw-upgrade-trigger .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Modal Styles */
.podsfw-upgrade-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.podsfw-upgrade-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: podsfw-modal-slide-in 0.3s ease-out;
  position: relative;
}

@keyframes podsfw-modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.podsfw-upgrade-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px 0 20px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 20px;
}

.podsfw-upgrade-modal-header h3 {
  margin: 0;
  color: #23282d;
  font-size: 18px;
  font-weight: 600;
}

.podsfw-upgrade-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: absolute;
  right: 5px;
  top: 5px;
  line-height: 1;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.podsfw-upgrade-modal-close::before {
  content: "×";
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.podsfw-upgrade-modal-close:hover {
  background-color: #f0f0f0;
  color: #dc3232;
}

.podsfw-upgrade-modal-body {
  padding: 0 20px 20px 20px;
  text-align: center;
}

.podsfw-upgrade-icon {
  margin-bottom: 15px;
}

.podsfw-upgrade-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #0073aa;
}

.podsfw-upgrade-modal-body h4 {
  margin: 0 0 10px 0;
  color: #23282d;
  font-size: 16px;
  font-weight: 600;
}

.podsfw-upgrade-modal-body p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.5;
  font-size: 14px;
}

.podsfw-upgrade-modal-footer {
  padding: 0 20px 20px 20px;
  text-align: center;
}

.podsfw-upgrade-button {
  background-color: #0073aa !important;
  border-color: #0073aa !important;
  color: #fff !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.2s ease !important;
}

.podsfw-upgrade-button:hover {
  background-color: #006291 !important;
  border-color: #006291 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  .podsfw-upgrade-modal-content {
    margin: 20% auto;
    width: 95%;
  }

  .podsfw-upgrade-modal-header,
  .podsfw-upgrade-modal-body,
  .podsfw-upgrade-modal-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Enhanced Admin Interface Styles for Delivery Date Fees */

/* Quick Setup Examples */

/* Enhanced Table Styles */
#podsfw-date-fees-repeater table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin-bottom: 15px !important;
}

#podsfw-date-fees-repeater th {
  background: #f1f1f1 !important;
  padding: 10px !important;
  text-align: left !important;
  font-weight: 600 !important;
  border: 1px solid #ddd !important;
}

#podsfw-date-fees-repeater td {
  padding: 10px !important;
  border: 1px solid #ddd !important;
  vertical-align: top !important;
}

#podsfw-date-fees-repeater tr:nth-child(even) {
  background: #f9f9f9 !important;
}

#podsfw-date-fees-repeater tr:hover {
  background: #f0f8ff !important;
}

/* Radio Button Styles */
.fee-type-radio {
  margin-right: 8px !important;
}

.fee-type-radio + strong {
  color: #0073aa !important;
  font-weight: 600 !important;
}

/* Input Group Styles */
.date-input-group,
.weekday-input-group {
  margin-top: 5px !important;
}

.date-input-group small,
.weekday-input-group small {
  display: block !important;
  margin-top: 5px !important;
  color: #666 !important;
  font-style: italic !important;
  font-size: 12px !important;
}

/* Select2 Enhancement */
.select2-container--classic .select2-selection--single {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  height: 35px !important;
}

.select2-container--classic
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 33px !important;
  padding-left: 10px !important;
}

.select2-container--classic
  .select2-selection--single
  .select2-selection__arrow {
  height: 33px !important;
}

/* Flatpickr Enhancement */
.flatpickr-input {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px 10px !important;
  height: 35px !important;
}

/* Fee Amount Input */
.date-fee-amount {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  width: 80px;
  box-sizing: border-box;
}

/* Button Styles */
.button.remove-date-fee {
  color: #dc3232;
  border-color: #dc3232;
}

.button.remove-date-fee:hover {
  background-color: #dc3232;
  color: white;
}

.add-date-fee {
  background: #0073aa !important;
  border-color: #0073aa !important;
  color: white !important;
}

.add-date-fee:hover {
  background: #005a87 !important;
  border-color: #005a87 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .podsfw-field-desc {
    padding: 10px !important;
  }

  .podsfw-field-desc .fee-options {
    flex-direction: column !important;
    gap: 10px !important;
  }

  #podsfw-date-fees-repeater table {
    font-size: 12px !important;
  }

  #podsfw-date-fees-repeater th,
  #podsfw-date-fees-repeater td {
    padding: 5px !important;
  }

  .podsfw-fee-presets .button {
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px !important;
  }
}

/* Loading States */
.podsfw-loading {
  text-align: center !important;
  padding: 20px !important;
  color: #666 !important;
}

.podsfw-loading::before {
  content: "⏳" !important;
  margin-right: 8px !important;
  animation: spin 1s linear infinite !important;
}

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

/* Error States */
.podsfw-error {
  background: #f8d7da !important;
  border: 1px solid #f5c6cb !important;
  color: #721c24 !important;
  padding: 10px !important;
  border-radius: 4px !important;
  margin: 10px 0 !important;
}

/* Success States */
.podsfw-success {
  background: #d4edda !important;
  border: 1px solid #c3e6cb !important;
  color: #155724 !important;
  padding: 10px !important;
  border-radius: 4px !important;
  margin: 10px 0 !important;
}

/* Time Slot Fees Table Styles */
#podsfw-slot-fees-repeater table {
  margin-bottom: 15px;
  border-collapse: collapse;
  width: 100%;
}

#podsfw-slot-fees-repeater th {
  background-color: #f8f9fa;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

#podsfw-slot-fees-repeater td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

#podsfw-slot-fees-repeater tr:nth-child(even) {
  background-color: #f9f9f9;
}

#podsfw-slot-fees-repeater tr:hover {
  background-color: #f0f0f1;
}

/* Time Slot Fees Input Groups */
#podsfw-slot-fees-repeater .date-input-group,
#podsfw-slot-fees-repeater .weekday-input-group {
  margin-top: 8px;
}

#podsfw-slot-fees-repeater .date-input-group small,
#podsfw-slot-fees-repeater .weekday-input-group small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-style: italic;
  font-size: 11px;
}

/* Time Slot Fees Select2 Styling */
#podsfw-slot-fees-repeater
  .select2-container--classic
  .select2-selection--single {
  border: 1px solid #ddd;
  border-radius: 4px;
}

#podsfw-slot-fees-repeater
  .select2-container--classic
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 28px;
  padding-left: 8px;
}

#podsfw-slot-fees-repeater
  .select2-container--classic
  .select2-selection--single
  .select2-selection__arrow {
  height: 26px;
}

/* Time Slot Fees Flatpickr Styling */
#podsfw-slot-fees-repeater .flatpickr-input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Time Slot Fees Amount Input */
#podsfw-slot-fees-repeater .slot-fee-amount {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  width: 80px;
  box-sizing: border-box;
}

/* Time Slot Fees Remove Button */
#podsfw-slot-fees-repeater .remove-slot-fee {
  color: #dc3232;
  border-color: #dc3232;
  background: transparent;
}

#podsfw-slot-fees-repeater .remove-slot-fee:hover {
  background-color: #dc3232;
  color: white;
  border-color: #dc3232;
}

/* Responsive Design for Time Slot Fees */
@media (max-width: 768px) {
  #podsfw-slot-fees-repeater table {
    font-size: 12px;
  }

  #podsfw-slot-fees-repeater th,
  #podsfw-slot-fees-repeater td {
    padding: 8px 6px;
  }
}

/* Coupon Fees Table Styles */
#podsfw-coupon-fees-repeater table {
  margin-bottom: 15px;
  border-collapse: collapse;
  width: 100%;
}

#podsfw-coupon-fees-repeater th {
  background-color: #f8f9fa;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

#podsfw-coupon-fees-repeater td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

#podsfw-coupon-fees-repeater tr:nth-child(even) {
  background-color: #f9f9f9;
}

#podsfw-coupon-fees-repeater tr:hover {
  background-color: #f0f0f1;
}

/* Coupon Fees Input Groups */
#podsfw-coupon-fees-repeater .date-input-group,
#podsfw-coupon-fees-repeater .weekday-input-group,
#podsfw-coupon-fees-repeater .slot-input-group {
  margin-top: 8px;
}

#podsfw-coupon-fees-repeater .date-input-group small,
#podsfw-coupon-fees-repeater .weekday-input-group small,
#podsfw-coupon-fees-repeater .slot-input-group small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-style: italic;
  font-size: 11px;
}

/* Coupon Fees Select2 Styling */
#podsfw-coupon-fees-repeater
  .select2-container--classic
  .select2-selection--single {
  border: 1px solid #ddd;
  border-radius: 4px;
}

#podsfw-coupon-fees-repeater
  .select2-container--classic
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 28px;
  padding-left: 8px;
}

#podsfw-coupon-fees-repeater
  .select2-container--classic
  .select2-selection--single
  .select2-selection__arrow {
  height: 26px;
}

/* Coupon Fees Flatpickr Styling */
#podsfw-coupon-fees-repeater .flatpickr-input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Coupon Fees Amount Input */
#podsfw-coupon-fees-repeater .coupon-fee-amount {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  width: 80px;
  box-sizing: border-box;
}

/* Coupon Fees Remove Button */
#podsfw-coupon-fees-repeater .remove-coupon-fee {
  color: #dc3232;
  border-color: #dc3232;
  background: transparent;
}

#podsfw-coupon-fees-repeater .remove-coupon-fee:hover {
  background-color: #dc3232;
  color: white;
  border-color: #dc3232;
}

/* Responsive Design for Coupon Fees */
@media (max-width: 768px) {
  #podsfw-coupon-fees-repeater table {
    font-size: 12px;
  }

  #podsfw-coupon-fees-repeater th,
  #podsfw-coupon-fees-repeater td {
    padding: 8px 6px;
  }
}

/* Processing Rules Table Styles */
#podsfw-processing-rules-table {
  margin-bottom: 15px;
  border-collapse: collapse;
  width: 100%;
}

#podsfw-processing-rules-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

#podsfw-processing-rules-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* Processing Rules Column Widths */
#podsfw-processing-rules-table th:nth-child(1),
#podsfw-processing-rules-table td:nth-child(1) {
  width: 15%; /* Rule Type */
}

#podsfw-processing-rules-table th:nth-child(2),
#podsfw-processing-rules-table td:nth-child(2) {
  width: 25%; /* Product/Category/Zone/Weekday */
}

#podsfw-processing-rules-table th:nth-child(3),
#podsfw-processing-rules-table td:nth-child(3) {
  width: 20%; /* Processing Time */
}

#podsfw-processing-rules-table th:nth-child(4),
#podsfw-processing-rules-table td:nth-child(4) {
  width: 25%; /* Cutoff Time - Made wider */
}

#podsfw-processing-rules-table th:nth-child(5),
#podsfw-processing-rules-table td:nth-child(5) {
  width: 15%; /* Actions */
}

#podsfw-processing-rules-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#podsfw-processing-rules-table tr:hover {
  background-color: #f0f0f1;
}

/* Processing Rules Remove Button */
#podsfw-processing-rules-table .remove-processing-rule {
  color: #dc3232;
  border-color: #dc3232;
  background: transparent;
}

#podsfw-processing-rules-table .remove-processing-rule:hover {
  background-color: #dc3232;
  color: white;
  border-color: #dc3232;
}

/* Responsive Design for Processing Rules */
@media (max-width: 768px) {
  #podsfw-processing-rules-table {
    font-size: 12px;
  }

  #podsfw-processing-rules-table th,
  #podsfw-processing-rules-table td {
    padding: 8px 6px;
  }

  #podsfw-processing-rules-table + .podsfw-fee-presets .button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .podsfw-rule-modal > div {
    min-width: 300px;
    margin: 10px;
  }
}

/* Simple PODSFW Debug Information Toggle */
.podsfw-debug-toggle {
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.podsfw-debug-header {
  background: #f8f9fa;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.podsfw-debug-header:hover {
  background: #e9ecef;
}

.podsfw-debug-header .dashicons {
  transition: transform 0.2s ease;
}

.podsfw-debug-toggle.collapsed .podsfw-debug-header .dashicons {
  transform: rotate(-90deg);
}

.podsfw-debug-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.podsfw-debug-toggle:not(.collapsed) .podsfw-debug-content {
  max-height: 2000px;
  padding: 15px;
}

/* Special Days Table Styles */
#podsfw-special-days-table {
  margin-bottom: 15px;
  border-collapse: collapse;
  width: 100%;
}

#podsfw-special-days-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

#podsfw-special-days-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: top;
}

#podsfw-special-days-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#podsfw-special-days-table tr:hover {
  background-color: #f0f0f1;
}

/* Special Days Remove Button */
#podsfw-special-days-table .remove-special-day {
  color: #dc3232;
  border-color: #dc3232;
  background: transparent;
}

#podsfw-special-days-table .remove-special-day:hover {
  background-color: #dc3232;
  color: white;
  border-color: #dc3232;
}

/* Responsive Design for Special Days */
@media (max-width: 768px) {
  #podsfw-special-days-table {
    font-size: 12px;
  }

  #podsfw-special-days-table th,
  #podsfw-special-days-table td {
    padding: 8px 6px;
  }

  #podsfw-special-days-table + .podsfw-fee-presets .button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }
}

/* Slot ZIP Codes Assignment Interface - Matrix Design */
.podsfw-slot-zip-assignments {
  margin-top: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* ZIP Code Management */
.podsfw-zip-management {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  background: #f8f9fa;
}

.podsfw-zip-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.podsfw-zip-input-group input {
  flex: 1;
  max-width: 200px;
}

.podsfw-zip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.podsfw-zip-tag {
  display: inline-flex;
  align-items: center;
  background: #0073aa;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.podsfw-remove-zip {
  background: none;
  border: none;
  color: white;
  margin-left: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podsfw-remove-zip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ZIP Matrix Table - Match existing table styles */
.podsfw-zip-slot-matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

.podsfw-zip-slot-matrix th,
.podsfw-zip-slot-matrix td {
  padding: 8px 12px;
  text-align: center;
  border: 1px solid #e5e5e5;
  vertical-align: middle;
}

.podsfw-zip-slot-matrix th {
  background: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.podsfw-zip-header {
  text-align: left !important;
  min-width: 200px;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f8f9fa !important;
}

.podsfw-zip-name {
  text-align: left !important;
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff !important;
  min-width: 200px;
}

.podsfw-zip-actions {
  position: sticky;
  right: 0;
  z-index: 5;
  background: #fff !important;
  min-width: 120px;
}

.podsfw-zip-actions .button {
  font-size: 10px;
  padding: 4px 8px;
  margin: 2px;
  height: auto;
  line-height: 1.2;
}

.podsfw-slot-cell {
  padding: 4px !important;
  min-width: 100px;
  max-width: 120px;
}

.podsfw-zip-slot-checkbox {
  margin: 0;
  transform: scale(1.2);
  cursor: pointer;
}

.podsfw-zip-slot-checkbox:checked {
  accent-color: #0073aa;
}

/* ZIP Row hover effects - Match existing table styles */
.podsfw-zip-row:hover {
  background-color: #f8f9fa;
}

.podsfw-zip-row:hover .podsfw-zip-name,
.podsfw-zip-row:hover .podsfw-zip-actions {
  background: #f8f9fa !important;
}

/* ZIP Slot Header - Match existing slot header styles */
.podsfw-zip-slot-matrix .podsfw-slot-header {
  min-width: 100px;
  max-width: 120px;

  line-height: 1.2;
}

.podsfw-zip-slot-matrix .podsfw-slot-header .slot-label {
  font-weight: 600;
  margin-bottom: 2px;
}

.podsfw-zip-slot-matrix .podsfw-slot-header .slot-time {
  font-size: 10px;
  color: #666;
  font-weight: normal;
}

/* Responsive Design for ZIP Matrix */
@media (max-width: 768px) {
  .podsfw-zip-slot-matrix {
    font-size: 10px;
  }

  .podsfw-zip-slot-matrix th,
  .podsfw-zip-slot-matrix td {
    padding: 6px 8px;
  }

  .podsfw-zip-header {
    min-width: 100px;
  }

  .podsfw-zip-actions {
    min-width: 100px;
  }
}

/* Shipping Slots Mode Radio Buttons */
.podsfw-shipping-mode-options {
  margin: 15px 0;
}

.podsfw-radio-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.podsfw-radio-option:last-child {
  margin-bottom: 0;
}

.podsfw-radio-option:hover {
  border-color: #0073aa;
  background: #f0f8ff;
}

.podsfw-radio-option input[type="radio"] {
  margin: 0 16px 0 0;
  margin-top: 3px;
  transform: scale(1.3);
  flex-shrink: 0;
}

.podsfw-radio-option input[type="radio"]:checked + .podsfw-radio-label {
  color: #0073aa;
  font-weight: 600;
}

.podsfw-radio-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.podsfw-radio-label {
  font-weight: 600;

  color: #333;
  margin: 0;
  line-height: 1.3;
  display: block;
}

.podsfw-radio-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: block;
}

.podsfw-radio-option
  input[type="radio"]:checked
  ~ .podsfw-radio-content
  .podsfw-radio-desc {
  color: #0073aa;
}

/* Configuration Section Show/Hide Animation */
#podsfw-shipping-configuration {
  transition: all 0.3s ease;
}

#podsfw-shipping-configuration.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

#podsfw-shipping-configuration.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== INLINE STYLES MOVED FROM PHP FILE ===== */

/* Main Settings Page Styles */
.podsfw-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.podsfw-tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f9f9f9;
  margin-right: 2px;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  color: #333;
}

.podsfw-tab.active {
  background: #fff;
  font-weight: bold;
  color: #000;
}

.podsfw-tab-content {
  display: none;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 0 4px 4px 4px;
}

.podsfw-tab-content.active {
  display: block;
}

.podsfw-field-group {
  margin-bottom: 24px;
}

.podsfw-field-label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.podsfw-field-desc {
  color: #666;
  font-size: 12px;
  margin-bottom: 8px;
}

.podsfw-reset-section {
  margin-top: 30px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.podsfw-reset-section h3 {
  margin-top: 0;
  color: #d63638;
}

.podsfw-reset-section p {
  margin-bottom: 15px;
  color: #666;
}

.button-reset {
  background: #d63638 !important;
  border-color: #d63638 !important;
  color: #fff !important;
}

.button-reset:hover {
  background: #b32d2e !important;
  border-color: #b32d2e !important;
}

/* Compact Select2 for admin tables */
.select2-container--classic .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
  min-height: 28px;
  border-radius: 3px;
  font-size: 13px;
  padding: 2px 4px;
}

.select2-container--classic
  .select2-selection--multiple
  .select2-selection__choice,
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background: #f3f3f3;
  border: 1px solid #ccd0d4;
  color: #23282d;
  font-size: 12px;
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 0 6px;
}

.select2-container--classic
  .select2-selection--multiple
  .select2-selection__choice__remove,
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: #a00;
  margin-right: 2px;
}

.select2-container {
  font-size: 13px;
}

/* Section and Help Styles */
.podsfw-section {
  margin-bottom: 30px;
}

.podsfw-section h2 {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.podsfw-section-desc {
  color: #555;
  margin-bottom: 10px;
}

.podsfw-help {
  display: inline-block;
  background: #e5e5e5;
  color: #333;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  margin-left: 5px;
  line-height: 18px;
  position: relative;
}

.podsfw-help:hover {
  background: #0073aa;
  color: white;
}

.podsfw-tooltip {
  position: absolute;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  min-width: 220px;
  max-width: 350px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: none;
  word-break: break-word;
}
.podsfw-override-container {
  position: relative;
}

#podsfw_admin_override_mode:focus {
  outline: 2px solid #2271b1;
}
.podsfw-tooltip:after {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
}

.podsfw-help.active .podsfw-tooltip {
  display: block;
}

/* Calendar Theme Preview Styles */
.podsfw-calendar-theme-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
}

.podsfw-calendar-theme-container select {
  min-width: 200px;
}

.podsfw-calendar-preview {
  width: 100%;
}

.podsfw-calendar-preview-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 13px;
}

.podsfw-calendar-preview-container {
  position: relative;
}

.podsfw-calendar-preview-container #podsfw_calendar_preview_display {
  width: 100%;
  min-height: 300px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
  box-sizing: border-box;
}

/* Hide the hidden input */
#podsfw_calendar_preview_hidden {
  display: none !important;
}

/* Flatpickr Preview Container */
.podsfw-preview-flatpickr {
  position: relative;
  z-index: 1;
  background: white;
  border: none;
  border-radius: 4px;
  box-shadow: none;
}

/* Pickup Locations Manager Styles */
.podsfw-pickup-locations-manager {
  margin-top: 15px;
}

.podsfw-location-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.podsfw-location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.podsfw-location-actions {
  display: flex;
  gap: 5px;
}

.podsfw-location-details p {
  margin: 5px 0;
}

.podsfw-status-active {
  color: #28a745;
  font-weight: bold;
}

.podsfw-status-inactive {
  color: #dc3545;
  font-weight: bold;
}

.podsfw-location-form p {
  margin-bottom: 10px;
}

.podsfw-location-form label {
  display: inline-block;
  width: auto;
  font-weight: bold;
  min-width: 119px;
}

.podsfw-no-locations {
  color: #666;
  font-style: italic;
}

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

.podsfw-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.podsfw-modal-header {
  background: #0073aa;
  color: white;
  padding: 15px 20px;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.podsfw-modal-header h3 {
  margin: 0;
  color: white;
}

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

.podsfw-modal-close:hover {
  color: #ddd;
}

.podsfw-modal-body {
  padding: 20px;
}

.podsfw-modal-actions {
  margin-top: 20px;
  text-align: right;
}

.podsfw-modal-actions button {
  margin-left: 10px;
}

.podsfw-zone-checkboxes {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.podsfw-zone-checkboxes label {
  margin-bottom: 8px !important;
  font-weight: normal !important;
}

.podsfw-zone-checkboxes input[type="checkbox"] {
  margin-right: 8px;
}

/* Pickup Location Title Styling */
.podsfw-location-header strong {
  font-size: 20px;
  font-weight: bold;
}

/* Table Styling - Match other tables */
.podsfw-locations-table {
  margin-top: 10px;
  margin-bottom: 15px;
  border-collapse: collapse;
  width: 100%;
}

.podsfw-locations-table th,
.podsfw-locations-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.podsfw-locations-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.podsfw-locations-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.podsfw-locations-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.podsfw-locations-table .podsfw-location-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.podsfw-locations-table .podsfw-location-actions .button {
  margin: 0;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
}

/* Calendar icon styling for admin delivery date fields */
.podsfw-date-input-wrapper {
  position: relative;
  display: inline-block;
}

.podsfw-calendar-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
  pointer-events: none;
  font-size: 16px;
  z-index: 1;
}

/* Ensure input field has proper padding to accommodate icon */
.podsfw-admin-date-picker {
  padding-right: 35px !important;
}

/* Override date field padding */
#podsfw_admin_override_date {
  padding-right: 35px !important;
}

/* RTL Support - Move calendar icon to left */
html[dir="rtl"] .podsfw-calendar-icon,
body.rtl .podsfw-calendar-icon {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .podsfw-admin-date-picker,
body.rtl .podsfw-admin-date-picker {
  padding-right: 8px !important;
  padding-left: 35px !important;
}

html[dir="rtl"] #podsfw_admin_override_date,
body.rtl #podsfw_admin_override_date {
  padding-right: 8px !important;
  padding-left: 35px !important;
}

/* ========================================
   TEST UI/UX STYLES
   ======================================== */

.podsfw-test-ui-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.podsfw-test-step {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  border-left: 5px solid #0073aa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.podsfw-test-step:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.podsfw-step-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.podsfw-step-number {
  background: #0073aa;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 15px;
  flex-shrink: 0;
}

.podsfw-step-content h4 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.podsfw-step-desc {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

.podsfw-radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.podsfw-radio-option {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.podsfw-radio-option:hover {
  background: #e3f2fd;
  border-color: #0073aa;
}

.podsfw-radio-option input[type="radio"] {
  margin-right: 12px;
  margin-top: 2px;
}

.podsfw-radio-content {
  flex: 1;
}

.podsfw-radio-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 15px;
}

.podsfw-radio-desc {
  display: block;
  color: #6c757d;
  font-size: 13px;
  line-height: 1.4;
}

.podsfw-selection-container {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.podsfw-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.podsfw-selection-header h5 {
  margin: 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.podsfw-selection-actions {
  display: flex;
  gap: 8px;
}

.podsfw-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.podsfw-checkbox-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.podsfw-checkbox-option:hover {
  background: #f0f8ff;
  border-color: #0073aa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.podsfw-checkbox-option input[type="checkbox"] {
  margin-right: 10px;
}

.podsfw-checkbox-label {
  flex: 1;
  font-size: 14px;
  color: #2c3e50;
}

.podsfw-zone-badge {
  background: #0073aa;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.podsfw-test-summary {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 10px;
  border-left: 5px solid #0073aa;
}

.podsfw-test-summary h4 {
  margin: 0 0 15px 0;
  color: #1565c0;
  font-size: 18px;
  font-weight: 600;
}

.podsfw-no-slots {
  color: #d63638;
  font-style: italic;
  padding: 15px;
  background: #fef7f1;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
}

.validation-error {
  border-color: #dc3232 !important;
  box-shadow: 0 0 0 1px #dc3232 !important;
}
.validation-error-message {
  color: #dc3232 !important;
  font-size: 12px !important;
  margin-top: 5px !important;
  font-weight: bold !important;
  display: block !important;
}
