#ptkcc-root {
  position: fixed;
  z-index: 9998;
  left: 0;
  right: 0;
  pointer-events: none;
}
#ptkcc-root.ptkcc-bottom { bottom: 0; }
#ptkcc-root.ptkcc-bottom-left { left: 20px; right: auto; bottom: 20px; max-width: 460px; }

.ptkcc-banner {
  pointer-events: auto;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(242, 242, 242, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 42px rgba(0,0,0,.12);
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}
.ptkcc-bottom-left .ptkcc-banner { margin: 0; }
.ptkcc-content {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
.ptkcc-copy { min-width: 0; }
.ptkcc-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}
.ptkcc-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4d5562;
}
.ptkcc-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5f3;
  color: #275b4f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ptkcc-links {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ptkcc-links a,
.ptkcc-link-btn {
  color: #1f5d4f;
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ptkcc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.ptkcc-btn {
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-weight: 600;
  width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.ptkcc-accept.btn-primary {
  background: #1f5d4f;
  border-color: #1f5d4f;
}
.ptkcc-reject.btn-secondary {
  background: #fff;
  color: #2c3947;
  border: 1px solid rgba(0,0,0,.12);
}

.ptkcc-reopen {
  pointer-events: auto;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31,93,79,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  color: #234e44;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ptkcc-reopen:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  background: rgba(255,255,255,.98);
}
.ptkcc-reopen:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,93,79,.14), 0 12px 28px rgba(0,0,0,.18);
}
.ptkcc-reopen__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ptkcc-reopen__svg {
  display: block;
}
.ptkcc-reopen::after {
  content: attr(data-label);
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  white-space: nowrap;
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.ptkcc-reopen:hover::after,
.ptkcc-reopen:focus::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.ptkcc-bottom-left .ptkcc-reopen {
  left: 18px;
}

.ptkcc-modal {
  display: none;
}
.ptkcc-modal.is-open {
  display: block;
}
.ptkcc-modal.is-open .ptkcc-modal__backdrop,
.ptkcc-modal.is-open .ptkcc-modal__panel {
  pointer-events: auto;
}
.ptkcc-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12,17,23,.38);
  z-index: 9998;
}
.ptkcc-modal__panel {
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 620px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.2);
  padding: 22px;
}
.ptkcc-modal__header,
.ptkcc-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ptkcc-modal__header h4 { margin: 0 0 10px; font-size: 22px; }
.ptkcc-modal__close {
  background: #f2f4f7;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ptkcc-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #eef2f5;
}
.ptkcc-pref strong { display: block; margin-bottom: 4px; }
.ptkcc-pref p { margin: 0; color: #5b6470; font-size: 14px; line-height: 1.5; }
.ptkcc-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.ptkcc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ptkcc-switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #ccd5dd;
  position: relative;
  transition: background .2s ease;
}
.ptkcc-switch span:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.ptkcc-switch input:checked + span { background: #1f5d4f; }
.ptkcc-switch input:checked + span:after { transform: translateX(20px); }
.ptkcc-switch.is-locked { opacity: .75; cursor: default; }

@media (max-width: 767px) {
  #ptkcc-root.ptkcc-bottom,
  #ptkcc-root.ptkcc-bottom-left {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }
  .ptkcc-banner {
    width: auto;
    max-width: none;
    margin: 0 12px 12px;
    box-sizing: border-box;
  }
  .ptkcc-bottom-left .ptkcc-banner {
    margin: 0 12px 12px;
  }
  .ptkcc-content,
  .ptkcc-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ptkcc-content {
    flex-direction: column;
    align-items: stretch;
  }
  .ptkcc-actions { min-width: 0; }
  .ptkcc-modal__panel {
    width: calc(100% - 20px);
    padding: 18px;
  }
  /*
  .ptkcc-reopen {
    left: 12px;
    bottom: 12px;
  }
  */
}
