
.chat { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; transition: bottom .25s ease; }

@media (max-width: 999px) { body:has(.stickybar.show) .chat { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@supports not selector(:has(*)) { .chat { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.chat-launch { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.chat-fab { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border-radius: 50%; background: var(--red-dark); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border: 0; }
.chat-fab::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--ember), var(--red), var(--red-deep), var(--ember)); z-index: -1; }

.chat-fab::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(184, 25, 26, .45); z-index: -2; pointer-events: none; animation: chatring 2.4s ease-out infinite; }
@keyframes chatring { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(1.34); opacity: 0; } 100% { transform: scale(1.34); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-fab::after { animation: none; opacity: 0; } }
.chat-fab img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; }
.chat-fab .ic { width: 26px; height: 26px; }
.chat-dot { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%; background: #5cf08a; border: 2.5px solid #fff; }
.chat-teaser { position: relative; max-width: min(260px, calc(100vw - 110px)); background: #fff; border-radius: 12px 12px 2px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); border: 1px solid var(--line); animation: chatpop .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.chat-teaser[hidden] { display: none; }
@keyframes chatpop { from { transform: translateY(8px) scale(.92); opacity: 0; } }
.chat-teaser-t { display: block; width: 100%; padding: 10px 28px 10px 12px; text-align: left; }
.chat-teaser-t b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--red-dark); letter-spacing: .02em; }
.chat-teaser-t span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.chat-teaser-x { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); } .chat-teaser-x .ic { width: 13px; height: 13px; } .chat-teaser-x:hover { background: var(--nav); color: var(--ink); }
.chat.is-open .chat-launch { display: none; }

.chat-peek { max-width: min(280px, calc(100vw - 110px)); border-color: var(--line-2); }
.chat-peek .chat-teaser-t { cursor: pointer; }
.chat-peek .chat-teaser-t span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.chat-peek .chat-teaser-t b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--red); vertical-align: 2px; }



.chat-bg { position: fixed; inset: 0; z-index: 1; background: rgba(20, 16, 14, .45); touch-action: none; animation: chatfade .28s ease backwards; } .chat-bg[hidden] { display: none; }
.chat-bg.is-closing { animation: chatfadeout .24s ease forwards; }
.chat-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; height: min(86dvh, 100%); max-height: 100%; background: #fff; border-radius: 18px 18px 0 0; overflow: hidden; overscroll-behavior: contain; box-shadow: 0 -8px 40px rgba(0, 0, 0, .25); animation: chatup .34s cubic-bezier(.2, .9, .25, 1) backwards; }
.chat-panel[hidden] { display: none; }
.chat-panel.is-closing { animation: chatdown .24s cubic-bezier(.4, 0, .8, .4) forwards; pointer-events: none; }
@keyframes chatup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes chatdown { to { transform: translateY(100%); } }
@keyframes chatfade { from { opacity: 0; } } @keyframes chatfadeout { to { opacity: 0; } }
.chat-head, .chat-grip { touch-action: none; }

.chat-fab, .chat-send, .chat-chips button, .chat-x, .chat-teaser-t, .chat-newpill { -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background-color .15s, border-color .15s; }
.chat-fab:active { transform: scale(.93); } .chat-send:active { transform: scale(.88); } .chat-chips button:active, .chat-x:active, .chat-newpill:active { transform: scale(.95); } .chat-teaser-t:active { transform: scale(.98); }

