/* กล่องติดต่อ (ใช้เหมือนกันทุกหน้า: หน้าแรก / ร้านค้า / เกี่ยวกับเรา) · สร้างด้วย contactHTML() ใน site.js
   5 ช่อง (QR + ปุ่มลิงก์คู่กัน) → โทร / อีเมล / ที่อยู่
   คอม: ช่องละคอลัมน์ ปุ่มอยู่ใต้ QR ของตัวเอง · มือถือ (≤640px): ช่องละแถว QR ซ้าย ปุ่มขวา */
.ct{
  --ct-surface:#FFFFFF; --ct-ink:#202124; --ct-muted:#686b70; --ct-line:rgba(32,33,36,.14); --ct-raised:#f0efec;
  display:grid; gap:16px; max-width:760px; color:var(--ct-ink); text-align:left;
}
html[data-theme="dark"] .ct{--ct-surface:#151619; --ct-ink:#f5f5f7; --ct-muted:#a1a1a6; --ct-line:rgba(255,255,255,.14); --ct-raised:#202226}
.ct--center{margin-inline:auto}
.ct--center .ct__chs{justify-content:center}

.ct__chs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,148px);gap:14px}
.ct__ch{display:flex;flex-direction:column;gap:8px;min-width:0;text-align:center}
.ct__qr{position:relative;width:100%;aspect-ratio:1}
.ct__qr img{width:100%;height:100%;border-radius:12px;border:1px solid var(--ct-line);background:#FFFFFF;display:block}
.ct__qr--made img{padding:4px;image-rendering:pixelated}
.ct__badge{position:absolute;left:50%;top:50%;width:30px;height:30px;transform:translate(-50%,-50%);border-radius:9px;border:3px solid #FFFFFF;display:grid;place-items:center;color:#FFFFFF}
.ct__badge svg{width:16px;height:16px}
.ct__cap{font-size:12px;line-height:1.35;color:var(--ct-muted);overflow-wrap:anywhere}

/* ปุ่มลิงก์ · ในคอลัมน์ปุ่มกว้างเท่า QR และสูงเท่ากันทุกปุ่ม (ชื่อยาวขึ้นบรรทัดใหม่ได้) */
.soc{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:999px;color:#FFFFFF;font-weight:700;font-size:15px;line-height:1.2;text-decoration:none;transition:filter .15s ease}
.soc:hover{filter:brightness(1.08)}
.soc svg{width:20px;height:20px;flex:none}
.ct__ch .soc{flex:1;min-height:44px;justify-content:center;gap:6px;padding:8px 10px;border-radius:12px;font-size:13.5px}
.ct__ch .soc svg{width:18px;height:18px}
.soc--line{background:#06C755}
.soc--fb{background:#1877F2}
.soc--ig{background:linear-gradient(45deg,#F58529,#DD2A7B 55%,#8134AF)}
.soc--shopee{background:#EE4D2D}
.soc--wx{background:#07C160}

.ct__rows{display:grid;gap:10px}
.ct__row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;background:var(--ct-surface);border:1px solid var(--ct-line);border-radius:12px;padding:12px 14px}
.ct__k{font-size:12.5px;color:var(--ct-muted);min-width:4.5em}
.ct__v{font-weight:700;overflow-wrap:anywhere;flex:1;min-width:0}
.ct__btn{border:1px solid var(--ct-line);background:transparent;color:var(--ct-ink);border-radius:999px;padding:5px 12px;font:inherit;font-size:12.5px;font-weight:600;text-decoration:none;cursor:pointer}
.ct__btn:hover{background:var(--ct-raised)}

@media (max-width:640px){
  .ct__chs{grid-auto-flow:row;grid-template-columns:minmax(0,1fr);gap:10px}
  .ct__ch{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:1fr 1fr;grid-template-areas:"qr cap" "qr btn";gap:8px 14px;align-items:center;text-align:left;background:var(--ct-surface);border:1px solid var(--ct-line);border-radius:12px;padding:10px}
  .ct__qr{grid-area:qr}
  .ct__cap{grid-area:cap;align-self:end}
  .ct__ch .soc{grid-area:btn;align-self:start;flex:none;min-height:0;padding:10px 14px;border-radius:999px;font-size:15px}
}
