/*
 * Primally Nourished - Cookie Consent CSS v2.1
 * Brand: #4da2c2 / rgb(33,139,179)
 * Covers: banner, modal, opt-out widget, loader, reopen button
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --pn-primary:    #218BB3;
  --pn-primary-d:  rgb(33,139,179);
  --pn-primary-h:  #3a8fab;
  --pn-primary-bg: #eaf5f9;
  --pn-primary-bd: #b8dcea;
  --pn-teal:       #65ccb3;
  --pn-gold:       #fbd087;
  --pn-dark:       #394348;
  --pn-bg-light:   #f5f5f5;
  --pn-dark-lt:    #2e6070;
  --pn-muted:      #636363;
  --pn-cream:      #f8fcfe;
  --pn-parchment:  #eef7fa;
  --pn-border:     #d0e8f0;
  --pn-border-lt:  #e0f0f6;
  --pn-white:      #ffffff;
  --tier-strict-c: #c0392b;
  --tier-strict-bg:#fdf2f0;
  --tier-strict-bd:#f0cfc9;
  --tier-mod-c:    #a07020;
  --tier-mod-bg:   #fdf8ec;
  --tier-mod-bd:   #f0dfa0;
  --cc-font-h:     "Open Sans", sans-serif;
  --cc-font-b:     "Open Sans", sans-serif;
  --cc-radius:     12px;
  --cc-radius-s:   8px;
  --cc-pill:       50px;
  --cc-ease:       0.32s cubic-bezier(0.4,0,0.2,1);
  --cc-shadow-up:  0 -2px 24px rgba(33,139,179,0.1), 0 0 0 1px rgba(33,139,179,0.07);
  --cc-shadow-md:  0 24px 64px rgba(26,58,71,0.16), 0 0 0 1px rgba(77,162,194,0.1);
}

/* -- OVERLAY ------------------------------------------------ */
#cc-overlay {
  position: fixed; inset: 0;
  z-index: 9997; opacity: 0;
  transition: opacity var(--cc-ease); pointer-events: none;
}
#cc-overlay.cc-on { opacity: 1; pointer-events: all; }

/* -- BANNER ------------------------------------------------- */
#cc-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--pn-bg-light); box-shadow: var(--cc-shadow-up);
  font-family: var(--cc-font-b);
  transform: translateY(108%); transition: transform var(--cc-ease);
}
#cc-banner::before { content: ''; display: block; height: 5px; }
#cc-banner.tier-strict::before   { background: linear-gradient(90deg, var(--tier-strict-c), var(--pn-primary), var(--pn-teal)); }
#cc-banner.tier-moderate::before { background: linear-gradient(90deg, var(--tier-mod-c), var(--pn-primary), var(--pn-teal)); }
#cc-banner.tier-light::before    { background: var(--pn-primary); }
#cc-banner.cc-on { transform: translateY(0); }

.cc-banner-inner {
  max-width: 1500px; margin: 0 auto;
  padding: 14px 28px 18px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cc-banner-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 260px; }
.cc-banner-logo { flex-shrink: 0; display: flex; align-items: center; margin-top: 3px; }

.cc-geo-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 9px; border-radius: var(--cc-pill); margin-bottom: 5px;
  font-family: var(--cc-font-b);
}
.cc-geo-pill.strict   { background: var(--tier-strict-bg); color: var(--tier-strict-c); border: 1px solid var(--tier-strict-bd); }
.cc-geo-pill.moderate { background: var(--tier-mod-bg);    color: var(--tier-mod-c);    border: 1px solid var(--tier-mod-bd); }
.cc-geo-pill.light    { background: var(--pn-primary-bg);  color: var(--pn-primary);    border: 1px solid var(--pn-primary-bd); }

.cc-banner-text h3 {
  font-family: var(--cc-font-h); font-size: 22px; font-weight: 600;
  color: var(--pn-dark); margin: 0 0 8px; letter-spacing: -0.01em;
}
.cc-banner-text p { font-size: 15px; color: var(--pn-dark); line-height: 1.58; margin: 0; font-weight: 400; }
.cc-banner-text a { color: var(--pn-primary); text-decoration: underline; }
.cc-banner-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

