/* Studio Tamarran Connector — design tokens from the approved prototype.
   Override the variables in your child theme to re-brand. */
:root {
  --stc-bg: #FBF8F4;
  --stc-ink: #22372F;
  --stc-pine: #2F4A43;
  --stc-pine-deep: #233A34;
  --stc-hover: #233A34;
  --stc-rose: #B76E79;
  --stc-rose-soft: #F3E4E4;
  --stc-sage: #E4EAE3;
  --stc-line: #E5DED4;
  --stc-radius: 14px;
}

/* ---------- Buttons ---------- */
.stc-btn {
  display: inline-block; background: var(--stc-pine); color: #fff;
  padding: 11px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
  text-align: center; transition: background .15s;
}
.stc-btn:hover { background: var(--stc-hover); color: #fff; }
.stc-rose { background: var(--stc-rose); }
.stc-rose:hover { background: var(--stc-hover); }
.stc-ghost { background: transparent; color: var(--stc-pine); border: 1px solid var(--stc-pine); }
.stc-ghost:hover { background: var(--stc-sage); color: var(--stc-pine); }
.stc-btn:disabled { background: #C9C4BC; cursor: not-allowed; }

/* ---------- Packages ---------- */
#stc-packages { max-width: 1100px; margin: 0 auto; box-sizing: border-box; }
.stc-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; align-items: stretch; }
.stc-tier-card { border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; min-height: 260px; }
.stc-tier-entry { background: var(--stc-pine-deep); border: 1px solid rgba(255,255,255,.25); }
.stc-tier-popular { background: var(--stc-pine-deep); border: 1.5px solid var(--stc-rose); }
.stc-tier-best { background: #fff; border: 0.5px solid var(--stc-line); }
.stc-tier-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.stc-tier-entry .stc-tier-label { color: rgba(255,255,255,.6); }
.stc-tier-popular .stc-tier-label { color: var(--stc-rose); }
.stc-tier-best .stc-tier-label { color: #7A857F; }
.stc-tier-title { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.stc-tier-best .stc-tier-title { color: var(--stc-pine-deep); }
.stc-tier-price { font-size: 20px; color: #fff; margin: 0 0 4px; }
.stc-tier-best .stc-tier-price { color: var(--stc-pine); }
.stc-tier-unit { font-size: 11px; color: rgba(255,255,255,.65); margin: 0 0 10px; }
.stc-tier-best .stc-tier-unit { color: #8B8378; }
.stc-tier-btn { width: 100%; text-align: center; box-sizing: border-box; margin-top: auto; }
.stc-tier-card .stc-btn { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.stc-tier-card .stc-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.stc-tier-best .stc-btn { background: var(--stc-pine-deep); border: none; color: #fff; }
.stc-tier-best .stc-btn:hover { background: var(--stc-hover); }

.stc-pkg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.stc-pkg-tab {
  background: #fff; border: 1px solid var(--stc-line); color: var(--stc-pine-deep);
  border-radius: 10px; padding: 10px 20px; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.stc-pkg-tab:hover { border-color: var(--stc-pine); }
.stc-pkg-tab.stc-active { background: var(--stc-pine-deep); border-color: var(--stc-pine-deep); color: #fff; }
.stc-list-group { margin-bottom: 28px; }
.stc-list-group:last-child { margin-bottom: 0; }
.stc-list-rows { border-top: 0.5px solid var(--stc-line); }
.stc-list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 0.5px solid var(--stc-line); }
.stc-list-row-title { font-size: 14px; font-weight: 600; color: var(--stc-pine-deep); margin: 0; }
.stc-list-row-desc { font-size: 12px; color: #7A857F; margin: 2px 0 0; max-width: 46ch; }
.stc-list-row-right { text-align: right; flex-shrink: 0; }
.stc-list-row-price { font-size: 16px; color: var(--stc-pine); margin: 0; }
.stc-list-row-unit { font-size: 11px; color: #8B8378; margin: 0; }
.stc-list-row-btn { margin-top: 6px; }
@media (max-width: 640px) {
  .stc-tier-grid { grid-template-columns: 1fr; }
  .stc-tier-card { min-height: 0; }
  .stc-list-row { flex-direction: column; align-items: flex-start; }
  .stc-list-row-right { text-align: left; width: 100%; }
}

/* ---------- Schedule ---------- */
#stc-schedule {
  background: var(--stc-pine); color: #EAF0EC;
  border-radius: 24px; padding: 40px 32px;
  max-width: 1100px; margin: 0 auto; box-sizing: border-box;
}
.stc-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.stc-chip {
  border: 1px solid #547067; border-radius: 999px; padding: 7px 16px;
  font-size: .85rem; color: #DDE7E0; background: transparent; cursor: pointer;
}
.stc-chip:hover { border-color: #8FA79C; }
.stc-chip.stc-active { background: #fff; color: var(--stc-pine-deep); border-color: #fff; font-weight: 600; }
.stc-day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.stc-day-tab {
  min-width: 74px; text-align: center; border-radius: 12px; padding: 10px 8px;
  background: #3B5A51; color: #CFDCD4; font-size: .82rem; line-height: 1.3;
  flex-shrink: 0; border: none; cursor: pointer;
}
.stc-day-tab strong { display: block; font-size: 1.05rem; color: #fff; }
.stc-day-tab.stc-active { background: #fff; color: var(--stc-pine); }
.stc-day-tab.stc-active strong { color: var(--stc-pine-deep); }
.stc-class-list { display: flex; flex-direction: column; gap: 12px; }
.stc-class-card {
  background: var(--stc-bg); color: var(--stc-ink); border-radius: 12px;
  padding: 16px 20px; display: grid;
  grid-template-columns: 86px 1fr auto; gap: 18px; align-items: center;
}
.stc-time { font-size: 1.2rem; color: var(--stc-pine-deep); font-weight: 500; }
.stc-time small { display: block; font-size: .75rem; color: #7A857F; font-weight: 400; }
.stc-info h3 { font-size: 1.02rem; margin: 0 0 2px; }
.stc-info p { font-size: .84rem; color: #5A6660; margin: 0; }
.stc-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
[dir="rtl"] .stc-cta { align-items: flex-start; }
.stc-spots { font-size: .78rem; color: #5A6660; }
.stc-spots.stc-low { color: var(--stc-rose); font-weight: 600; }
.stc-spots.stc-full { color: #9A948B; }
.stc-class-card.stc-past { opacity: .6; }
.stc-completed {
  background: #E5E1D8; color: #7A857F; font-size: .8rem; font-weight: 600;
  padding: 8px 18px; border-radius: 999px;
}
.stc-book {
  background: var(--stc-rose); color: #fff; border-radius: 999px;
  padding: 8px 20px; font-size: .86rem; font-weight: 600; border: none; cursor: pointer;
}
.stc-book:hover { background: var(--stc-hover); }
.stc-book:disabled { background: #CBC6BE; color: #8B867E; cursor: not-allowed; }
.stc-empty { padding: 32px; text-align: center; color: #BFCFC6; font-size: .95rem; }
@media (max-width: 640px) {
  #stc-schedule { padding: 28px 16px; border-radius: 0; }
  .stc-class-card { grid-template-columns: 1fr; gap: 8px; }
  .stc-cta { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Modal ---------- */
.stc-overlay {
  position: fixed; inset: 0; background: rgba(35,58,52,.45); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.stc-overlay.stc-open { display: flex; }
.stc-modal {
  background: #fff; color: var(--stc-ink); border-radius: 18px;
  max-width: 440px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 30px 28px; position: relative;
}
.stc-x {
  position: absolute; top: 14px; inset-inline-end: 16px;
  font-size: 1.2rem; color: #9A948B; background: none; border: none; cursor: pointer;
}
.stc-modal h3 { font-size: 1.3rem; color: var(--stc-pine-deep); margin: 0 0 4px; }
.stc-sub { font-size: .88rem; color: #5A6660; margin: 0 0 16px; }
.stc-small { font-size: .8rem; }
.stc-field { margin-bottom: 14px; }
.stc-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--stc-pine); }
.stc-field input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--stc-line);
  border-radius: 10px; font: inherit; background: var(--stc-bg); box-sizing: border-box;
}
.stc-field input:focus { outline: 2px solid var(--stc-rose); outline-offset: 1px; border-color: transparent; }
.stc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stc-pricebox {
  background: var(--stc-bg); border: 1px solid var(--stc-line); border-radius: 12px;
  padding: 16px 18px; margin: 16px 0; font-size: .92rem;
}
.stc-line { display: flex; justify-content: space-between; padding: 3px 0; }
.stc-line.stc-total { border-top: 1px solid var(--stc-line); margin-top: 8px; padding-top: 10px; font-weight: 600; font-size: 1.05rem; }
.stc-line.stc-disc { color: var(--stc-rose); }
.stc-err {
  background: var(--stc-rose-soft); color: #8E4650; border-radius: 10px;
  padding: 10px 14px; font-size: .86rem; margin-bottom: 12px; display: none;
}
.stc-err.stc-show { display: block; }
.stc-modal .stc-btn { width: 100%; margin-top: 8px; box-sizing: border-box; }
.stc-center { text-align: center; }
.stc-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--stc-sage);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--stc-pine); font-size: 1.8rem;
}
.stc-num {
  font-size: 1.4rem; color: var(--stc-pine-deep); text-align: center;
  background: var(--stc-bg); border-radius: 10px; padding: 12px;
  margin: 14px 0; letter-spacing: .04em; font-weight: 500;
}