.chat-m.is-in { animation: chatmsg .26s cubic-bezier(.2, .9, .3, 1) both; } .chat-m.user.is-in { transform-origin: 100% 100%; } .chat-m.assistant.is-in, .chat-m.owner.is-in { transform-origin: 0 100%; }
@keyframes chatmsg { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.chat-log > .chat-new { align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 11.5px; font-weight: 500; color: var(--red-dark); letter-spacing: .02em; }
.chat-new::before, .chat-new::after { content: ""; flex: 1; height: 1px; background: rgba(184, 25, 26, .28); }
.chat-newpill { position: absolute; left: 50%; z-index: 4; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 500; box-shadow: 0 4px 14px rgba(16, 24, 40, .12); transform: translateX(-50%); animation: chatfade .2s ease both; }
.chat-newpill .ic { width: 15px; height: 15px; color: var(--red-dark); } .chat-newpill[hidden] { display: none; } .chat-newpill:active { transform: translateX(-50%) scale(.95); }
.chat-grip { position: absolute; top: 6px; left: 50%; z-index: 3; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
body.chat-open { overflow: hidden; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--yellow); color: var(--ink); border: 2px solid #fff; font: 700 12px/18px var(--font); text-align: center; } .chat-badge[hidden] { display: none; }
.chat-fab.has-new::before { animation-duration: 1.2s; }
.chat-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 14px 10px 10px 14px; background: var(--red-deep); color: #fff; }
.chat-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--ember); } .chat-avatar .ic { width: 22px; height: 22px; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
.chat-avatar .chat-dot { right: -1px; bottom: -1px; width: 13px; height: 13px; border: 2.5px solid var(--red-deep); }
.chat-who b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.chat-who small { display: block; margin-top: 3px; font-size: 12.5px; opacity: .85; transition: color .2s; } .chat-who small.typing { color: #9ff0b8; opacity: 1; } .chat-who small.connecting { opacity: .65; }
.chat-x { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 8px; border-radius: 20px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 600; } .chat-x:hover { background: rgba(255, 255, 255, .24); } .chat-x .ic { width: 18px; height: 18px; }


.chat-log { flex: 1; overflow-y: auto; padding: 12px 12px 14px; display: flex; flex-direction: column; background: var(--bg); overscroll-behavior: contain; }
.chat-log > * { margin-top: 10px; } .chat-log > :first-child { margin-top: 0; } .chat-log > .cont { margin-top: 3px; }
.chat-m { position: relative; max-width: 84%; padding: 8px 11px 7px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; word-break: break-word; box-shadow: 0 1px 1px rgba(16, 24, 40, .06); }
.chat-m.assistant, .chat-m.owner { align-self: flex-start; background: #fff; color: var(--ink); border-top-left-radius: 5px; }
.chat-m.user { align-self: flex-end; background: var(--red-dark); color: #fff; border-top-right-radius: 5px; }
.chat-m.cont.assistant, .chat-m.cont.owner { border-top-left-radius: 16px; } .chat-m.cont.user { border-top-right-radius: 16px; }
.chat-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px -3px -3px 10px; font-size: 11px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-m.user .chat-meta { color: rgba(255, 255, 255, .72); }
.chat-tick { width: 15px; height: 15px; fill: currentColor; transition: color .25s; } .chat-m.user.read .chat-tick { color: #8fd3ff; }
.chat-m a { color: var(--red-dark); font-weight: 500; text-decoration: underline; } .chat-m.user a { color: #fff; }
.chat-m a.chat-wa { display: inline-flex; align-items: center; margin-top: 4px; padding: 6px 10px; border-radius: 3px; background: var(--green); color: #fff; text-decoration: none; font-size: 13px; }
.chat-m .btn { margin-top: 6px; }
.chat-m.owner { background: #fffaf0; box-shadow: 0 0 0 1px #f3e2b3; }
.chat-m.owner b.who { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; color: #8a6a00; text-transform: uppercase; letter-spacing: .05em; }
.chat-typing { display: inline-flex; gap: 4px; padding: 12px 14px; } .chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9bec6; animation: chatdot 1s infinite; } .chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }


.chat-sys, .chat-day { align-self: center; display: inline-flex; align-items: center; gap: 7px; max-width: 92%; padding: 5px 11px; border-radius: 20px; background: rgba(29, 29, 31, .06); font-size: 12px; line-height: 1.35; color: var(--ink-2); text-align: center; }
.chat-day { padding: 3px 10px; font-size: 11.5px; font-weight: 500; color: var(--muted); background: rgba(29, 29, 31, .05); }
.chat-sys time { color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-spin { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(29, 29, 31, .15); border-top-color: var(--red-dark); animation: chatspin .8s linear infinite; }
@keyframes chatspin { to { transform: rotate(360deg); } }


.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; background: #fff; border-top: 1px solid var(--line); } .chat-chips::-webkit-scrollbar { display: none; } .chat-chips:empty { display: none; }
.chat-chips button { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 50px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); } .chat-chips button:hover { border-color: var(--red-dark); color: var(--red-dark); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-chips:not(:empty) + .chat-form { border-top: 0; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg); font: inherit; font-size: 16px; line-height: 1.35; color: var(--ink); resize: none; } .chat-form textarea:focus { outline: 0; border-color: var(--red-dark); background: #fff; }
.chat-send { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red-dark); color: #fff; } .chat-send .ic { width: 20px; height: 20px; } .chat-send:hover { background: var(--red-deep); }
.chat-note { padding: 0 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; font-size: 11px; line-height: 1.35; color: var(--muted); text-align: center; } .chat-note a { color: var(--green-dark); font-weight: 700; }

@media (min-width: 640px) {
  .chat { right: 20px; bottom: 16px; }
  .chat-bg, .chat-grip { display: none !important; }
  .chat-panel { inset: auto 0 0 auto; left: auto; width: 390px; height: min(660px, calc(100vh - 40px)); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgba(0, 0, 0, .22); border: 1px solid var(--line); transform-origin: 100% 100%; animation: chatpopin .22s cubic-bezier(.2, .9, .3, 1) backwards; }
  .chat-panel.is-closing { animation: chatpopout .18s ease forwards; }
  @keyframes chatpopin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
  @keyframes chatpopout { to { opacity: 0; transform: translateY(10px) scale(.98); } }
  .chat-head { padding: 10px 8px 10px 14px; }
  .chat-x { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: none; } .chat-x span { display: none; } .chat-x .ic { width: 20px; height: 20px; }
  body.chat-open { overflow: auto; }
}
@media (min-width: 1000px) { .chat { bottom: 16px; right: 88px; } }
@media (prefers-reduced-motion: reduce) { .chat-typing i, .chat-fab::before, .chat-teaser, .chat-spin, .chat-panel, .chat-bg, .chat-m.is-in, .chat-newpill { animation: none; } }


.chat-pay-t { padding: 0 0 2px; }
.chat-up { cursor: pointer; }


.chat-wide { align-self: stretch; max-width: 100%; }
.paycard { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); overflow: hidden; color: var(--ink); }
.paycard-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 12px 10px; }
.paycard-ic { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red-tint); color: var(--red-dark); } .paycard-ic .ic { width: 20px; height: 20px; }
.paycard-ic.mark { color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 700; } .paycard-ic.mark .ic { color: #fff; }
.paycard-ic.logo { width: auto; max-width: 124px; height: 40px; padding: 0 8px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); } .paycard-ic.logo img { display: block; width: auto; height: auto; max-width: 108px; max-height: 26px; }
.chat-paywrap > .who { display: block; margin: 0 0 4px 6px; font-size: 11.5px; font-weight: 700; color: #8a6a00; text-transform: uppercase; letter-spacing: .05em; }
.chat-typing.owner { background: #fffaf0; box-shadow: 0 0 0 1px #f3e2b3; } .chat-typing.owner i { background: #d9b85a; }
.paycard-h b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.1; font-weight: 700; text-transform: uppercase; } .paycard-h small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.paycard-tm { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 20px; background: var(--red-tint); font-size: 12.5px; font-weight: 700; color: var(--red-dark); font-variant-numeric: tabular-nums; white-space: nowrap; } .paycard-tm .ic { width: 14px; height: 14px; }
.paycard-bar { display: block; height: 3px; background: var(--line); } .paycard-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--red)); transition: width 1s linear; }
.paycard-l { margin: 0; padding: 4px 12px; }
.paycard-l > div { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0; border-bottom: 1px solid var(--line); } .paycard-l > div:last-child { border-bottom: 0; }
.paycard-l dt { font-size: 12px; color: var(--muted); } .paycard-l dd { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.3; min-width: 0; word-break: break-word; }
.paycard-l dd.iban { font-size: 14px; letter-spacing: .02em; font-variant-numeric: tabular-nums; } .paycard-l dd.amount { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--red-dark); }
.paycard-cp { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); } .paycard-cp:hover { background: var(--nav); } .paycard-cp .ic { width: 17px; height: 17px; }
.paycard-cp.is-done { color: var(--green-dark); background: #e9f7ef; }
.paycard-a { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 12px; } .paycard-a .btn { margin: 0; }
.paycard-n { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.paycard-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--green-dark); } .paycard-ok .ic { width: 16px; height: 16px; }
.paycard-s { margin: 0; padding: 9px 12px 11px; background: var(--bg); border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; color: var(--muted); } .paycard-s b { display: block; color: var(--ink-2); font-weight: 500; }
.paycard.is-expired .paycard-l, .paycard.is-expired .paycard-h > span:nth-child(2) { opacity: .45; } .paycard.is-expired dd.iban { text-decoration: line-through; } .paycard.is-expired .paycard-tm { background: var(--nav); color: var(--muted); }
.paycard.is-paid .paycard-tm { background: #e9f7ef; color: var(--green-dark); }


.chat-cards { align-self: stretch; display: flex; flex-direction: column; gap: 8px; max-width: 94%; }
.chat-card { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); }
.chat-card-img { display: block; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--bg); } .chat-card-img img { width: 100%; height: 100%; object-fit: contain; }
.chat-card-b { display: flex; flex-direction: column; min-width: 0; }
.chat-card-n { font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-card-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 2px; }
.chat-card-p b.price { font-family: var(--font-display); font-size: 21px; line-height: 1.1; font-weight: 700; color: var(--red-dark); }
.chat-card-p s { font-size: 12.5px; color: var(--muted); } .chat-card-p small { font-size: 12px; font-weight: 500; color: var(--green-dark); }
.chat-card-a { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; } .chat-card-a .btn { min-height: 34px; } .chat-card-a .js-buy { flex: 1; }

