/* Capitol City Resumes — chat is the product.
   Mounted in #ccr-chat-slot in the hero (desktop) or full-screen (mobile).
   No floating launcher. */

:root{
  --ccr-chat-z: 80;
}

.ccr-chat{
  position:relative;
  inset:auto;
  z-index:auto;
  font-family:var(--sans, "Lato",-apple-system,"Segoe UI",Helvetica,Arial,sans-serif);
  color:var(--ink, #1d2330);
  pointer-events:auto;
  width:100%;
  height:100%;
}
.ccr-chat *{box-sizing:border-box}

.ccr-sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.ccr-chat-launch{display:none !important}

.ccr-chat-panel{
  position:relative;
  right:auto;
  bottom:auto;
  width:100%;
  max-width:840px;
  margin:12px auto 40px;
  height:min(740px, calc(100dvh - 130px));
  max-height:calc(100dvh - 130px);
  display:flex;
  flex-direction:column;
  background:var(--paper, #fff);
  border:1px solid var(--line, #e3e1da);
  border-radius:20px;
  box-shadow:0 28px 60px -24px rgba(18,26,43,.55),0 0 0 1px rgba(18,26,43,.06);
  overflow:hidden;
  pointer-events:auto;
}
.ccr-chat-panel[hidden]{display:none}

@media (max-width:680px){
  body.ccr-chat-open .ccr-chat-slot,
  body.ccr-chat-open .ccr-chat,
  body.ccr-chat-open .ccr-chat-panel{
    position:fixed;
    inset:0;
    width:100%;
    height:100dvh;
    max-width:none;
    max-height:none;
    margin:0;
    border-radius:0;
    z-index:var(--ccr-chat-z);
    box-shadow:none;
  }
}

.ccr-chat-head{
  background:var(--navy, #121a2b);
  color:#fff;
  padding:16px 52px 16px 20px;
  position:relative;
  flex:none;
}
.ccr-chat-head h2{
  font-family:var(--serif, "Libre Caslon Text",Georgia,serif);
  font-weight:400;
  font-size:18px;
  line-height:1.3;
  color:#fff;
  margin:0 0 6px;
}
.ccr-chat-head p{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:rgba(255,255,255,.78);
  font-weight:400;
  letter-spacing:0;
}
.ccr-chat-close{
  position:absolute;
  top:10px;
  right:10px;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  border-radius:999px;
  touch-action:manipulation;
}
.ccr-chat-close:hover{background:rgba(255,255,255,.1)}
.ccr-chat-close:active{background:rgba(255,255,255,.16)}
.ccr-chat-close:focus-visible{outline:2px solid var(--gold, #c9a961);outline-offset:1px}

.ccr-chat-log{
  flex:1 1 auto;
  overflow-y:auto;
  padding:16px 16px 8px;
  background:var(--bg, #f6f5f1);
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:160px;
}
.ccr-chat-msg{
  max-width:92%;
  padding:12px 14px;
  border-radius:16px;
  font-size:15px;
  line-height:1.55;
}
.ccr-chat-msg p{margin:0 0 .6em}
.ccr-chat-msg p:last-child{margin-bottom:0}
.ccr-chat-msg a{color:var(--steel,#2f5d8a)}
.ccr-chat-msg--bot{
  align-self:flex-start;
  background:#fff;
  color:var(--ink, #1d2330);
  border:1px solid var(--line, #e3e1da);
  border-top-left-radius:4px;
}
.ccr-chat-msg--user{
  align-self:flex-end;
  background:var(--navy, #121a2b);
  color:#fff;
  border-top-right-radius:4px;
}
.ccr-chat-msg--user a{color:#fff}
.ccr-chat-msg--pending{font-style:italic;color:var(--muted, #5d6675)}

.ccr-chat-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.ccr-chat-ctas a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.03em;
  text-decoration:none;
  color:var(--navy, #121a2b);
  background:var(--gold, #c9a961);
  border:1px solid transparent;
  touch-action:manipulation;
  transition:background .15s ease,transform .15s ease;
}
.ccr-chat-ctas a:hover{background:var(--gold-2, #d8bd7e)}
.ccr-chat-ctas a:active{transform:translateY(1px)}
.ccr-chat-ctas a:focus-visible{outline:2px solid var(--steel, #2f5d8a);outline-offset:2px}

.ccr-chat-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px 16px 6px;
  background:var(--bg, #f6f5f1);
  flex:none;
}
.ccr-chat-quick[hidden]{display:none}
.ccr-chat-quick button{
  border:1px solid var(--line, #e3e1da);
  background:#fff;
  color:var(--navy, #121a2b);
  font:700 13px/1.3 var(--sans, "Lato",sans-serif);
  letter-spacing:.02em;
  min-height:44px;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  touch-action:manipulation;
  transition:background .15s ease,border-color .15s ease;
}
.ccr-chat-quick button:hover{border-color:var(--gold, #c9a961);background:#fbf8f0}
.ccr-chat-quick button:active{transform:translateY(1px)}
.ccr-chat-quick button:focus-visible{outline:2px solid var(--steel, #2f5d8a);outline-offset:2px}

.ccr-chat-form{
  display:flex;
  gap:8px;
  padding:12px 14px 14px;
  border-top:1px solid var(--line, #e3e1da);
  background:#fff;
  flex:none;
  position:relative;
}
.ccr-chat-form input{
  flex:1;
  min-width:0;
  min-height:44px;
  padding:10px 14px;
  border:1px solid #d4d2cb;
  border-radius:999px;
  font:400 15px/1.4 var(--sans, "Lato",sans-serif);
  color:var(--ink, #1d2330);
  background:#fbfbf9;
}
.ccr-chat-form input:focus{outline:none;border-color:var(--steel, #2f5d8a);box-shadow:0 0 0 3px rgba(47,93,138,.15);background:#fff}
.ccr-chat-form button[type="submit"]{
  flex:none;
  min-height:44px;
  min-width:44px;
  padding:10px 18px;
  border:0;
  border-radius:999px;
  background:var(--gold, #c9a961);
  color:var(--navy, #121a2b);
  font:700 13px/1 var(--sans, "Lato",sans-serif);
  letter-spacing:.04em;
  cursor:pointer;
  touch-action:manipulation;
  transition:background .15s ease,transform .15s ease;
}
.ccr-chat-form button[type="submit"]:hover{background:var(--gold-2, #d8bd7e)}
.ccr-chat-form button[type="submit"]:active{transform:translateY(1px)}
.ccr-chat-form button[type="submit"]:focus-visible{outline:2px solid var(--steel, #2f5d8a);outline-offset:2px}
.ccr-chat-form button[type="submit"]:disabled{opacity:.55;cursor:not-allowed}

@media (prefers-reduced-motion:reduce){
  .ccr-chat-launch,.ccr-chat-ctas a,.ccr-chat-form button[type="submit"],.ccr-chat-quick button{transition:none}
  .ccr-chat-launch:hover,.ccr-chat-ctas a:active,.ccr-chat-form button[type="submit"]:active{transform:none}
}

.ccr-typing{display:flex;gap:5px;align-items:center;min-height:16px;margin:0}
.ccr-typing span{width:7px;height:7px;border-radius:50%;background:var(--gold,#c9a961);opacity:.35;animation:ccr-dot 1s ease-in-out infinite}
.ccr-typing span:nth-child(2){animation-delay:.15s}
.ccr-typing span:nth-child(3){animation-delay:.3s}
@keyframes ccr-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){
  .ccr-typing span{animation:none;opacity:.7}
}

.ccr-drop{padding:8px 14px 2px;background:var(--bg,#f6f5f1);flex:none}
.ccr-drop-label{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px dashed var(--line,#e3e1da);border-radius:12px;padding:8px 12px;font-size:12px;color:var(--muted,#5d6675);text-align:center;cursor:pointer;background:#fff;touch-action:manipulation}
.ccr-drop.is-over .ccr-drop-label,.ccr-drop-label:hover{border-color:var(--gold,#c9a961);background:#fbf8f0;color:var(--navy,#121a2b)}
.ccr-drop input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}

.ccr-draft-wrap{align-self:stretch;margin:4px 0 8px;user-select:none;-webkit-user-select:none}
.ccr-draft-label{margin:0 0 6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--steel,#2f5d8a)}
.ccr-draft-scroll{max-height:280px;overflow:auto;border:1px solid var(--line,#e3e1da);border-radius:12px;background:#fff;user-select:none;-webkit-user-select:none}
.ccr-draft-canvas{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none;pointer-events:none}
.ccr-draft-wrap,.ccr-draft-scroll,.ccr-draft-canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

.ccr-delivery{margin:0 0 10px;padding:12px 14px;border:1px solid var(--line,#e3e1da);border-radius:12px;background:#f7f5f0}
.ccr-delivery-note{margin:0 0 10px;font-size:13px;line-height:1.5;color:#1d2330}
.ccr-delivery-actions{display:flex;flex-wrap:wrap;gap:8px}
.ccr-delivery-actions button,.ccr-unlock-row button{
  appearance:none;border:1px solid #1d2330;background:#1d2330;color:#f7f5f0;
  border-radius:999px;min-height:44px;padding:10px 14px;font:700 13px/1.2 Lato,sans-serif;
  cursor:pointer;touch-action:manipulation
}
.ccr-delivery-actions button:disabled{opacity:.45;cursor:not-allowed;background:#6b7280;border-color:#6b7280}
.ccr-unlock-label{display:block;margin:10px 0 6px;font-size:12px;color:#33373f}
.ccr-unlock-row{display:flex;gap:8px}
.ccr-unlock-row input{flex:1;min-width:0;min-height:44px;border:1px solid var(--line,#e3e1da);border-radius:12px;padding:8px 12px;font:16px Lato,sans-serif;letter-spacing:.12em;text-transform:uppercase}

@media print{
  #ccr-chat,#ccr-draft-wrap,.ccr-draft-wrap,.ccr-draft-scroll,.ccr-draft-canvas,.ccr-delivery{display:none !important}
}

/* thinking indicator */
.ccr-chat-pending{display:flex;align-items:flex-start;gap:10px}
.ccr-chat-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--navy,#121a2b);flex:none;box-shadow:0 0 0 1px rgba(201,169,97,.35)}
.ccr-chat-pending-body{min-width:0}
.ccr-chat-status{margin:8px 0 0;font-size:13px;line-height:1.4;color:var(--muted,#5d6675)}
.ccr-chat-status[hidden]{display:none}
.ccr-try-again{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;margin-top:10px;padding:10px 16px;border:0;border-radius:999px;
  background:var(--gold,#c9a961);color:var(--navy,#121a2b);
  font:700 13px/1 var(--sans,"Lato",sans-serif);letter-spacing:.03em;cursor:pointer;touch-action:manipulation
}
.ccr-try-again:hover{background:var(--gold-2,#d8bd7e)}
.ccr-drop-label{position:relative;overflow:hidden}
.ccr-drop.is-working .ccr-drop-label::after,
.ccr-shimmer::after{
  content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(201,169,97,.28),transparent);
  transform:translateX(-100%);animation:ccr-shimmer 1.2s ease-in-out infinite
}
@keyframes ccr-shimmer{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){
  .ccr-drop.is-working .ccr-drop-label::after,.ccr-shimmer::after{animation:none;background:rgba(201,169,97,.2);transform:none}
}

/* in-chat quick starts + style picker */
.ccr-chat-starts{display:flex;flex-wrap:wrap;gap:8px;padding:4px 16px 10px;background:var(--bg,#f6f5f1);flex:none}
.ccr-chat-starts[hidden]{display:none}
.ccr-chat-starts button{
  border:1px solid var(--line,#e3e1da);background:#fff;color:var(--navy,#121a2b);
  font:700 13px/1.3 var(--sans,"Lato",sans-serif);min-height:44px;padding:10px 14px;border-radius:999px;
  cursor:pointer;touch-action:manipulation
}
.ccr-chat-starts button:hover{border-color:var(--gold,#c9a961);background:#fbf8f0}
.ccr-style-picker{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.ccr-style-picker button{
  min-height:36px;padding:6px 12px;border:1px solid var(--line,#e3e1da);border-radius:999px;
  background:#fff;font:700 12px/1 var(--sans,"Lato",sans-serif);cursor:pointer;color:var(--navy,#121a2b)
}
.ccr-style-picker button[aria-pressed="true"]{background:var(--navy,#121a2b);color:#fff;border-color:var(--navy,#121a2b)}

/* in-chat payment card */
.ccr-pay-card{margin:0;padding:0}
.ccr-pay-kicker{margin:0 0 4px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#5d6675;font-weight:700}
.ccr-pay-card h3{margin:0 0 12px;font-family:var(--serif,"Libre Caslon Text",Georgia,serif);font-weight:400;font-size:20px;color:var(--navy,#121a2b)}
.ccr-pay-prices{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.ccr-pay-prices div{flex:1;min-width:120px;padding:10px 12px;border:1px solid var(--line,#e3e1da);border-radius:12px;background:#fff}
.ccr-pay-prices strong{display:block;font-size:22px;color:var(--navy,#121a2b);line-height:1.2}
.ccr-pay-prices span{font-size:13px;color:#5d6675}
.ccr-pay-step{margin:0 0 8px;font-weight:700;font-size:15px;color:var(--navy,#121a2b)}
.ccr-pay-ask,.ccr-pay-details{margin:0 0 12px;font-size:14px;line-height:1.5;color:#1d2330}
.ccr-pay-details{padding:10px 12px;border:1px dashed var(--gold,#c9a961);border-radius:12px;background:#fbf8f0;white-space:pre-wrap}
.ccr-pay-contact{display:flex;gap:8px;margin:0 0 14px}
.ccr-pay-contact input{flex:1;min-width:0;min-height:44px;border:1px solid var(--line,#e3e1da);border-radius:12px;padding:8px 12px;font:16px Lato,sans-serif}
.ccr-pay-contact button{
  min-height:44px;padding:8px 16px;border:0;border-radius:12px;cursor:pointer;touch-action:manipulation;
  background:var(--gold,#c9a961);color:var(--navy,#121a2b);font:700 14px/1 Lato,sans-serif
}
.ccr-pay-contact button:hover{background:var(--gold-2,#d8bd7e)}
