.pvi-cc[hidden],
.pvi-cc-mode[hidden] {
  display: none !important;
}

.pvi-cc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pvi-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  margin: 0;
  pointer-events: none;
}

/* Compact single-row notice: text + buttons side by side (~110px at 390px). */
.pvi-cc-mode {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.pvi-cc-bar {
  pointer-events: auto;
  box-sizing: border-box;
  background: #fbf9f4;
  color: #1c2430;
  border-top: 1px solid #1b2a55;
  box-shadow: 0 -1px 6px rgba(27, 42, 85, 0.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.3;
}

.pvi-cc-bar:focus {
  outline: none;
}

.pvi-cc-bar:focus-visible {
  outline: 3px solid #1b2a55;
  outline-offset: -3px;
}

.pvi-cc-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
}

.pvi-cc-text a {
  color: #1b2a55;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pvi-cc-text a:hover {
  text-decoration-thickness: 2px;
}

.pvi-cc-text a:focus-visible {
  outline: 3px solid #1b2a55;
  outline-offset: 3px;
}

.pvi-cc-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 0 auto;
}

.pvi-cc-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.pvi-cc-btn-accept {
  background: #1b2a55;
  color: #fbf9f4;
  border: 2px solid #1b2a55;
}

.pvi-cc-btn-accept:hover {
  background: #152246;
}

.pvi-cc-btn-decline {
  background: transparent;
  color: #1b2a55;
  border: 2px solid #1b2a55;
}

.pvi-cc-btn-decline:hover {
  background: rgba(27, 42, 85, 0.06);
}

.pvi-cc-btn:focus-visible {
  outline: 3px solid #1b2a55;
  outline-offset: 3px;
}

.pvi-cc-btn-accept:focus-visible {
  outline-color: #1b2a55;
  box-shadow: 0 0 0 2px #fbf9f4;
}

.pvi-cc-footer {
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pvi-cc-reopen {
  color: #1b2a55;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pvi-cc-reopen:hover {
  text-decoration-thickness: 2px;
}

.pvi-cc-reopen:focus-visible {
  outline: 3px solid #1b2a55;
  outline-offset: 3px;
}

@media (max-width: 359px) {
  /* Very narrow: allow wrap so buttons stay tappable. */
  .pvi-cc-mode {
    flex-wrap: wrap;
  }

  .pvi-cc-btn {
    padding: 0 12px;
  }
}

@media (min-width: 720px) {
  .pvi-cc-bar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .pvi-cc-mode {
    justify-content: space-between;
    gap: 16px;
  }
}

@media (forced-colors: active) {
  .pvi-cc-bar,
  .pvi-cc-btn {
    border: 1px solid ButtonText;
  }

  .pvi-cc-btn-accept {
    background: Highlight;
    color: HighlightText;
  }
}

@media print {
  .pvi-cc {
    display: none !important;
  }
}
