/* ================================
   Electricity Match - Cards & Table Styles
   Version: 3.3.9 (restored button styling + nofollow-ready)
   ================================ */
   
   
   /* ================================
   ELECTRICITY MATCH - CLEAN & FIXED
   ================================ */

/* Header text ("Plans Available") */
.electricitymatch-wrapper .plans-header {
    text-align: center;
    margin-top: 20px;
}

.electricitymatch-wrapper #plansAvailable {
    font-size: 22px;
    color: #003366;
    margin: 0 auto 15px auto;
    text-align: center;
}

/* ================================
   FILTER BAR (BLUE SECTION)
   ================================ */
.electricitymatch-wrapper .filter-bar {
    display: flex;
    flex-wrap: nowrap; /* keep all in one line */
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #003366;
    border-radius: 8px 8px 0 0;
    padding: 15px 10px;
    color: #fff;
    margin: 0 auto;
    max-width: 95%;
    overflow-x: auto; /* for small screens */
}

/* Each filter item */
.electricitymatch-wrapper .filter-bar .filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hide labels */
.electricitymatch-wrapper .filter-bar label {
    display: none;
}

/* Dropdowns */
.electricitymatch-wrapper .filter-bar select {
    background-color: #1d9747;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s ease;
}
.electricitymatch-wrapper .filter-bar select:hover {
    background-color: #16803b;
}

/* Zip input */
.electricitymatch-wrapper .filter-bar input[type="text"] {
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100px;
}

/* Buttons */
.electricitymatch-wrapper .filter-bar .table-select-btn {
    background-color: #1d9747;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.electricitymatch-wrapper .filter-bar .table-select-btn:hover {
    background-color: #16803b;
}

/* Reset button */
.electricitymatch-wrapper .filter-bar .reset-btn {
    background-color: #1d9747;
    display: flex;
    align-items: center;
    gap: 4px;
}
.electricitymatch-wrapper .filter-bar .reset-btn::before {
    content: "↻";
    font-weight: bold;
}

/* ================================
   INFO BAR (WHITE SECTION BELOW)
   ================================ */
.electricitymatch-wrapper .info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #003366; /* matches blue section */
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px 16px;
    margin: 0 auto 25px auto;
    max-width: 95%; /* same width as filter-bar */
    box-sizing: border-box;
}

