/* Penguin's own cookie banner on the landing page (consent.js). The same look
   as the app's app/src/app/_marketing/consent-banner.css, from the approved
   sketch: a quiet white bar, an orange dot as the only accent, three equal
   buttons. No dashed frames, no orange side rule. */

.pgc-bar {
  position: fixed;
  z-index: 60;
  inset-inline: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: #2e2e2e;
  box-shadow: 0 2px 6px rgb(46 46 46 / .08), 0 10px 28px rgb(46 46 46 / .12);
  text-align: start;
}

.pgc-bar-text { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; }
.pgc-bar-text p { margin: 0; font-size: .86rem; line-height: 1.5; }
.pgc-bar-text p + p { margin-top: 4px; }
.pgc-bar-links { display: flex; flex-wrap: wrap; column-gap: 16px; }
.pgc-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #d98b63; }

.pgc-link {
  display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: #95502d; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.pgc-choices { display: flex; gap: 8px; flex: none; }
.pgc-choice {
  min-width: 96px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #2e2e2e; border-radius: 999px; background: #fff; color: #2e2e2e;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.pgc-choice:hover { background: #f4eee9; }

.pgc-link:focus-visible, .pgc-choice:focus-visible, .pgc-close:focus-visible, [data-pg-consent-open]:focus-visible {
  outline: 2px solid #95502d; outline-offset: 2px;
}

@media (max-width: 760px) {
  .pgc-bar { inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .pgc-bar-text p { font-size: .84rem; }
  .pgc-choice { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: .84rem; line-height: 1.2; }
}

/* The "ניהול עוגיות" panel: a native modal dialog. */
.pgc-panel {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  width: min(400px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 22px 24px; border: 0; border-radius: 20px; background: #fff; color: #2e2e2e;
  box-shadow: 0 2px 6px rgb(46 46 46 / .08), 0 14px 36px rgb(46 46 46 / .14);
  text-align: start; font-family: inherit;
}
.pgc-panel::backdrop { background: rgb(46 46 46 / .28); }
.pgc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pgc-panel h2 { margin: 0; font-size: 1.2rem; }
.pgc-close {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-inline-end: -8px;
  border: 0; border-radius: 50%; background: none; color: #67625e; cursor: pointer;
}
.pgc-close:hover { background: #f4eee9; }
.pgc-panel-list { margin: 0 0 14px; padding: 0; list-style: none; font-size: .86rem; }
.pgc-panel-list li { display: grid; grid-template-columns: 6px 1fr; column-gap: 10px; padding: 9px 0; border-top: 1px solid #efe9e4; }
.pgc-panel-list li > * { grid-column: 2; }
.pgc-panel-list li::before { content: ""; grid-row: 1; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: #d98b63; }
.pgc-panel-list b { display: block; }
.pgc-current { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #f6e8dd; font-size: .86rem; }
.pgc-current b { color: #95502d; }
.pgc-panel .pgc-choice { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: .84rem; line-height: 1.2; }
.pgc-panel-foot { margin: 12px 0 0; font-size: .82rem; color: #67625e; }

/* The footer's "ניהול עוגיות": a button dressed as its neighbour links. */
footer [data-pg-consent-open] { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
footer [data-pg-consent-open]:hover { color: #2e2e2e; }

.pgc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
