/* Web Sales Concierge — proposal presentation modal (see proposal.js).
 * Own stylesheet, mirroring the Instant Quote shell; inherits the widget's
 * palette variables from wsc.css. */

.wsc-pp { position: fixed; inset: 0; z-index: 70; display: none; }
.wsc-pp.show { display: block; }
.wsc-pp-back { position: absolute; inset: 0; background: rgba(18, 54, 38, .55); backdrop-filter: blur(2px); }
.wsc-pp-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(640px, calc(100% - 24px)); height: min(760px, calc(100% - 24px));
  background: var(--wsc-bg); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  animation: wscPpIn .18s ease-out;
}
@keyframes wscPpIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.wsc-pp-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--wsc-green-deep); color: #fff; flex: 0 0 auto;
}
.wsc-pp-title { flex: 1; min-width: 0; }
.wsc-pp-title b { font-size: 15px; display: block; }
.wsc-pp-badge {
  display: inline-block; margin-top: 3px; font-size: 11.5px; color: #ffe9b8;
  background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 2px 9px;
}
.wsc-pp-badge.x { color: #c9f3da; }
.wsc-pp-x { border: 0; background: transparent; color: #9fceb2; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wsc-pp-x:hover { color: #fff; }

.wsc-pp-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wsc-pp-empty { text-align: center; color: var(--wsc-ink-2); font-size: 14px; padding: 40px 20px; }

.wsc-pp-hero { background: var(--wsc-green-deep); color: #fff; padding: 0 18px 18px; }
.wsc-pp-hero svg { max-width: calc(100% + 36px); height: auto; display: block; margin: 0 -18px 12px; }
.wsc-pp-hero h2 { margin: 0 0 4px; font-size: 20px; }
.wsc-pp-hero p { margin: 0; color: #9fceb2; font-size: 13.5px; }

/* ── the option cards ── */
.wsc-pp-opts { display: grid; gap: 12px; padding: 14px; }
.wsc-pp-opts.n2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .wsc-pp-opts.n2 { grid-template-columns: 1fr; } }
.wsc-pp-opts .opt {
  position: relative; background: var(--wsc-card); border: 1.5px solid var(--wsc-line);
  border-radius: 14px; padding: 16px 14px 14px; display: flex; flex-direction: column;
}
.wsc-pp-opts .opt { transition: border-color .12s, box-shadow .12s, transform .12s; }
.wsc-pp-opts .opt:hover { border-color: var(--wsc-green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 107, 49, .16); }
.wsc-pp-opts .opt.feat { border-color: var(--wsc-green); box-shadow: 0 4px 18px rgba(15, 107, 49, .14); }
.wsc-pp-opts .tag {
  position: absolute; top: -9px; left: 12px; background: var(--wsc-green); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  border-radius: 999px; padding: 3px 9px;
}
.wsc-pp-opts .opt:not(.feat) .tag { background: var(--wsc-ink-2); }
.wsc-pp-opts h3 { margin: 2px 0 6px; font-size: 16px; color: var(--wsc-green-deep); }
.wsc-pp-opts p { margin: 0 0 10px; font-size: 13px; color: var(--wsc-ink-2); line-height: 1.5; }
/* the price block each story leads with */
.wsc-pp-opts .px { margin: 2px 0 10px; padding: 10px 12px; background: var(--wsc-green-soft); border-radius: 10px; }
.wsc-pp-opts .px b { display: block; font-size: 21px; line-height: 1.15; color: var(--wsc-green-deep); }
.wsc-pp-opts .px span { display: block; font-size: 12px; color: var(--wsc-ink-2); margin-top: 2px; }
.wsc-pp-opts .px i { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--wsc-green); margin-top: 6px; }
.wsc-pp-opts .ph { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--wsc-muted); margin-bottom: 4px; }
.wsc-pp-opts .prods { list-style: none; margin: 0 0 12px; padding: 0; flex: 1; }
.wsc-pp-opts .prods li { font-size: 13px; padding: 4px 6px; margin: 0 -6px; border-bottom: 1px dashed var(--wsc-line); border-radius: 6px; transition: background .1s; }
.wsc-pp-opts .prods li:hover { background: var(--wsc-green-soft); }
.wsc-pp-opts .prods li:last-child { border-bottom: 0; }
.wsc-pp-opts .prods li span { display: block; font-size: 11.5px; color: var(--wsc-muted); }
.wsc-pp-apply {
  border: 0; border-radius: 10px; background: var(--wsc-green); color: #fff;
  padding: 12px 14px; font-size: 14px; font-weight: 700; letter-spacing: .3px; cursor: pointer;
}
.wsc-pp-apply:hover { background: #0c5828; }
.wsc-pp-opts .opt:not(.feat) .wsc-pp-apply { background: transparent; color: var(--wsc-green); border: 1.5px solid var(--wsc-green); }
.wsc-pp-opts .opt:not(.feat) .wsc-pp-apply:hover { background: var(--wsc-green-soft); }

/* ── apply form / outcome ── */
.wsc-pp-form, .wsc-pp-done {
  margin: 0 14px 14px; background: var(--wsc-card); border: 1.5px solid var(--wsc-green);
  border-radius: 14px; padding: 14px;
}
.wsc-pp-form h3, .wsc-pp-done h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--wsc-green-deep); }
.wsc-pp-form .mut { margin: 0 0 10px; font-size: 13px; color: var(--wsc-ink-2); }
.wsc-pp-form .fld { margin-bottom: 10px; }
.wsc-pp-form .fld label { display: block; font-size: 12px; color: var(--wsc-muted); margin-bottom: 3px; }
.wsc-pp-form .fld input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--wsc-line); border-radius: 9px;
  font-size: 15px; color: var(--wsc-ink); background: #fff; box-sizing: border-box;
}
.wsc-pp-form .fld input:focus { outline: 2px solid var(--wsc-green); outline-offset: 0; border-color: var(--wsc-green); }
.wsc-pp-form .ck { display: block; margin: 8px 0; font-size: 14px; color: var(--wsc-ink-2); }
.wsc-pp-form .ck input { margin-right: 7px; }
.wsc-pp-go {
  display: block; width: 100%; margin-top: 10px; padding: 12px 16px; border: 0; border-radius: 10px;
  background: var(--wsc-green); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.wsc-pp-go:hover { background: #0c5828; }
.wsc-pp-go:disabled { opacity: .55; cursor: default; }
.wsc-pp-form .fine, .wsc-pp-done .fine { margin: 8px 0 0; font-size: 11.5px; color: var(--wsc-muted); }
.wsc-pp-done .lines { line-height: 1.7; font-size: 13.5px; color: var(--wsc-ink-2); }
.wsc-pp-cta {
  display: block; text-align: center; margin-top: 8px; padding: 12px 16px; border-radius: 10px;
  background: var(--wsc-green); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.wsc-pp-cta:hover { background: #0c5828; }

/* ── the written proposal ── */
.wsc-pp-doc { background: var(--wsc-card); border-top: 1px solid var(--wsc-line); padding: 16px 18px 22px; }
.wsc-pp-doc h3 { font-size: 15px; margin: 18px 0 6px; color: var(--wsc-green-deep); }
.wsc-pp-doc h3:first-child { margin-top: 0; }
.wsc-pp-doc p, .wsc-pp-doc li { font-size: 14px; color: var(--wsc-ink-2); }
.wsc-pp-doc ul { margin: 6px 0; padding-left: 20px; }
.wsc-pp-comp { display: flex; gap: 8px; margin: 7px 0; font-size: 14px; }
.wsc-pp-comp .ic { color: var(--wsc-green); }
.wsc-pp-comp span { display: block; color: var(--wsc-ink-2); font-size: 13px; }
.wsc-pp-obj { background: var(--wsc-bg); border-radius: 9px; padding: 9px 12px; margin: 7px 0; font-size: 13.5px; color: var(--wsc-ink-2); }
.wsc-pp-close { margin-top: 16px; padding: 12px 14px; background: var(--wsc-green-soft); border-radius: 10px; font-weight: 600; color: var(--wsc-green-deep); font-size: 14.5px; }

/* Every tier of a tiered plan, shown before APPLY — the rate line can only
   carry the range, and the proposal itself renders each one. */
.wsc-pp-opts .px .tiers {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--wsc-line, #e2e6e2);
  font-size: 11.5px;
  color: var(--wsc-mut, #5b665c);
}
.wsc-pp-opts .px .tiers span { display: flex; justify-content: space-between; gap: 8px; }
.wsc-pp-opts .px .tiers i { font-style: normal; opacity: .8; }

/* No option could be launched: say so plainly instead of offering an APPLY
   the server would decline to honour. */
.wsc-pp-unavail { padding: 18px; text-align: left; }
.wsc-pp-unavail h3 { margin: 0 0 8px; font-size: 15px; }
.wsc-pp-unavail p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--wsc-mut, #5b665c); }
