.cc-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #fff; border-top: 1px solid #e2e2e2;
  box-shadow: 0 -2px 16px rgba(0,0,0,.07);
  animation: ccSlideUp .3s ease;
}
@keyframes ccSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cc-banner__inner {
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 768px) {
  .cc-banner__inner { flex-direction: row; align-items: center; gap: 2rem; }
}
.cc-banner__text { margin: 0; font-size: 13px; line-height: 1.65; color: #333; flex: 1; word-break: break-word; overflow-wrap: break-word;}
.cc-banner__text strong { font-weight: 600; }
.cc-banner__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow-y: auto;
  animation: ccFadeIn .2s ease;
}
@keyframes ccFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cc-modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 880px;
  max-height: calc(100vh - 3rem); display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.cc-modal__header {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.cc-modal__title  { font-size: 17px; font-weight: 600; margin: 0 0 6px; color: #111; }
.cc-modal__subtitle { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }
.cc-modal__close {
  background: none; border: none; cursor: pointer; color: #888;
  padding: 6px; border-radius: 6px; flex-shrink: 0; line-height: 1;
  transition: color .15s, background .15s;
}
.cc-modal__close:hover { color: #333; background: #f2f2f2; }
.cc-modal__body {
  overflow-y: auto; padding: 1rem 1.5rem; flex: 1;
  display: flex; flex-direction: column; gap: 1rem;
}
.cc-modal__footer {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.5rem; border-top: 1px solid #eee; flex-shrink: 0;
}

.cc-section { border: 1px solid #e5e5e5; border-radius: 8px; padding: 1rem; }
.cc-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
.cc-section__title  { font-size: 14px; font-weight: 600; color: #111; margin: 0; }
.cc-section__desc   { font-size: 13px; color: #555; line-height: 1.6; margin: 0 0 12px; }

.cc-table-wrap  { background: #f7f7f7; border-radius: 6px; padding: 10px 12px; }
.cc-table-label { font-size: 12px; font-weight: 600; color: #666; margin: 0 0 8px; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cc-table th { text-align: left; font-weight: 600; color: #666; padding: 3px 10px 3px 0; }
.cc-table td { padding: 4px 10px 4px 0; color: #444; vertical-align: top; }
.cc-table td:last-child, .cc-table th:last-child { padding-right: 0; }
.cc-table code {
  font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 11px;
  background: #e8e8e8; padding: 1px 5px; border-radius: 3px; color: #333; white-space: nowrap;
}

.cc-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.cc-badge--always { background: #e6f4ee; color: #1a7a4a; }

.cc-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.cc-toggle__label { font-size: 12px; color: #666; min-width: 20px; text-align: right; user-select: none; }
.cc-toggle__track {
  position: relative; width: 40px; height: 24px; border-radius: 12px;
  background: #ccc; border: none; cursor: pointer; transition: background .2s;
  padding: 0; flex-shrink: 0;
}
.cc-toggle__track.is-on { background: #1D9E75; }
.cc-toggle__thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s; pointer-events: none;
}
.cc-toggle__track.is-on .cc-toggle__thumb { transform: translateX(16px); }

.cc-btn {
  font-size: 13px; font-weight: 500; padding: 8px 20px; border-radius: 6px;
  cursor: pointer; transition: background .15s; white-space: nowrap; line-height: 1.4;
}
.cc-btn--primary   { background: #005f3c; color: #fff; border: 1px solid #005f3c; }
.cc-btn--primary:hover { background: #004a30; border-color: #004a30; }
.cc-btn--secondary { background: #f4f4f4; color: #004a30; border: 1px solid #ddd; }
.cc-btn--secondary:hover { background: #e8e8e8; }
.cc-btn--text      { background: transparent; border: none; color: #666; padding: 8px 4px; text-decoration: underline; font-weight: 400; }
.cc-btn--text:hover { color: #333; }
.cc-btn--save      { margin-left: auto; }

.cc-link { color: #1a6fb3; text-decoration: underline; }

.cc-modal__subtitle, .cc-section__desc, .cc-table td{word-break: break-word; overflow-wrap: break-word;}
