.ppcb[hidden],
.ppcb-manage[hidden] {
  display: none !important;
}

.ppcb {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ppcb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.62);
}

.ppcb__panel {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  border-radius: 20px;
  background: #fffdf8;
  color: #1d1d1b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(29, 29, 27, 0.08);
  overflow: hidden;
}

.ppcb__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 12px;
}

.ppcb__title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.ppcb__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #3e413e;
}

.ppcb__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f4eee3;
  color: #1d1d1b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ppcb__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 24px 16px;
}

.ppcb__links a {
  color: #744d18;
  font-weight: 600;
  text-decoration: underline;
}

.ppcb__categories {
  display: grid;
  gap: 12px;
  padding: 0 24px 20px;
}

.ppcb__category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8f2e9;
  border: 1px solid rgba(116, 77, 24, 0.1);
}

.ppcb__category > div {
  justify-self: start;
  text-align: left;
}

.ppcb__category strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.ppcb__category p {
  margin: 0;
  color: #5b5d58;
  font-size: 14px;
  line-height: 1.5;
}

.ppcb__category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #8d5b17;
  cursor: pointer;
}

.ppcb__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1d1d1b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ppcb__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 24px;
  background: #fff7eb;
  border-top: 1px solid rgba(116, 77, 24, 0.12);
}

.ppcb__button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ppcb__button:hover,
.ppcb__button:focus {
  transform: translateY(-1px);
}

.ppcb__button--ghost {
  background: #ffffff;
  border-color: #d4c2a7;
  color: #3b352d;
}

.ppcb__button--secondary {
  background: #f3e7d2;
  color: #3b352d;
}

.ppcb__button--primary {
  background: #8d5b17;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(141, 91, 23, 0.22);
}

.ppcb-manage {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #1d1d1b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

body.ppcb-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .ppcb__panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: none;
    border-radius: 18px;
  }

  .ppcb__header {
    padding: 18px 18px 10px;
  }

  .ppcb__title {
    font-size: 20px;
  }

  .ppcb__links,
  .ppcb__categories {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ppcb__category {
    grid-template-columns: 1fr;
  }

  .ppcb__actions {
    padding: 16px 18px 18px;
  }

  .ppcb__button {
    width: 100%;
  }

  .ppcb-manage {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }
}
