:root {
  --cc-dark: #1a1a1a;
  --cc-white: #fff;
  --cc-gray: #666;
  --cc-light: #f0f0f0;
  --cc-gold: #d4a574;
  --cc-border: #ddd;
}

* {
  box-sizing: border-box;
}

/* Banner - Compact Version */
.cc-banner {
  position: fixed;
  z-index: 9999999;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--cc-white);
  border: 2px solid var(--cc-dark);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s ease-out;
}

.cc-banner::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cc-dark) 0, var(--cc-gold) 100%);
}

.cc-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 14px 16px;
  align-items: center;
}

.cc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-dark) 0, var(--cc-gold) 100%);
  flex-shrink: 0;
}

.cc-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.cc-content {
  min-width: 0;
}

.cc-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cc-gold);
  display: block;
  margin-bottom: 2px;
}

.cc-content h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cc-dark);
  line-height: 1.2;
}

.cc-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

.cc-text-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-text-full {
  margin-top: 8px;
  animation: expandDown 0.3s ease-out;
}

.cc-text-full p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

.cc-note {
  font-size: 12px;
  color: var(--cc-gray);
}

.cc-links {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.cc-links a {
  color: var(--cc-gold);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.cc-links a:hover {
  color: var(--cc-dark);
  text-decoration: underline;
}

.cc-read-more {
  display: inline;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  color: var(--cc-gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
}

.cc-read-more:hover {
  color: var(--cc-dark);
}

/* Action Buttons */
.cc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cc-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cc-btn-primary {
  background: linear-gradient(135deg, var(--cc-dark) 0, #2a2a2a 100%);
  color: var(--cc-white);
}

.cc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.cc-btn-secondary {
  background: var(--cc-white);
  color: var(--cc-dark);
  border: 1.5px solid var(--cc-dark);
}

.cc-btn-secondary:hover {
  background: var(--cc-dark);
  color: var(--cc-white);
}

.cc-btn-settings {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-light);
  color: var(--cc-dark);
  font-size: 16px;
}

.cc-btn-settings:hover {
  background: var(--cc-dark);
  color: var(--cc-white);
}

/* Reopen Button */
.cc-reopen {
  position: fixed;
  z-index: 1070;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 2px solid var(--cc-gold);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-dark) 0, #2a2a2a 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-reopen:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.cc-reopen svg {
  fill: var(--cc-white);
  width: 100%;
  height: 100%;
}

/* Modal Styles */
.cc-modal .modal-content {
  border: 2px solid var(--cc-dark);
  border-radius: 12px;
  overflow: hidden;
}

.cc-modal .modal-header,
.cc-modal .modal-footer {
  background: var(--cc-light);
  border-bottom: 1px solid var(--cc-border);
  padding: 16px 20px;
}

.cc-modal .modal-header {
  border-bottom: 1px solid var(--cc-border);
}

.cc-modal .modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--cc-dark);
}

.cc-modal .modal-body {
  padding: 16px 20px;
}

.cc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--cc-border);
}

.cc-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cc-dark);
  font-weight: 700;
  font-size: 14px;
}

.cc-option span {
  display: block;
  color: var(--cc-gray);
  font-size: 12px;
  line-height: 1.4;
}

.cc-option em {
  display: inline-block;
  padding: 5px 8px;
  background: linear-gradient(135deg, var(--cc-dark) 0, #2a2a2a 100%);
  color: var(--cc-white);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-option .form-check-input {
  width: 44px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--cc-border);
  background-color: var(--cc-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.cc-option .form-check-input:checked {
  background-color: var(--cc-dark);
  border-color: var(--cc-dark);
  box-shadow: inset 0 0 6px rgba(212, 165, 116, 0.4);
}

/* Hidden States */
.cc-banner[hidden],
.cc-reopen[hidden] {
  display: none !important;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Tablet/Responsive */
@media (max-width: 768px) {
  .cc-container {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .cc-actions {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .cc-btn {
    flex: 1;
    padding: 8px 12px;
  }

  .cc-btn-settings {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .cc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 10px;
  }

  .cc-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 12px;
  }

  .cc-logo {
    width: 36px;
    height: 36px;
  }

  .cc-content h2 {
    font-size: 13px;
  }

  .cc-text {
    font-size: 12px;
  }

  .cc-actions {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .cc-btn {
    flex: 1;
    padding: 7px 10px;
    font-size: 11px;
  }

  .cc-btn-settings {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .cc-reopen {
    width: 40px;
    height: 40px;
    right: 10px;
    bottom: 10px;
  }
}