.ccp-form-wrap,.ccp-list-wrap,.ccp-single{
    max-width:1000px;
    margin:2rem auto;
    padding:1rem;
    background:#fff;
    border:1px solid #eee;
    border-radius:12px
    
}.ccp-notice{
    padding:.75rem 1rem;
    background:#f3f7ff;
    border:1px solid #d6e4ff;
    border-radius:8px;
    margin-bottom:1rem
    
}.ccp-briefs{
    list-style:none;padding-left:0
    
}.ccp-briefs li{
    display: flex;
    align-items: center;
    gap: 0.5rem; /* spacing between link and meta */
    
}.ccp-meta{
    color:#666;margin-bottom:.5rem
    
}.ccp-dl{
    display:grid;grid-template-columns:220px 1fr;gap:.5rem 1rem
    
}.ccp-dl dt{
    font-weight:600;color:#333
    
}.ccp-dl dd{
    margin:0 0 .5rem 0
}

@media print{
    .button,.ccp-actions,.site-header,.site-footer,nav{
        display:none!important
        
    }.ccp-single{
        border:0
        
}
}

.ccp-badge{display:inline-block;padding:.15rem .45rem;border-radius:.4rem;font-size:.85em}
.ccp-status-ready{background:#e6ffed;border:1px solid #b2f5bf}
.ccp-status-generating{background:#fffbe6;border:1px solid #ffe58f}
.ccp-status-error{background:#ffe6e6;border:1px solid #ffb3b3}

.ccp-plan-sections{margin-top:1.5rem}
.ccp-section{margin:1rem 0 1.5rem}
.ccp-section h2{margin:.25rem 0 .5rem;border-bottom:1px solid #e5e5e5;padding-bottom:.25rem}
.ccp-badge{display:inline-block;padding:.15rem .45rem;border-radius:.4rem;font-size:.85em}
.ccp-status-ready{background:#e6ffed;border:1px solid #b2f5bf}
.ccp-status-generating{background:#fffbe6;border:1px solid #ffe58f}
.ccp-status-error{background:#ffe6e6;border:1px solid #ffb3b3}
.ccp-notice.ccp-error{background:#fff5f5;border:1px solid #ffb3b3;padding:.75rem;margin-top:.75rem}


/* =============================
   CHARITY CAMPAIGN PLANNER STYLES
   ============================= */

/* ===== Exports toolbar ===== */
.ccp-exports{
  position: sticky; top: 8px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px; border:1px solid #e5e7eb; border-radius: 12px;
  background:#fff; box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* Base button (uses your existing .button class) */
.ccp-exports .button{
  display:inline-flex; 
  align-items:center; 
  justify-content:center; gap:8px;
  padding:1px 20px; 
  border-radius:10px; 
  text-decoration:none;
  border:1px solid #e5e7eb; 
  background:#fff; 
  color:#0f172a;
  transition:transform .06s ease, box-shadow .2s ease, background .15s ease;
}
.ccp-exports .button:hover{ 
    background:#f8fafc; 
    transform:translateY(-1px); 
    
}

/* Make the last PDF a strong primary without editing PHP (targets 4th link) */
.ccp-exports .button:last-child{
  background:white; color:#333333;
  box-shadow:0 6px 18px rgba(15, 23, 42, 0.08);
}
.ccp-exports .button:last-child:hover{
  filter:brightness(1.03); transform:translateY(-1px);
}

/* Optional: if you prefer the first button (Print) as primary instead */
.ccp-exports .button:first-child{
  background:white; color:#333333;
  box-shadow:0 6px 18px rgba(15, 23, 42, 0.08);
}

.ccp-exports .ccp-export-link {
  flex: 1 1 0;      /* share available space equally */
  width: 50%;       /* fallback */
  justify-content: center; /* keep icon+label centred */
}

/* ===== Definition list (fields) ===== */
.ccp-fields{ margin-top: 12px; }
.ccp-dl{
  display:grid;
  grid-template-columns: 260px 1fr;  /* label | value */
  column-gap: 24px; row-gap: 14px;
  padding:16px; border:1px solid #e5e7eb; border-radius:14px; background:#fff;
}
.ccp-dl dt{
  font-weight:700; color:#111827; margin:0; align-self:start;
}
.ccp-dl dd{
  margin:0; color:#374151; line-height:1.6; word-break:break-word;
  padding-bottom:10px; border-bottom:1px dashed #eef2f7;
}
.ccp-dl dt:nth-last-of-type(1), .ccp-dl dd:last-of-type{ border-bottom:none; }

/* Mobile: stack */
@media (max-width: 720px){
  .ccp-dl{ grid-template-columns: 1fr; row-gap:6px; }
  .ccp-dl dd{ padding-bottom:12px; }
}

/* --- Notices (errors, success, info) --- */
.ccp-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.ccp-notice.ccp-error {
  background: #ffe4e4;
  color: #a60000;
  border: 1px solid #f3c0c0;
}

.ccp-notice.ccp-success {
  background: #e6f5ea;
  color: #005c25;
  border: 1px solid #b4e2c1;
}

.ccp-notice.ccp-info {
  background: #eef7ff;
  color: #004c87;
  border: 1px solid #c7e0f7;
}

/* Login */

/* === Custom Login Form Styles (Digital Fundraising look) === */

.ccp-login-wrap {
    max-width: 420px;
    margin: 80px auto;
    padding: 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    font-family: "Poppins", sans-serif;
}

.ccp-login-wrap h2 {
    text-align: center;
    color: black;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.ccp-login-wrap p {
    text-align: center;
    color: #555;
    margin-bottom: 1rem;
}

.ccp-login-wrap label {
    display: block;
    text-align: left;
    margin-bottom: 2px;
    font-weight: 600;
    color: #333;
}

.ccp-login-wrap input[type="text"],
.ccp-login-wrap input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s;
    margin-top: 0;
    margin-bottom: 8px;
}

.ccp-login-wrap input[type="text"]:focus,
.ccp-login-wrap input[type="password"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
    outline: none;
}

.ccp-login-wrap .loginBtn {
  width: 100%;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;     /* ← centers vertically */
  justify-content: center; /* ← centers horizontally */
  line-height: 1;          /* removes extra text height gap */
  transition: background-color 0.2s ease-in-out, transform 0.1s;
}

.loginBtn {
  background-color: #f83168 !important;
}

.ccp-login-wrap .loginBtn:hover {
    background-color: #3a3a3a !important;
    transform: translateY(-1px);
}

.ccp-login-wrap .loginBtn:active {
    background-color: #004f75;
    transform: translateY(0);
}

.ccp-login-wrap a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.ccp-login-wrap a:hover {
    color: #f83168 !important;
    text-decoration: underline;
}

#ccp-login-message {
    margin-top: 0.8rem;
    font-weight: 600;
}

/*----------- DASHBOARD -----------*/

/* -------- DASHBOARD UI (pairs with ccp-dashboard markup) -------- */

:root{
  --ccp-text:#1f2937;            /* slate-800 */
  --ccp-muted:#64748b;           /* slate-500/600 */
  --ccp-surface:#ffffff;
  --ccp-surface-muted:#f5f7fb;   /* very light slate */
  --ccp-border:#e2e8f0;          /* slate-200 */
  --ccp-primary:#c2185b;         /* magenta-ish */
  --ccp-primary-dark:#9c174f;
  --ccp-focus:#1d4ed8;           /* blue-700 */
  --ccp-shadow-soft:0 16px 36px -18px rgba(15,23,42,.35);
}

.ccp-dashboard{
  max-width:1200px;
  margin:48px auto;
  padding:0 24px 56px;
  color:var(--ccp-text);
}

.ccp-dashboard--home{
  background:linear-gradient(160deg, rgba(245,247,252,.92) 0%, rgba(255,255,255,1) 65%);
  border-radius:20px;
  box-shadow:0 24px 48px -28px rgba(15,23,42,.35);
}

.ccp-dashboard__shell{
  max-width:1200px;
  margin:0 auto;
  padding:32px clamp(20px,4vw,40px);
}

.ccp-dashboard__header{ margin-bottom:32px; }

.ccp-dashboard__header-surface{
  background:linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.9) 100%);
  border-radius:18px;
  padding:28px clamp(20px,4vw,36px);
  box-shadow:var(--ccp-shadow-soft);
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* identity/chip */
.ccp-dashboard__identity{
  display:flex; align-items:center; gap:12px;
}
.ccp-dashboard__avatar{
  width:44px; height:44px; border-radius:50%;
  box-shadow:0 6px 16px rgba(15,23,42,.2);
}
.ccp-dashboard__chip{
  display:inline-flex; align-items:center;
  padding:6px 12px; border-radius:999px;
}
.ccp-dashboard__chip-text{
  font-size:14px; 
  font-weight:600; 
  letter-spacing:.01em; 
  color:var(--ccp-text);
}

/* headings */
.ccp-dashboard__headline-group{ display:flex; flex-direction:column; gap:12px; }
.ccp-dashboard__headline{ font-size:32px; font-weight:700; line-height:1.3; margin:0; color:var(--ccp-text); }
.ccp-dashboard__subheadline{ margin:0; font-size:18px; line-height:1.45; color:var(--ccp-muted); }

/* primary CTA */
.ccp-dashboard__primary{ position:relative; margin-bottom:32px; }

.ccp-button{
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  min-height:48px; padding:0 24px; border-radius:14px;
  font-weight:600; letter-spacing:.01em; text-decoration:none;
  transition:box-shadow .2s ease, transform .1s ease, background .2s ease, color .2s ease;
  cursor:pointer; border:1px solid transparent; position:relative;
}
.ccp-button__icon svg{ width:16px; height:16px; display:block; }

.ccp-button--primary{
  width:100%; 
  background: white; 
  color:#fff;
  box-shadow:0 18px 32px -12px rgba(194,24,91,.45);
}
.ccp-button--primary:hover{ transform:translateY(-1px); background:var(--ccp-primary-dark); }
.ccp-button--primary:active{ transform:translateY(0); box-shadow:0 10px 22px -12px rgba(194,24,91,.45); }

.ccp-button--subtle{
  margin-left:auto; color:var(--ccp-muted); background:transparent; border-color:transparent; padding:0 16px;
}
.ccp-button--subtle:hover{ color:var(--ccp-text); background:rgba(15,23,42,.05); }

.ccp-button.is-loading,
.ccp-button[aria-disabled="true"]{ pointer-events:none; opacity:.7; }
.ccp-button.is-loading::after{
  content:""; position:absolute; width:16px;height:16px; right:20px;
  border-radius:50%; border:2px solid rgba(255,255,255,.55); border-top-color:#fff;
  animation:ccp-spin .75s linear infinite;
}
@keyframes ccp-spin{ to{ transform:rotate(360deg); } }

.ccp-button:focus-visible,
.ccp-quick-link:focus-visible,
.ccp-card-link:focus-visible,
.ccp-dashboard__recent-link:focus-visible{
  outline:2px solid var(--ccp-focus); outline-offset:3px;
}

/* cards */
.ccp-dashboard__card{
  background:var(--ccp-surface);
  border-radius:18px;
  box-shadow:var(--ccp-shadow-soft);
  padding:24px clamp(20px,4vw,32px);
  margin-bottom:28px;
}
.ccp-dashboard__card-header{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:20px;
}
.ccp-dashboard__card-title{ margin:0; font-size:24px; font-weight:700; color:var(--ccp-text); }
.ccp-dashboard__card-description{ margin:0; font-size:16px; color:var(--ccp-muted); flex-basis:100%; }

.ccp-card-link{ font-weight:600; font-size:16px; color:var(--ccp-primary); text-decoration:none; }
.ccp-card-link:hover{ text-decoration:underline; }

/* quick links */
.ccp-dashboard__quick-links{ display:grid; gap:16px; }
.ccp-quick-link{
  display:flex; align-items:center; gap:12px;
  min-height:56px; padding:0 20px; border-radius:14px;
  border:1px solid var(--ccp-border); background:var(--ccp-surface-muted);
  color:var(--ccp-text); text-decoration:none;
  transition:transform .1s ease, box-shadow .2s ease, background .2s ease;
}
.ccp-quick-link__icon svg{ width:16px; height:16px; display:block; }
.ccp-quick-link:hover{
  background:#fff; box-shadow:0 14px 32px -20px rgba(15,23,42,.45); transform:translateY(-1px);
}

/* recent list */
.ccp-dashboard__recent-list{
  list-style:none; padding:0; margin:0; display:grid; gap:12px;
}
.ccp-dashboard__recent-item{
  border-radius:14px; background:var(--ccp-surface-muted); border:1px solid var(--ccp-border); overflow:hidden;
}
.ccp-dashboard__recent-link{
  display:flex; gap:14px; align-items:center; padding:14px 18px; color:inherit; text-decoration:none; min-height:56px;
}
.ccp-dashboard__recent-icon{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:12px; background:#fff;
  box-shadow:0 6px 18px -8px rgba(15,23,42,.35);
}
.ccp-dashboard__recent-icon svg{ width:16px; height:16px; display:block; }
.ccp-dashboard__recent-content{ display:flex; flex-direction:column; gap:4px; }
.ccp-dashboard__recent-title{ font-weight:600; font-size:16px; color:var(--ccp-text); }
.ccp-dashboard__recent-meta{ font-size:14px; color:var(--ccp-muted); }
.ccp-dashboard__recent-item--empty{ padding:18px 20px; color:var(--ccp-muted); background:rgba(255,255,255,.72); }

/* secondary actions/footer accent */
.ccp-dashboard__secondary-actions{ display:flex; justify-content:flex-end; margin-bottom:24px; }
.ccp-dashboard--home + .site-footer{ background:#f1f5f9; color:var(--ccp-muted); padding:16px 0; }

/* responsive */
@media (max-width: 640px){
  .ccp-dashboard{ margin:24px auto; padding:0 16px 40px; }
  .ccp-dashboard__shell{ padding:24px 16px 32px; }
  .ccp-dashboard__primary{ position:sticky; top:12px; z-index:10; }
  .ccp-dashboard__header{ margin-bottom:24px; }
  .ccp-dashboard__headline{ font-size:28px; }
  .ccp-dashboard__subheadline{ font-size:16px; }
  .ccp-dashboard__card{ padding:20px 18px; }
}

/* users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .ccp-button,
  .ccp-quick-link,
  .ccp-dashboard__recent-link{ transition:none !important; }
  .ccp-button--primary:hover,
  .ccp-quick-link:hover{ transform:none !important; box-shadow:none !important; }
  .ccp-button:focus-visible,
  .ccp-quick-link:focus-visible,
  .ccp-dashboard__recent-link:focus-visible{
    outline:2px solid var(--ccp-focus); outline-offset:3px;
  }
}

/* fix: ensure the primary CTA shows the label text */
.ccp-button { font-size:16px; line-height:1; }
.ccp-button--primary { color:#fff !important; }
.ccp-button--primary .ccp-button__label{
  display:inline !important;
  color:#fff !important;
  text-indent:0 !important;
  letter-spacing:normal;
  font-weight:600;
}

/* Center the Apply + Reset controls */
.ccp-briefs-toolbar .ccp-field--actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;              /* space between Apply and Reset */
  width:100%;
  margin-top:12px;       /* slight breathing room from selects */
}



/* Compact toolbar */
.ccp-briefs-toolbar { padding: 10px 14px; }            /* was 16/20 */
.ccp-toolbar__row { gap: 12px; margin-top: 6px; }      /* tighten rows */
.ccp-field--actions { margin-top: 6px; }

/* Smaller controls */
.ccp-field input[type="search"],
.ccp-field select { min-height: 38px; }
.ccp-button { min-height: 38px; padding: 0 14px; }

/*---- Brief Template ----*/

.single-campaign_brief, .single-campaign_plan {
    padding-top: 90px;
}

/* ------------------------------------
   Better structure for parsed Markdown
------------------------------------ */

/* Targets any bolded label at the start of a line, like "Goal:" */
.ccp-plan-content p strong {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #f83168; /* brand pink */
}

/* Make list items stand out as sub-points */
.ccp-plan-content ul {
  margin-top: 6px;
  margin-bottom: 16px;
  margin-left: 1.5em;
  list-style: disc;
}

.ccp-plan-content li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: #231F20;
}

/* Optional: add a small gap between each paragraph group */
.ccp-plan-content p {
  margin-bottom: 12px;
}

.ccp-plan-content {
  margin-top: 12px;
}

/* --- Plan editing states --- */
.ccp-plan-banner {
  display: none;
  background: #fff4f8;
  border: 1px solid #f7b3c9;
  color: #7d1d3b;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  margin: 16px 0;
}

.ccp-plan-banner.is-visible {
  display: block;
}

.ccp-plan-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ccp-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ccp-section--strategy {
  margin-bottom: -22px;
}

.ccp-sections-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

@media (max-width: 900px) {
  .ccp-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ccp-sections-grid {
    grid-template-columns: 1fr;
  }
}

.ccp-sections-grid .ccp-section {
  margin: 0;
  height: 100%;
}

.ccp-section--tile {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.ccp-section--tile:hover,
.ccp-section--tile:focus-within {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ccp-section--tile .ccp-section-toggle {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
}

.ccp-section--tile .ccp-section-toggle-icon,
.ccp-section--tile .ccp-section-toggle-verb {
  display: none;
}

.ccp-section--tile .ccp-section-body,
.ccp-section--tile .ccp-section-actions,
.ccp-section--tile .ccp-plan-content {
  display: none;
}

.ccp-section--tile.ccp-section--in-modal {
  cursor: default;
  transform: none;
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.ccp-section--tile.ccp-section--in-modal .ccp-section-header {
  display: none;
}

.ccp-section--tile.ccp-section--in-modal .ccp-section-body {
  display: flex;
  background: transparent;
}

.ccp-section--tile.ccp-section--in-modal .ccp-section-actions {
  display: flex;
}

.ccp-section--tile.ccp-section--in-modal .ccp-plan-content {
  display: block;
}

.ccp-section {
  border: 1px solid #ececec !important;
  border-radius: 12px;
  padding: 25px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccp-section[data-section-state="edited"] {
  border-color: rgba(248, 49, 104, 0.55);
  box-shadow: 0 0 0 1px rgba(248, 49, 104, 0.12);
}

.ccp-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ccp-section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.ccp-section-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.ccp-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ccp-strategy-review .ccp-section-actions {
  margin-top: 12px;
  display: block;
}

.ccp-strategy-actions-row {
  display: flex;
  justify-content:center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ccp-strategy-actions-row form {
  margin: 0;
}


.button-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f7;
  border: 1px solid #d7d7dc;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #231f20;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-link:hover,
.button-link:focus {
  background: #f83168;
  border-color: #f83168;
  color: #fff;
  outline: none;
}

.ccp-section-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.ccp-section-chip.is-saved {
  background: #eef8f0;
  border-color: #b9e1c0;
  color: #2f7a37;
}

.ccp-section-chip.is-edited {
  background: #fef1f6;
  border-color: #f06b96;
  color: #c21f4b;
}

.ccp-compare-link {
  font-size: 16px;
  color: #2f3d8a;
  text-decoration: underline;
}

.ccp-compare-link:hover,
.ccp-compare-link:focus {
  color: #f83168;
}

.ccp-editable.is-editing {
  outline: 2px dashed #f83168;
  padding: 8px;
  border-radius: 8px;
  background: #fff6fa;
}

.ccp-export-options {
  margin: 8px 0 20px;
  display: flex;
  justify-content:center;
}

.ccp-export-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
}

.ccp-export-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f83168;
}

/*----------------------------------------
     COLLAPSE SECTIONS (H2 version)
----------------------------------------*/

/* Hide all content by default */
.ccp-plan-content { display: none; }

/* Show when open */
.ccp-plan-content.is-open { display: block; }

/* Toggle affordance */
.ccp-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ccp-section-toggle:hover, .ccp-section-toggle:focus-visible {
  background-color: white !important;
}

.ccp-section-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 61, 138, 0.35);
}

.ccp-section-toggle-icon {
  font-size: 20px;
  line-height: 1;
  color: #555;
}

.ccp-section-toggle-text {
  font-weight: 700;
  font-size: 20px;
}

.ccp-section-toggle-text:hover{
  color: #333333 !important;
}


.ccp-section-toggle[aria-expanded="true"] .ccp-section-toggle-icon {
  color: #2f3d8a;
}

.ccp-section-toggle[aria-expanded="true"] .ccp-section-toggle-verb {
  color: #333;
}

.ccp-section-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99990;
}

.ccp-section-modal.is-open {
  display: flex;
}

.ccp-section-modal[hidden] {
  display: none !important;
}

.ccp-section-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.ccp-section-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 720px) {
  .ccp-section-modal-dialog {
    padding: 20px 18px;
    border-radius: 0;
    max-width: none;
    max-height: 100vh;
  }
}

.ccp-section-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

.ccp-section-modal-close:hover,
.ccp-section-modal-close:focus {
  color: #111;
}

.ccp-section-modal-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.ccp-section-modal-chip {
  margin-top: 10px;
}

.ccp-section-modal-chip:empty {
  display: none;
}

.ccp-section-modal-body {
  margin-top: 20px;
  flex: 1;
  overflow: auto;
  padding-right: 8px;
}

.ccp-section-modal-body > .ccp-section {
  margin: 0;
}

.ccp-section-modal-body .ccp-section-body {
  gap: 20px;
}

body.ccp-section-modal-open {
  overflow: hidden;
}


/* --- Diff modal --- */
.ccp-diff-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.ccp-diff-modal.is-open {
  display: block;
}

.ccp-diff-modal[hidden] {
  display: none !important;
}

.ccp-diff-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 22, 0.55);
}

.ccp-diff-dialog {
  position: relative;
  max-width: 1400px;
  margin: 4% auto;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(17, 17, 22, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.ccp-diff-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.ccp-diff-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.ccp-diff-column {
  flex: 1 1 280px;
}

.ccp-diff-content {
  background: #f7f7fb;
  border: 1px solid #e1e2ed;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  min-height: 120px;
}

.ccp-diff-added {
  background: rgba(40, 167, 69, 0.18);
}

.ccp-diff-removed {
  background: rgba(248, 49, 104, 0.2);
  text-decoration: line-through;
}

@media (max-width: 640px) {
  .ccp-diff-dialog {
    margin: 10% 16px;
    padding: 20px;
  }

  .ccp-section-actions {
    justify-content: flex-start;
  }
}

/*----------------------------------------
     ASSETS - BRIEF Alignment
----------------------------------------*/

/* === Asset Upload Row Styling === */
.acf-field.asset-upload {
  display: flex;
  flex-direction: column;     /* keep label → button → filename stacked */
  align-items: flex-start;    /* align to left edge */
  justify-content: flex-start;
  width: 100%;                /* full width for each upload */
  margin-right: 0;
  margin-top: -10 !important;
  margin-bottom: -10px !important;        /* space between uploads */
  border: none !important;
  padding: 0 !important;
}

/* make the whole row sit closer to the label */
.acf-field.asset-upload:first-of-type {
  margin-top: -4px;               /* pull up slightly under label */
}

/* file input button */
.acf-field.asset-upload input[type="file"] {
  width: 100%;
  cursor: pointer;
}

/* place file name text below each button */
.acf-field.asset-upload .acf-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* hide the default inline filename and create a cleaner look */
.acf-field.asset-upload input[type="file"]::file-selector-button {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f83168 !important;
  font-weight: 600;
  color: #fff !important;
  transition: all 0.2s ease;
}

.acf-field.asset-upload input[type="file"]::file-selector-button:hover {
  background: #333333 !important;
  color: #fff;
}

/* Push next field group down when it follows any asset upload */
.acf-field.asset-upload + .acf-field:not(.asset-upload) {
  margin-top: 60px !important;
}

.acf-field.asset-upload input[type="file"]::file-selector-button {
  color: #231f20;       /* button text color */
  font-weight: 300;     /* bold text */
  background: #f7f7f7;  /* button background */
}


/* wrap nicely on smaller screens */
@media (max-width: 700px) {
  .acf-field.asset-upload {
    width: 48%;
  }
}

/*----------------------------------------
            Asset Tip
----------------------------------------*/

.acf-field-message[data-name="assets_tip"] {
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #444;
  margin-top: -10px !important;
  margin-bottom: 40px !important;
}

.acf-field-message[data-name="assets_tip"] strong,
.acf-field-message[data-name="assets_tip"] em {
  color: #f83168;
}

/*----------------------------------------
     Assests Upload - Brief.plan
----------------------------------------*/
.ccp-asset-list {
  list-style: none;
  margin: 12px 0 40px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ccp-asset-list li {
  margin: 0;
}

.ccp-asset-list a.ccp-btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f83168; /* Charity Campaign Planner pink */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.1s ease;
}

.ccp-asset-list a.ccp-btn-small:hover {
  background: #d61e54;              /* darker pink hover */
  transform: translateY(-1px);      /* slight lift on hover */
}

/* Optional: make icons slightly smaller and aligned */
.ccp-asset-list a.ccp-btn-small {
  font-family: "Poppins", sans-serif;
}

.ccp-asset-list a.ccp-btn-small span.icon {
  font-size: 16px;
}

/* Responsive tweak for narrow screens */
@media (max-width: 600px) {
  .ccp-asset-list {
    flex-direction: column;
  }
  .ccp-asset-list a.ccp-btn-small {
    width: 100%;
    justify-content: center;
  }
}

/*-----*/

.ccp-brief-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ccp-brief-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 16px;
  transition: box-shadow 0.2s ease;
}

.ccp-brief-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ccp-brief-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #f83168;
}

.ccp-brief-card .meta {
  font-size: 13px;
  color: #666;
}

.ccp-brief-card .actions {
  margin-top: 8px;
}

.ccp-brief-card .actions a {
  background: #f83168;
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none;
  margin-right: 6px;
}

/*---------------------------------------------------*/
/*---------------------BRIEFS PAGE-------------------*/
/*---------------------------------------------------*/

/* === Container === */
.ccp-list-wrap {
  max-width: 960px;
  margin: 24px auto;
  padding: 16px;
  background: #fff;
  border: 3px solid #FDD25F;
  border-radius: 14px;
}

/* Heading */
.ccp-list-wrap h2 {
  text-align: center;
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -.015em;
  color: #333333;
}

/* === Notice === */
.ccp-notice {
  padding: 10px 12px;
  margin: 8px 0 14px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}

/* === List === */
.ccp-briefs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

/* List Items - using grid to separate title and meta */
.ccp-briefs li {
  display: flex;
  grid-template-columns: 1fr auto; /* Title | Meta */
  align-items: center;              /* Vertically center both */
  gap: 12px;
  padding: 10px 12px;
  border: 3px solid #333333;
  border-radius: 10px;
  background: white;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}

.ccp-briefs li:hover {
  background: #f83168;
  border-color: #333333;
  color: white !important;
  transform: translateY(-1px);
}

.ccp-briefs li:hover .ccp-brief-card__title,
.ccp-briefs li:hover .ccp-status-badge,
.ccp-briefs li:hover .ccp-status-badge__label,
.ccp-briefs li:hover .ccp-status-badge__date {
  color: #ffffff !important;
}

.ccp-briefs li:focus-within {
  outline: 3px solid #111;
  outline-offset: 2px;
}

/* Title link */
.ccp-briefs li > a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: center;   /* Ensure vertical centering */
  line-height: 1.2;     /* Tighten line height for alignment */
}

.ccp-briefs li > a:hover {
  text-decoration: underline;
  color: white;
}



/*---------------------------------------------------*/
/*-------------------- CCP META CHIP ----------------*/
/*---------------------------------------------------*/

/* Status + date meta (chip style) */
.ccp-meta {
  display: flex !important;          /* Flex container for vertical centering */
  align-items: center !important;    /* Vertically center contents */
  justify-content: center;            /* Horizontally center if needed */
  font-size: clamp(14px, 3.2vw, 15px);
  color: #475569;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  padding: 10px 8px;
  border-radius: 999px;
  white-space: normal;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}


/* Keyboard focus visibility */
.ccp-meta a:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}

/* Responsive: stack meta chip contents on small screens */
@media (max-width: 640px) {
  .ccp-meta {
    white-space: normal;       /* Allow wrapping */
    flex-direction: column;    /* Stack items vertically */
    align-items: stretch;
    gap: 10px;
    padding: 8px;              /* Tighter padding */
    border-radius: 16px;       /* Softer corners */
  }

  .ccp-meta a {
    width: 100%;
    font-size: clamp(14px, 4vw, 16px);
    padding: 10px 14px;
  }
}

/* Extra-narrow phones tweaks */
@media (max-width: 360px) {
  .ccp-meta {
    border-width: 1px;
  }
  .ccp-meta a {
    padding: 10px 12px;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .ccp-meta a {
    transition: none;
    transform: none;
  }
}



/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ccp-meta bar, linked plan------------*/

/* Empty-state button (your <a class="button">) */
.ccp-list-wrap .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ff2d78;
  color: #fff !important;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 18px rgba(255,45,120,.18);
  transition: transform .06s ease, box-shadow .2s ease;
}
.ccp-list-wrap .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,45,120,.22);
}

