:root {
  --pbx-primary: #5b35e6;
  --pbx-floating-color: #5b35e6;
  --pbx-primary-dark: #4828c9;
  --pbx-text: #3f3f46;
  --pbx-muted: #777781;
  --pbx-border: #ececf2;
  --pbx-bg: #ffffff;
  --pbx-soft: #f7f7fb;
}

#penbax-consent-root * {
  box-sizing: border-box;
}

.pbx-cookie-bar {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2147483000;
  width: min(620px, calc(100vw - 56px));
  background: var(--pbx-bg);
  border: 1px solid var(--pbx-border);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(20, 20, 30, 0.18);
  padding: 22px;
  font-family: inherit;
  color: var(--pbx-text);
}

.pbx-cookie-bar-left {
  right: auto;
  left: 28px;
}

.pbx-cookie-copy p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #4a4a52;
}

.pbx-cookie-copy a {
  color: var(--pbx-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pbx-cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pbx-btn {
  border-radius: 7px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.pbx-btn-primary,
.pbx-btn-secondary {
  border: 0;
  background: var(--pbx-primary);
  color: #ffffff;
}

.pbx-btn-primary:hover,
.pbx-btn-secondary:hover {
  background: var(--pbx-primary-dark);
  color: #ffffff;
}

.pbx-btn-settings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #5f6068;
  border: 1px solid #d7d7df;
}

.pbx-btn-settings:hover {
  background: #f7f7fb;
  color: #3f3f46;
  border-color: #bdbdc8;
}

.pbx-btn-settings svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.pbx-cookie-symbol {
  margin-left: auto;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--pbx-primary);
  flex: 0 0 auto;
}

.pbx-cookie-symbol svg {
  width: 30px;
  height: 30px;
}

.pbx-floating-cookie {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--pbx-floating-color);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(20, 20, 30, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pbx-floating-cookie-left {
  right: auto;
  left: 24px;
}

.pbx-floating-cookie svg {
  width: 28px;
  height: 28px;
}

.pbx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(18, 18, 28, 0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  font-family: inherit;
  color: var(--pbx-text);
}

.pbx-modal {
  width: min(850px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: var(--pbx-bg);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
  padding: 28px;
}

.pbx-modal-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pbx-modal-title {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.pbx-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(91, 53, 230, 0.12);
  color: var(--pbx-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pbx-title-icon svg {
  width: 22px;
  height: 22px;
}

.pbx-modal h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
  color: var(--pbx-text);
}

.pbx-modal-intro {
  margin: 0;
  color: var(--pbx-muted);
  line-height: 1.55;
  max-width: 650px;
  font-size: 15px;
}

.pbx-close {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--pbx-primary);
  cursor: pointer;
}

.pbx-close svg {
  width: 28px;
  height: 28px;
}

.pbx-category-list {
  display: grid;
  gap: 14px;
}

.pbx-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--pbx-border);
}

.pbx-category-main {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.pbx-category-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pbx-soft);
  color: var(--pbx-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pbx-category-icon svg {
  width: 18px;
  height: 18px;
}

.pbx-category h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--pbx-text);
}

.pbx-category p {
  margin: 0;
  color: var(--pbx-muted);
  line-height: 1.55;
  font-size: 14px;
}

.pbx-switch-wrap {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.pbx-switch-label {
  font-size: 11px;
  line-height: 1;
  color: #4f4f58;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pbx-switch {
  width: 76px;
  height: 36px;
  border-radius: 999px;
  background: #d8d8de;
  position: relative;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.pbx-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.pbx-switch-on {
  background: var(--pbx-primary);
}

.pbx-switch-on::before {
  transform: translateX(40px);
}

.pbx-switch-disabled {
  background: #8a8a92;
  cursor: not-allowed;
}

.pbx-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--pbx-border);
}

.pbx-modal-actions .pbx-btn {
  min-width: 160px;
}

.pbx-policy-link {
  margin-left: auto;
  color: var(--pbx-primary);
  text-decoration: none;
  align-self: center;
}

@media (max-width: 760px) {
  .pbx-cookie-bar {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  .pbx-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pbx-cookie-symbol {
    display: none;
  }

  .pbx-category {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pbx-switch-wrap {
    justify-items: start;
  }

  .pbx-modal-actions {
    display: grid;
  }

  .pbx-modal-actions .pbx-btn {
    width: 100%;
  }

  .pbx-policy-link {
    margin-left: 0;
  }
}