.chat-card.is-bundle { grid-template-columns: 92px 1fr; }
.chat-card.is-bundle .chat-card-img { width: 92px; height: 100%; min-height: 92px; } .chat-card.is-bundle .chat-card-img img { object-fit: cover; }
.chat-card-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--red-dark); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 1px; }
.chat-card-d { margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-card-g { font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--green-dark); }
.chat-card-p em { font-size: 12px; font-style: normal; color: var(--muted); }

.chat-card.is-mini { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; }
.chat-card-ring { display: block; width: 52px; height: 52px; padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, var(--red-deep), var(--red), var(--ember), var(--red), var(--red-deep)); }
.chat-card-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #fff; }
.chat-card-ring.is-doc { border-radius: 8px; padding: 0; background: #f4f2ee; box-shadow: inset 0 0 0 1px var(--line); } .chat-card-ring.is-doc img { border-radius: 6px; border: 0; object-fit: contain; padding: 4px; }
.chat-card.is-mini .chat-card-b { justify-content: center; } .chat-card-go { min-height: 34px; }
.chat-ph-c { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }


.chat-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--red-tint); border-top: 1px solid var(--line); }
.chat-cta[hidden] { display: none; }
.chat-cta-i { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--red-dark); } .chat-cta-i .ic { flex: none; width: 22px; height: 22px; }
.chat-cta-i b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.1; font-weight: 700; color: var(--ink); white-space: nowrap; }
.chat-cta-i small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-cta .btn { flex: none; }


