/* ticket chat attachments (assets/tkchat.js), works on the light /podpora page and the dark /staff page */
.tkc-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.tkc-btn { display: inline-flex; align-items: center; gap: 6px; font: 800 14px/1 inherit; font-family: inherit; padding: 9px 14px 11px; border: 0; cursor: pointer;
  background: rgba(127, 127, 127, .16); color: inherit; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); border-radius: 4px; }
.tkc-btn span { font-size: 18px; line-height: 1; }
.tkc-btn:hover { background: rgba(127, 127, 127, .26); }
.tkc-btn.rec { background: #e5484d; color: #fff; box-shadow: inset 0 -3px 0 #a8272b; animation: tkc-pulse 1.2s ease-in-out infinite; }
@keyframes tkc-pulse { 50% { filter: brightness(1.15); } }
.tkc-tray { display: flex; flex-wrap: wrap; gap: 8px; }
.tkc-tray:not(:empty) { margin-top: 8px; }
.tkc-chip { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 34px 6px 6px; background: rgba(127, 127, 127, .14); border-radius: 6px; max-width: 260px; }
.tkc-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.tkc-chip .ic { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.tkc-chip .nm { display: grid; font-weight: 700; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkc-chip .nm small { opacity: .65; font-weight: 600; }
.tkc-chip > button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .35); color: #fff; font: 700 12px/1 sans-serif; }
.tkc-chip.up { opacity: .6; }
.tkc-chip.up .st::after { content: ""; position: absolute; left: 6px; right: 34px; bottom: 3px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #3fcf6b, transparent); background-size: 50% 100%; animation: tkc-load 1s linear infinite; }
@keyframes tkc-load { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.tkc-chip.bad { outline: 2px solid #e5484d; }
.tkc-err { color: #e5484d; font-weight: 800; font-size: 14px; min-height: 0; }
.tkc-err:not(:empty) { margin-top: 6px; }
form.tkc-drop { outline: 3px dashed #3fcf6b; outline-offset: 4px; }

.tkc-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tkc-img { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.tkc-img img { display: block; max-width: min(260px, 100%); max-height: 220px; border-radius: 6px; object-fit: cover; }
.tkc-voice { display: flex; align-items: center; gap: 6px; background: rgba(127, 127, 127, .14); padding: 4px 8px; border-radius: 999px; max-width: 100%; }
.tkc-voice audio { height: 36px; max-width: 240px; }
.tkc-video { max-width: min(320px, 100%); max-height: 260px; border-radius: 6px; background: #000; }
.tkc-doc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(127, 127, 127, .14); border-radius: 6px; color: inherit !important; text-decoration: none !important; }
.tkc-doc span { font-size: 20px; }
.tkc-doc small { opacity: .65; }

.tkc-lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; margin: auto; overflow: visible; }
.tkc-lb::backdrop { background: rgba(0, 0, 0, .85); }
.tkc-lb img { display: block; max-width: 96vw; max-height: 92vh; image-rendering: auto; }
.tkc-lb button { position: fixed; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #000; font: 700 18px/1 sans-serif; cursor: pointer; }
.tkc-bar.in-row { margin: 0; display: contents; }
/* /podpora (light, for kids): the extra buttons look like real buttons */
.pd-form .tkc-btn { font: 800 15px/1 var(--ui, sans-serif); text-transform: none; padding: 12px 16px 14px; background: var(--paper-2, #f3e6cf); color: var(--ink, #2a1608); box-shadow: inset 0 -4px 0 var(--paper-lip, #d9c3a0); border-radius: 0; }
.pd-form .tkc-btn:hover { background: #fff3dd; }
.pd-form .tkc-btn small { font-size: 15px; }
.pd-form .tkc-btn.rec { background: #e5484d; color: #fff; box-shadow: inset 0 -4px 0 #a8272b; }
.pd-form .tkc-chip .nm { text-transform: none; }
