.cc-banner {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 218px;
  max-width: 95vw;
  background: #24223E;
  color: #fff;
  z-index: 100000;
  padding: 24px 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.cc-banner.cc-visible {
  display: flex;
}

.cc-banner-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cc-banner-desc {
  font-size: 12.5px;
  opacity: 0.92;
  line-height: 1.55;
}

.cc-banner-desc a {
  color: #8db4f8;
  text-decoration: underline;
  cursor: pointer;
}

.cc-banner-desc a:hover {
  color: #fff;
}

.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}

.cc-btn-ok {
  background: #fff;
  color: #24223E;
  border: 1px solid #fff;
  padding: 9px 36px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  order: 2;
  font-family: inherit;
}

.cc-btn-ok:hover {
  opacity: 0.9;
}

.cc-manage-link {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  order: 1;
}

.cc-manage-link:hover {
  opacity: 0.8;
}

.cc-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: none;
}

.cc-banner-overlay.cc-visible {
  display: block;
}

.cc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100001;
  display: none;
}

.cc-overlay.cc-visible {
  display: block;
}

.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 730px;
  height: 610px;
  max-width: 95vw;
  max-height: 90vh;
  background: #fff;
  z-index: 100002;
  border-radius: 4px;
  display: none;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.cc-modal.cc-visible {
  display: flex;
}

.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.cc-modal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cc-modal-logo {
  height: 28px;
}

.cc-modal-title {
  font-size: 22px;
  font-weight: 500;
  color: #333;
}

.cc-more-info {
  color: #7c68ee;
  text-decoration: none;
  font-size: 13px;
}

.cc-more-info:hover {
  text-decoration: underline;
}

.cc-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  padding: 0;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-modal-close:hover {
  color: #000;
}

.cc-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.cc-tabs {
  width: 220px;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  flex-shrink: 0;
}

.cc-tab {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  border-left: 4px solid transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.cc-tab:hover {
  background: #f5f5f5;
}

.cc-tab.cc-tab-active {
  border-left-color: #7c68ee;
  background: #f5f5f5;
  color: #7c68ee;
}

.cc-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cc-tab-panel {
  display: none;
}

.cc-tab-panel.cc-panel-active {
  display: block;
}

.cc-tab-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px 0;
}

.cc-tab-panel p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

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

.cc-always-active {
  font-size: 13px;
  font-weight: 600;
  color: #188a42;
}

.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cc-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.cc-toggle input:checked + .cc-toggle-slider {
  background: #7c68ee;
}

.cc-toggle input:checked + .cc-toggle-slider::after {
  transform: translateX(20px);
}

.cc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
}

.cc-btn-confirm {
  background: #7c68ee;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.cc-btn-confirm:hover {
  opacity: 0.9;
}

.cc-powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
}

.cc-powered-by img {
  height: 14px;
}

@media (max-width: 768px) {
  .cc-banner {
    width: auto;
    left: 16px;
    right: 16px;
    transform: translateY(-50%);
    height: auto;
  }

  .cc-banner-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-modal-body {
    flex-direction: column;
  }

  .cc-tabs {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .cc-tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 10px 14px;
  }

  .cc-tab.cc-tab-active {
    border-left-color: transparent;
    border-bottom-color: #7c68ee;
  }
}