.single-campaign_plan .ccp-single .wrap {
  max-width: 1000px !important;   /* your desired content width */
  width: 100% !important;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.single-campaign_plan .ccp-meta {
  width: 100% !important;
  max-width: none;    /* use the parent’s width */
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* === Mobile stacking === */
@media (max-width: 720px){
  .ccp-briefs li{
    grid-template-columns: 1fr; 
    gap: 6px;
  }
  .ccp-meta{
    justify-self: start; 
  }
}


/* 1) Let the plan area ignore parent flex sizing */
body.single-campaign_plan main.ccp-single {
  flex: 0 0 auto !important;  
  width: 100% !important; 
  max-width: 1200px; 
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* 2) Some themes also cap the *content* wrapper inside main */
body.single-campaign_plan main.ccp-single .wrap {
  max-width: none !important;
  width: 100% !important;
}


/* Mobile */
@media (max-width: 640px) {
  body.single-campaign_plan main.ccp-single {
    max-width: 100%;
    padding: 0 12px;
  }
}

/* Wrapper for the button group */
.ccp-multi-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;                 /* space between choices */
  max-width: 980px;
  margin: 24px auto 12px;    /* center horizontally */
  box-sizing: border-box;
}

/* Each choice tile (the flex item) */
.ccp-multi-submit .ccp-choice,
.ccp-multi-submit > button,
.ccp-multi-submit > input[type="submit"],
.ccp-multi-submit > a {
  display: flex;
  flex: 1 1 calc(25% - 16px);   /* desktop: 4 per row */
  min-width: 160px;
  box-sizing: border-box;
}

/* Make the actual clickable element inside stretch full height/width */
.ccp-multi-submit .ccp-choice > *,
.ccp-multi-submit > button,
.ccp-multi-submit > input[type="submit"],
.ccp-multi-submit > a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 14px 16px;
  line-height: 1.2;
  border-radius: 12px;
  box-sizing: border-box;

  text-align: center;
  white-space: normal;
  margin: 0;
}

