/* RUMMY Checkout — спільні стилі (чекаут покупця + кабінет власника).
   Стиль сайту rummycore.co: білий фон, тонкий шрифт, чорні кнопки, мінімум заокруглень. */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@300;400;500;600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #111;
  --sub: #6b6b6b;
  --muted: #9a9a9a;
  --line: #e7e7e7;
  --field: #fafafa;
  --tile: #f3f3f3;
  --bg: #fff;
  --page: #f6f6f4;
  --night: #0b0b0b;
  --ok: #1f8a4c;
  --warn: #c77700;
  --bad: #c62828;
  --r: 4px;
  font-family: 'Google Sans', 'Google Sans Flex', Manrope, system-ui, -apple-system, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--r); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f0c9c9; }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* поля */
.field { position: relative; display: block; }
.field input, .field select, .field textarea { width: 100%; height: 50px; border: 1px solid var(--line); background: var(--field); border-radius: var(--r); padding: 18px 14px 6px; font-size: 15px; outline: none; transition: border-color .15s, background .15s; }
.field textarea { height: 96px; resize: vertical; padding-top: 22px; }
.field span { position: absolute; left: 15px; top: 15px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select + span { top: 7px; font-size: 11px; letter-spacing: .3px; }
.field .err { display: none; }
.field.bad input { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* радіо-картки */
.opts { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; padding: 15px 14px; cursor: pointer; font-size: 15px; background: #fff; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt input { appearance: none; width: 18px; height: 18px; border: 1px solid #bbb; border-radius: 50%; flex: none; display: grid; place-items: center; }
.opt input:checked { border: 5px solid var(--ink); }
.opt.on { background: var(--field); }
.opt .r { margin-left: auto; color: var(--sub); font-size: 13px; }
.opt-body { padding: 4px 14px 16px 44px; background: var(--field); display: grid; gap: 10px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #333; cursor: pointer; line-height: 1.45; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid #bbb; border-radius: 3px; flex: none; margin-top: 1px; }
.check input:checked { background: var(--ink) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="white" stroke-width="2"/></svg>') center/14px no-repeat; border-color: var(--ink); }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; background: var(--tile); color: #444; white-space: nowrap; }
.tag.ok { background: #e7f4ec; color: var(--ok); }
.tag.warn { background: #fdf1df; color: var(--warn); }
.tag.bad { background: #fbe9e9; color: var(--bad); }
.tag.dark { background: var(--ink); color: #fff; }

.muted { color: var(--muted); }
.sub { color: var(--sub); }
.h1 { font-weight: 400; font-size: 30px; letter-spacing: -.6px; line-height: 1.1; }
.h2 { font-weight: 400; font-size: 21px; letter-spacing: -.3px; }
.cap { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 14px; opacity: 0; transition: all .25s; z-index: 99; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
