/* =========================
   Purchase section (table)
   ========================= */
/* Purchase section vertically centered */
.purchase-section {
  /* keeps anchor scrolling sane while giving room */
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;

  /* vertical centering behavior */
  min-height: calc(100vh - 120px); /* adjust if you have a fixed navbar */
  display: flex;
  align-items: center;
}

/* Make sure container doesn't fight the flex centering */
.purchase-section > .container {
  width: 100%;
}

/* Purchase-wrap is only used on the home page for alignment with other content */

/* The table already uses width: 100% — so it will follow rb-content */
.purchase-wrap .table {
  width: 100%;
}

/* If you want the purchase block to be slightly lower than dead-center, tweak */
.purchase-center {
  transform: translateY(-10px); /* optional: remove if you want true center */
}

.purchase-wrap .table:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.purchase-wrap .table.table-bordered { border-color: rgba(0,0,0,.08); }

.purchase-wrap .table.table-bordered th,
.purchase-wrap .table.table-bordered td { border-color: rgba(0,0,0,.08); }

.purchase-wrap .table thead th {
  background: rgba(0,0,0,.015);
  font-weight: 700;
  white-space: nowrap;
}

.purchase-wrap .table tbody tr {
  transition: background-color 140ms ease;
}

.purchase-wrap .table tbody tr:hover {
  background-color: rgba(13,110,253,.045);
}

.purchase-wrap select.form-control { height: 40px; }

.purchase-wrap {
  font-weight: 400;
  font-size: 1rem;
}

.purchase-wrap td.w-25 {
  width: 260px;
  min-width: 260px;
}

.purchase-wrap td.w-25 .btn {
  border-radius: 10px;
  padding: 0.45rem 1rem;
}

/* Column sizing for better visual balance */
.purchase-wrap .table th:nth-child(1),
.purchase-wrap .table td:nth-child(1) { width: 34%; }

.purchase-wrap .table th:nth-child(2),
.purchase-wrap .table td:nth-child(2) { width: 16%; }

.purchase-wrap .table th:nth-child(3),
.purchase-wrap .table td:nth-child(3) { width: 16%; }

.purchase-wrap .table th:nth-child(4),
.purchase-wrap .table td:nth-child(4) { width: 16%; }

.purchase-wrap .table th:nth-child(5),
.purchase-wrap .table td:nth-child(5) { width: 18%; }

/* Basic tooltip wrapper - used for purchase table options */
.tt {
  position: relative;
  display: inline-block;
}

/* Tooltip bubble */
.tt .tt-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;

  background: #333;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;

  font-size: 13px;
  line-height: 1.2;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;

  z-index: 9999;
  pointer-events: none;
  white-space: normal;
}

/* Show tooltip on hover OR keyboard focus */
.tt:hover .tt-text,
.tt:focus-within .tt-text {
  opacity: 1;
  visibility: visible;
}

/* Optional: small arrow after tooltips */
.tt .tt-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Informational banner in purchase section */
.rb-info-banner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 12px;

  background: rgba(13,110,253,.08);
  border: 1px solid rgba(13,110,253,.22);
  color: #0b4fb3;

  font-weight: 600;
}

.rb-info-banner i {
  font-size: 1.05em;
}
.option-text {
    font-size: 1em;
    font-weight: 600;
    color: #2875b9;
    font-family: var(--bs-body-font-family);
}

.price {
    font-size: 1.5em;
    font-weight: 600;
    color: #2875b9;
    font-family: var(--bs-body-font-family);
}


/* Wrapper for dropdown with icon */
.dropdown-wrapper {
  position: relative;
}

/* Container that holds the select + icon */
.dropdown-container {
  position: relative; /* anchor for absolute icon */
  width: 100%;
}

/* Only style selects inside your dropdown container */
.dropdown-container select {
  width: 100%;
  padding-right: 2.5rem; /* space for the icon */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Optional: if something is adding a native arrow background */
  background-image: none;
}

/* Chevron icon */
.dropdown-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6c757d;
  font-size: 14px;
}

/* Make the terms checkbox + text align consistently */
.terms-consent {
  display: flex;              /* fixes alignment & wrapping */
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem 0;      /* spacing above the button */
  width: 100%;
}

/* Force consistent text styling no matter the page/container */
.terms-consent .form-check-label {
  font-family: var(--bs-body-font-family);
  font-size: 0.95rem;
  font-weight: 400;           /* prevents “bold” look */
  line-height: 1.35;
  color: #212529;             /* Bootstrap body text */
  margin: 0;                  /* avoid odd default margins */
}

/* Keep links consistent too */
.terms-consent .form-check-label a {
  font-weight: 500;           /* slightly emphasized but not “heavy” */
  text-decoration: underline;
}

/* Ensure the checkbox doesn’t stretch or misalign */
.terms-consent .form-check-input {
  margin-top: 0.2rem;         /* aligns box with first line of text */
  flex: 0 0 auto;
}
