#cn-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

#cn-cookie-banner.cn-banner-hidden {
  bottom: -100px;
  opacity: 0;
  pointer-events: none;
}

.cn-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cn-banner-text h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #1a1a1a;
}

.cn-banner-text p {
  margin: 0;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.5;
}

.cn-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cn-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.cn-btn-primary {
  background: #007aff;
  color: #fff;
}

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

.cn-btn-secondary {
  background: #f2f2f7;
  color: #1c1c1e;
}

.cn-btn-outline {
  background: transparent;
  border: 1px solid #c7c7cc;
  color: #48484a;
}

/* Settings Modal */
#cn-cookie-settings {
  margin-top: 20px;
  border-top: 1px solid #e5e5ea;
  padding-top: 20px;
  transition: all 0.3s;
  max-height: 500px;
  overflow: hidden;
}

#cn-cookie-settings.cn-settings-hidden {
  max-height: 0;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
  opacity: 0;
}

.cn-category-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.cn-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8fa;
  padding: 12px 15px;
  border-radius: 10px;
}

.cn-cat-info strong {
  display: block;
  font-size: 14px;
}

.cn-cat-info span {
  font-size: 12px;
  color: #8e8e93;
}

/* Toggle Switch */
.cn-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cn-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cn-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d1d6;
  transition: 0.4s;
  border-radius: 24px;
}

.cn-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .cn-slider {
  background-color: #34c759;
}

input:checked + .cn-slider:before {
  transform: translateX(20px);
}

input:disabled + .cn-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cn-settings-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cn-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cn-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cn-btn {
    width: 100%;
  }
}

/* Consent Toggle Icon */
#cn-cookie-toggle {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #007aff;
}

#cn-cookie-toggle:hover {
  transform: scale(1.15);
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#cn-cookie-toggle .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

#cn-cookie-toggle.cn-toggle-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
