.tka-cookie-banner {
  /* Layout & Positioning */
  --tka-cb-position: fixed;
  --tka-cb-bottom: 24px;
  --tka-cb-right: 24px;
  --tka-cb-width: 420px;
  --tka-cb-max-width: calc(100vw - 48px);
  --tka-cb-padding: 24px;
  --tka-cb-z-index: 999999;
  --tka-cb-box-shadow: 0 16px 36px rgba(70, 67, 132, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --tka-cb-transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;

  /* Colors */
  --tka-cb-primary-color: var(--primary-color, #FF4B67);
  --tka-cb-primary-color-hover: #e03c56;
  --tka-cb-secondary-color: var(--secondary-color, #464384);
  --tka-cb-secondary-color-light: var(--secondary-color-light, #F4F4FF);
  --tka-cb-secondary-color-light-hover: #e8e8ff;
  
  --tka-cb-bg: rgba(255, 255, 255, 0.85);
  --tka-cb-border-color: rgba(255, 255, 255, 0.4);
  --tka-cb-divider-color: rgba(70, 67, 132, 0.1);
  --tka-cb-text-color: #55556a;
  --tka-cb-title-color: var(--tka-cb-secondary-color);
  --tka-cb-label-color: #333;
  --tka-cb-desc-color: #77778c;

  /* Typography */
  --tka-cb-font-family: inherit;
  --tka-cb-title-font-size: 20px;
  --tka-cb-title-font-weight: 700;
  --tka-cb-title-line-height: 1.2;
  --tka-cb-title-margin: 0 0 10px 0;
  
  --tka-cb-text-font-size: 14px;
  --tka-cb-text-line-height: 1.5;
  
  --tka-cb-link-margin-top: 4px;
  --tka-cb-link-font-weight: 500;
  
  --tka-cb-label-font-size: 14px;
  --tka-cb-desc-font-size: 12px;
  --tka-cb-desc-margin-top: 2px;

  /* Borders & Spacing */
  --tka-cb-border-radius: var(--border-radius-medium, 16px);
  --tka-cb-border-radius-button: var(--border-radius-button, 10px);
  --tka-cb-backdrop-filter: blur(12px) saturate(190%);
  
  /* Component-specific Spacings */
  --tka-cb-container-gap: 20px;
  --tka-cb-prefs-gap: 12px;
  --tka-cb-prefs-margin-top: 16px;
  --tka-cb-prefs-padding-top: 16px;
  --tka-cb-pref-item-gap: 10px;
  --tka-cb-checkbox-size: 16px;
  --tka-cb-checkbox-margin-top: 3px;
  --tka-cb-actions-gap: 10px;
  --tka-cb-btn-font-size: 14px;
  --tka-cb-btn-font-weight: 600;
  --tka-cb-btn-padding: 10px 18px;

  position: var(--tka-cb-position);
  bottom: var(--tka-cb-bottom);
  right: var(--tka-cb-right);
  width: var(--tka-cb-width);
  max-width: var(--tka-cb-max-width);
  background: var(--tka-cb-bg);
  backdrop-filter: var(--tka-cb-backdrop-filter);
  -webkit-backdrop-filter: var(--tka-cb-backdrop-filter);
  border: 1px solid var(--tka-cb-border-color);
  border-radius: var(--tka-cb-border-radius);
  box-shadow: var(--tka-cb-box-shadow);
  z-index: var(--tka-cb-z-index);
  padding: var(--tka-cb-padding);
  box-sizing: border-box;
  font-family: var(--tka-cb-font-family);
  transition: var(--tka-cb-transition);
  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: var(--tka-cb-container-gap);
}

.tka-cb-content h3 {
  margin: var(--tka-cb-title-margin);
  font-size: var(--tka-cb-title-font-size);
  font-weight: var(--tka-cb-title-font-weight);
  color: var(--tka-cb-title-color);
  line-height: var(--tka-cb-title-line-height);
}

.tka-cb-text {
  margin: 0;
  font-size: var(--tka-cb-text-font-size);
  line-height: var(--tka-cb-text-line-height);
  color: var(--tka-cb-text-color);
}

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

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

/* Preferences checklist */
.tka-cb-preferences {
  display: flex;
  flex-direction: column;
  gap: var(--tka-cb-prefs-gap);
  margin-top: var(--tka-cb-prefs-margin-top);
  padding-top: var(--tka-cb-prefs-padding-top);
  border-top: 1px solid var(--tka-cb-divider-color);
}

.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: var(--tka-cb-pref-item-gap);
  cursor: pointer;
  font-size: var(--tka-cb-label-font-size);
  color: var(--tka-cb-label-color);
}

.tka-cb-preference-item input[type="checkbox"] {
  accent-color: var(--tka-cb-primary-color);
  width: var(--tka-cb-checkbox-size);
  height: var(--tka-cb-checkbox-size);
  margin-top: var(--tka-cb-checkbox-margin-top);
  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: var(--tka-cb-desc-font-size);
  color: var(--tka-cb-desc-color);
  margin-top: var(--tka-cb-desc-margin-top);
}

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

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

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

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

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

.tka-cb-btn-secondary:hover {
  background: var(--tka-cb-secondary-color-light-hover);
  transform: translateY(-1px);
}

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

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

/* 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(--tka-cb-border-radius) var(--tka-cb-border-radius) 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;
  }
}

/* --- Third-Party Iframe Blocker Placeholder --- */
.tka-iframe-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  background: #111317;
  background: radial-gradient(circle at 50% 50%, #1e2229 0%, #0d0f12 100%);
  border-radius: var(--tka-cb-border-radius, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  box-sizing: border-box;
  padding: 30px 20px;
  color: #fff;
  font-family: var(--tka-cb-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  text-align: center;
  margin: 15px 0;
}

.tka-iframe-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tka-iframe-placeholder.tka-iframe-unlocked {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto;
}

.tka-iframe-placeholder.tka-iframe-unlocked .tka-iframe-placeholder-content {
  display: none !important;
}

.tka-iframe-placeholder.tka-iframe-unlocked iframe {
  position: relative;
  visibility: visible;
  opacity: 1;
}

.tka-iframe-placeholder-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tka-iframe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tka-cb-primary-color, #FF4B67);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.tka-iframe-text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.tka-iframe-text strong {
  color: #fff;
}

.tka-iframe-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.tka-iframe-unlock-btn {
  background: var(--tka-cb-primary-color, #FF4B67);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--tka-cb-border-radius-button, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

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

.tka-iframe-settings-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.tka-iframe-settings-link:hover {
  color: #fff;
}

