html.cc-open { overflow: hidden; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 100001;
  background: rgba(8, 20, 40, 0.6);
  display: flex; align-items: stretch; justify-content: center;
  font-family: inherit; color: #333c47;
}
.cc-panel { display: flex; flex-direction: column; width: 100%; height: 100%; background: #f7fafc; }
.cc-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: #fff; border-bottom: 1px solid #e1e8f0;
}
.cc-company { margin: 0; font-size: 0.9rem; color: #333c47; }
.cc-company a { color: #0b6e8a; }
.cc-close-icon {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef3f8;
  color: #0b2447; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.cc-close-icon:hover { background: #dde8f2; }
.cc-body { flex: 1; overflow-y: auto; padding: 28px 20px; }
.cc-inner { max-width: 820px; margin: 0 auto; }
.cc-title { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.1rem); color: #0b2447; }
.cc-lead { margin: 0 0 10px; line-height: 1.65; }
.cc-status {
  margin: 16px 0 20px; padding: 10px 14px; background: #e8f8fb; border-left: 4px solid #0e9cb3;
  border-radius: 6px; color: #0b2447; font-size: 0.95rem;
}
.cc-status span { color: #333c47; }
.cc-card {
  margin: 0 0 16px; padding: 18px 20px; background: #fff; border: 1px solid #dde6f0; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, 0.05);
}
.cc-card p { margin: 0 0 10px; line-height: 1.6; }
.cc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cc-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cc-card-title h3 { margin: 0; font-size: 1.1rem; color: #0b2447; }
.cc-badge { padding: 2px 10px; border-radius: 999px; background: #dff5e6; color: #14663a; font-size: 0.78rem; font-weight: 700; }
.cc-examples-label { margin-bottom: 4px !important; font-weight: 600; color: #0b2447; font-size: 0.9rem; }
.cc-examples { margin: 0 0 10px; padding-left: 20px; columns: 2; column-gap: 28px; line-height: 1.6; }
.cc-note { font-size: 0.9rem; color: #4a5560; }
.cc-saved { font-size: 0.85rem; font-weight: 600; color: #0b6e8a; margin-bottom: 0 !important; }
.cc-withdraw { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.6; color: #4a5560; }
.cc-withdraw a { color: #0b6e8a; text-decoration: underline; }

.cc-switch {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; color: #0b2447;
}
.cc-switch:disabled { cursor: not-allowed; opacity: 0.85; }
.cc-switch-text { min-width: 5.2em; text-align: right; font-size: 0.85rem; }
.cc-switch-track { position: relative; width: 48px; height: 26px; border-radius: 999px; background: #8a96a3; transition: background 0.2s; }
.cc-switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cc-switch.is-on .cc-switch-track { background: #0b8aa1; }
.cc-switch.is-on .cc-switch-thumb { transform: translateX(22px); }

.cc-footer { padding: 14px 20px; background: #fff; border-top: 1px solid #e1e8f0; }
.cc-actions { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-btn {
  padding: 11px 20px; border-radius: 8px; border: 2px solid #0b2447; font: inherit; font-weight: 600;
  cursor: pointer; min-height: 44px;
}
.cc-btn-primary { background: #0b2447; color: #fff; }
.cc-btn-primary:hover { background: #12356a; }
.cc-btn-ghost { background: #fff; color: #0b2447; }
.cc-btn-ghost:hover { background: #eef3f8; }
.cc-overlay button:focus-visible, .cc-overlay a:focus-visible, .cc-banner button:focus-visible {
  outline: 3px solid #0e9cb3; outline-offset: 2px;
}

.cc-confirm { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(8, 20, 40, 0.55); padding: 16px; }
.cc-confirm[hidden] { display: none; }
.cc-confirm-box { max-width: 420px; padding: 22px; background: #fff; border-radius: 12px; }
.cc-confirm-box p { margin: 0 0 16px; font-weight: 600; color: #0b2447; }
.cc-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99990;
  max-width: 980px; margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid #dde6f0; border-top: 4px solid #0e9cb3; border-radius: 12px;
  box-shadow: 0 10px 34px rgba(11, 36, 71, 0.25); color: #333c47;
}
.cc-banner-text h2 { margin: 0 0 6px; font-size: 1.1rem; color: #0b2447; }
.cc-banner-text p { margin: 0 0 6px; font-size: 0.92rem; line-height: 1.55; }
.cc-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }

@media (max-width: 720px) {
  .cc-header { padding: 10px 14px; }
  .cc-body { padding: 20px 14px; }
  .cc-examples { columns: 1; }
  .cc-card-head { flex-wrap: wrap; }
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; }
  .cc-banner { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 14px; max-height: 80vh; overflow-y: auto; }
  .cc-banner-actions { flex-direction: column; }
}
