.pcm-lock {
  overflow: hidden;
}

.pcm-root[hidden],
.pcm-view[hidden] {
  display: none !important;
}

.pcm-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pcm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 22, 0.58);
}

.pcm-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #172026;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 26px;
}

.pcm-dialog h2 {
  margin: 0 42px 12px 0;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.pcm-dialog p {
  margin: 0 0 18px;
  line-height: 1.55;
}

.pcm-actions,
.pcm-blocker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pcm-button,
.pcm-inline-settings,
.pcm-floating-button {
  border: 1px solid #1f343d;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  padding: 10px 14px;
  text-decoration: none;
}

.pcm-button-primary {
  background: #1f343d;
  color: #fff;
}

.pcm-button-secondary,
.pcm-inline-settings {
  background: #fff;
  color: #1f343d;
}

.pcm-button:hover,
.pcm-inline-settings:hover,
.pcm-floating-button:hover {
  filter: brightness(0.96);
}

.pcm-icon-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.pcm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 28px;
  line-height: 30px;
}

.pcm-privacy-link {
  margin-top: 18px;
  font-size: 0.94rem;
}

.pcm-category-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.pcm-category {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d5dde1;
  border-radius: 8px;
  padding: 14px;
}

.pcm-category small {
  display: block;
  margin-top: 4px;
  color: #56656c;
  font-size: 0.92rem;
  line-height: 1.35;
}

.pcm-category input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.pcm-service-details {
  border-top: 1px solid #d5dde1;
  margin: 18px 0;
  padding-top: 14px;
}

.pcm-service-details summary {
  cursor: pointer;
  font-weight: 700;
}

.pcm-service-details ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.pcm-service-details li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #eef2f3;
  padding-bottom: 10px;
}

.pcm-service-details span,
.pcm-service-details a {
  font-size: 0.92rem;
}

.pcm-floating-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #fff;
  color: #1f343d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
}

.pcm-content-blocker {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid #d5dde1;
  border-radius: 8px;
  background: #f5f7f6;
  color: #172026;
  padding: 20px;
  text-align: center;
}

.pcm-content-blocker-inner {
  max-width: 520px;
}

.pcm-content-blocker strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.pcm-content-blocker p {
  margin: 0 0 12px;
}

.pcm-content-blocker a {
  display: inline-block;
  margin-bottom: 16px;
}

.pcm-blocker-actions {
  justify-content: center;
}

.pcm-blocker-actions label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 0.94rem;
}

.pcm-content-blocker-error {
  border-color: #9b2c2c;
}

@media (max-width: 640px) {
  .pcm-root {
    padding: 10px;
  }

  .pcm-dialog {
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
  }

  .pcm-actions,
  .pcm-blocker-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pcm-button,
  .pcm-inline-settings,
  .pcm-floating-button {
    width: 100%;
  }

  .pcm-floating-button {
    right: 10px;
    bottom: 10px;
    width: auto;
  }
}
