/* Dynabrade Limited Lifetime Warranty – same design as Vendor PO Label Print (vendors/polabels) */
:root {
  /* Same palette as the Belt Calculator / Where to Buy pages */
  --orange: #f26a21;
  --orange-dark: #d9561a;
  --orange-soft: #fff1e8;
  --dark: #1f2129;
  --ink: #16181d;
  --muted: #5d636e;
  --line: #e3e6ea;
  --bg: #f4f5f7;
  --card: #ffffff;
  --error-bg: #fdecea;
  --error-ink: #8a1c13;
  --info-bg: #e8f1fb;
  --info-ink: #174a7c;
  --focus: #f26a21;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background:
    radial-gradient(800px 260px at 100% 0%, rgba(242, 106, 33, .35), transparent 70%),
    var(--dark);
  color: #fff;
  padding: 20px 0 104px;
}
.site-header__inner { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.site-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 26px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
}
.site-brand img { display: block; height: 44px; width: auto; }
.site-header__title {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.site-header__lead { color: #dfe2e7; font-size: 15px; margin: 0; }

.site-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 14px;
}
.site-user__who { display: inline-flex; align-items: center; gap: 10px; line-height: 1.25; }
.site-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.site-user__vendor { display: block; color: #b9bec7; font-size: 13px; }
.site-user__actions { display: inline-flex; align-items: center; gap: 14px; }
.site-user__actions form { margin: 0; }
.site-user__actions a, .site-user__signout {
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.site-user__actions a:hover, .site-user__signout:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
.site-user__actions a:focus-visible, .site-user__signout:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.site-main { flex: 1; width: 100%; max-width: 640px; margin: -76px auto 0; padding: 0 16px 40px; position: relative; z-index: 2; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 16px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 24px 50px -20px rgba(16, 24, 40, .25), 0 2px 6px rgba(16, 24, 40, .04);
}
.card--narrow { max-width: 420px; margin: 0 auto; }

h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 16px 0 0; }
.required { color: #c62828; }
.d-none { display: none !important; }

.form { display: grid; gap: 14px; margin-top: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.field input[readonly] { background: #f0f2f5; color: var(--muted); }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(242, 106, 33, .15); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.field .hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.field .input-short { width: 8em; }
.inline-fields { display: flex; align-items: center; gap: 10px; }

@media (min-width: 560px) {
  .form--label .field { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 12px; }
  .form--label .field label { margin: 0; }
}

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.btn {
  display: inline-block;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: #fff; border-color: #b9c0ca; color: var(--ink); }
.btn-secondary:hover { background: #f0f2f5; }
.btn-link { background: none; border: 0; padding: 0; color: var(--orange-dark); text-decoration: underline; font-weight: 600; }
.btn-block { width: 100%; }

.alert { padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.alert--error { background: var(--error-bg); color: var(--error-ink); }
.alert--success { background: #e7f6ec; color: #1e5b33; }
.alert--info { background: var(--info-bg); color: var(--info-ink); }
.plain-list { margin: 0; padding-left: 18px; }

@media (max-width: 559.98px) {
  .site-header { padding: 16px 0 92px; }
  .site-header__top { margin-bottom: 20px; }
  .site-brand { padding: 6px 12px; }
  .site-brand img { height: 36px; }
  .site-user { width: 100%; justify-content: space-between; }
  .card { padding: 24px 20px; }
}

/* ==========================================================
   LTW additions
   ========================================================== */

/* Wider pages (forms with two columns, tool list) */
body.is-wide .site-header__inner, body.is-wide .site-main { max-width: 920px; }

.card + .card { margin-top: 20px; }
.card--note { background: #fff; }
.card h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.card-head h1, .card-head h2 { margin: 0; }
.count-badge {
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.mb-1 { margin-bottom: 10px; }
.small-top { margin: -4px 0 0; font-size: 14px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.btn-small { padding: 6px 14px; font-size: 14px; }
a { color: var(--orange-dark); }

/* Form sections and grid */
.form-section {
  font-size: 15px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 14px 0 -2px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.form > .form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px !important; }
.form-section .optional { font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.field select { height: 42px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input, .field select { min-height: 42px; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(242, 106, 33, .15); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field-error { margin: 4px 0 0; font-size: 13px; color: #c62828; font-weight: 500; }
.field select.input-short { width: 10em; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23d9561a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.prose p { margin: 0 0 14px; line-height: 1.6; }
.prose h1 { margin-bottom: 14px; }

/* Account summary */
.summary { display: grid; gap: 10px; margin: 12px 0 0; }
@media (min-width: 640px) { .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.summary div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.summary dt { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.summary dd a { font-weight: 600; font-size: 13px; margin-left: 6px; }

/* Tool table */
.table-wrap { overflow-x: auto; margin: 8px -4px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #f8f9fa;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Footer */
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--muted); }

/* Phones: tool table as cards */
@media (max-width: 639.98px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin-bottom: 10px; }
  .table td { border: 0; padding: 6px 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-weight: 500; text-align: left; }
  .nowrap { white-space: normal; }
}
