/**
 * Plan Features Grouped — Shared Component CSS
 * 
 * Used by: quote result cards, plan details page, plan listing
 * Partial view: application/views/shared/v4/plan_features_grouped.php
 * 
 * No parent scoping — this file is V4-only and works anywhere the partial is included.
 */

/* Pill Tabs */
.plan-detail-page-tabs {
  border-bottom: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.plan-detail-page-tabs .nav-item {
  margin-bottom: 0;
}
.plan-detail-page-tabs .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #0f476b;
  padding: 9px 18px;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}
.plan-detail-page-tabs .nav-link:hover {
  color: #147bd1;
  border-color: #147bd1;
}
.plan-detail-page-tabs .nav-link.active {
  color: #ffffff !important;
  background-color: #147bd1;
  border-color: #147bd1;
}

/* Tab Content */
.plan-detail-page-tabs + .tab-content {
  padding: 24px 24px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #0f476b;
  line-height: 1.55;
  background: #f4f8fc;
  border: 1px solid rgba(11, 43, 70, 0.11);
  border-radius: 14px;
}
.plan-detail-page-tabs + .tab-content:empty,
.plan-detail-page-tabs + .tab-content:not(:has(.tab-pane.active.show)) {
  display: none;
}

/* Tab Pane Header (eyebrow + hide details) */
.plan-detail-page-tabs + .tab-content .tab-pane-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.plan-detail-page-tabs + .tab-content .tab-pane-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #147bd1;
}
.plan-detail-page-tabs + .tab-content .hide-details-link {
  font-size: 14px;
  font-weight: 600;
  color: #147bd1;
  text-decoration: none;
  cursor: pointer;
}
.plan-detail-page-tabs + .tab-content .hide-details-link:hover {
  color: #0f5fa3;
  text-decoration: underline;
}
.plan-detail-page-tabs + .tab-content p {
  margin-bottom: 6px;
}
.plan-detail-page-tabs + .tab-content .tab-loading {
  padding: 20px 0;
}

/* Feature List (disc bullets) */
.v4-category-features {
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px;
}
.v4-category-features li {
  font-size: 15px;
  color: #0f476b;
  line-height: 1.55;
  padding: 4px 0;
  list-style: disc;
  margin-left: 18px;
}
.v4-category-features li > * {
  display: inline;
}
.v4-category-features li .tooltip-modal-mobile {
  position: absolute;
  visibility: hidden;
}
.v4-category-features li .tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(11, 43, 70, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #4d7391;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: 6px;
  cursor: help;
  text-decoration: none;
  vertical-align: middle;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.v4-category-features li .tooltip-icon:hover {
  border-color: #147bd1;
  color: #147bd1;
  text-decoration: none;
}
.v4-category-features li .tooltip-icon.d-md-none {
  display: none !important;
}
@media (max-width: 767.98px) {
  .v4-category-features li .tooltip-icon.d-md-none {
    display: inline-flex !important;
  }
  .v4-category-features li .tooltip-icon.d-none.d-md-inline-flex {
    display: none !important;
  }
}
.v4-category-features li .tooltip-icon .tooltip-icon-svg {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v4-category-features li .tooltip-icon .tooltip-icon-svg svg {
  width: 6px;
  height: 10px;
  opacity: 1;
}

@media (max-width: 530px) {
  .plan-detail-page-tabs .nav-link {
    font-size: 12px;
    padding: 9px 9px;
  }
  .v4-category-features li {
    font-size: 13px;
  }
  .plan-detail-page-tabs + .tab-content {
    padding: 24px 5px;
  }
}
