/* ==========================================================================
   SalesSyllabus - Accessible Cookie Consent Banner
   Design System: Ink (#1E123E), Accent (#7748F9), Soft (#F0F0F2), Border (#DAD7E4)
   ========================================================================== */

.ssb-cb {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 2rem);
  max-width: 680px;
  background-color: #1e123e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.125rem 1.375rem;
  box-shadow:
    0 16px 36px -4px rgba(10, 5, 28, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-family:
    "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  box-sizing: border-box;
  opacity: 1;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  animation: ssbCbSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ssb-cb * {
  box-sizing: border-box;
}

@keyframes ssbCbSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.ssb-cb.ssb-cb-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}

.ssb-cb[hidden] {
  display: none !important;
}

.ssb-cb-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 auto;
}

.ssb-cb-icon {
  flex-shrink: 0;
  color: #a98bff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssb-cb-text {
  margin: 0;
  color: #dad7e4;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 400;
}

.ssb-cb-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.ssb-cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.ssb-cb-btn:active {
  transform: scale(0.98);
}

.ssb-cb-btn:focus-visible {
  outline: 2px solid #a98bff;
  outline-offset: 2px;
}

.ssb-cb-btn-primary {
  background-color: #7748f9;
  color: #ffffff;
  border: 1px solid transparent;
}

.ssb-cb-btn-primary:hover {
  background-color: #6538e0;
}

.ssb-cb-btn-secondary {
  background-color: transparent;
  color: #dad7e4;
  border: 1px solid rgba(218, 215, 228, 0.4);
}

.ssb-cb-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(218, 215, 228, 0.8);
  color: #ffffff;
}

/* Mobile responsive layout */
@media (max-width: 640px) {
  .ssb-cb {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
    width: calc(100% - 1.25rem);
    padding: 1rem 1.125rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

  .ssb-cb-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
  }

  .ssb-cb-btn {
    flex: 1 1 50%;
    min-height: 44px; /* Accessible touch target */
  }
}
