/* Client texting page (/client-texting). Sits on the real page CSS and adds only the texting parts:
   the drawn phone, text bubbles, the booking box and the in-person script. WWC baseline: #f7f7f7 page, white
   cards, brand brown only as a solid or an outline, no gradients, no tan fills. */

/* ---- The video slot (A and B). Grey until the video file is in place. ---- */
.tx-video-slot {
  position: relative;
  margin: 0;
}

.tx-video-slot video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  border-radius: 10px;
  border: 1px solid #e4e2df;
  background: #f4f4f4;
  object-fit: contain;
}

.tx-video-slot-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #68625d;
  font: 600 0.95rem/1.3 "Plus Jakarta Sans", sans-serif;
  pointer-events: none;
}

.tx-video-slot.has-video .tx-video-slot-empty {
  display: none;
}

/* ---- A text thread: what the client sees ---- */
.tx-thread {
  display: grid;
  gap: 0.55rem;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
}

.tx-thread-time {
  justify-self: center;
  margin: 0.35rem 0 0.1rem;
  color: #8a8580;
  font-size: 0.72rem;
  font-weight: 600;
}

.tx-bubble {
  max-width: 86%;
  padding: 0.62rem 0.85rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.tx-bubble.is-in {
  justify-self: start;
  border-bottom-left-radius: 6px;
  color: #1d1d1d;
  background: #ececec;
}

.tx-bubble.is-out {
  justify-self: end;
  border-bottom-right-radius: 6px;
  color: #ffffff;
  background: #cd7b36;
}

.tx-bubble a,
.tx-bubble .tx-link {
  color: #1d1d1d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tx-thread-note {
  justify-self: center;
  max-width: 90%;
  margin: 0;
  color: #68625d;
  font-size: 0.74rem;
  text-align: center;
}

/* ---- The drawn phone (C hero, B phone section) ---- */
.tx-phone {
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 11px;
  border-radius: 48px;
  background: #1d1d1d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.tx-phone-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 600px;
  overflow: hidden;
  border-radius: 38px;
  background: #ffffff;
}

.tx-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 6px;
  color: #1d1d1d;
  font: 600 0.82rem/1 -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
}

.tx-phone-status i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d1d1d;
}

.tx-phone-head {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid #ececec;
}

.tx-phone-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #9a9a9a;
  font: 600 1.05rem/1 -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
}

.tx-phone-head strong {
  color: #1d1d1d;
  font: 600 0.82rem/1.2 -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
}

.tx-phone-head small {
  color: #8a8580;
  font: 500 0.7rem/1.2 -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
}

.tx-phone .tx-thread {
  align-content: start;
  padding: 10px 14px 22px;
}

.tx-phone .tx-bubble {
  font-size: 0.84rem;
}

/* ---- One text, shown as a card (A tabs, C "two texts") ---- */
.tx-text-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  border: 1px solid #e4e2df;
  border-radius: 10px;
  background: #ffffff;
}

.tx-text-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tx-text-card-head img {
  width: 22px;
  height: 22px;
}

.tx-text-card-head span {
  color: #68625d;
  font-size: 0.82rem;
  font-weight: 600;
}

.tx-text-card .tx-thread {
  padding: 1rem;
  border-radius: 8px;
  background: #f7f7f7;
}

/* ---- How clients agree ---- */
.tx-optin {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px solid #e4e2df;
  border-radius: 10px;
  background: #ffffff;
}

.tx-optin-label {
  margin: 0;
  color: #68625d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tx-optin-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e4e2df;
  border-radius: 8px;
  background: #f7f7f7;
  color: #242424;
  font-size: 0.86rem;
  line-height: 1.45;
}

.tx-optin-box i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #cd7b36;
  border-radius: 4px;
  background: #cd7b36;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.tx-script {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-left: 3px solid #cd7b36;
  border-radius: 0 8px 8px 0;
  background: #f7f7f7;
  color: #242424;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tx-script-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tx-script-actions span {
  padding: 0.5rem 0.9rem;
  border: 1px solid #e4e2df;
  border-radius: 8px;
  color: #242424;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.tx-script-actions span.is-yes {
  border-color: #cd7b36;
  color: #ffffff;
  background: #cd7b36;
}

/* ---- Two-up grids used by B and C ---- */
.tx-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tx-two > article {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.tx-two h3 {
  margin: 0;
  font-family: "Signika", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.tx-two p {
  margin: 0;
  color: #68625d;
  line-height: 1.6;
}

.tx-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.tx-section.is-white {
  border-top: 1px solid #e4e2df;
  border-bottom: 1px solid #e4e2df;
  background: #ffffff;
}

.tx-section.is-white .tx-text-card,
.tx-section.is-white .tx-optin {
  background: #f7f7f7;
}

.tx-section.is-white .tx-text-card .tx-thread,
.tx-section.is-white .tx-optin-box,
.tx-section.is-white .tx-script {
  background: #ffffff;
}

/* The C hero: the phone sits where the business pages put their video. */
.tx-hero-phone {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.tx-hero-phone figcaption {
  max-width: 330px;
  color: #68625d;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* B's "On a phone" section keeps the app-page grid; the phone replaces the phone video. */
.app-phone-video.tx-phone-figure {
  display: grid;
  place-items: center;
}

/* A's tab media: the text card fills the media side. */
.scheduling-tab-media.tx-tab-media {
  display: grid;
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #e4e2df;
  border-radius: 10px;
  background: #f7f7f7;
}

/* A's setup checklist reuses the scheduling settings stack. */
.scheduling-setting-row b.tx-ok {
  color: #3f7a3a;
}

@media (max-width: 760px) {
  .tx-two {
    grid-template-columns: 1fr;
  }

  .tx-phone-screen {
    min-height: 540px;
  }
}

/* ---- Fixes after the first look ---- */
.tx-bubble,
.tx-thread-note {
  margin: 0;
}

/* In A's tabs the media box is already the card; the thread sits on it directly. */
.tx-tab-media .tx-text-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.tx-tab-media .tx-text-card .tx-thread {
  background: #ffffff;
}

/* Side-by-side cards line up: card, heading and words start at the same height. */
.tx-two.is-aligned {
  row-gap: 0.8rem;
}

.tx-two.is-aligned > article {
  grid-row: span 3;
  grid-template-rows: subgrid;
}

.tx-two .biz-section-heading {
  margin-bottom: 1.2rem;
}

@media (max-width: 760px) {
  .tx-two.is-aligned {
    row-gap: 0.8rem;
  }

  .tx-two.is-aligned > article + article {
    margin-top: 1.6rem;
  }
}

.tx-text-card,
.tx-optin {
  align-content: start;
}
