/* === EF Content Policy Modal Styles === */
.efcp4-cp,
.efcp4-scope {
  position: relative;
  z-index: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html.efcp4-no-scroll,
body.efcp4-no-scroll {
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.efcp4-cp .cp-modal-overlay,
.efcp4-scope.cp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.efcp4-cp .cp-modal-container,
.efcp4-scope .cp-modal-container {
  position: relative;
  width: 100%;
  max-width: 576px;
  background-color: #ffffff;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  outline: none;
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.efcp4-cp .cp-modal-container > .cp-close-btn,
.efcp4-scope .cp-modal-container > .cp-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.efcp4-cp .cp-modal-container > .cp-close-btn:hover,
.efcp4-cp .cp-modal-container > .cp-close-btn:focus,
.efcp4-scope .cp-modal-container > .cp-close-btn:hover,
.efcp4-scope .cp-modal-container > .cp-close-btn:focus {
  color: #0f172a;
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.efcp4-cp .cp-modal-overlay[aria-hidden="false"] .cp-modal-container,
.efcp4-scope.cp-modal-overlay[aria-hidden="false"] .cp-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.efcp4-cp .cp-modal-content,
.efcp4-scope .cp-modal-content {
  padding: 24px;
}

.efcp4-cp .cp-modal-header,
.efcp4-scope .cp-modal-header {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.efcp4-cp .cp-icon-wrapper,
.efcp4-scope .cp-icon-wrapper {
  flex-shrink: 0;
}

.efcp4-cp .cp-icon-circle,
.efcp4-scope .cp-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.efcp4-cp .cp-icon-svg,
.efcp4-scope .cp-icon-svg {
  width: 20px;
  height: 20px;
  color: #dc2626;
}

.efcp4-cp .cp-header-text,
.efcp4-scope .cp-header-text {
  flex: 1;
}

.efcp4-cp .cp-title,
.efcp4-scope .cp-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.efcp4-cp .cp-modal-body,
.efcp4-scope .cp-modal-body {
  margin-bottom: 24px;
}

.efcp4-cp .cp-intro-text,
.efcp4-scope .cp-intro-text {
  font-size: 14px;
  line-height: 20px;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.efcp4-cp .cp-list,
.efcp4-scope .cp-list,
.efcp4-cp .cp-info-list,
.efcp4-scope .cp-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.efcp4-cp .cp-list-item,
.efcp4-scope .cp-list-item,
.efcp4-cp .cp-info-item,
.efcp4-scope .cp-info-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.efcp4-cp .cp-bullet,
.efcp4-scope .cp-bullet,
.efcp4-cp .cp-info-bullet,
.efcp4-scope .cp-info-bullet {
  color: #ef4444;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 20px;
}

.efcp4-cp .cp-list-text,
.efcp4-scope .cp-list-text,
.efcp4-cp .cp-info-title,
.efcp4-scope .cp-info-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
}

.efcp4-cp .cp-info-text,
.efcp4-scope .cp-info-text {
  font-size: 14px;
  line-height: 20px;
  color: #334155;
  margin: 0 0 12px;
}

.efcp4-cp .cp-warning-box,
.efcp4-scope .cp-warning-box {
  border-radius: 8px;
  border: 1px solid #fde68a;
  background-color: rgba(254, 243, 199, 0.5);
  padding: 16px;
}

.efcp4-cp .cp-warning-content,
.efcp4-scope .cp-warning-content {
  display: flex;
  gap: 8px;
}

.efcp4-cp .cp-warning-icon,
.efcp4-scope .cp-warning-icon {
  width: 16px;
  height: 16px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.efcp4-cp .cp-warning-text,
.efcp4-scope .cp-warning-text {
  font-size: 14px;
  line-height: 20px;
  color: #78350f;
  margin: 0;
}

.efcp4-cp .cp-more-info-btn,
.efcp4-scope .cp-more-info-btn,
.efcp4-cp .cp-info-back-btn,
.efcp4-scope .cp-info-back-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.efcp4-cp .cp-more-info-btn:focus,
.efcp4-scope .cp-more-info-btn:focus,
.efcp4-cp .cp-info-back-btn:focus,
.efcp4-scope .cp-info-back-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.efcp4-cp .cp-content-more-info,
.efcp4-scope .cp-content-more-info {
  display: none;
  margin-bottom: 24px;
}

.efcp4-cp .cp-content-more-info.efcp4-visible,
.efcp4-scope .cp-content-more-info.efcp4-visible {
  display: block;
}

.efcp4-cp .cp-content-default.efcp4-hidden,
.efcp4-scope .cp-content-default.efcp4-hidden {
  display: none;
}

.efcp4-cp .cp-modal-footer,
.efcp4-scope .cp-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.efcp4-cp .cp-checkbox-wrapper,
.efcp4-scope .cp-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.efcp4-cp .cp-checkbox-input,
.efcp4-scope .cp-checkbox-input {
  width: 16px;
  height: 16px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  accent-color: #000000;
}

.efcp4-cp .cp-checkbox-label,
.efcp4-scope .cp-checkbox-label {
  font-size: 14px;
  line-height: 20px;
  color: #0f172a;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.efcp4-cp .cp-continue-btn,
.efcp4-scope .cp-continue-btn {
  padding: 8px 16px;
  min-height: 44px;
  background-color: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background-color .2s ease;
  white-space: nowrap;
}

.efcp4-cp .cp-continue-btn:hover:not(:disabled),
.efcp4-scope .cp-continue-btn:hover:not(:disabled) {
  background-color: #b91c1c;
}

.efcp4-cp .cp-continue-btn:disabled,
.efcp4-scope .cp-continue-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@keyframes efcp4-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@media (max-width: 640px) {
  .efcp4-cp .cp-modal-overlay,
  .efcp4-scope.cp-modal-overlay {
    padding: 8px;
  }
  .efcp4-cp .cp-modal-content,
  .efcp4-scope .cp-modal-content {
    padding: 20px;
  }
  .efcp4-cp .cp-modal-footer,
  .efcp4-scope .cp-modal-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .efcp4-cp .cp-continue-btn,
  .efcp4-scope .cp-continue-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .efcp4-cp .cp-modal-container,
  .efcp4-scope .cp-modal-container {
    transition: none;
  }
}

.cp-modal-overlay.anim-fade .cp-modal-container {
  transition: opacity .2s ease;
}

.cp-modal-overlay.anim-slide .cp-modal-container {
  transform: translateY(16px);
}

.cp-modal-overlay.anim-slide[aria-hidden="false"] .cp-modal-container {
  transform: translateY(0);
}
/* Examples view: heading uses tokenized typography; out-prioritize theme h3 */
.efcp4-cp .cp-modal-container .cp-content-more-info h3,
.efcp4-scope .cp-modal-container .cp-content-more-info h3 {
  /* Box model */
  margin: 0 0 12px;
  /* Typography (tokens: info.heading) */
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #0f172a;
}

/* Examples view: spacing is owned by inner text, not wrappers */
.efcp4-cp .cp-content-more-info .cp-info-item,
.efcp4-scope .cp-content-more-info .cp-info-item {
  /* Box model */
  margin: 0;
}

/* Examples view: no extra gap after last bullet */
.efcp4-cp .cp-content-more-info .cp-info-item:last-child .cp-info-text,
.efcp4-scope .cp-content-more-info .cp-info-item:last-child .cp-info-text {
  /* Box model */
  margin: 0;
}

/* Summary view: emphasize intro heading and red-highlight 'prohibited' */
.efcp4-cp .cp-content-default .cp-intro-text,
.efcp4-scope .cp-content-default .cp-intro-text {
  font-weight: 600;
}
.efcp4-cp .cp-prohibited,
.efcp4-scope .cp-prohibited {
  color: #b91c1c;
}
.efcp4-cp .cp-prohibited-text,
.efcp4-scope .cp-prohibited-text {
  color: #b91c1c;
}

/* Summary view: bullets normal weight (do not affect examples view titles) */
.efcp4-cp .cp-content-default .cp-list-text,
.efcp4-scope .cp-content-default .cp-list-text {
  font-weight: 400;
}

/* Summary view: add spacing above the “See examples of banned content” link */
.efcp4-cp .cp-content-default .cp-more-info-btn,
.efcp4-scope .cp-content-default .cp-more-info-btn {
  margin-top: 16px;
}
/* Examples view: add spacing above the back link */
.efcp4-cp .cp-content-more-info .cp-info-back-btn,
.efcp4-scope .cp-content-more-info .cp-info-back-btn {
  margin-top: 16px;
}
