/* Petrol Price page — price hero card + history table */

.pp-card {
  background: #ffffff;
  border: 1px solid var(--border, #E8ECF1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(20,20,30,0.06);
  padding: 40px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.pp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #F5B800, #FFD54F, #F5B800);
}

.pp-card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 10px;
}

.pp-card__price {
  font-size: clamp(48px, 8vw, 68px);
  font-weight: 700;
  color: #0E0E10;
  line-height: 1.1;
  margin: 0;
}

.pp-card__price small {
  font-size: 20px;
  font-weight: 500;
  color: #64748B;
  margin-left: 6px;
}

.pp-card__change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.pp-card__change--up {
  background: #FEF2F2;
  color: #DC2626;
}

.pp-card__change--down {
  background: #ECFDF5;
  color: #059669;
}

.pp-card__change--flat {
  background: #F0F3F8;
  color: #64748B;
}

.pp-card__updated {
  margin-top: 18px;
  font-size: 13px;
  color: #94A3B8;
}

.pp-card__source {
  margin-top: 6px;
  font-size: 12px;
  color: #94A3B8;
}

.pp-card__source a {
  color: #64748B;
  text-decoration: underline;
  text-decoration-color: #CBD5E1;
  text-underline-offset: 2px;
}

.pp-card__source a:hover {
  color: #1A1A1A;
}

.pp-empty {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  background: #F7F9FD;
  border: 1px solid #E8EDF5;
  color: #64748B;
}

.pp-table-wrap {
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border, #E8ECF1);
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.pp-table th,
.pp-table td {
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}

.pp-table th {
  background: #F7F9FD;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #E8EDF5;
}

.pp-table tr:not(:last-child) td {
  border-bottom: 1px solid #F0F3F8;
}

.pp-table td.pp-up { color: #DC2626; font-weight: 500; }
.pp-table td.pp-down { color: #059669; font-weight: 500; }

.pp-faq {
  max-width: 780px;
  margin: 0 auto;
}

.pp-faq details {
  background: #ffffff;
  border: 1px solid var(--border, #E8ECF1);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.pp-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: #0E0E10;
  list-style: none;
}

.pp-faq summary::-webkit-details-marker { display: none; }

.pp-faq summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  float: right;
  color: #94A3B8;
  transition: transform 0.2s ease;
}

.pp-faq details[open] summary::after {
  transform: rotate(180deg);
}

.pp-faq p {
  margin-top: 12px;
  color: #64748B;
  line-height: 1.7;
  font-size: 15px;
}

@media (max-width: 576px) {
  .pp-card { padding: 28px 20px; }
  .pp-table th, .pp-table td { padding: 12px 14px; }
}

/* ── PakWheels-style rates table (2026-09-11 redesign) ──
   The centrepiece: Fuel Type | Old Price | New Price | Difference under a
   "Prices w.e.f {date}" header. pw-* is additive — pp-* stays for the
   empty state and the diesel page's inline copies. */

.pw-lead {
  text-align: center;
  font-size: 17px;
  color: #334155;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 22px;
}
.pw-lead strong { color: #0E0E10; }

.pw-table-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E8ECF1;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 20, 30, 0.07);
  overflow: hidden;
}

.pw-table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #0E0E10;
}
.pw-table-card__wef {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pw-table-card__wef i { color: #F5B800; }
.pw-table-card__source {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
}
.pw-table-card__source:hover { color: #F5B800; border-color: rgba(245, 184, 0, 0.5); }

.pw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.pw-table th {
  text-align: left;
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E8ECF1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
  white-space: nowrap;
}
.pw-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
}
.pw-table tbody tr:last-child td { border-bottom: 0; }
.pw-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.pw-table tbody tr:hover td { background: #FFFBEB; }

.pw-table__fuel {
  font-weight: 700;
  color: #0E0E10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-table__fuel a { color: #0E0E10; text-decoration: none; border-bottom: 1px dashed #CBD5E1; }
.pw-table__fuel a:hover { color: #B45309; border-color: #F5B800; }
.pw-table__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #FFF7E0;
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.pw-table__old { color: #94A3B8; text-decoration: line-through; text-decoration-color: #CBD5E1; }
.pw-table__new { font-weight: 800; color: #0E0E10; font-size: 16px; }

.pw-diff {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 4px 11px;
  border-radius: 999px;
}
.pw-diff--up   { background: #FEF2F2; color: #DC2626; }
.pw-diff--down { background: #ECFDF5; color: #059669; }
.pw-diff--flat { background: #F1F5F9; color: #64748B; }

.pw-table-card__foot {
  padding: 12px 20px;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.6;
}

.pw-table-card--history { max-width: 760px; }

@media (max-width: 576px) {
  .pw-table th, .pw-table td { padding: 11px 12px; }
  .pw-table { font-size: 13.5px; }
  .pw-table__new { font-size: 14.5px; }
  .pw-table__icon { display: none; }
}