/* -- BUTTONS ------------------------------------------------ */
.cc-btn {
  font-family: var(--cc-font-b); font-size: 15px; font-weight: 700;
  padding: 10px 20px; border-radius: var(--cc-pill);
  border: none; cursor: pointer; transition: all .22s ease;
  white-space: nowrap; line-height: 1;
}
.cc-btn--primary { background: var(--pn-primary); color: #fff; box-shadow: 0 2px 12px rgba(77,162,194,0.28); }
.cc-btn--primary:hover { background: var(--pn-primary-d); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(33,139,179,0.38); }
.cc-btn--outline { background: transparent; color: var(--pn-primary); border: 1.5px solid var(--pn-primary); }
.cc-btn--outline:hover { background: var(--pn-primary-bg); transform: translateY(-1px); }
.cc-btn--ghost { background: transparent; color: var(--pn-dark); padding: 10px 14px; }
.cc-btn--ghost:hover { color: var(--pn-dark-lt); background: var(--pn-parchment); border-radius: var(--cc-pill); }

/* -- MODAL -------------------------------------------------- */
#cc-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transform: scale(0.96) translateY(8px);
  transition: opacity .28s ease, transform .28s ease; pointer-events: none;
}
#cc-modal.cc-on { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }

.cc-modal-box {
  background: var(--pn-bg-light); border: 1px solid var(--pn-border);
  border-radius: var(--cc-radius); width: 100%; max-width: 840px;
  box-shadow: var(--cc-shadow-md); overflow: auto;
  max-height: 85vh; font-family: var(--cc-font-b);
}
.cc-modal-stripe { height: 4px; background: linear-gradient(90deg, var(--pn-primary), var(--pn-teal), var(--pn-gold), var(--pn-primary)); }
.cc-modal-body { padding: 24px 22px 20px; }
.cc-modal-top { display: flex; align-items: flex-start; justify-content: flex-end; margin-bottom: 14px; }
.cc-modal-logo { display: none; align-items: center; }

.cc-close {
  background: var(--pn-primary); border: 1px solid var(--pn-border-lt);
  color: var(--pn-white); width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .18s; font-family: var(--cc-font-b); flex-shrink: 0; font-weight: 600;
}
.cc-close:hover { background: var(--pn-primary-bg); color: var(--pn-primary-d); border-color: var(--pn-primary); }

.cc-modal-heading { margin-bottom: 14px; }
.cc-modal-heading h2 { font-family: var(--cc-font-h); font-size: 19px; font-weight: 700; color: var(--pn-dark); margin: 0 0 5px; letter-spacing: -0.015em; }
.cc-modal-heading p { font-size: 16px; color: var(--pn-muted); margin: 0; line-height: 1.55; font-weight: 400; }

/* geo notice */
.cc-geo-notice { background: var(--tier-strict-bg); border: 1px solid var(--tier-strict-bd); border-radius: var(--cc-radius-s); padding: 8px 12px; margin-bottom: 13px; font-size: 11px; color: var(--tier-strict-c); line-height: 1.5; display: none; }
.cc-geo-notice.cc-show { display: block; }

