/* Гарантийный талон (warranty-card.js): профиль сайта, мини-приложение бота, страница проверки /w/<код>.
   Стиль сайта: чёрный, жёлтый #f5aa03, белые карточки, Inter / Montserrat. */
.wt { --wt-y: #f5aa03; --wt-ink: #212529; --wt-mut: #8a94a6; --wt-line: #e7e8ec; width: 100%; max-width: 380px; margin: 0 auto;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--wt-ink); background: #f4f5f7; border-radius: 20px; padding: 10px; text-align: left; }
.wt * { box-sizing: border-box; }
.wt-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.wt-head { background: #111; color: #fff; border-radius: 12px; padding: 16px; margin-bottom: 8px; position: relative; overflow: hidden; }
.wt-head::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: var(--wt-y); opacity: .12; pointer-events: none; }
.wt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wt-logo { height: 34px; width: auto; display: block; }
.wt-badge { background: var(--wt-y); color: #111; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 5px 11px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; position: relative; z-index: 1; }
.wt-badge svg { width: 14px; height: 14px; flex: none; }
.wt-badge.off { background: #5c6370; color: #fff; }
.wt-title { margin-top: 14px; font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.15; }
.wt-sub { font-size: 12px; color: #b9bec7; }
.wt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.wt-grid small { display: block; font-size: 11px; color: var(--wt-mut); }
.wt-grid b { font-size: 13px; font-weight: 600; }
.wt-grid b.till { color: #a86f00; }
.wt.off .wt-grid b.till { color: var(--wt-mut); }
.wt-term { margin-top: 14px; }
.wt-term-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; gap: 8px; }
.wt-term-row span { color: var(--wt-mut); }
.wt-term-row b { font-weight: 700; }
.wt-seg { display: grid; gap: 3px; }
.wt-seg i { display: block; height: 7px; border-radius: 4px; background: var(--wt-line); }
.wt-seg i.on { background: var(--wt-y); }
.wt-h { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.wt-it { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--wt-line); }
.wt-it:first-of-type { border-top: 0; padding-top: 2px; }
.wt-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--wt-y); color: #111; display: flex; align-items: center; justify-content: center; flex: none; }
.wt-ic svg { width: 22px; height: 22px; }
.wt-in { flex: 1; min-width: 0; }
.wt-in b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.wt-in small { font-size: 11px; color: var(--wt-mut); }
.wt-sum { font-size: 13px; font-weight: 700; white-space: nowrap; }
.wt.off .wt-ic { background: var(--wt-line); color: #5c6370; }
.wt-iw { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; color: #5c6370; background: #f1f2f4; border-radius: 6px; padding: 2px 7px; }
.wt-iw.long { color: #fff; background: #00b67a; font-weight: 700; }   /* товар с более долгой гарантией — зелёный */
.wt-iw.off { color: #5c6370; background: var(--wt-line); }
.wt-it.wo .wt-ic { background: var(--wt-line); color: #5c6370; }
.wt-it.ret { opacity: .55; }
.wt-it.ret .wt-ic { background: var(--wt-line); color: var(--wt-mut); }
.wt-it.ret .wt-sum { text-decoration: line-through; }
.wt-ret { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; color: #ff3b5c; background: #ffe8ec; border-radius: 6px; padding: 2px 6px; }
.wt-total { display: flex; justify-content: space-between; border-top: 1px dashed #d5d8de; margin-top: 4px; padding-top: 10px; font-size: 14px; }
.wt-total b { font-weight: 800; }
.wt-qr { display: flex; gap: 14px; align-items: center; }
.wt-qr-box { background: #fff; border: 1px solid var(--wt-line); border-radius: 10px; padding: 6px; flex: none; line-height: 0; }
.wt-qr-box img, .wt-qr-box svg { width: 92px; height: 92px; image-rendering: pixelated; }
.wt.off .wt-qr-box { opacity: .5; }
.wt-qr-txt { font-size: 12px; line-height: 1.45; color: var(--wt-mut); }
.wt-qr-txt b { color: var(--wt-ink); font-weight: 700; font-size: 13px; }
.wt-btns { display: flex; gap: 8px; }
.wt-btn { flex: 1; border: 0; border-radius: 12px; padding: 11px 8px; font: 700 13px Inter, system-ui, sans-serif; display: flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.wt-btn svg { width: 16px; height: 16px; }
.wt-btn.y { background: var(--wt-y); color: #111; }
.wt-btn.k { background: #111; color: #fff; }
.wt-foot { text-align: center; font-size: 11px; color: var(--wt-mut); margin-top: 10px; }
/* кнопка «Гарантийный талон» внутри покупки */
.wt-open { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 4px; border: 0; border-radius: 10px; background: #111; color: #fff; padding: 9px 14px; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; }
.wt-open svg { width: 16px; height: 16px; color: #f5aa03; }
.wt-open.off { background: #e7e8ec; color: #5c6370; }
.wt-open.off svg { color: #8a94a6; }
/* окно с талоном */
.wt-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(17, 17, 17, .55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.wt-modal .wt { position: relative; }
.wt-x { position: absolute; top: -12px; right: -6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 20px; line-height: 34px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); z-index: 2; }
@media print {
  .wt-btns, .wt-x, .wt-home { display: none !important; }
  body.wt-page { background: #fff; padding: 0; }
  .wt { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.wt-page .wt-foot { display: none; }
/* кнопка «Условия гарантии» в талоне и окно / страница с условиями */
.wt-terms { display: flex; align-items: center; gap: 10px; width: 100%; border: 1.5px solid var(--wt-y); background: #fff8e6; border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; cursor: pointer; text-align: left; font: 13px Inter, system-ui, sans-serif; color: #111; }
.wt-terms > svg { width: 20px; height: 20px; color: #a86f00; flex: none; }
.wt-terms > svg:last-child { width: 16px; height: 16px; color: #111; }
.wt-terms span { flex: 1; display: flex; flex-direction: column; }
.wt-terms b { font-weight: 700; }
.wt-terms small { font-size: 11px; color: #8a94a6; }
.wt-tm-modal { z-index: 100001; align-items: flex-end; padding: 0; }
.wt-tm { position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 20px 18px 24px; font-family: Inter, system-ui, sans-serif; color: #212529; box-sizing: border-box; }
@media (min-width: 640px) { .wt-tm-modal { align-items: center; padding: 24px 12px; } .wt-tm { border-radius: 20px; } }
.wt-tm .wt-x { top: 12px; right: 12px; box-shadow: none; background: #f1f2f4; }
.wt-tm-title { font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 20px; padding-right: 40px; }
.wt-tm-at { font-size: 12px; color: #8a94a6; margin: 2px 0 6px; }
.wt-tm-body h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; margin: 16px 0 6px; }
.wt-tm-body h3 svg { width: 18px; height: 18px; flex: none; color: #a86f00; }
.wt-tm-body h3.ok svg { color: #00b67a; }
.wt-tm-body h3.no svg { color: #ff3b5c; }
.wt-tm-body ul { margin: 0; padding-left: 20px; }
.wt-tm-body li, .wt-tm-body p { font-size: 13px; line-height: 1.55; color: #4a5260; margin: 0 0 4px; }
.wt-tm-links { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px dashed #d5d8de; margin-top: 16px; padding-top: 12px; }
.wt-tm-links a { font-size: 12px; font-weight: 600; color: #a86f00; text-decoration: none; }
.wt-tm-page { border-radius: 20px; max-height: none; margin: 0 auto; }
.wt-tm-logo { height: 40px; width: auto; display: block; margin-bottom: 14px; }
/* стёкла и чехлы — без гарантии */
.wt-it.nw .wt-ic { background: var(--wt-line); color: #8a94a6; }
.wt-nw-note { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; padding: 9px 11px; border-radius: 10px; background: #f1f2f4; color: #5c6370; font: 12px/1.4 Inter, system-ui, sans-serif; }
.wt-nw-note svg { width: 16px; height: 16px; flex: none; color: #8a94a6; }
