:root {
  --pcc-dark: #2d2a28;
  --pcc-accent: #5b7bbd;
  --pcc-text: #5f5f5f;
  --pcc-border: #e6e6e6;
}
.probath-cc {
  font-size: 14px;
  line-height: 1.6;
}
.probath-cc[hidden], .probath-cc [hidden] { display: none !important; }

/* Banner */
.probath-cc__banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99999;
  width: min(440px, calc(100vw - 32px));
  padding: 24px 24px 20px;
  border: 1px solid var(--pcc-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  animation: probath-cc-in .35s ease;
}
@keyframes probath-cc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.probath-cc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.probath-cc__icon { width: 26px; height: 26px; fill: none; stroke: var(--pcc-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.probath-cc__title { margin: 0; color: var(--pcc-dark); font-size: 18px; font-weight: 500; }
.probath-cc__text { margin: 0 0 18px; color: var(--pcc-text); }
.probath-cc__text a { color: var(--pcc-accent); text-decoration: underline; }

/* Buttons */
.probath-cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.probath-cc__btn {
  padding: 10px 22px;
  border: 1px solid var(--pcc-dark);
  border-radius: 30px;
  background: #fff;
  color: var(--pcc-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.probath-cc__btn:hover { background: var(--pcc-dark); color: #fff; }
.probath-cc__btn--primary { background: var(--pcc-dark); color: #fff; }
.probath-cc__btn--primary:hover { background: var(--pcc-accent); border-color: var(--pcc-accent); }
.probath-cc__link { margin-left: auto; padding: 0; border: 0; background: none; color: var(--pcc-dark); font-size: 13px; text-decoration: underline; cursor: pointer; }
.probath-cc__link:hover { color: var(--pcc-accent); }

/* Preferences modal */
.probath-cc__modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(29, 27, 26, .55);
}
.probath-cc__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 30px 30px 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.probath-cc__close { position: absolute; top: 12px; right: 14px; padding: 4px 8px; border: 0; background: none; color: var(--pcc-dark); font-size: 26px; line-height: 1; cursor: pointer; }
.probath-cc__categories { margin: 4px 0 22px; border-top: 1px solid var(--pcc-border); }
.probath-cc__category { padding: 14px 0; border-bottom: 1px solid var(--pcc-border); }
.probath-cc__category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.probath-cc__category-label { color: var(--pcc-dark); font-weight: 600; }
.probath-cc__category-text { margin: 6px 0 0; color: var(--pcc-text); font-size: 13px; }
.probath-cc__always { color: var(--pcc-accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Switch */
.probath-cc__switch { position: relative; display: inline-block; flex: 0 0 44px; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.probath-cc__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.probath-cc__slider { position: absolute; inset: 0; border-radius: 24px; background: #cfcfcf; transition: background .2s; }
.probath-cc__slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.probath-cc__switch input:checked + .probath-cc__slider { background: var(--pcc-accent); }
.probath-cc__switch input:checked + .probath-cc__slider::before { transform: translateX(20px); }
.probath-cc__switch input:focus-visible + .probath-cc__slider { outline: 2px solid var(--pcc-accent); outline-offset: 2px; }

@media (max-width: 575px) {
  .probath-cc__banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .probath-cc__actions .probath-cc__btn { flex: 1 1 auto; }
  .probath-cc__link { margin: 4px auto 0; }
}

/* Blocked embeds */
.probath-cc-blocked { position: relative; }
.probath-cc-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: #f4f3ef;
  text-align: center;
}
.probath-cc-placeholder svg { width: 36px; height: 36px; fill: none; stroke: #5b7bbd; stroke-width: 1.6; }
.probath-cc-placeholder p { max-width: 420px; margin: 0; color: #5f5f5f; }
.probath-cc-blocked.is-allowed .probath-cc-placeholder { display: none; }

/* Cookie table (Cookie Policy page) */
.probath-cc-table__title { margin-top: 32px; }
.probath-cc-table__wrap { overflow-x: auto; margin-bottom: 10px; }
.probath-cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.probath-cc-table th, .probath-cc-table td { padding: 10px 12px; border: 1px solid #e6e6e6; text-align: left; vertical-align: top; }
.probath-cc-table th { background: #f6f6f4; font-weight: 600; }
.probath-cc-table code { font-size: 12px; word-break: break-word; }
