.thaijo-cb-wrapper {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  justify-content: center;
  font-family: 'Prompt', sans-serif;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.thaijo-cb-card {
  max-width: 580px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 16px;
  pointer-events: auto;
}

/* Dark mode fallback if subdomain supports dark theme */
@media (prefers-color-scheme: dark) {
  .thaijo-cb-card {
    background: #1e1e2e;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.thaijo-cb-header {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #00838f;
}

.thaijo-cb-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 12px;
}

@media (prefers-color-scheme: dark) {
  .thaijo-cb-body {
    color: #9ca3af;
  }
}

.thaijo-cb-link {
  color: #0288d1;
  text-decoration: none;
  font-weight: 500;
}

.thaijo-cb-link:hover {
  text-decoration: underline;
}

.thaijo-cb-options {
  display: flex;
  gap: 16px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {
  .thaijo-cb-options {
    background: rgba(0, 0, 0, 0.2);
  }
}

.thaijo-cb-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.thaijo-cb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.thaijo-cb-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.thaijo-cb-btn-pri {
  background: #00838f;
  color: #ffffff;
}

.thaijo-cb-btn-pri:hover {
  background: #006064;
}

.thaijo-cb-btn-sec {
  background: transparent;
  color: #4b5563;
}

@media (prefers-color-scheme: dark) {
  .thaijo-cb-btn-sec {
    color: #d1d5db;
  }
}

.thaijo-cb-btn-sec:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .thaijo-cb-wrapper {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .thaijo-cb-actions {
    flex-direction: column-reverse;
  }
  .thaijo-cb-btn {
    width: 100%;
  }
}
