.cc-banner,
.cc-settings,
.cc-fab {
  font-family: "Poppins", sans-serif;
}

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #120600;
  border-top: 2px solid #ffb000;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.45);
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-banner[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
}

.cc-banner-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cc-banner-text {
  flex: 1 1 280px;
  min-width: 0;
}

.cc-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff3d0;
  margin: 0 0 4px;
  line-height: 1.3;
}

.cc-banner-desc {
  font-size: 14px;
  color: #ffe7b0;
  margin: 0;
  line-height: 1.45;
}

.cc-banner-desc a {
  color: #ffb000;
  text-decoration: underline;
}

.cc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 14px;
  white-space: nowrap;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.cc-btn:active { transform: scale(0.98); }

.cc-btn-primary {
  background: #ffb000;
  color: #1a0c00;
  border: 2px solid #ffb000;
}

.cc-btn-primary:hover { background: #ffc43a; }

.cc-btn-secondary {
  background: transparent;
  color: #ffb000;
  border: 2px solid rgba(255, 176, 0, 0.5);
}

.cc-btn-secondary:hover {
  border-color: #ffb000;
  background: rgba(255, 176, 0, 0.1);
}

.cc-btn-link {
  background: none;
  color: #ffe7b0;
  border: none;
  min-height: 44px;
  padding: 10px 12px;
}

.cc-btn-link:hover { color: #fff3d0; text-decoration: underline; }

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

.cc-overlay[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

.cc-settings {
  background: #140800;
  border: 2px solid #ffb000;
  width: 100%;
  max-width: 520px;
  max-height: min(85vh, 640px);
  overflow-y: auto;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff3d0;
}

.cc-overlay[data-visible="true"] .cc-settings {
  transform: translateY(0);
  opacity: 1;
}

.cc-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.cc-settings-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff3d0;
  margin: 0;
}

.cc-settings-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 176, 0, 0.4);
  background: transparent;
  color: #ffb000;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.cc-settings-body { padding: 14px 16px 16px; }

.cc-settings-intro {
  font-size: 14px;
  color: #ffe7b0;
  line-height: 1.45;
  margin: 0 0 14px;
}

.cc-category {
  background: #241004;
  border: 1px solid rgba(255, 176, 0, 0.22);
  padding: 12px 12px;
  margin-bottom: 8px;
}

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-category-info { flex: 1; min-width: 0; }

.cc-category-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff3d0;
  margin: 0;
}

.cc-category-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  color: #ffb000;
  background: rgba(255, 176, 0, 0.12);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-category-desc {
  font-size: 13px;
  color: #e2c48a;
  margin: 4px 0 0;
  line-height: 1.4;
}

.cc-toggle { position: relative; flex-shrink: 0; }

.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle-track {
  display: block;
  width: 46px;
  height: 26px;
  background: rgba(255, 176, 0, 0.22);
  border-radius: 26px;
  cursor: pointer;
  position: relative;
}

.cc-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff3d0;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cc-toggle input:checked + .cc-toggle-track { background: #ffb000; }

.cc-toggle input:checked + .cc-toggle-track::after {
  transform: translateX(20px);
  background: #1a0c00;
}

.cc-toggle input:disabled + .cc-toggle-track {
  opacity: 0.55;
  cursor: not-allowed;
}

.cc-toggle input:focus-visible + .cc-toggle-track {
  outline: 2px solid #ffb000;
  outline-offset: 2px;
}

.cc-settings-footer {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 176, 0, 0.22);
  flex-wrap: wrap;
}

.cc-settings-footer .cc-btn {
  flex: 1 1 0;
  min-width: 0;
}

.cc-fab {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  z-index: 99998;
  width: 44px;
  height: 44px;
  border: 2px solid #ffb000;
  background: rgba(12, 5, 0, 0.94);
  color: #ffb000;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.cc-fab[data-visible="true"] {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cc-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cc-banner-actions .cc-btn { width: 100%; }

  .cc-banner-actions .cc-btn-link { grid-column: 1 / -1; }

  .cc-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cc-settings {
    max-width: 100%;
    max-height: 92vh;
  }

  .cc-settings-footer { flex-direction: column; }

  .cc-settings-footer .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-overlay,
  .cc-settings,
  .cc-fab,
  .cc-toggle-track::after {
    transition-duration: 0.01ms;
  }
}

@media print {
  .cc-banner,
  .cc-overlay,
  .cc-fab { display: none !important; }
}