/* category rows */
.cc-cat { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-radius: var(--cc-radius-s); margin-bottom: 7px; gap: 12px; background: var(--pn-white); transition: border-color .18s; box-shadow: 0px 1px 2px 0px #0000000D; }
.cc-cat:last-of-type { margin-bottom: 0; }
.cc-cat:hover { border-color: var(--pn-border); }
.cc-cat-left { display: flex; align-items: center; gap: 9px; flex: 1; }
.cc-cat-icon { font-size: 15px; flex-shrink: 0; }
.cc-cat-info strong { display: block; font-size: 16px; font-weight: 700; color: var(--pn-dark); margin-bottom: 1px; }
.cc-cat-info span { font-size: 14px; color: var(--pn-dark); line-height: 1.35; display: block; }

/* toggle */
.cc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-track { position: absolute; inset: 0; background: #cddfe8; border-radius: 50px; transition: .25s ease; }
.cc-track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s ease; box-shadow: 0 1px 4px rgba(26,58,71,0.2); }
.cc-toggle input:checked + .cc-track { background: var(--pn-primary); }
.cc-toggle input:checked + .cc-track::before { transform: translateX(20px); }
.cc-toggle.cc-locked { cursor: not-allowed; }
.cc-toggle.cc-locked .cc-track { background: var(--pn-primary); }

.cc-modal-actions { display: flex; gap: 9px; margin-top: 30px; }
.cc-modal-actions .cc-btn { flex: 1; padding: 14px 20px; }
.cc-modal-note { text-align: center; font-size: 14px; color: var(--pn-muted); margin-top: 16px; font-weight: 500; }
.cc-modal-note a { color: var(--pn-primary-d); }

/* -- OPT-OUT WIDGET ---------------------------------------- */
.cc-widget {
  background: var(--pn-white); border: 1px solid var(--pn-border);
  border-radius: var(--cc-radius); padding: 24px;
  font-family: var(--cc-font-b); max-width: 520px;
  border-top: 3px solid var(--pn-primary);
}
.cc-widget-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cc-widget-header span { font-family: var(--cc-font-h); font-size: 17px; font-weight: 600; color: var(--pn-dark); }
.cc-widget-desc { font-size: 12.5px; color: var(--pn-muted); margin-bottom: 16px; line-height: 1.5; font-weight: 300; }
.cc-widget-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: var(--cc-radius-s); margin-bottom: 7px; gap: 12px; border: 1px solid var(--pn-border-lt); background: var(--pn-parchment); }
.cc-widget-row:last-of-type { margin-bottom: 0; }
.cc-widget-actions { display: flex; gap: 9px; margin-top: 16px; }
.cc-widget-actions .cc-btn { flex: 1; }
.cc-widget-saved { font-size: 12px; color: var(--pn-primary-d); font-weight: 700; margin-top: 10px; }

/* -- REOPEN BUTTON ----------------------------------------- */
#cc-reopen {
  position: fixed; bottom: 18px; left: 18px; z-index: 9990;
  background: var(--pn-white); border: 1.5px solid var(--pn-border);
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; padding: 0; overflow: hidden;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(33,139,179,0.12); transition: all .22s ease;
}
#cc-reopen:hover { transform: scale(1.1); border-color: var(--pn-primary); background: var(--pn-primary-bg); box-shadow: 0 4px 18px rgba(77,162,194,0.28); }

/* -- GEO LOADER -------------------------------------------- */
#cc-loader {
  position: fixed; bottom: 18px; right: 18px; z-index: 9989;
  background: var(--pn-white); border: 1px solid var(--pn-border);
  border-radius: var(--cc-pill); padding: 7px 14px;
  font-size: 10.5px; font-family: var(--cc-font-b); color: var(--pn-muted);
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 10px rgba(33,139,179,0.08);
  opacity: 0; transform: translateY(8px);
  transition: all .22s ease; pointer-events: none;
}
#cc-loader.cc-on { opacity: 1; transform: translateY(0); }
.cc-spinner { width: 12px; height: 12px; border: 2px solid var(--pn-border); border-top-color: var(--pn-primary); border-radius: 50%; animation: cc-spin .7s linear infinite; flex-shrink: 0; }
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* -- RESPONSIVE --------------------------------------------- */
@media (max-width: 991px) {
  .cc-banner-inner {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 767px) {
  .cc-cat-icon { display: none; }
  .cc-cat { padding: 10px; }
}
@media (max-width: 640px) {
  .cc-banner-inner { padding: 12px 16px 16px; flex-direction: column; gap: 12px; }
  .cc-banner-actions { width: 100%; }
  .cc-banner-actions .cc-btn { flex: 1; text-align: center; }
  .cc-modal-body { padding: 18px 16px 16px; }
  .cc-modal-actions { flex-direction: column; }
  .cc-widget { padding: 18px 16px; }
  .cc-widget-actions { flex-direction: column; }
}