
.clms-cookie-banner {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translate(-50%, 20px) !important;
  z-index: 9999999 !important;
  max-width: 540px !important;
  width: calc(100% - 48px) !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  opacity: 0 !important;
  visibility: hidden !important;
  display: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
  pointer-events: none !important;
}

.clms-cookie-banner.is-visible {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
  pointer-events: auto !important;
}

.clms-cookie-banner__inner {
  padding: 22px 26px;
  box-sizing: border-box;
}

.clms-cookie-text {
  margin: 0 0 16px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: #4b5563 !important;
  font-weight: 400 !important;
}

.clms-cookie-link {
  color: #111827 !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
  transition: color 0.2s ease;
}

.clms-cookie-link:hover {
  color: #0E337B !important;
}

.clms-cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clms-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.clms-cookie-btn:active {
  transform: scale(0.97);
}

.clms-cookie-btn--primary {
  background-color: #0E337B;
  color: #ffffff;
}

.clms-cookie-btn--primary:hover {
  background-color: #0A2558;
  color: #ffffff;
}

.clms-cookie-btn--secondary {
  background-color: #ffffff;
  color: #0E337B;
  border: 1px solid #d1d5db;
}

.clms-cookie-btn--secondary:hover {
  background-color: #0A2558;
  color: #ffffff;
  border-color: #0A2558;
}

.clms-cookie-btn-text {
  background: none;
  border: none;
  padding: 6px 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}

.clms-cookie-btn-text:hover {
  background-color: #0A2558;
  color: #ffffff;
  border-radius: 9999px;
}

/* Preferences View */
.clms-cookie-prefs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.clms-cookie-prefs-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.clms-cookie-prefs-back-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
}

.clms-cookie-prefs-back-btn:hover {
  color: #0E337B;
}

.clms-cookie-pref-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.clms-cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clms-cookie-pref-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.clms-cookie-pref-desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.clms-cookie-badge-always {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Toggle switch */
.clms-cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

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

.clms-cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 22px;
}

.clms-cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

.clms-cookie-switch input:checked + .clms-cookie-slider {
  background-color: #0E337B;
}

.clms-cookie-switch input:checked + .clms-cookie-slider:before {
  transform: translateX(16px);
}

@media (max-width: 640px) {
  .clms-cookie-banner {
    bottom: 12px !important;
    left: 50% !important;
    transform: translate(-50%, 20px) !important;
    width: calc(100% - 24px) !important;
    max-width: 480px !important;
    border-radius: 16px !important;
  }
  .clms-cookie-banner.is-visible {
    transform: translate(-50%, 0) !important;
  }
  .clms-cookie-banner__inner {
    padding: 18px 20px;
  }
  .clms-cookie-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .clms-cookie-btn {
    width: 100%;
    text-align: center;
  }
  .clms-cookie-btn-text {
    text-align: center;
    padding: 8px;
  }
}
