/* PaintKillers — Cookie consent banner & settings panel (shared) */

.pk-cookie-banner{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, calc(100% + 32px));
  width: min(880px, calc(100vw - 24px));
  z-index: 9999;
  transition: transform .35s ease;
  background: #0B0D11;
  border: 1px solid rgba(245,215,110,0.22);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.pk-cookie-banner.is-visible{
  transform: translate(-50%, 0);
}
.pk-cookie-inner{
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.pk-cookie-text{
  flex: 1 1 420px;
  margin: 0;
  color: #F4F1E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.pk-cookie-text a{
  color: #F5D76E;
  text-decoration: underline;
}
.pk-cookie-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.pk-btn{
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  line-height: 1;
  white-space: nowrap;
}
.pk-btn:focus-visible{
  outline: 2px solid #F5D76E;
  outline-offset: 2px;
}
.pk-btn-primary{
  background: #F5D76E;
  color: #08090B;
  border-color: #F5D76E;
}
.pk-btn-primary:hover{
  background: #f9e29a;
}
.pk-btn-outline{
  background: transparent;
  color: #F4F1E8;
  border-color: rgba(244,241,232,0.35);
}
.pk-btn-outline:hover{
  border-color: #F4F1E8;
}
.pk-btn-ghost{
  background: transparent;
  color: #F5D76E;
  border-color: transparent;
  text-decoration: underline;
}
.pk-btn-ghost:hover{
  color: #f9e29a;
}

/* ---------- Settings panel ---------- */
.pk-cookie-overlay{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,7,9,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pk-cookie-overlay[hidden]{
  display: none;
}
body.pk-cookie-lock{
  overflow: hidden;
}
.pk-cookie-panel{
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #111318;
  border: 1px solid rgba(245,215,110,0.2);
  border-radius: 16px;
  padding: 32px 28px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.pk-cookie-panel h2{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: #F4F1E8;
  margin: 0 0 20px;
}
.pk-cookie-row{
  padding: 16px 0;
  border-top: 1px solid rgba(244,241,232,0.1);
}
.pk-cookie-row:first-of-type{
  border-top: none;
}
.pk-cookie-row-head{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #F4F1E8;
  margin-bottom: 6px;
}
.pk-cookie-row p{
  margin: 0;
  color: #9A9A9E;
  font-size: 12.5px;
  line-height: 1.5;
}
.pk-cookie-locked{
  font-size: 11px;
  font-weight: 500;
  color: #9A9A9E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pk-switch{
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.pk-switch input{
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pk-switch-track{
  position: absolute;
  inset: 0;
  background: rgba(244,241,232,0.18);
  border-radius: 999px;
  transition: background .2s ease;
}
.pk-switch-track::before{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #F4F1E8;
  transition: transform .2s ease;
}
.pk-switch input:checked + .pk-switch-track{
  background: #F5D76E;
}
.pk-switch input:checked + .pk-switch-track::before{
  transform: translateX(18px);
  background: #08090B;
}
.pk-switch input:focus-visible + .pk-switch-track{
  outline: 2px solid #F5D76E;
  outline-offset: 2px;
}

.pk-cookie-panel-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pk-cookie-panel-actions .pk-btn{
  flex: 1 1 auto;
  text-align: center;
}
.pk-cookie-panel-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #9A9A9E;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pk-cookie-panel-close:hover{
  color: #F4F1E8;
}
.pk-cookie-panel-close:focus-visible{
  outline: 2px solid #F5D76E;
  outline-offset: 2px;
}

@media (max-width: 640px){
  .pk-cookie-banner{
    bottom: 10px;
    width: calc(100vw - 20px);
  }
  .pk-cookie-inner{
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
  .pk-cookie-text{
    flex: 0 0 auto;
  }
  .pk-cookie-actions{
    justify-content: stretch;
  }
  .pk-cookie-actions .pk-btn{
    flex: 1 1 0;
    padding: 11px 10px;
    white-space: normal;
    line-height: 1.2;
  }
  .pk-cookie-panel{
    padding: 26px 20px 22px;
  }
}

/* Keep the floating chat/call button clear of the banner while it is visible */
body.pk-banner-visible .fab-chat{
  transition: bottom .2s ease;
  bottom: 140px;
}
@media (min-width: 641px){
  body.pk-banner-visible .fab-chat{
    bottom: 110px;
  }
}

/* Reserve space at the bottom of the page so the fixed banner never overlaps
   the CTA form's submit button or the footer while it is visible */
body.pk-banner-visible{
  padding-bottom: 172px;
}
@media (min-width: 641px){
  body.pk-banner-visible{
    padding-bottom: 110px;
  }
}
