/* Redesigned with clean, minimal styling and soft colors */
/* Frontend Styles for Laundry Price List Plugin */

.lpl-frontend-container {
  
}

.lpl-frontend-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.lpl-title {
  font-size: 28px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

.lpl-service-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.lpl-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lpl-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lpl-normal-color {
  background: #4a90e2;
}

.lpl-fast-color {
  background: #f5a623;
}

.lpl-legend-text {
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}

/* Desktop Table View */
.lpl-desktop-view {
  display: block;
}

.lpl-table-container {
  overflow-x: auto;
}

.lpl-price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.lpl-main-header th {
  background: #f7fafc;
  color: #2d3748;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 12px;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.lpl-items-header {
  background: #f1f5f9 !important;
  min-width: 200px;
  border-right: 2px solid #e2e8f0 !important;
}

.lpl-normal-header {
  background: #f0f8ff !important;
  color: #4a90e2 !important;
}

.lpl-fast-header {
  background: #fffbf0 !important;
  color: #f5a623 !important;
}

.lpl-sub-header th {
  background: #fafafa;
  color: #4a5568;
  font-weight: 500;
  font-size: 13px;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.lpl-fast-sub {
  background: #fffbf0 !important;
}

.lpl-header-content,
.lpl-sub-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lpl-header-content .lpl-en{
	font-weight: 600;
}
.lpl-en {
  font-weight: 500;
}

.lpl-ar {
  font-size: 0.9em;
  opacity: 0.8;
}

.lpl-category-row {
  background: #f8fafc;
}

.lpl-category-header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.lpl-category-title {
  color: #2d3748;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.lpl-category-title .lpl-en{
	font-weight: 600;
}
.lpl-separator {
  margin: 0 12px;
  opacity: 0.5;
}

.lpl-item-row {
  transition: background-color 0.2s ease;
}

.lpl-item-row:nth-child(even) {
  background: #fafafa;
}

.lpl-item-row:hover {
  background: #f0f8ff;
}

.lpl-item-name {
  padding: 14px 20px !important;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-weight: 500;
  min-width: 200px;
  background: white;
}

.lpl-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lpl-item-content .lpl-en {
  color: #2d3748;
  font-size: 14px;
}

.lpl-item-content .lpl-ar {
  color: #718096;
  font-size: 13px;
}

.lpl-price {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-weight: 500;
  font-size: 14px;
}

.lpl-normal-price {
  color: #4a90e2;
  background: #f8fcff;
}

.lpl-fast-price {
  color: #f5a623;
  background: #fffef8;
}

.lpl-empty-message {
  padding: 20px;
  text-align: center;
  color: #a0aec0;
  font-style: italic;
}

/* Mobile Card View */
.lpl-mobile-view {
  display: none;
}

.lpl-category-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.lpl-category-header-mobile {
  background: #f8fafc;
  color: #2d3748;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #e2e8f0;
}

.lpl-category-header-mobile:hover {
  background: #f1f5f9;
}

.lpl-category-title-mobile {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lpl-toggle-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: #a0aec0;
}

.lpl-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.lpl-category-content.expanded {
  max-height: 2000px;
}

.lpl-item-card {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px;
}

.lpl-item-card:last-child {
  border-bottom: none;
}

.lpl-item-name-mobile {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
}

.lpl-item-name-mobile .lpl-ar {
  display: block;
  color: #718096;
  font-size: 13px;
  margin-top: 4px;
}

.lpl-pricing-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lpl-service-section {
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.lpl-normal-section {
  background: #f8fcff;
  border-color: #bee3f8;
}

.lpl-fast-section {
  background: #fffef8;
  border-color: #fbd38d;
}

.lpl-service-title {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lpl-normal-section .lpl-service-title {
  color: #4a90e2;
}

.lpl-fast-section .lpl-service-title {
  color: #f5a623;
}

.lpl-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lpl-price-row:last-child {
  border-bottom: none;
}

.lpl-service-name {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

.lpl-price-value {
  font-weight: 600;
  font-size: 13px;
}

.lpl-normal-section .lpl-price-value {
  color: #4a90e2;
}

.lpl-fast-section .lpl-price-value {
  color: #f5a623;
}

.lpl-empty-category-mobile {
  padding: 20px;
  text-align: center;
  color: #a0aec0;
}

.lpl-frontend-message {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 8px;
  color: #718096;
  font-size: 16px;
  border: 1px solid #e2e8f0;
}

/* Language-specific styles */
.lpl-frontend-container[data-language="ar"] {
  direction: rtl;
}

.lpl-frontend-container[data-language="ar"] .lpl-en {
  display: none;
}

.lpl-frontend-container[data-language="en"] .lpl-ar {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lpl-frontend-container {
    padding: 15px;
    background: transparent;
  }

  .lpl-title {
    font-size: 22px;
  }

  .lpl-service-legend {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .lpl-desktop-view {
    display: none;
  }

  .lpl-mobile-view {
    display: block;
  }

  .lpl-pricing-mobile {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lpl-category-title-mobile {
    font-size: 15px;
  }

  .lpl-item-name-mobile {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .lpl-frontend-container {
    padding: 10px;
  }

  .lpl-title {
    font-size: 20px;
  }

  .lpl-service-section {
    padding: 12px;
  }

  .lpl-price-row {
    padding: 5px 0;
  }

  .lpl-legend-item {
    padding: 6px 12px;
  }
}