.chat-m.chat-m-form { align-self: stretch; max-width: 100%; padding: 12px; border-radius: 14px; }
.chat-order { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-order > * { grid-column: 1 / -1; }
.chat-order .chat-f-city, .chat-order .chat-f-district { grid-column: auto; }
.chat-order-t { font-family: var(--font-display); font-size: 18px; line-height: 1.1; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.chat-order-i { margin: 0; padding: 0 0 6px; list-style: none; border-bottom: 1px solid var(--line); }
.chat-order-i li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 2px 0; } .chat-order-i b { font-weight: 500; white-space: nowrap; }
.chat-order-s { margin: -4px 0 0; font-size: 12px; color: var(--green-dark); font-weight: 500; }
.chat-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .chat-f > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); } .chat-f > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.chat-f input, .chat-f select, .chat-f textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.chat-f textarea { min-height: 62px; resize: vertical; line-height: 1.35; }
.chat-f input:focus, .chat-f select:focus, .chat-f textarea:focus { outline: 0; border-color: var(--red-dark); }
.chat-f.err input, .chat-f.err select, .chat-f.err textarea { border-color: var(--red); background: #fff6f6; }
.chat-f-e { font-style: normal; font-size: 12.5px; line-height: 1.3; color: var(--red); } .chat-f-e[hidden] { display: none; }
.chat-order-b { margin-top: 4px; min-height: 46px; }
.chat-order-n { margin: 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); } .chat-order-n a { color: var(--ink-2); }
.chat-m a.chat-link { display: inline-block; margin-top: 4px; font-size: 13px; }


