@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #040304;
  --muted: #666;
  --line: #e8e8e8;
  --accent: #C2D500;
  --warn: #e53935;
  --soft: #f6f7f2;
}

body { font-family: 'Montserrat', sans-serif; color: var(--ink); background: #fff; min-height: 100vh; }

header { background: var(--ink); color: #fff; padding: 28px 24px; }
header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
header p { margin-top: 6px; color: #bbb; font-size: 14px; max-width: 640px; line-height: 1.5; }

main { max-width: 760px; margin: 0 auto; padding: 28px 20px 80px; }

.panel { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.panel-head h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.step { background: var(--ink); color: var(--accent); width: 26px; height: 26px; border-radius: 50%;
        display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 8px; }

.rows { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.row select, .row input, .example select {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; background: #fff;
}
.row select:focus, .row input:focus, .example select:focus { outline: 2px solid var(--accent); border-color: var(--ink); }
.row .product { flex: 1 1 220px; min-width: 0; }
.row .size { flex: 0 0 150px; }
.row .qty { flex: 0 0 80px; }
.row .weight { flex: 1; max-width: 200px; }
.row .unit { color: var(--muted); font-size: 14px; }
.row .num { color: var(--muted); font-size: 13px; font-weight: 600; width: 22px; }
.row .remove { border: 0; background: none; color: #999; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.row .remove:hover { color: var(--warn); }
.invalid { border-color: var(--warn) !important; }

.link-btn { margin-top: 14px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600;
            color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 28px; }
button.primary { font: inherit; font-weight: 700; font-size: 16px; background: var(--ink); color: var(--accent);
                 border: 0; border-radius: 10px; padding: 14px 28px; cursor: pointer; }
button.primary:hover { background: #222; }
button.ghost { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 1px solid #ccc;
               border-radius: 10px; padding: 13px 20px; cursor: pointer; }
.example { margin-left: auto; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.example select { font-size: 13px; padding: 8px 10px; }

.msg { border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.msg.info { background: var(--soft); border-left: 4px solid var(--accent); }
.msg.bad { background: #fdf0ef; border-left: 4px solid var(--warn); }
.msg ul { padding-left: 18px; }
.msg li + li { margin-top: 6px; }

.result-title { font-size: 20px; font-weight: 800; margin: 6px 0 14px; }
.option { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.option-head { background: var(--ink); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700;
               letter-spacing: 0.4px; text-transform: uppercase; }
.ship { display: flex; gap: 16px; padding: 16px; border-top: 1px solid var(--line); align-items: flex-start; }
.option-head + .ship { border-top: 0; }
.ship-label { flex: 0 0 120px; }
.ship-label strong { display: block; font-size: 16px; }
.ship-label span { font-size: 12px; color: var(--muted); }
.ship ul { list-style: none; flex: 1; }
.ship li { font-size: 16px; font-weight: 600; padding: 3px 0; }
.ship li small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
       background: var(--accent); color: var(--ink); margin-left: 6px; vertical-align: middle; }

@media (max-width: 640px) {
  .row { flex-wrap: wrap; }
  .row .size { flex: 1 1 120px; }
  .example { margin-left: 0; width: 100%; }
  .ship { flex-direction: column; gap: 6px; }
  .ship-label { flex: none; }
}
