/* Local-only controls; the official chat keeps its existing branded stylesheet. */
.kshop-consent-banner {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000010;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: min(700px, calc(100vw - 44px));
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 23px 25px 22px;
  border: 1px solid #dcdedc;
  border-radius: 15px;
  background: #fff;
  color: #252728;
  box-shadow: 0 9px 38px #0002;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
}
.kshop-consent-banner[hidden],
.kshop-consent-launcher[hidden] { display: none !important; }
#kshop-consent-title {
  margin: 0 0 11px;
  padding: 0;
  color: #252728;
  font: 650 19px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.3px;
}
#kshop-consent-title:focus { outline: none; }
.kshop-consent-banner .kshop-consent-copy,
.kshop-consent-banner .kshop-consent-context,
.kshop-consent-banner .kshop-consent-status {
  margin: 0;
  padding: 0;
  color: #5a6060;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.kshop-consent-banner .kshop-consent-context {
  margin-top: 12px;
  padding-left: 11px;
  border-left: 2px solid #2f67a6;
  color: #343d45;
}
.kshop-consent-banner .kshop-consent-status {
  margin-top: 11px;
  color: #686d6d;
  font-size: 11px;
}
.kshop-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.kshop-consent-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 11px 19px;
  border: 1px solid #aeb3b3;
  border-radius: 8px;
  background: #fff;
  color: #252728;
  font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.kshop-consent-button:hover { background: #f2f3f3; }
.kshop-consent-allow { border-color: #252728; background: #252728; color: #fff; }
.kshop-consent-allow:hover { background: #434748; }
#kshop-consent-settings {
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.7;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kshop-consent-launcher {
  box-sizing: border-box;
  position: fixed;
  z-index: 999998;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#12171c, #12171c) padding-box,
    linear-gradient(135deg, #f73342 5%, #ab284b 40%, #237dff 75%, #24a6ff) border-box;
  color: #fff;
  box-shadow: 0 5px 22px #0003;
  cursor: pointer;
}
.kshop-consent-launcher:hover { box-shadow: 0 5px 24px #075aa84d; }
.kshop-consent-launcher > svg {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#kshop-consent-banner button:focus-visible,
#kshop-consent-settings:focus-visible,
#kshop-consent-launcher:focus-visible {
  outline: 2px solid #42484a;
  outline-offset: 4px;
}
#kshop-consent-banner button:focus:not(:focus-visible),
#kshop-consent-settings:focus:not(:focus-visible),
#kshop-consent-launcher:focus:not(:focus-visible) { outline: none; }
@media (max-width: 760px) {
  .kshop-consent-banner {
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 40px - env(safe-area-inset-bottom, 0px));
    padding: 20px;
    border-radius: 13px;
  }
  .kshop-with-mobile-nav .kshop-consent-banner {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 100px - env(safe-area-inset-bottom, 0px));
  }
  .kshop-consent-launcher { right: 18px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .kshop-with-mobile-nav .kshop-consent-launcher { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 520px) {
  #kshop-consent-title { font-size: 18px; }
  .kshop-consent-actions { flex-direction: column; gap: 9px; margin-top: 16px; }
  .kshop-consent-button { width: 100%; }
}
@media (forced-colors: active) {
  .kshop-consent-launcher { border-color: ButtonText; background: ButtonFace; color: ButtonText; }
}
@media print {
  .kshop-consent-banner, .kshop-consent-launcher, #kshop-consent-settings { display: none !important; }
}