/* Tablet: 2 per row */
@media (max-width: 900px) {
  .ccp-multi-submit .ccp-choice,
  .ccp-multi-submit > button,
  .ccp-multi-submit > input[type="submit"],
  .ccp-multi-submit > a {
    flex: 1 1 calc(50% - 16px);
    min-width: 180px;
  }
}

/* Mobile: full width */
@media (max-width: 520px) {
  .ccp-multi-submit .ccp-choice,
  .ccp-multi-submit > button,
  .ccp-multi-submit > input[type="submit"],
  .ccp-multi-submit > a {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.objective-text{
    display:flex;
    justify-content:center;
    align-items:center;
}

/* === Modern briefs board styles === */
.ccp-briefs-surface{
  --ccp-sticky-offset: 0px;
  --ccp-outline-color: #2563eb;
  --ccp-surface-bg: #f8fafc;
  max-width: 1200px;
  margin: 24px auto 48px;
  padding: 24px;
  background: var(--ccp-surface-bg);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.ccp-briefs-surface.is-empty{
  gap: 32px;
}

.ccp-briefs-header{
  position: sticky;
  top: calc(var(--ccp-sticky-offset));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: var(--ccp-surface-bg);
  z-index: 5;
}

.ccp-briefs-header__title h1{
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.ccp-briefs-header__hint{
  margin: 4px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
}

.ccp-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.ccp-button--primary{
  background: #F83168;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,0.25);
}

.ccp-button--primary:hover{
  background: #333333;
  box-shadow: 0 14px 30px rgba(29,78,216,0.28);
  transform: translateY(-1px);
}

.ccp-button--secondary{
  background: #fff;
  border-color: #cbd5f5;
  color: #1f2937;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ccp-button--secondary:hover{
  background: #eef2ff;
  border-color: #6366f1;
}

.ccp-button--ghost{
  background: transparent;
  border-color: transparent;
  color: #1f2937;
  padding-inline: 12px;
}

.ccp-button--ghost:hover{
  color: #2563eb;
  background: rgba(37,99,235,0.08);
}

.ccp-button:focus-visible{
  outline: 2px solid var(--ccp-outline-color);
  outline-offset: 2px;
}

.ccp-inline-notice{
  padding: 12px 16px;
  border-radius: 12px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ccp-briefs-toolbar{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.06);
  max-height:250px;
}

.ccp-briefs-toolbar__form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ccp-toolbar__row{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.ccp-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  flex: 1 1 220px;
}

.ccp-field--actions{
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ccp-field__label{
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #475569;
  text-transform: uppercase;
}

.ccp-field input[type="search"],
.ccp-field select{
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ccp-field input[type="search"]:focus,
.ccp-field select:focus{
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.ccp-briefs-skeleton{
  display: grid;
  gap: 16px;
}

.ccp-briefs-skeleton__card{
  height: 88px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%);
  animation: ccp-skeleton 1.4s ease-in-out infinite;
}

@keyframes ccp-skeleton{
  0%{ background-position: -200px 0; }
  100%{ background-position: 200px 0; }
}

.ccp-briefs-surface.is-loading .ccp-briefs-groups,
.ccp-briefs-surface.is-loading .ccp-briefs-empty,
.ccp-briefs-surface.is-loading .ccp-briefs-pagination{
  opacity: 0;
  pointer-events: none;
}

.ccp-briefs-surface:not(.is-loading) .ccp-briefs-skeleton{
  display: none;
}

.ccp-briefs-surface .ccp-briefs{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ccp-briefs-group{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ccp-briefs-group__header{
  position: sticky;
  top: calc(var(--ccp-sticky-offset) + 72px);
  background: var(--ccp-surface-bg);
  padding: 4px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
  z-index: 4;
}




/* Center ONLY the Strategy heading + chip */
.ccp-section--strategy .ccp-section-header {
  display: flex;
  justify-content: center;   /* center the title block */
}

.ccp-section--strategy .ccp-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;              /* space between “Strategy” and the chip */
  text-align: center;
}

/* Optional: keep the toggle text itself centered within the button */
.ccp-section--strategy .ccp-section-toggle {
  text-align: center;
}

/* === Plan sections card === */
.ccp-plan-card {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.ccp-plan-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.ccp-plan-card__title h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.ccp-plan-card__title p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.ccp-plan-card__meta {
  display: flex;
  align-items: center;
}

.ccp-plan-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ccp-plan-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 640px) {
  .ccp-plan-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Plan sections summary card === */

.ccp-plan-card {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ccp-plan-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
}

.ccp-plan-card__title h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
}

.ccp-plan-card__title p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

.ccp-plan-card__meta {
  display: flex;
  align-items: center;
}

.ccp-plan-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .ccp-plan-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ccp-plan-card__meta {
    align-self: flex-start;
  }
}

.ccp-brief-org-card {
  margin: 16px 0 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ccp-brief-org-card__header h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.ccp-brief-org-card__body {
  font-size: 14px;
  color: #374151;
}

.ccp-brief-org-card__row {
  margin: 0 0 6px;
}

.ccp-brief-org-card__row strong {
  font-weight: 600;
  color: #111827;
}

.ccp-brief-org-card a {
  color: #f83168;
  text-decoration: none;
}

.ccp-brief-org-card a:hover {
  text-decoration: underline;
}

/* Tidy the profile preview inside the card */
.ccp-profile-preview {
  margin-top: 10px;
}

.ccp-profile-preview__inner {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Make the Compare-to-draft modal sit on top of the section modal */
.ccp-diff-modal {
  z-index: 100000; /* higher than .ccp-section-modal (99990) */
}

/* Export button icons */
.ccp-export-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  color:#fff;
}

/* Word-style blue */
.ccp-export-icon--word{
  background:#185ABD;          /* Word blue */
}

/* PDF-style red */
.ccp-export-icon--pdf{
  background:#D93025;          /* PDF red */
}

/* Optional: keep text from squishing on small screens */
.ccp-export-label{
  white-space:nowrap;
}

.ccp-meta {
  display: flex;
  align-items: center;
  flex-direction:column;
  flex-wrap: wrap;
}

/* keep Created: from stretching weirdly */
.ccp-meta-created {
  white-space: nowrap;
}

/* brief+org chip */
.ccp-brief-org-card {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f6f8ff;
  border: 1px solid #e0e5ff;
}

.ccp-brief-org-card__body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ccp-brief-org-card__row {
  margin: 0;
  font-size: 13px;
}

.single-campaign_plan .ccp-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .single-campaign_plan .ccp-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ccp-dashboard__chip--has-menu {
    position: relative;
    display: inline-block;
}

.ccp-dashboard__chip-toggle {
    background: none;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: inherit;
    color: inherit;
}

.ccp-dashboard__chip-caret {
    font-size: 0.75em;
}

.ccp-dashboard__chip-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 160px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 4px 0;
    z-index: 50;
    display: none;
}

.ccp-dashboard__chip-menu-item {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
}

.ccp-dashboard__chip-menu-item:hover {
    background: rgba(0,0,0,0.04);
}

.ccp-dashboard__chip--has-menu.is-open .ccp-dashboard__chip-menu {
    display: block;
}

.ccp-exports {
  margin: 12px 0;
  flex-direction:column;
}

.ccp-export-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ccp-export-options {
  margin-top: 8px;
}

.ccp-section[data-section="kpis"] {
  background-image: url('../img/kpis.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccp-section[data-section="ad_structure"] {
  background-image: url('../img/PaidMediaCampaignSetup.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccp-section[data-section="ad_copy"] {
  background-image: url('../img/AdCopy.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccp-section[data-section="creative_brief"] {
  background-image: url('../img/CreativeBrief.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccp-section[data-section="landing_page"] {
  background-image: url('../img/LandingPage.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccp-section[data-section="supporter_journey"] {
  background-image: url('../img/SupporterJourney.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccp-section[data-section="strategy"] {
  background-image: url('../img/Strategy.png'); /* adjust path to your CSS file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep the image on the section tile */
.ccp-section[data-section] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Make the content area white */
.ccp-section[data-section] .ccp-section-body {
  background-color: #fff;
  border-radius: 16px;    /* match your section radius */
  padding: 16px;          /* adjust to taste */
  box-sizing: border-box;
}

/*-------------*/

/* ===== CCP Subscribe / Pricing ===== */

.ccp-pricing-wrap {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    box-sizing: border-box;
    font-family: inherit;
}

/* Offer banner */
.ccp-pricing-offer {
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

.ccp-pricing-offer .ccp-price {
    display: inline-block;
    margin-right: 0.35em;
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

.ccp-pricing-offer .ccp-offer-text {
    font-weight: 500;
}

/* Table wrapper */
.ccp-pricing-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

/* Feature comparison table */
.ccp-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px; /* allows horizontal scroll on very small screens */
}

.ccp-pricing-table th,
.ccp-pricing-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.ccp-pricing-table thead th {
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    background: #f9fafb;
}

.ccp-pricing-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.ccp-pricing-table tbody tr:hover {
    background: #f3f4f6;
}

/* CTA panel: Basic vs Standard cards */
.ccp-pricing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ccp-pricing-plan {
    flex: 1 1 220px;
    max-width: 260px;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-align: center;
    box-sizing: border-box;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.ccp-pricing-plan h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ccp-plan-price {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Highlight Standard plan */
.ccp-pricing-plan--highlight {
    border-color: #F83168;
    box-shadow: 0 10px 24px rgba(248, 49, 104, 0.16);
    position: relative;
}

.ccp-pricing-plan--highlight::before {
    content: "Recommended";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #F83168;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.ccp-manage-subscription {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;  /* centres the button horizontally */
}

/* Buttons (let WP core button styles do most of the work) */
.ccp-pricing-plan .button {
    width: 100%;
    justify-content: center;
}

/* Manage subscription footer */
.ccp-manage-subscription {
    margin-top: 0.5rem;
}

.ccp-manage-subscription .button {
    opacity: 0.85;
    display: inline-block;    /* or block, either is fine here */
    margin: 0;  
}

.ccp-manage-subscription .button:hover {
    opacity: 1;
}

/* ===== Responsive tweaks ===== */

@media (max-width: 768px) {
    .ccp-pricing-wrap {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .ccp-pricing-plan {
        max-width: 100%;
    }

    .ccp-pricing-plan--highlight::before {
        top: -12px;
    }
}

@media (max-width: 480px) {
    .ccp-pricing-offer .ccp-price {
        display: block;
        margin-bottom: 0.2rem;
    }

    .ccp-pricing-table {
        font-size: 0.9rem;
    }
}

/* ===========================
   My Plans – simple card layout
   =========================== */

/* Outer surface */
.ccp-briefs-surface {
  background: #f9fafb;
  padding: 24px;
  border-radius: 24px;
}

/* Remove “loading” skeleton look when JS hasn’t touched it yet */
.ccp-briefs-surface.is-loading .ccp-briefs-skeleton {
  display: none;
}

/* Heading + toolbar – keep simple */
.ccp-briefs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ccp-briefs-header__title h1 {
  margin: 0;
  font-size: 1.4rem;
}

/* Simple toolbar */
.ccp-briefs-toolbar {
  margin-bottom: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
}

/* Cards list */
.ccp-briefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card container */
.ccp-brief-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  max-height:90px;
}

.ccp-briefs li > a {
  align-self: stretch;
  text-align: left;
}

/* Full-card link */
.ccp-brief-card__link {
  display: flex;
  align-items: center;      /* center row vertically */
  padding: 16px 20px;
  text-decoration: none;
}

/* Body: centre everything */
.ccp-brief-card__body {
  display: flex;
  align-items: center;      /* vertical center for title + meta */
  gap: 16px;
  flex: 1 1 auto;
}
.ccp-brief-card__top {
  flex: 0 1 auto;
}

.ccp-brief-card__meta .ccp-status-badge,
.ccp-brief-card__meta .ccp-status-badge__date {
  font-size: 0.85rem;
}

.ccp-brief-card__meta .ccp-status-badge {
  padding: 4px 12px;
}

/* Title */
.ccp-brief-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;         /* match date line-height */
}

/* Meta row (status + date) */
.ccp-brief-card__meta {
  margin-left: auto;        /* push to right edge */
  display: inline-flex;
  align-items: center;      /* vertical center within meta row */
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
}

/* Status badge */
.ccp-status-badge {
  --ccp-status-color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1f2937;
  font-weight: 600;
}

.ccp-status-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ccp-status-color);
}

/* Chevron icon */
.ccp-brief-card__chevron svg {
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

/* Hover state */
.ccp-brief-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.ccp-brief-card__link:hover .ccp-brief-card__title {
  text-decoration: underline;
}

/* Pagination button container */
.ccp-briefs-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.ccp-brief-card__top {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

/* Basic responsive tweak */
@media (max-width: 600px) {
  .ccp-briefs-surface {
    padding: 16px;
  }
    .ccp-brief-card__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .ccp-brief-card__meta {
    margin-left: 0;
  }
  .ccp-brief-card {
    max-height:120px;
  }
    .ccp-brief-card__title {
    white-space: normal;      /* allow wrapping */
    overflow: visible;        /* no clipping */
    text-overflow: clip;
    word-break: break-word;   /* break long words if needed */
  }

  /* Stack title and meta vertically on small screens */
  .ccp-brief-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ccp-brief-card__meta {
    margin-left: 0;
  }

  /* Make sure the card uses the full width of its container */
  .ccp-brief-card__link {
    width: 100%;
  }

}

.ccp-briefs-header .ccp-button.ccp-button--primary {
  white-space: nowrap;      /* stop line wrapping */
}

/* Header CTA pill – same on Briefs & Plans */
.ccp-header-cta {
  width: auto;                 /* undo width: 100% */
  min-height: 38px;            /* or whatever the “good” button has */
  padding: 10px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

