/* Common styles */
.strom-tariffs {
  margin: 30px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.strom-tariffs h2 {
  color: #2c3338;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Table Layout Styles */
.tariff-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.tariff-table th {
  background-color: #f0f0f1;
  color: #1d2327;
  font-weight: 600;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid #c3c4c7;
}

.tariff-table th.two-line-header {
  padding: 10px 15px;
  white-space: normal;
}

.two-line-header .primary-text {
  font-weight: 600;
  margin-bottom: 4px;
}

.two-line-header .secondary-text {
  font-weight: 500;
  font-size: 0.9em;
  color: #646970;
}

.tariff-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
  color: #50575e;
  vertical-align: top;
}

.two-line-cell {
  padding: 10px 15px;
}

.two-line-cell .primary-text {
  font-weight: 600;
  color: #2c3338;
  margin-bottom: 4px;
}

.two-line-cell .secondary-text {
  font-size: 0.9em;
  color: #646970;
}

/* Cards Layout Styles */
.tariff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.tariff-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tariff-card-header {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tariff-card-header .provider {
  font-weight: 600;
  color: #2c3338;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.tariff-card-header .tariff-name {
  color: #646970;
  font-size: 0.9em;
}

.tariff-card-body {
  padding: 15px;
}

.tariff-price {
  font-size: 1.4em;
  font-weight: 600;
  color: #2c3338;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.tariff-details {
  color: #50575e;
}

.tariff-type {
  margin-bottom: 15px;
}

.tariff-type strong {
  color: #2c3338;
}

.tariff-type .adjustment {
  font-size: 0.9em;
  color: #646970;
}

.tariff-description {
  font-size: 0.9em;
  line-height: 1.5;
  color: #50575e;
}

/* Error message styling */
.error-message {
  background-color: #fcf0f1;
  color: #cc1818;
  padding: 12px 15px;
  border-left: 4px solid #cc1818;
  margin: 20px 0;
  border-radius: 2px;
}

/* Responsive design */
@media screen and (max-width: 782px) {
  .tariff-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tariff-table th,
  .tariff-table td {
    white-space: normal;
  }

  .two-line-cell {
    padding: 8px 10px;
  }

  .tariff-cards {
    grid-template-columns: 1fr;
  }
}

.strom-graph svg {
  width: 100%;
  height: auto;
}
