/* ==========================================================================
   Cookie / privacy choices banner (replaces the old home-page notice)
   ========================================================================== */
.pgc-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 99990;                     /* above the page, below the Book a Demo popup */
  /* wide enough to read comfortably, but always clear of the theme button on the left (18px + 48px + gap) */
  width: min(980px, calc(100% - 176px));
  padding: 24px 28px 22px;
  border-radius: 24px;
  color: var(--pg-text, #14213d);
  background: var(--pg-glass, rgba(255, 255, 255, .78));
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  box-shadow: inset 0 0 0 1px var(--pg-glass-border, rgba(6, 35, 177, .13)), 0 22px 60px rgba(4, 18, 70, .28);
  font-family: 'Poppins', sans-serif;
  transform: translate(-50%, 30px);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .3s ease, visibility 0s linear .4s;
}
.pgc-banner.pgc-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .3s ease; }

/* row 1: icon + message; row 2: the choices */
.pgc-main { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 20px; align-items: start; }
.pgc-icon {
  grid-row: 1; grid-column: 1;
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 15px; color: #fff;
  background: linear-gradient(135deg, #0623b1, #2f6bff);
  box-shadow: 0 10px 22px rgba(6, 35, 177, .3);
}
.pgc-icon svg { width: 25px; height: 25px; }
.pgc-text { grid-row: 1; grid-column: 2; min-width: 0; }
.pgc-title { margin: 2px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--pg-heading, #0623b1) !important; border: 0; text-transform: none; font-family: 'Poppins', sans-serif; }
.pgc-desc { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--pg-text, #14213d); text-align: left !important; }
.pgc-desc a { color: var(--pg-heading, #0623b1); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pgc-nowrap { white-space: nowrap; }

.pgc-actions { grid-row: 2; grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--pg-glass-border, rgba(6, 35, 177, .13)); }
.pgc-btn {
  min-height: 44px; padding: 11px 24px; border-radius: 12px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.pgc-primary { border: 0; color: #fff; background: linear-gradient(135deg, #0623b1, #2f6bff); box-shadow: 0 10px 22px rgba(6, 35, 177, .3); }
.pgc-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(6, 35, 177, .38); }
.pgc-secondary { color: var(--pg-heading, #0623b1); background: transparent; border: 1.5px solid var(--pg-accent, #0623b1); }
.pgc-secondary:hover { background: var(--pg-surface-2, rgba(238, 243, 255, .78)); }
.pgc-link { border: 0; background: transparent; color: var(--pg-muted, #56627f); padding: 11px 10px; margin-right: auto; text-decoration: underline; text-underline-offset: 3px; }
.pgc-link:hover { color: var(--pg-heading, #0623b1); }

/* customise panel */
.pgc-panel { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pg-glass-border, rgba(6, 35, 177, .13)); }
.pgc-open .pgc-panel { display: block; }
.pgc-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.pgc-row + .pgc-row { border-top: 1px solid var(--pg-glass-border, rgba(6, 35, 177, .13)); }
.pgc-row strong { display: block; font-size: 14.7px; }
.pgc-row span.pgc-sub { display: block; margin-top: 2px; font-size: 12.8px; line-height: 1.5; color: var(--pg-muted, #56627f); }
.pgc-switch { position: relative; flex: none; width: 50px; height: 28px; }
.pgc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pgc-switch i {
  position: absolute; inset: 0; border-radius: 999px; background: rgba(127, 140, 180, .45); transition: background .2s;
}
.pgc-switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .22s cubic-bezier(.2, 1.2, .3, 1);
}
.pgc-switch input:checked + i { background: linear-gradient(135deg, #0623b1, #2f6bff); }
.pgc-switch input:checked + i::after { transform: translateX(22px); }
.pgc-switch input:disabled { cursor: not-allowed; }
.pgc-switch input:disabled + i { opacity: .6; }
.pgc-switch input:focus-visible + i { outline: 2px solid var(--pg-accent, #0623b1); outline-offset: 3px; }
.pgc-save { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }


/* footer links added to every page */
.pgc-footlinks { display: inline-block; margin-left: 6px; }
.pgc-footlinks a, .pgc-footlinks button {
  color: inherit; background: none; border: 0; padding: 0; margin: 0 0 0 2px; font: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .9;
}
.pgc-footlinks a:hover, .pgc-footlinks button:hover { opacity: 1; }

@media (max-width: 760px) {
  /* sits just above the (fixed) theme button instead of covering it */
  .pgc-banner { bottom: 76px; width: calc(100% - 20px); padding: 20px 18px 16px; border-radius: 20px; }
  .pgc-main { grid-template-columns: 1fr; row-gap: 14px; }
  .pgc-icon { display: none; }
  .pgc-text { grid-column: 1; }
  .pgc-title { font-size: 17px; margin-bottom: 6px; }
  .pgc-desc { font-size: 14px; line-height: 1.7; }
  .pgc-actions { grid-column: 1; flex-direction: column-reverse; align-items: stretch; gap: 10px; padding-top: 16px; }
  .pgc-btn { width: 100%; text-align: center; }
  .pgc-link { margin-right: 0; padding: 10px; }
  .pgc-row { align-items: flex-start; }
}
@media print { .pgc-banner { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pgc-banner, .pgc-banner.pgc-show { transition: none; } }
