/* =========================
   WRAPPER & SCROLL
========================= */

.pricing-table-wrapper {
  position: relative;
}

@media (max-width: 1200px) {
  .pricing-table-wrapper {
    overflow-x: auto;
  }
}

.pricing-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: center;
  border: 1px solid #eee;
}

/* =========================
   TABLE HEAD
========================= */

.pricing-table thead th {
  background: #fff;
  padding: 0 4px 10px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #eee;
}

.pricing-table thead th:first-child {
  text-align: left;
  font-weight: 400;
  font-size: 14px;
  color: #555;
  /*padding-right: 250px;*/
}

@media (max-width: 580px) {
  .pricing-table thead th:first-child {
    /*padding-right: 200px;*/
  }
}

/* =========================
   BODY CELLS
========================= */

/* Space only when section is COLLAPSED */
.pricing-table .section-title:not(.open) td {
  border-bottom: 20px solid #ffffff; /* match page bg */
}

/* Remove space when section is OPEN */
.pricing-table .section-title.open td {
  border-bottom: none;
}



.pricing-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #eee;
  /*border-left: 1px solid #eee;*/
  /*border-right: 1px solid #eee;*/
  font-size: 14px;
  color: #262727;
}

.pricing-table tbody tr:nth-child(even) td {
  background: #fff;
}

.pricing-table tbody td:first-child {
  background: #fff;
  text-align: left;
  font-weight: 400;
  color: #000;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  position: relative;
  z-index: 2;
}

/* =========================
   PRICE & BUTTONS
========================= */

.pricing-table .price {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.pricing-table .btn,
.pricing-table .btn1 {
  display: inline-block;
  padding: 11px 18px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  min-width: 175px;
  transition: background 0.1s ease, color 0.1s ease, border 0.1s ease;
}

.pricing-table .btn {
  background: #fff;
  color: #0a3d42;
  border: 1px solid #0a3d42;
}

.pricing-table .btn:hover {
  background: #01516e;
  color: #fff;
  border-color: #01516e;
}

.pricing-table .btn1 {
  background: #16a2b9;
  color: #fff;
  border: 1px solid #16a2b9;
}

.pricing-table .btn1:hover {
  background: #01516e;
  border-color: #01516e;
}

/* =========================
   CHECK / DASH
========================= */

.pricing-table .check {
  color: #28a745;
  font-weight: 700;
}

.pricing-table .dash {
  color: #262727;
}

/* =========================
   INFO ICON (SVG ONLY)
========================= */

.pricing-table td {
  position: relative;
}

.info {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-icon {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

/* Keyboard focus */
.info:focus-visible {
  outline: 2px solid #16a2b9;
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================
   TOOLTIP
========================= */

.info .tooltip-text {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.12);
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 350px;
  width: max-content;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  will-change: opacity;
}

@media (max-width: 580px) {
  .info .tooltip-text {
    max-width: 300px;
  }
}

/* Tooltip arrow (CSS, NOT SVG) */
.info .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* Show tooltip */
.info:hover .tooltip-text,
.info:focus-visible .tooltip-text {
  opacity: 1;
  visibility: visible;
}



/* =========================
   SECTION HEADER (ACCORDION)
========================= */

.pricing-table .section-title {
  cursor: pointer;
}

.pricing-table .section-title td {
  background: #0d6efd !important;
  color: #fff !important;
  font-weight: 700;
  /*border-top: 1px solid #0d6efd;*/
  position: relative;
}

/* Chevron */
.pricing-table .section-title td::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.pricing-table .section-title.open td::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* =========================
   HEADINGS
========================= */

.pricing-table-wrapper h1 {
  text-align: center;
  margin: 0;
  font-size: 32px;
}

.pricing-table-wrapper .sub {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

/* Lock feature column width (HEAD + BODY) */
.pricing-table thead th.feature-head,
.pricing-table tbody td:first-child {
  width: 230px;
  min-width: 230px;
  max-width: 230px;
}

.pricing-table .section-gap td {
  padding: 0;
  height: 30px;
  background: transparent;
  border: 1px solid #fff;
}

.pricing-table-sticky {
  position: fixed;
  left: 0;
  background: #ffffff;
  z-index: 9999;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Desktop */
@media (min-width: 1201px) {
  .pricing-table-sticky {
    top: 85px;
  }
}

/* Sticky open section title (JS-driven) */
.pricing-section-sticky {
  position: fixed;
  background: #0d6efd;
  z-index: 9997;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pricing-section-sticky {
  animation: slideDown 0.15s ease;
}

@keyframes slideDown {
  from { transform: translateY(-15px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* =========================
   COMPONENT: comp-title-pr
========================= */

.comp-title-pr {
  text-align: center;
  padding: 10px 8px 10px;
}

/* Header row: title + discount */
/* Header: stack vertically */
.comp-title-pr__header {
  display: flex;
  flex-direction: column;     /* KEY CHANGE */
  align-items: center;
  gap: 6px;                   /* space between title & badge */
  margin-bottom: 5px;
}

.comp-title-pr__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Old price + discount badge row */
.comp-title-pr__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}


.old-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.discount-badge {
  background: #ffe8cc;
  color: #ff6a00;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Main price */
.comp-title-pr__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0 0 0;
  color: #1a1a1a;
}

.comp-title-pr__price .currency {
  font-size: 18px;
  font-weight: 400;
}

.comp-title-pr__price .amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.comp-title-pr__price .period {
  font-size: 14px;
  font-weight: 400;
  /*margin-left: 2px;*/
}

/* Note text – hidden by default */
.comp-title-pr__note {
  display: none;
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0 0 5px;
}

/* Show only on screens wider than 1200px */
@media (min-width: 580px) {
  .comp-title-pr__note {
    display: block;
  }
}

/* CTA button spacing */
.comp-title-pr__cta {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 580px) {
  .comp-title-pr {
    padding: 20px 12px 24px;
  }

  .comp-title-pr__header {
    flex-wrap: wrap;
  }

  .comp-title-pr__price .amount {
    font-size: 28px;
  }
}
