.tka-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(190%);
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius-medium, 16px);
  box-shadow: 0 16px 36px rgba(70, 67, 132, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  z-index: 999999;
  padding: 24px;
  box-sizing: border-box;
  font-family: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

.tka-cookie-banner.tka-hidden {
  transform: translateY(120%) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.tka-cb-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tka-cb-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color, #464384);
  line-height: 1.2;
}

.tka-cb-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #55556a;
}

.tka-cb-policy-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--primary-color, #FF4B67);
  text-decoration: underline;
  font-weight: 500;
}

.tka-cb-policy-link:hover {
  text-decoration: none;
}

/* Preferences checklist */
.tka-cb-preferences {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(70, 67, 132, 0.1);
}

.tka-cb-preference-item {
  display: flex;
  align-items: flex-start;
}

.tka-cb-preference-item label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.tka-cb-preference-item input[type="checkbox"] {
  accent-color: var(--primary-color, #FF4B67);
  width: 16px;
  height: 16px;
  margin-top: 3px;
  cursor: pointer;
}

.tka-cb-preference-item input[type="checkbox"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tka-cb-preference-desc {
  display: block;
  grid-column: 2;
  font-size: 12px;
  color: #77778c;
  margin-top: 2px;
}

/* Actions Section */
.tka-cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tka-cb-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--border-radius-button, 10px);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  outline: none;
}

.tka-cb-btn-primary {
  background: var(--primary-color, #FF4B67);
  color: #fff;
}

.tka-cb-btn-primary:hover {
  background: #e03c56;
  transform: translateY(-1px);
}

.tka-cb-btn-secondary {
  background: var(--secondary-color-light, #F4F4FF);
  color: var(--secondary-color, #464384);
}

.tka-cb-btn-secondary:hover {
  background: #e8e8ff;
  transform: translateY(-1px);
}

.tka-cb-btn-link {
  background: transparent;
  color: var(--secondary-color, #464384);
  padding: 10px 12px;
  text-decoration: underline;
}

.tka-cb-btn-link:hover {
  color: var(--primary-color, #FF4B67);
}

/* Helper hidden class */
.tka-hidden {
  display: none !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
  .tka-cookie-banner {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    border-radius: var(--border-radius-medium, 16px) var(--border-radius-medium, 16px) 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px;
  }

  .tka-cb-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .tka-cb-btn {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    box-sizing: border-box;
  }
}
