.pbcg-root {
  position: fixed;
  inset: auto;
  z-index: 99999;
}

.pbcg-banner {
  position: fixed;
  z-index: 100000;
  background: var(--pbcg-bg);
  color: var(--pbcg-text);
  font-family: var(--pbcg-font);
  font-size: var(--pbcg-font-size);
  border: var(--pbcg-border-width) solid var(--pbcg-border);
  border-radius: var(--pbcg-radius);
  box-shadow: var(--pbcg-shadow);
  padding: calc(var(--pbcg-padding) + 6px);
  width: min(var(--pbcg-width), calc(100vw - 24px));
  line-height: 1.4;
}

.pbcg-title {
  margin: 0 0 10px;
  color: var(--pbcg-title);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.2px;
  font-size: clamp(18px, 1.8vw, 38px);
  line-height: 1.1;
}

.pbcg-layout-fullwidth {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.pbcg-layout-dialog.pbcg-pos-bottom-right {
  right: 12px;
  bottom: 12px;
}

.pbcg-layout-dialog.pbcg-pos-bottom-left {
  left: 12px;
  bottom: 12px;
}

.pbcg-layout-dialog.pbcg-pos-bottom-center {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

.pbcg-layout-modal {
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(var(--pbcg-width), calc(100vw - 40px));
  max-width: 980px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding-top: calc(var(--pbcg-padding) + 22px);
}

.pbcg-overlay {
  position: fixed;
  inset: 0;
  background: var(--pbcg-overlay);
  opacity: 0.45;
  z-index: 99998;
}

.pbcg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: var(--pbcg-border-width) solid var(--pbcg-border);
  border-radius: 8px;
  background: transparent;
  color: var(--pbcg-title);
  cursor: pointer;
  line-height: 1;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pbcg-text {
  margin: 0 0 14px;
  line-height: 1.6;
}

.pbcg-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.pbcg-layout-modal .pbcg-actions {
  margin-top: 18px;
  justify-content: stretch;
}

.pbcg-btn {
  appearance: none;
  border: var(--pbcg-border-width) solid var(--pbcg-border);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}

.pbcg-btn-accept {
  background: var(--pbcg-btn-accept);
  color: var(--pbcg-btn-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pbcg-btn-essential {
  background: var(--pbcg-btn-essential);
  color: var(--pbcg-text);
}

.pbcg-btn-reject {
  background: transparent;
  color: var(--pbcg-text);
  box-shadow: none;
}

.pbcg-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--pbcg-text);
  text-decoration: none;
}

.pbcg-embed-blocked {
  margin: 8px 0;
  padding: 10px;
  border: 1px dashed #9ca3af;
  border-radius: 6px;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
}

.pbcg-open-settings-inline {
  margin-left: 8px;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.pbcg-reopen-settings {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99997;
  border: 1px solid var(--pbcg-border);
  background: var(--pbcg-bg);
  color: var(--pbcg-text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 760px) {
  .pbcg-banner {
    width: auto;
    max-width: none;
  }

  .pbcg-layout-dialog,
  .pbcg-layout-modal {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px;
    top: auto;
    transform: none !important;
  }

  .pbcg-actions {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .pbcg-btn {
    width: 100%;
    flex: 0 0 auto;
  }

  .pbcg-reopen-settings {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
