/* -------------------------------------------------
   Same container spec as .cf-view-container / .cf-container
   (see CF.css) so Pricing matches Corporate Filings visually --
   renamed to .pricing-view-container / .pricing-container so
   this file no longer collides with CF's own class names
   (see prompts-todo.md item 2).
   ------------------------------------------------- */
.pricing-view-container {
  background-color: #313f54;
  border-radius: 1em;
  display: flex;
  justify-content: center;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.5em;
  overflow-x: auto;
  color: #cfe5ff;
  line-height: 1.6;
}

.pricing-container {
  position: relative; /* anchor for .back-corner-button, same pattern as .forgot-container */
  width: 95%;
  padding: 1rem;
  padding-top: 2.5rem; /* room so the corner button doesn't crowd the header */
  background-color: #2e3b4e;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pricing-intro {
  color: #a0b5d3;
  margin: 0.5rem 0 1rem;
}

/* -------------------------------------------------
   Corner "Back" button -- triggers the browser's own
   history.back() instead of linking to /view/login (pricing is
   reachable from more places than just the login screen). Same
   visual treatment as .back-to-login-corner in forgot.css/
   register.css/totp.css: absolute-positioned in the container's
   top-left corner, red accent pulled from the terminal.mk logo mark.
   window.history.back() is a baseline DOM API supported in every
   browser pricing.ejs needs to run in; the inline onclick falls back
   to /view/login when there's no prior history entry to return to
   (e.g. pricing opened directly / in a new tab).
   ------------------------------------------------- */
.back-corner-button {
  position: absolute;
  top: 0.75rem;
  left: 0.9375rem;
  background-color: #a52a53;
  color: #ffffff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.back-corner-button:hover {
  background-color: #841f41;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #3b4e6e;
  border-radius: 0.5rem;
  margin-top: 0.5em;
}

.table-wrapper::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: #344357;
  border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: #26a69a;
  border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #20877d;
}
.table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #26a69a #344357;
}

/* -------------------------------------------------
   Pricing matrix – same border/spacing language as
   .cf-table
   ------------------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.pricing-table th,
.pricing-table td {
  border: 2px solid #cfe5ff;
  padding: 0.75rem 0.6rem;
  text-align: center;
  font-size: 0.95rem;
}

.pricing-table thead th {
  background-color: #3b4e6e;
  color: #cfe5ff;
  font-size: 1.05rem;
  position: sticky;
  top: 0;
}

.pricing-feature-col {
  text-align: left !important;
  font-weight: bold;
  background-color: #344357;
  white-space: normal;
  word-break: break-word;
  width: 220px;
}

/* Professional column gets a subtle highlight to draw the eye,
   same accent orange used across the app for primary/active actions */
.pricing-highlight-col {
  background-color: rgba(255, 140, 0, 0.08);
  border-color: #ff8c00 !important;
}

/* Explicit right-edge reinforcement: with border-collapse: collapse,
   two adjacent cells sharing an edge can have their border-color
   resolution won by either side depending on the browser's conflict
   rules -- border-color alone (above) isn't a reliable guarantee for
   Professional's outer/right edge across browsers. Stating border-right
   directly, scoped to both td and th so it applies to every row
   including the header, removes that ambiguity. */
.pricing-table td.pricing-highlight-col,
.pricing-table th.pricing-highlight-col {
  border-right: 2px solid #ff8c00 !important;
}

thead .pricing-highlight-col {
  background-color: #ff8c00;
  color: #2e3b4e;
}

.pricing-check {
  color: #26a69a;
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-x {
  color: #a52a53;
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-partial {
  color: #ff8c00;
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-price-row td {
  font-size: 1.15rem;
  font-weight: bold;
  color: #cfe5ff;
}

/* -------------------------------------------------
   Footnotes -- referenced by <sup> markers in the table
   (dagger for the Data/TAS row, asterisk for the Free Requests row).
   ------------------------------------------------- */
.pricing-footnotes {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  color: #a0b5d3;
  font-size: 0.8rem;
  line-height: 1.5;
}

.pricing-footnotes li {
  margin-bottom: 0.35rem;
}

.pricing-footnotes li:last-child {
  margin-bottom: 0;
}

.pricing-footnotes sup {
  color: #ff8c00;
  margin-right: 0.15rem;
}

/* -------------------------------------------------
   768px – tablet / small-desktop
   ------------------------------------------------- */
@media screen and (max-width: 768px) {
  .pricing-table th,
  .pricing-table td {
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
  }

  .pricing-price-row td {
    font-size: 1rem;
  }

  .pricing-feature-col {
    width: 140px;
  }

  .back-corner-button {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}
