@media (min-width: 450px) {
  .cookie-panel {
    left: 20px;
    bottom: 20px !important;
    width: 420px;
    border-radius: 12px !important;
  }
}

/* 基础面板样式 */
.cookie-panel {
  position: fixed;
  background: #29254fb8;
  backdrop-filter: blur(20px);
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  bottom: 0;
}

.cookie-panel.active {
  opacity: 1;
  visibility: visible;
}

/* 面板内容切换 */
.cookie-panel-content {
  display: none;
}

.cookie-content {
  padding: 25px;
}

.cookie-content p {
  font-size: 13px;
  margin-bottom: 10px;
}
.cookie-content ul {
  margin-bottom: 0;
}

.cookie-content strong {
  font-weight: bolder;
}

.cookie-content-active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 公共样式 */
.category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 0;
}

.category-toggle:not(:last-child) {
  border-bottom: 1px solid #ffffff24;
}

.toggle-group {
  padding: 0 15px;
  border: 1px solid #ffffff24;
  border-radius: 8px;
}

.button-group {
  display: flex;
  justify-content: space-between;
}

.cookie-btn {
  padding: 12px 8px;
  color: #8296a5;
  background: none !important;
  cursor: pointer;
  border: none;
  width: -webkit-fill-available;
  border-top: 1px solid #ffffff24 !important;
  transition: all 0.2s;
}

.cookie-btn:hover {
  color: #fff;
  background: #6842ff !important;
}

.cookie-btn:not(:last-child) {
  border-right: 1px solid #ffffff24 !important;
}

.cookie-btn:focus {
  border: none;
}
.cookie-btn-text {
  cursor: pointer;
  color: #6c9cc6;
}

.cookie-btn-text:hover {
  color: #9cc5e8;
  text-decoration: underline;
}

.cookie-preview li {
  font-size: 12px;
  padding: 0;
  margin: 0;
  list-style-type: "- ";
}

.cookie-preview ul {
  padding: 0 10px;
  margin: 0 0 4px;
}

.cookie-panel-content-image {
  float: right;
  height: 82px;
}

.cookie-panel-title {
  display: block !important;
  margin: 0 0 8px 0 !important;
  font-family: "Open Sans", sans-serif, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-align: left !important;
  clear: none !important;
  background: transparent !important;
  height: auto !important;
  padding: 0 !important;
}

.cookie-panel-title span,
.cookie-panel-title small {
  display: block !important;
  line-height: 1.25 !important;
}

.secondary-btn {
  background: none;
  border: 2px solid #6842ff;
  color: #6842ff;
}

.slider-desc {
  font-size: 11px !important;
}

.switch {
  position: relative;
  display: inline-flex;
  height: 26px;
  width: 50px;
}
.switch-checkbox {
  opacity: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff24;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffffb0;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #6842ff;
}
input:checked + .slider:before {
  transform: translateX(24px);
}

.cookie-content-header {
  height: 108px;
  float: right;
}
.cookie-content-header .cookie-content-header-image {
  z-index: 20 !important;
  position: relative !important;
  display: block !important;
  object-fit: contain !important;
}
.cookie-content-header-image-bg {
  position: absolute;
  top: -70px;
  right: -40px;
}