.chat-order-sum { margin: 0; display: grid; gap: 4px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.chat-order-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); } .chat-order-sum dd { margin: 0; font-weight: 500; }
.chat-order-sum dd.ok { color: var(--green-dark); } .chat-order-sum dd.muted { color: var(--muted); font-size: 12.5px; text-align: right; max-width: 60%; font-weight: 400; }
.chat-order-sum .tot dt { font-weight: 700; color: var(--ink); } .chat-order-sum .tot dd { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--red-dark); } .chat-order-sum .tot dd small { margin-left: 4px; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }


.chat-m.chat-m-cf { align-self: stretch; max-width: 100%; padding: 12px; border-radius: 14px; }
.chat-cf-t { margin: 0 0 8px; font-weight: 500; color: var(--ink); }
.chat-cf { margin: 0; display: grid; gap: 7px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.chat-cf > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.35; } .chat-cf dt { color: var(--muted); } .chat-cf dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.chat-cf-b { display: grid; gap: 6px; margin-top: 10px; } .chat-cf-b .btn { margin: 0; min-height: 44px; }


.paycard { position: relative; background: linear-gradient(145deg, #fff3f6 0%, #ffe2ea 55%, #fff6f9 100%); border-radius: 20px; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 36px rgba(142, 29, 68, .18), inset 0 1px 0 rgba(255, 255, 255, .95); color: #3a1f2a; }
.paycard::before { content: ""; position: absolute; top: -70px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.paycard-h { position: relative; padding: 16px 16px 10px; }
.paycard-h b { font-size: 18px; color: #3a1f2a; } .paycard-h small { color: #8c5a6b; }
.paycard .paycard-ic.logo { grid-area: auto; }
.paycard-ic { background: rgba(255, 255, 255, .8); color: #c2385f; box-shadow: 0 1px 2px rgba(58, 31, 42, .1); } .paycard-ic.logo { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(58, 31, 42, .12); }
.paycard-tm { background: rgba(255, 255, 255, .78); color: #c2385f; }
.paycard-bar { height: 3px; margin: 0 16px; border-radius: 2px; background: rgba(194, 56, 95, .14); } .paycard-bar i { border-radius: 2px; background: linear-gradient(90deg, #f9a8c9, #c2385f); }
.paycard-l { position: relative; margin: 10px 12px 0; padding: 4px 12px; background: rgba(255, 255, 255, .8); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 1px 2px rgba(58, 31, 42, .05); backdrop-filter: blur(6px); }
.paycard-l > div { border-bottom: 1px solid rgba(194, 56, 95, .1); } .paycard-l dt { color: #8c5a6b; } .paycard-l dd { color: #3a1f2a; }
.paycard-l dd.iban { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .04em; } .paycard-l dd.amount { font-size: 22px; color: #8e1d44; }
.paycard-cp { color: #c2385f; background: rgba(255, 255, 255, .7); } .paycard-cp:hover { background: #fff; } .paycard-cp.is-done { color: var(--green-dark); background: #e9f7ef; }
.paycard-a { padding: 12px 12px 14px; } .paycard-a .btn-red { background: #2b1d24; border-color: #2b1d24; border-radius: 12px; min-height: 46px; } .paycard-a .btn-red:hover { background: #8e1d44; border-color: #8e1d44; }
.paycard-n { color: #8c5a6b; } .paycard-ok { color: #8e1d44; }
.paycard-s { background: rgba(255, 255, 255, .55); border-top: 1px solid rgba(194, 56, 95, .1); color: #8c5a6b; } .paycard-s b { color: #3a1f2a; }
.paycard.is-paid { background: linear-gradient(145deg, #e9fbef, #d3f1dd); box-shadow: 0 12px 32px rgba(31, 157, 85, .16); color: var(--ink); } .paycard.is-paid .paycard-tm { background: rgba(255, 255, 255, .8); color: var(--green-dark); }
.paycard.is-expired { background: linear-gradient(145deg, #f1f3f5, #e4e8ec); box-shadow: var(--shadow); }
.paycard-sum { position: relative; margin: 10px 12px 0; padding: 9px 12px 8px; background: rgba(255, 255, 255, .62); border-radius: 14px; font-size: 13px; line-height: 1.3; color: #3a1f2a; }
.paycard-sum-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: #8c5a6b; } .paycard-sum-t img { flex: none; width: auto; height: 15px; } .paycard-sum-t b { font-size: 11.5px; color: #3a1f2a; }
.paycard-sum ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.paycard-sum li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .paycard-sum li span { min-width: 0; } .paycard-sum li b { flex: none; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paycard-sum summary { margin-top: 4px; font-size: 12px; font-weight: 600; color: #c2385f; cursor: pointer; list-style: none; } .paycard-sum summary::-webkit-details-marker { display: none; }
.paycard-sum details[open] summary { display: none; } .paycard-sum details ul { margin-top: 3px; }
.paycard-tot { display: grid; gap: 3px; margin: 7px 0 0; padding-top: 6px; border-top: 1px dashed rgba(194, 56, 95, .25); }
.paycard-tot > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #6b4655; } .paycard-tot dd { margin: 0; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; color: #3a1f2a; } .paycard-tot dd.ok { color: var(--green-dark); }
.paycard-tot .tot { margin-top: 2px; } .paycard-tot .tot dt { font-weight: 700; color: #3a1f2a; } .paycard-tot .tot dd { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #8e1d44; }
.paycard-l dd.co { font-size: 13px; line-height: 1.3; }
@media (prefers-reduced-motion: no-preference) { .paycard { animation: paycardin .4s cubic-bezier(.2, .9, .3, 1) both; } @keyframes paycardin { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } } }


.chat-m.chat-photo { padding: 4px 4px 4px; max-width: 78%; } .chat-m.chat-photo b.who { margin: 4px 6px 4px; }
.chat-ph { display: block; overflow: hidden; border-radius: 13px; background: var(--bg); } .chat-ph img { display: block; width: 100%; max-width: 260px; height: auto; }
.chat-ph-c { display: block; padding: 6px 8px 2px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.chat-m.chat-photo .chat-meta { margin: 2px 6px 2px 10px; }


.chat-m.chat-m-form { flex: none; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.chat-m-form .chat-order { gap: 8px; padding: 0 12px 12px; }
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; margin: 0 -12px; padding: 10px 12px 9px; background: var(--bg); border-bottom: 1px solid var(--line); }
.co-head .chat-order-t { font-size: 18px; color: var(--ink); }
.co-ship { display: contents; } .co-ship img { grid-column: 2; grid-row: 1; height: 17px; width: auto; } .co-ship > b { font-size: 12.5px; color: var(--ink-2); }
.co-ship small { grid-column: 1 / -1; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--muted); }
.co-sum summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 0 7px; border-bottom: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); cursor: pointer; list-style: none; }
.co-sum summary::-webkit-details-marker { display: none; }
.co-sum summary span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.co-sum[open] summary span::after { transform: rotate(-135deg); margin-bottom: -1px; }
.co-sum summary i { font-style: normal; } .co-sum summary i.ok { color: var(--green-dark); font-weight: 500; }
.co-sum summary b { font-family: var(--font-display); font-size: 22px; line-height: 1; font-weight: 700; color: var(--red); white-space: nowrap; } .co-sum summary b small { margin-left: 4px; font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.co-sum .chat-order-i { padding-top: 6px; } .co-sum .chat-order-sum { border-bottom: 1px dashed var(--line-2); }
.chat-m-form .chat-order .chat-f-full_name, .chat-m-form .chat-order .chat-f-phone { grid-column: auto; }
.chat-m-form .chat-f > span { font-size: 12px; color: var(--ink-2); }
.chat-m-form .chat-f input, .chat-m-form .chat-f select, .chat-m-form .chat-f textarea { min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 3px; }
.chat-m-form .chat-f textarea { min-height: 52px; }
.chat-m-form .chat-f input:focus, .chat-m-form .chat-f select:focus, .chat-m-form .chat-f textarea:focus { outline: 0; border-color: var(--red-dark); box-shadow: 0 0 0 3px rgba(149, 18, 19, .12); }
.chat-f[hidden] { display: none; }
.co-more { justify-self: start; padding: 1px 0; font-size: 12.5px; font-weight: 500; color: var(--red-dark); text-align: left; } .co-more em { font-style: normal; font-weight: 400; color: var(--muted); } .co-more:hover { text-decoration: underline; }
.co-help { margin: 0; padding: 7px 10px; border-radius: 3px; background: var(--bg); font-size: 12px; line-height: 1.38; color: var(--ink-2); }
.chat-order-b, .chat-cf-b .chat-order-b { min-height: 48px; border: 1px solid var(--red-deep); background: var(--red-dark); box-shadow: none; color: #fff; font-size: 14px; }
.chat-order-b:hover { background: var(--red-deep); color: #fff; } .chat-order-b:disabled { opacity: .65; }
.chat-m.chat-m-cf { border: 1px solid var(--line-2); }
.chat-paywrap.is-flash .paycard { animation: co-flash 1.4s ease-out 1; }
@keyframes co-flash { 0% { box-shadow: 0 0 0 0 rgba(149, 18, 19, .45); } 100% { box-shadow: 0 0 0 14px rgba(149, 18, 19, 0); } }
@media (prefers-reduced-motion: reduce) { .chat-paywrap.is-flash .paycard { animation: none; } .co-sum summary span::after { transition: none; } }

.chat-addon { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.chat-addon > p { margin: 0 0 6px; } .chat-addon > p b { display: block; font-size: 13.5px; color: var(--ink); } .chat-addon > p small { font-size: 12px; color: var(--muted); }
.ca-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px dashed var(--line-2); }
.ca-img { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; overflow: hidden; background: #eef0f2; color: var(--muted); } .ca-img img { width: 100%; height: 100%; object-fit: cover; } .ca-img .ic { width: 18px; height: 18px; }
.ca-n { font-size: 13px; line-height: 1.3; } .ca-n small { display: block; color: var(--muted); }
.ca-row .btn.is-done { border-color: transparent; color: var(--green-dark); }

.paycard.is-old .paycard-l dd { text-decoration: line-through; opacity: .6; }

.chat-tool { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 44px; border-radius: 50%; color: var(--ink-2); font-size: 20px; line-height: 1; } .chat-tool:hover { background: var(--bg); color: var(--ink); } .chat-tool .ic { width: 22px; height: 22px; }
.chat-tool:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.chat-in-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.chat-in-wrap textarea { flex: 1; min-width: 0; padding-right: 44px; }
.chat-in-wrap .chat-emo { position: absolute; right: 2px; bottom: 0; width: 40px; height: 44px; font-size: 19px; filter: grayscale(.25); } .chat-in-wrap .chat-emo:hover { background: transparent; filter: none; }
.chat-emojis { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; display: grid; grid-template-columns: repeat(5, 40px); gap: 2px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .18), 0 0 0 1px var(--line); }
.chat-emojis[hidden] { display: none; }
.chat-emojis button { width: 40px; height: 40px; border-radius: 10px; font-size: 22px; line-height: 1; } .chat-emojis button:hover, .chat-emojis button:focus-visible { background: var(--bg); outline: none; }
.chat-pdf { display: inline-flex; align-items: center; gap: 8px; padding: 2px 2px 2px 0; font-weight: 500; color: inherit; text-decoration: underline; text-underline-offset: 2px; } .chat-pdf .ic { width: 20px; height: 20px; }
.chat-m.is-sending { opacity: .6; } .chat-m.is-failed { outline: 1.5px solid var(--red); }

.chat-role { font-family: var(--font); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .85; white-space: nowrap; }
button.chat-avatar { padding: 0; border: 0; cursor: zoom-in; } button.chat-avatar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chat-av-big { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 14, 20, .86); backdrop-filter: blur(4px); cursor: zoom-out; }
.chat-av-big[hidden] { display: none; }
.chat-av-big figure { margin: 0; text-align: center; color: #fff; }
.chat-av-big img { display: block; width: min(260px, 70vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.chat-av-big figcaption { margin-top: 14px; } .chat-av-big figcaption b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; } .chat-av-big figcaption span { display: block; margin-top: 5px; font-size: 14px; opacity: .85; }
.chat-av-x { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; } .chat-av-x .ic { width: 20px; height: 20px; } .chat-av-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.chat-rq { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); }
.chat-rq p { margin: 0; font-size: 14px; font-weight: 500; } .chat-rq span { display: flex; gap: 6px; } .chat-rq .btn { margin: 0; }
.chat-rq.is-done { justify-content: flex-start; gap: 8px; color: var(--green-dark); } .chat-rq.is-done .ic { width: 18px; height: 18px; }

.chat-refund { padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.chat-refund .cr-h { display: flex; align-items: center; gap: 9px; margin: 0; }
.chat-refund .cr-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff4e5; color: #8a5300; } .chat-refund .cr-ic .ic { width: 16px; height: 16px; }
.chat-refund.is-done .cr-ic { background: #e7f6ec; color: var(--green-dark); }
.chat-refund .cr-h b { display: block; font-size: 13.5px; color: var(--ink); } .chat-refund .cr-h small { display: block; font-size: 12px; color: var(--muted); }
.chat-refund .cr-a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 9px 0 10px; padding-top: 9px; border-top: 1px dashed var(--line-2); }
.chat-refund .cr-a b { font-size: 18px; color: var(--ink); } .chat-refund .cr-s { font-size: 12.5px; font-weight: 600; color: #8a5300; } .chat-refund.is-done .cr-s { color: var(--green-dark); }
