#profitbid-consent-root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#profitbid-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2147483000;
  padding: 16px;
  background: rgba(15, 23, 42, 0.97);
  color: #f8fafc;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

#profitbid-consent-banner.pb-consent--bottom {
  bottom: 0;
}

#profitbid-consent-banner.pb-consent--top {
  top: 0;
  bottom: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#profitbid-consent-banner[hidden],
#profitbid-consent-modal[hidden],
.pb-consent-reopen[hidden] {
  display: none !important;
}

#profitbid-consent-banner .pb-consent__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

#profitbid-consent-banner .pb-consent__copy {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
}

#profitbid-consent-banner .pb-consent__title {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
}

#profitbid-consent-banner .pb-consent__intro {
  margin: 0 0 8px;
}

#profitbid-consent-banner .pb-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pb-consent__btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.pb-consent__btn--primary {
  background: #2563eb;
  color: #fff;
}

.pb-consent__btn--secondary {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #64748b;
}

.pb-consent__btn--ghost {
  background: transparent;
  color: #93c5fd;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}

.pb-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.pb-consent__link {
  color: #93c5fd;
  font-size: 13px;
  text-decoration: underline;
}

.pb-consent__link:hover {
  color: #bfdbfe;
}

.pb-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pb-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pb-consent-modal__panel {
  position: relative;
  width: min(520px, 100%);
  height: min(88vh, 680px);
  max-height: min(88vh, 680px);
  overflow: hidden;
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 32px 64px -16px rgba(15, 23, 42, 0.28),
    0 16px 32px -12px rgba(15, 23, 42, 0.12);
}

.pb-consent-modal__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
  border-bottom: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
}

.pb-consent-modal__head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.pb-consent-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease;
}

.pb-consent-modal__close:hover {
  background: #e2e8f0;
  color: #334155;
}

.pb-consent-modal__body {
  position: absolute;
  left: 0;
  right: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 16px 16px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pb-consent-modal__foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0 0 24px 24px;
}

.pb-consent-modal .pb-consent__btn {
  border-radius: 12px;
  padding: 11px 18px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.pb-consent-modal .pb-consent__btn:active {
  transform: scale(0.98);
}

.pb-consent-modal .pb-consent__btn--primary {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.pb-consent-modal .pb-consent__btn--primary:hover {
  background: #1d4ed8;
}

.pb-consent-modal .pb-consent__btn--secondary {
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.pb-consent-modal .pb-consent__btn--secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pb-consent-modal .pb-consent__category {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.pb-consent-modal__body .pb-consent__category:last-of-type {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.pb-consent-modal .pb-consent__category-label {
  gap: 10px;
}

.pb-consent-modal .pb-consent__category-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 6px;
  accent-color: #2563eb;
  cursor: pointer;
}

.pb-consent-modal .pb-consent__category-desc {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8edf3;
}

.pb-consent-modal .pb-consent__cookies-wrap {
  margin: 10px 0 0;
}

.pb-consent-modal .pb-consent__cookies-toggle {
  border-radius: 8px;
  padding: 4px 8px;
  text-decoration: none;
  background: rgba(37, 99, 235, 0.08);
}

.pb-consent-modal .pb-consent__cookies-toggle:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.pb-consent-modal .pb-consent__cookies-panel {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
}

.pb-consent-modal .pb-consent__cookie-list {
  padding-left: 18px;
}

.pb-consent-modal .pb-consent__cookie-list code {
  font-size: 11px;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.pb-consent-modal .pb-consent__links {
  margin-top: 12px;
  padding: 10px 14px;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.pb-consent-modal .pb-consent__link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.pb-consent-modal .pb-consent__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.pb-consent__category {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

#profitbid-consent-banner .pb-consent__category:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pb-consent__category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.pb-consent__category-desc {
  margin: 8px 0 0 28px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.pb-consent__required {
  font-weight: 400;
  font-style: normal;
  color: #64748b;
  font-size: 12px;
}

.pb-consent__cookies-wrap {
  margin: 8px 0 0 28px;
}

.pb-consent__cookies-toggle {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.pb-consent__cookies-toggle:hover {
  color: #1d4ed8;
}

.pb-consent__cookies-panel {
  margin-top: 8px;
}

.pb-consent__cookie-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #64748b;
}

.pb-consent__cookie-live {
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
}

.pb-consent__cookie-list code {
  font-size: 11px;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 4px;
}

.pb-consent-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pb-consent-reopen:hover {
  background: #f8fafc;
}

@media (max-width: 640px) {
  .pb-consent-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .pb-consent-modal__panel {
    width: 100%;
    height: min(92vh, 720px);
    max-height: min(92vh, 720px);
    border-radius: 20px 20px 16px 16px;
  }

  #profitbid-consent-banner .pb-consent__actions,
  .pb-consent-modal__foot {
    width: 100%;
  }

  #profitbid-consent-banner .pb-consent__actions .pb-consent__btn,
  .pb-consent-modal__foot .pb-consent__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
