/* Email customers (pages/offers.js). Every rule starts .stp-offers; colours only from the studio's variables. */

.stp-offers-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.stp-offers-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.01em; }
.stp-offers-head-words { min-width: 0; }
.stp-offers-head-words .st-muted { font-size: 15px; max-width: 62ch; }
.stp-offers-count { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 120px; padding: 12px 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.stp-offers-count b { font-size: 40px; line-height: 1; color: var(--green); }
.stp-offers-count span { font-size: 13px; font-weight: 700; color: var(--muted); }

.stp-offers-first { justify-items: start; }

/* The advert, before it is on. */
.stp-offers-promo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; padding: 30px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(46, 212, 122, .14), rgba(46, 212, 122, .03)); border: 1px solid rgba(46, 212, 122, .4); }
.stp-offers-promo-words { display: grid; gap: 12px; min-width: 0; }
.stp-offers-eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.stp-offers-promo-title { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.stp-offers-lede { margin: 0; font-size: 17px; color: var(--text); max-width: 56ch; }
.stp-offers-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stp-offers-points li { position: relative; padding-left: 28px; color: var(--muted); }
.stp-offers-points li b { color: var(--text); }
.stp-offers-points li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--green); color: var(--green-ink); }
.stp-offers-promo-pic img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.stp-offers-agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); cursor: pointer; }
.stp-offers-agree b { color: var(--text); }
.stp-offers-agree input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.stp-offers-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Open: the jobs, four cards exactly the same size. */
.stp-offers-status { margin: 0; }
.stp-offers-jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stp-offers-job { grid-template-rows: auto auto 1fr auto; align-content: start; min-height: 196px; padding: 18px; border-radius: 18px; }
.stp-offers-job:disabled { opacity: .5; cursor: default; }
.stp-offers-job .stp-offers-job-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--green) !important; background: rgba(46, 212, 122, .12); }
.stp-offers-job b { font-size: 17px; }
.stp-offers-job .st-cost { align-self: end; }

.stp-offers-sent { margin-top: 0; }
.stp-offers-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stp-offers-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stp-offers-rows li > b, .stp-offers-rows li > span:first-child { min-width: 0; }
.stp-offers-sent .stp-offers-rows li { display: grid; gap: 2px; justify-content: stretch; }
.stp-offers-sched li > span { display: grid; gap: 2px; }
.stp-offers-sched .st-btn { flex: 0 0 auto; min-width: 104px; }

/* Windows. */
.stp-offers-send { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.stp-offers-form { display: grid; gap: 4px; margin-top: 0; }
.stp-offers-form select { width: 100%; }
.stp-offers-form input, .stp-offers-form textarea, .stp-offers-form select { font-weight: 500; }
.stp-offers-costline { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.stp-offers-costline b { color: var(--gold); }
.stp-offers-acts { align-items: center; }
.stp-offers-acts .st-btn { min-width: 180px; }
.stp-offers-sure { flex: 1 0 100%; margin: 0 0 4px; font-weight: 800; font-size: 17px; }
.stp-offers-send-look .st-label { margin-top: 0; }
.stp-offers-mail { padding: 18px; border-radius: 18px; background: #fff; color: #111; box-shadow: 0 14px 36px rgba(0, 0, 0, .4); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.stp-offers-mail p { margin: 0; }
.stp-offers-mail .st-muted { color: #8a8f99; font-size: inherit; }
.stp-offers-mail-from { font-size: 13px; color: #555; }
.stp-offers-mail-subject { font-weight: 800; font-size: 17px; margin: 2px 0 12px !important; padding-bottom: 10px; border-bottom: 1px solid #e6e8ec; }
.stp-offers-mail-words { white-space: pre-wrap; margin-bottom: 18px !important; }
.stp-offers-mail-foot { margin-top: 4px !important; font-size: 12px; color: #666; }
.stp-offers-even .st-chip, .stp-offers-days .st-chip { min-width: 0; }
.stp-offers-even { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stp-offers-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.stp-offers-days .st-chip { padding: 0 4px; }
.stp-offers-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stp-offers-when input[type="datetime-local"] { min-height: 44px; color-scheme: dark; }
.stp-offers-auto { margin-top: 0; }
.stp-offers-auto .st-toggle + .st-toggle { border-top: 1px solid var(--line); padding-top: 12px; }
.stp-offers-table-wrap { overflow-x: auto; max-height: 56dvh; border-radius: 14px; border: 1px solid var(--line); }
.stp-offers-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stp-offers-table th { position: sticky; top: 0; text-align: left; padding: 10px 12px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.stp-offers-table td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }

@media (max-width: 1100px) {
  .stp-offers-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stp-offers-head { padding: 18px; align-items: flex-start; }
  .stp-offers-head h2 { font-size: 22px; }
  .stp-offers-count { min-width: 92px; padding: 10px 12px; }
  .stp-offers-count b { font-size: 32px; }
  .stp-offers-promo { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .stp-offers-promo-title { font-size: 24px; }
  .stp-offers-promo-pic img { max-width: 180px; }
  .stp-offers-buy .st-btn { width: 100%; }
  .stp-offers-jobs { grid-template-columns: 1fr; }
  .stp-offers-job { min-height: 150px; }
  .stp-offers-send { grid-template-columns: 1fr; }
  .stp-offers-acts .st-btn { flex: 1 1 140px; min-width: 0; }
  .stp-offers-when { grid-template-columns: 1fr; }
  .stp-offers-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stp-offers-rows li { flex-wrap: wrap; }
  .stp-offers-sched .st-btn { width: 100%; }
}
