/* Table Capture Pro Max upsell — inline banner + interstitial modal.
   Brand: orange #fc6b44, cornflowerblue #6495ed, gradient end #cfe0f7. */

.tc-upsell-discount {
  color: #fc6b44;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Shared button ---------- */

.tc-upsell-cta {
  display: inline-block;
  background-color: #fc6b44;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.tc-upsell-cta:hover,
.tc-upsell-cta:focus {
  background-color: #e85a34;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.tc-upsell-close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.tc-upsell-close:hover {
  opacity: 1;
}

/* ---------- Inline banner (homepage) ---------- */

/* On the homepage this banner is the first in-flow element, sitting directly
   under the `fixed-top` nav (out of flow, 56px tall). The 104px top margin
   leaves 48px of visible gap once the nav is accounted for, matching the 48px
   below — see the sibling rule beneath for how the lower gap is controlled. */
.tc-upsell-inline {
  position: relative;
  margin: 104px auto 48px;
  max-width: 960px;
  background: #fff;
  border-left: 5px solid #fc6b44;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(51, 51, 51, 0.13);
  padding: 22px 52px 22px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* The next section is a `.container.first`, whose 72px top padding exists to
   clear the fixed nav. When the banner is showing it has already cleared the
   nav, so drop that padding — otherwise it stacks onto the banner's bottom
   margin and the gap below ends up far larger than the one above. */
.tc-upsell-inline:not(.hidden) + .container.first {
  padding-top: 0;
}

.tc-upsell-inline .tc-upsell-body {
  flex: 1 1 320px;
  color: #333;
}
.tc-upsell-inline .tc-upsell-title {
  font-family: "Roboto", "Noto Sans", sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #333;
}
.tc-upsell-inline .tc-upsell-sub {
  margin: 0;
  font-size: 15px;
  color: #5a5a5a;
}
.tc-upsell-inline .tc-upsell-actions {
  flex: 0 0 auto;
}
.tc-upsell-inline .tc-upsell-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  color: #333;
}

/* ---------- Interstitial modal (/tablecapture) ---------- */

body.tc-upsell-modal-open {
  overflow: hidden;
}

.tc-upsell-interstitial {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 44, 76, 0.55);
}

.tc-upsell-interstitial .tc-upsell-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(28, 44, 76, 0.35);
  overflow: hidden;
  text-align: center;
}

.tc-upsell-interstitial .tc-upsell-header {
  background: linear-gradient(120deg, #6495ed 0%, #cfe0f7 100%);
  padding: 28px 24px 22px;
}
.tc-upsell-interstitial .tc-upsell-badge {
  display: inline-block;
  background: #fc6b44;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.tc-upsell-interstitial .tc-upsell-title {
  font-family: "Roboto", "Noto Sans", sans-serif;
  font-size: 26px;
  font-weight: 500;
  margin: 0;
  color: #1c2c4c;
}

.tc-upsell-interstitial .tc-upsell-content {
  padding: 24px;
}
.tc-upsell-interstitial .tc-upsell-sub {
  font-size: 16px;
  color: #33415c;
  margin: 0 0 22px;
}
.tc-upsell-interstitial .tc-upsell-cta {
  font-size: 17px;
  padding: 12px 28px;
}
.tc-upsell-interstitial .tc-upsell-decline {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  border: 0;
  color: #7a869a;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.tc-upsell-interstitial .tc-upsell-decline:hover {
  color: #33415c;
}

.tc-upsell-interstitial .tc-upsell-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  color: #1c2c4c;
  z-index: 1;
}

@media (max-width: 575px) {
  .tc-upsell-inline {
    margin: 88px auto 32px;
    padding: 18px 44px 18px 20px;
  }
  .tc-upsell-inline .tc-upsell-title {
    font-size: 19px;
  }
}
