/* Review notes widget. Only present when the page is opened with ?review=<key>. */
.kkr {
  --kkr-ink: #1E1E1C;
  --kkr-navy: #1C4E42;
  --kkr-line: #D9D9D4;
  --kkr-mute: #6B6B66;
  font: 400 14px/1.45 "Switzer", "Helvetica Neue", Arial, sans-serif;
  color: var(--kkr-ink);
  -webkit-font-smoothing: antialiased;
}
.kkr [hidden] { display: none !important; }
.kkr *, .kkr *::before, .kkr *::after { box-sizing: border-box; }
.kkr :where(button, input, textarea) { font: inherit; color: inherit; }
.kkr :where(button) { cursor: pointer; }
.kkr button:focus-visible, .kkr input:focus-visible, .kkr textarea:focus-visible { outline: 2px solid var(--kkr-navy); outline-offset: 2px; }

html.kkr-picking, html.kkr-picking * { cursor: crosshair !important; }
html.kkr-picking body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.kkr-picking [data-kkr], html.kkr-picking [data-kkr] * { cursor: pointer !important; }
html.kkr-picking [data-kkr] textarea, html.kkr-picking [data-kkr] input { cursor: text !important; }

/* highlight boxes follow their element (positioned by transform from review.js) */
.kkr-box { position: fixed; top: 0; left: 0; z-index: 100001; pointer-events: none; border: 1.5px solid var(--kkr-navy); border-radius: 2px; will-change: transform; }
.kkr-hover { background: rgba(28, 78, 66, .06); }
.kkr-picked { outline: 1px solid #fff; outline-offset: -2.5px; }
.kkr-flash { animation: kkr-flash 1s ease-in-out 3; }
@keyframes kkr-flash { 50% { border-color: transparent; } }

.kkr-pins { position: fixed; inset: 0; z-index: 100002; pointer-events: none; }
.kkr-pin {
  position: absolute; top: 0; left: 0; width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center; pointer-events: auto;
  border: 1px solid #fff; border-radius: 50%; background: var(--kkr-navy); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1; will-change: transform;
}
.kkr-pin.is-working { box-shadow: inset 0 0 0 2px var(--kkr-navy), inset 0 0 0 3px #fff; }
.kkr-pin.is-resolved { background: #fff; color: var(--kkr-navy); border-color: var(--kkr-navy); }
.kkr-pin.is-queued { border-style: dashed; opacity: .8; }

.kkr-banner {
  position: fixed; z-index: 100004; top: calc(12px + env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--kkr-navy); color: #fff; white-space: nowrap;
}
.kkr-banner button { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; background: transparent; color: #fff; font-size: 13px; }

.kkr-dock { position: fixed; z-index: 100003; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; }
.kkr-main, .kkr-notes { height: 40px; border: 1px solid var(--kkr-navy); border-radius: 10px; }
.kkr-main { padding: 0 18px; background: var(--kkr-navy); color: #fff; font-weight: 500; }
.kkr-main.is-on { background: #fff; color: var(--kkr-navy); }
.kkr-notes { min-width: 40px; padding: 0 10px; background: #fff; color: var(--kkr-navy); border-color: var(--kkr-line); font-weight: 500; }

.kkr-composer, .kkr-list, .kkr-toast { background: #fff; border: 1px solid var(--kkr-line); border-radius: 10px; }
.kkr-composer { position: fixed; z-index: 100006; padding: 14px; }
.kkr-composer.is-sheet {
  top: auto !important; left: 0 !important; right: 0; bottom: 0; width: auto !important;
  border-width: 1px 0 0; border-radius: 10px 10px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
.kkr-where { margin: 0 0 10px; color: var(--kkr-mute); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kkr-where strong { color: var(--kkr-ink); font-weight: 500; }
.kkr-text { display: block; width: 100%; resize: none; padding: 10px 12px; border: 1px solid var(--kkr-line); border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.4; }
.kkr-name { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--kkr-line); border-radius: 8px; background: #fff; font-size: 15px; }
.kkr-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.kkr-row2 { gap: 10px; }
.kkr-grow { flex: 1; }
.kkr-link { padding: 4px 0; border: 0; background: none; color: var(--kkr-mute); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.kkr-link:hover { color: var(--kkr-ink); }
.kkr-send { height: 36px; padding: 0 18px; border: 1px solid var(--kkr-navy); border-radius: 8px; background: var(--kkr-navy); color: #fff; font-weight: 500; }
.kkr-send:disabled { opacity: .4; cursor: default; }

.kkr-list { position: fixed; z-index: 100005; right: 16px; bottom: calc(64px + env(safe-area-inset-bottom)); width: 340px; max-height: min(70vh, 560px); display: flex; flex-direction: column; overflow: hidden; }
.kkr-list-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--kkr-line); }
.kkr-list-head strong { font-weight: 500; }
.kkr-list-body { overflow-y: auto; overscroll-behavior: contain; }
.kkr-list ol { list-style: none; margin: 0; padding: 0; }
.kkr-list li + li { border-top: 1px solid var(--kkr-line); }
.kkr-list li button { display: block; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; }
.kkr-list li button:hover { background: #F6F6F3; }
.kkr-li-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.kkr-li-where { color: var(--kkr-mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kkr-li-note { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.kkr-li-reply { display: block; margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--kkr-navy); color: var(--kkr-mute); }
.kkr-status { flex: none; padding: 0 7px; border-radius: 4px; background: #E8EBF1; color: var(--kkr-navy); font-size: 12px; line-height: 20px; }
.kkr-status.is-working { background: #F1EBDA; color: #6B5314; }
.kkr-status.is-resolved { background: #E3ECE6; color: #2F5D44; }
.kkr-status.is-queued { background: #EEE; color: var(--kkr-mute); }
.kkr-list li.is-resolved .kkr-li-note { color: var(--kkr-mute); }
.kkr-empty { margin: 0; padding: 16px 14px; color: var(--kkr-mute); }

/* site green panel (home and brand pages) */
.kkr-colbtn { padding: 0 14px; }
.kkr-colbtn.is-on { border-color: var(--kkr-ink); }
.kkr-col { width: 360px; }
.kkr-col-body { padding: 4px 14px 14px; overflow-y: auto; overscroll-behavior: contain; }
.kkr-col-hint { margin: 10px 0 6px; color: var(--kkr-mute); font-size: 13px; }
.kkr-sl { display: grid; grid-template-columns: 62px 1fr 62px; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--kkr-mute); }
.kkr-sl span:last-child { text-align: right; }
.kkr-sl input { width: 100%; margin: 0; accent-color: var(--kkr-ink); height: 28px; touch-action: pan-x; }
.kkr-chip { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--kkr-line); }
.kkr-hex { width: 96px; height: 36px; padding: 0 10px; border: 1px solid var(--kkr-line); border-radius: 8px; background: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }

.kkr-toast { position: fixed; z-index: 100007; right: 16px; bottom: calc(66px + env(safe-area-inset-bottom)); max-width: min(340px, calc(100vw - 32px)); padding: 10px 14px; background: var(--kkr-navy); border-color: var(--kkr-navy); color: #fff; }

@media (max-width: 699px) {
  .kkr-list { left: 0; right: 0; bottom: 0; width: auto; max-height: 60vh; border-width: 1px 0 0; border-radius: 10px 10px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .kkr-toast { left: 16px; right: auto; }
  .kkr-banner { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .kkr-flash { animation: none; background: rgba(28, 78, 66, .1); }
}
