/* Namespaced styles so WordPress themes do not interfere with the widget. */
#ccfc-widget {
  --ccfc-green: #315947;
  --ccfc-green-dark: #244535;
  --ccfc-ink: #263b31;
  --ccfc-muted: #637269;
  --ccfc-border: #dce5dd;
  --ccfc-surface: #fffefa;
  position: fixed;
  z-index: 2147482000;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ccfc-ink);
}
#ccfc-widget, #ccfc-widget * { box-sizing: border-box; }
#ccfc-widget [hidden] { display: none !important; }
#ccfc-widget button, #ccfc-widget input, #ccfc-widget textarea {
  font: inherit;
  letter-spacing: normal;
}
#ccfc-widget button { cursor: pointer; }
#ccfc-widget svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ccfc-widget .ccfc-toggle {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-left: auto; min-height: 54px; padding: 13px 21px;
  color: #fff; background: var(--ccfc-green);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  font-size: 15px; font-weight: 650; line-height: 1.2;
  box-shadow: 0 9px 27px rgba(12, 35, 22, .24);
  transition: background .2s, transform .2s, box-shadow .2s;
}
#ccfc-widget .ccfc-toggle:hover { background: var(--ccfc-green-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(12,35,22,.28); }
#ccfc-widget .ccfc-toggle:focus-visible, #ccfc-widget button:focus-visible,
#ccfc-widget input:focus-visible, #ccfc-widget textarea:focus-visible {
  outline: 3px solid #96baa3; outline-offset: 2px;
}
#ccfc-widget .ccfc-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px);
  width: min(375px, calc(100vw - 32px)); max-height: calc(100dvh - 112px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 23px 24px 22px; background: var(--ccfc-surface);
  border: 1px solid var(--ccfc-border); border-radius: 19px;
  box-shadow: 0 16px 55px rgba(21,40,29,.22);
  text-align: left;
}
#ccfc-widget .ccfc-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#ccfc-widget h2, #ccfc-widget h3 { margin: 0; font-family: inherit; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; color: var(--ccfc-ink); }
#ccfc-widget .ccfc-close { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: none; background: #edf2ee; border-radius: 50%; color: var(--ccfc-ink); }
#ccfc-widget .ccfc-close:hover { background: #dfeae2; }
#ccfc-widget .ccfc-description { margin: 9px 0 18px; color: var(--ccfc-muted); font-size: 13px; line-height: 1.55; }
#ccfc-widget .ccfc-panel label { display: block; margin: 0 0 5px; font-weight: 650; font-size: 12.5px; color: var(--ccfc-ink); }
#ccfc-widget .ccfc-optional { color: var(--ccfc-muted); font-weight: 400; }
#ccfc-widget input:not([type="hidden"]), #ccfc-widget textarea {
  display: block; width: 100%; margin: 0 0 13px; padding: 9px 11px;
  background: #fff; border: 1px solid #cbd7ce; border-radius: 9px;
  color: var(--ccfc-ink); box-shadow: none; font-size: 14px;
  line-height: 1.35; appearance: auto;
}
#ccfc-widget input { min-height: 40px; }
#ccfc-widget textarea { min-height: 83px; resize: vertical; }
#ccfc-widget .ccfc-submit, #ccfc-widget .ccfc-again {
  display: block; width: 100%; min-height: 43px;
  background: var(--ccfc-green); color: white; border: 0; border-radius: 9px;
  padding: 10px 14px; font-size: 14px; font-weight: 700;
}
#ccfc-widget .ccfc-submit:hover, #ccfc-widget .ccfc-again:hover { background: var(--ccfc-green-dark); }
#ccfc-widget .ccfc-submit:disabled { opacity: .65; cursor: wait; }
#ccfc-widget .ccfc-feedback { margin: 4px 0 12px; padding: 10px; border-radius: 8px; background: #fff0e9; color: #843e2e; font-size: 12.5px; }
#ccfc-widget .ccfc-trap { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#ccfc-widget .ccfc-success { padding: 24px 0 12px; text-align: center; }
#ccfc-widget .ccfc-success-icon { width: 56px; height: 56px; margin: 0 auto 17px; background: #e5f0e7; color: var(--ccfc-green); border-radius: 50%; display: grid; place-items: center; }
#ccfc-widget .ccfc-success p { font-size: 14px; line-height: 1.6; color: var(--ccfc-muted); margin: 13px 0 24px; }
@media(max-width: 480px) {
  #ccfc-widget { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  #ccfc-widget .ccfc-panel { padding: 19px 20px; max-height: calc(100dvh - 101px); }
}
@media(prefers-reduced-motion: reduce) {
  #ccfc-widget .ccfc-toggle { transition: none; }
}