/* Left text (showing plans) */
.electricitymatch-wrapper .info-bar .info-left {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Right (price sort button) */
.electricitymatch-wrapper .info-bar .info-right button {
    background-color: #fff;
    color: #003366;
    border: 1px solid #003366;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.electricitymatch-wrapper .info-bar .info-right button:hover {
    background-color: #003366;
    color: #fff;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 900px) {
    .electricitymatch-wrapper .filter-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    .electricitymatch-wrapper .info-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

/* ---- Grid Card Layout ---- */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 30px 0;
  font-family: "Open Sans", sans-serif;
}

@media (max-width: 1024px) {
  .rate-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rate-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Card Base ---- */
.rate-card {
  background: #fff;
  border: 1px solid #dbe3ea;
  border-top: 20px solid #003366;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ---- Inner Container ---- */
.rate-card-inner {
  background: #fff;
  padding: 18px 20px;
  flex: 1;
  box-sizing: border-box;
}

/* ---- Top Section ---- */
.rate-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
}

.rate-left {
  flex: 1;
  text-align: left;
}

.rate-left h3 {
  margin: 0 0 8px;
  font-size: 1.05rem !important;
  color: #235787;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
}

/* ---- Price Section ---- */
.rate-price {
  font-size: 2rem;
  font-weight: 700;
  color: #002855;
  line-height: 1.1;
  font-family: "Open Sans", sans-serif;
}

.rate-subtext {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1px;
  font-family: "Open Sans", sans-serif;
}

/* ---- Middle Section ---- */
.rate-middle {
  background: #fff;
  padding: 0;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: none;
}

.rate-middle .rate-detail {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 14.4px;
  line-height: 24px;
  font-weight: 400;
  color: #555555;
}

.rate-middle .rate-detail strong {
  color: #333333;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
}

/* ---- Right Section ---- */
.rate-right {
  width: 110px;
  text-align: right;
  flex-shrink: 0;
}

.rate-right img {
  max-width: 110px !important;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-left: auto;
}

.rate-right p {
  margin: 0;
  font-size: 14.4px;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  line-height: 24px;
  color: #555555;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 480px) {
  .rate-right {
    width: 90px;
  }

  .rate-right p {
    font-size: 0.9rem;
    margin-top: 4px;
  }

  .rate-right img {
    max-width: 80px !important;
  }
}

/* ---- Footer Section ---- */
.rate-card-footer {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.rate-footer p {
  font-family: "Open Sans", sans-serif;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 24px;
  color: #555555;
  margin: 0;
}

.rate-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

.rate-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-decoration: none;
  color: #003366 !important;
  font-weight: 700;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  background: #fff;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.rate-links a:last-child {
  border-right: none;
}

.rate-links a:hover {
  background: #003366 !important;
  color: #fff !important;
}

/* ---- Select Button ---- */
.select-wrap {
  padding: 12px;
}

/* ✅ Beautiful Green Buttons (Card + Table + Elementor Safe) */
.select-wrap .table-select-btn,
.select-wrap a.table-select-btn,
.select-wrap button.table-select-btn,
.rate-table .table-select-btn,
.rate-table a.table-select-btn,
.rate-table button.table-select-btn {
  width: 100% !important;
  background: #28a745 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
  font-family: "Open Sans", sans-serif !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.select-wrap .table-select-btn:hover,
.select-wrap a.table-select-btn:hover,
.select-wrap button.table-select-btn:hover,
.rate-table .table-select-btn:hover,
.rate-table a.table-select-btn:hover,
.rate-table button.table-select-btn:hover {
  background: #218838 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

/* ---- Phone ---- */
.rate-phone {
  text-align: center;
  padding: 8px 12px 16px;
}

.rate-phone a {
  color: #28a745 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-family: "Open Sans", sans-serif;
}

/* ---- Mobile Footer Adjustments ---- */
@media (max-width: 420px) {
  .rate-links {
    grid-template-columns: 1fr;
  }
}

/* ================================
   Electricity Match - Table View
   ================================ */
.rate-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 30px 0 !important;
  font-size: 14px !important;
  font-family: "Open Sans", sans-serif !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #dbe3ea !important;
  text-align: center !important;
}

/* ---- Table Header ---- */
.rate-table th {
  background-color: #003366 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 14px 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: 1px solid #dbe3ea !important;
  border-bottom: 2px solid #002855 !important;
  font-family: "Ubuntu", sans-serif !important;
  font-size: 14px !important;
  vertical-align: middle !important;
}

/* ---- Table Rows ---- */
.rate-table td {
  padding: 14px 16px !important;
  border: 1px solid #dbe3ea !important;
  vertical-align: middle !important;
  text-align: center !important;
  color: #002855 !important;
  background: #fff !important;
  transition: background 0.25s ease !important;
  font-size: 14px !important;
}

/* ---- Alternate & Hover Rows ---- */
.rate-table tr:nth-child(even) td {
  background-color: #f7faff !important;
}

.rate-table tr:hover td {
  background-color: #eaf3ff !important;
}

/* ---- Links ---- */
.rate-table a {
  color: #235787 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.rate-table a:hover {
  color: #003366 !important;
  text-decoration: underline !important;
}

/* ---- Logos in Table ---- */
.rate-table img {
  max-width: 100px !important;
  height: auto !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 auto !important;
  border: 1px solid #dbe3ea !important;
}

/* ---- General Table Cell Border Rule ---- */
.rate-table td,
.rate-table th {
  border: 1px solid #dbe3ea !important;
  line-height: 1.5 !important;
  padding: 15px !important;
  vertical-align: middle !important;
  text-align: center !important;
  font-size: 14px !important;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .rate-table thead {
    display: none !important;
  }

  .rate-table,
  .rate-table tbody,
  .rate-table tr,
  .rate-table td {
    display: block !important;
    width: 100% !important;
  }

  .rate-table tr {
    margin-bottom: 18px !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    border: 1px solid #dbe3ea !important;
  }

  .rate-table td {
    text-align: right !important;
    padding-left: 50% !important;
    position: relative !important;
    border-bottom: 1px solid #dbe3ea !important;
    font-size: 14px !important;
    vertical-align: middle !important;
  }

  .rate-table td::before {
    content: attr(data-label) !important;
    position: absolute !important;
    left: 16px !important;
    top: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    color: #003366 !important;
    font-size: 13px !important;
    text-align: left !important;
  }
}