/* Podoblock Region. Colours follow the Podoblock theme variables when present. */
.pbr-overlay,
.pbr-bar,
.pbr-notice {
  --pbr-purple: var(--pdb-purple, #5B57A2);
  --pbr-light: var(--pdb-light, #EFEEF6);
  --pbr-green: var(--pdb-green, #64CCC9);
  --pbr-orange: var(--pdb-orange, #FF7C10);
  --pbr-ink: #2F2F36;
  --pbr-text: #4F5055;
  --pbr-muted: #6A6980;
  --pbr-line: #E4E3EE;
  font-family: inherit;
  box-sizing: border-box;
}
.pbr-overlay *,
.pbr-bar *,
.pbr-notice * { box-sizing: border-box; }

html.pbr-lock,
html.pbr-lock body { overflow: hidden; }

/* Layer 1: dialog */
.pbr-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(33, 31, 64, .6);
  overflow-y: auto;
}
.pbr-dialog {
  width: 100%;
  min-width: 0;
  max-width: 480px;
  margin: auto;
  background: #FFFFFF;
  color: var(--pbr-text);
  border-radius: 18px;
  padding: 24px 24px 18px;
  display: grid;
  gap: 16px;
  box-shadow: 0 30px 60px -20px rgba(20, 18, 50, .55);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.pbr-dialog:focus { outline: none; }
.pbr-dialog--wide { max-width: 620px; }
.pbr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pbr-from { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--pbr-muted); }
.pbr-cc {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--pbr-purple);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}
.pbr-close {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #F1F0F6;
  color: var(--pbr-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pbr-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pbr-close:hover { background: var(--pbr-light); color: var(--pbr-purple); }
.pbr-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--pbr-ink);
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  text-wrap: balance;
}
.pbr-mark { width: 28px; height: 34px; flex: none; display: block; }
.pbr-text,
.pbr-reason { margin: 0; }
.pbr-reason { background: var(--pbr-light); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #3F3E55; }

.pbr-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pbr-store { border: 1px solid var(--pbr-line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; align-content: start; font-size: 13px; color: var(--pbr-muted); }
.pbr-store b { display: flex; align-items: center; gap: 8px; color: var(--pbr-ink); font-size: 14px; }
.pbr-store--here { background: #FAFAFC; }
.pbr-store--go { border-color: var(--pbr-purple); box-shadow: inset 0 0 0 1px var(--pbr-purple); }
.pbr-flag { width: 22px; height: 15px; flex: none; border-radius: 3px; display: block; }
.pbr-tag {
  justify-self: start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #F1F0F6;
  color: var(--pbr-muted);
}
.pbr-tag--good { background: #E4F6F5; color: #1F7F7B; }
.pbr-tag--cost { background: #FFF1E5; color: #A84E00; }

.pbr-actions { display: grid; gap: 4px; }
.pbr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.pbr-btn--go { background: var(--pbr-orange); color: #FFFFFF; }
.pbr-btn--go:hover { background: #E86A00; color: #FFFFFF; }
.pbr-btn--alt { background: var(--pbr-purple); color: #FFFFFF; }
.pbr-btn--alt:hover { background: #4A4690; color: #FFFFFF; }
.pbr-btn:focus-visible,
.pbr-stay:focus-visible,
.pbr-close:focus-visible,
.pbr-bar a:focus-visible { outline: 3px solid var(--pbr-green); outline-offset: 2px; }
.pbr-stay {
  justify-self: center;
  min-height: 44px;
  padding: 14px 16px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--pbr-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pbr-stay:hover { color: var(--pbr-purple); }
.pbr-note { margin: 0; font-size: 12.5px; color: #7A798E; text-align: center; }

.pbr-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pbr-choice { border: 1px solid var(--pbr-line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.pbr-choice-head { display: flex; align-items: center; gap: 10px; }
.pbr-choice-head b { display: block; color: var(--pbr-ink); font-size: 16px; line-height: 1.2; }
.pbr-choice-head small { display: block; font-size: 12.5px; color: #7A798E; }
.pbr-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.pbr-facts li { display: flex; gap: 8px; align-items: baseline; margin: 0; }
.pbr-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pbr-green); flex: none; transform: translateY(-2px); }
.pbr-facts li.pbr-minus::before { background: var(--pbr-orange); }
.pbr-choice .pbr-btn { padding: 12px 14px; font-size: 14px; }

@media (max-width: 560px) {
  .pbr-stores,
  .pbr-choices { grid-template-columns: minmax(0, 1fr); }
  .pbr-dialog { padding: 20px 18px 14px; }
  .pbr-title { font-size: 20px; }
}

/* Layer 2: bar at the top of every page */
.pbr-bar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 10px 16px;
  background: var(--pbr-purple);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.4;
}
.pbr-bar .pbr-cc { background: #FFFFFF; color: var(--pbr-purple); }
.pbr-bar-text { flex: 1; min-width: 200px; }
.pbr-bar a { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pbr-bar a:hover { color: #FFFFFF; opacity: .85; }

/* Layer 3: cart and checkout */
.pbr-notice {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.pbr-notice b { font-size: 16px; }
.pbr-notice .pbr-btn { width: auto; padding: 11px 16px; font-size: 15px; }
.pbr-notice--stop { background: #FFF4EA; border: 1px solid #FFC999; color: #5B3510; }
.pbr-notice--tip { background: #EAF8F7; border: 1px solid #B3E6E4; color: #1D4E4C; }

@media (prefers-reduced-motion: no-preference) {
  .pbr-overlay { animation: pbr-fade .18s ease-out; }
  .pbr-dialog { animation: pbr-rise .22s ease-out; }
}
@keyframes pbr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pbr-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
