/* --- Cookie Consent Banner --- */

#mc-consent-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 420px;
  width: calc(100% - 40px);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#mc-consent-banner.mc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#mc-consent-banner.mc-hiding {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.mc-consent-inner {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.mc-consent-main {
  padding: 20px;
}

.mc-consent-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px 0;
}

.mc-consent-desc {
  margin: 0 0 16px 0;
  color: #555;
  font-size: 13px;
}

/* --- Buttons --- */

.mc-consent-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.mc-btn:focus-visible {
  outline: 2px solid #5f80f1;
  outline-offset: 2px;
}

.mc-btn-accept {
  background: #5f80f1;
  color: #ffffff;
}

.mc-btn-accept:hover {
  background: #4a6de0;
}

.mc-btn-reject {
  background: #f0f0f0;
  color: #333;
}

.mc-btn-reject:hover {
  background: #e0e0e0;
}

.mc-btn-customize {
  background: transparent;
  color: #5f80f1;
  border: 1px solid #5f80f1;
}

.mc-btn-customize:hover {
  background: rgba(95, 128, 241, 0.08);
}

/* --- Customize Panel --- */

.mc-consent-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mc-consent-panel.mc-panel-open {
  max-height: 400px;
}

.mc-panel-content {
  padding: 0 20px 20px;
  border-top: 1px solid #e8e8e8;
}

.mc-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mc-category:last-of-type {
  border-bottom: none;
}

.mc-category-info {
  flex: 1;
  padding-right: 16px;
}

.mc-category-label {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 13px;
  margin-bottom: 2px;
}

.mc-category-desc {
  display: block;
  color: #777;
  font-size: 11px;
  line-height: 1.4;
}

/* --- Toggle Switch --- */

.mc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.mc-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s ease;
}

.mc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.mc-toggle input:checked + .mc-toggle-slider {
  background: #5f80f1;
}

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

.mc-toggle input:focus-visible + .mc-toggle-slider {
  box-shadow: 0 0 0 2px rgba(95, 128, 241, 0.4);
}

.mc-toggle-locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.mc-toggle-locked input {
  cursor: not-allowed;
}

/* --- Panel Actions --- */

.mc-panel-actions {
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* --- Mobile --- */

@media (max-width: 480px) {
  #mc-consent-banner {
    bottom: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }

  .mc-consent-buttons {
    flex-direction: column;
  }

  .mc-btn {
    width: 100%;
    text-align: center;
  }
}
