:root {
  --primary: #0f4c81;
  --primary-dark: #0a3558;
  --accent: #2a9d8f;
  --accent-hover: #238276;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --bg: #ffffff;
  --bg-subtle: #f4f6f8;
  --border: #e2e6ea;
  --shadow-sm: 0 1px 3px rgba(15, 76, 129, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 76, 129, 0.12);
  --radius: 12px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.logo img {
  max-height: 72px;
  width: auto;
}

.header-utils {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 0;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  width: 100%;
}

.util-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.util-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.util-links a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  text-decoration: none;
}

.util-links .sep { color: var(--border); user-select: none; }

.btn-checkout {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.btn-checkout:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}

.login-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-mini-cart {
  align-self: flex-end;
  width: 100%;
  min-width: 220px;
  max-width: 260px;
  margin-top: 0.15rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: right;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.header-mini-cart > table {
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: inherit !important;
  font-family: inherit !important;
}

.header-mini-cart table table {
  width: 100% !important;
  margin: 0 0 0.3rem;
  border-collapse: collapse;
  font-size: inherit !important;
  font-family: inherit !important;
}

.header-mini-cart td {
  padding: 0.1rem 0 !important;
  vertical-align: top;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: normal !important;
  font-style: normal !important;
  color: inherit;
  text-align: left;
}

.header-mini-cart td.cartminilinks {
  padding: 0 !important;
}

.header-mini-cart td.cartminilinks > br {
  display: none;
}

.header-mini-cart td.cartminilinks > table {
  padding-bottom: 0.3rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px dashed var(--border);
}

.header-mini-cart td.cartminilinks > table:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.header-mini-cart td.cartminilinks table tr td:first-child {
  width: 1.4rem;
  padding-right: 0.35rem !important;
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-mini-cart td.cartminilinks table tr td:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.header-mini-cart td.cartminilinks table tr:nth-child(2) td:last-child {
  color: var(--text-muted);
  font-size: 0.68rem;
  padding-top: 0.05rem !important;
}

.header-mini-cart td.cartminilinks table table td {
  font-size: 0.68rem !important;
  padding: 0 !important;
}

.header-mini-cart a.cartminilinks,
.header-mini-cart .cartminilinks a,
.header-mini-cart a {
  font-size: inherit !important;
  font-weight: 500 !important;
  color: var(--primary) !important;
  text-decoration: none;
  line-height: 1.3;
}

.header-mini-cart a.cartminilinks:hover,
.header-mini-cart .cartminilinks a:hover,
.header-mini-cart a:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}

.header-mini-cart td.cartsubtotalminicart {
  padding-top: 0.4rem !important;
  font-weight: 600;
  font-size: inherit !important;
  text-align: right !important;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.header-mini-cart .cartsubtotalminicart hr {
  display: none;
}

.header-mini-cart td.cartsubtotalminicart a {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent) !important;
}

/* ── Navigation ── */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  list-style: none;
}

.nav-inner a {
  display: block;
  padding: 0.9rem 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1565a0 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  line-height: 1.2;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.4);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
}

.hero-phone {
  font-size: 1.05rem;
}

.hero-phone strong {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-phone a {
  color: #fff;
  text-decoration: none;
}

.hero-phone a:hover { text-decoration: underline; }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.hero-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-card p {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* ── Trust strip ── */
.trust-strip {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
}

.trust-items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.trust-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Quick tools ── */
.quick-tools {
  padding: 2.5rem 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.tool-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

.search-row input[type="text"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.search-row input[type="text"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.search-row button {
  padding: 0.3rem 0.75rem;
  line-height: 1.2;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.search-row button:hover { background: var(--primary-dark); }

.tool-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.compat-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
  box-sizing: border-box;
  min-height: 0;
  height: calc(0.65rem * 2 + 1.25 * 0.95rem + 2px);
  background: #fff;
  cursor: pointer;
}

.compat-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ── Section headings ── */
.section {
  padding: 3rem 0;
}

.section-alt { background: var(--bg-subtle); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* ── Category cards ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-subtle);
}

.category-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.category-card .arrow {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Top sellers ── */
.sellers-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.seller-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seller-list li a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.seller-list li a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  text-decoration: none;
}

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-card-body {
  padding: 1.25rem;
}

.cart-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sidebar-links a {
  font-size: 0.88rem;
  font-weight: 500;
}

.support-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

.support-photo img {
  width: 100%;
  height: auto;
}

.seals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.seals img {
  max-height: 56px;
  width: auto;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Help section ── */
.help-section {
  background: linear-gradient(to bottom, var(--bg-subtle), var(--bg));
}

.help-content {
  max-width: 48rem;
  margin: 0 auto;
}

.help-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.help-content p,
.help-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.help-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.help-content a { font-weight: 500; }

/* Categories page — blank check selection guide (wider than homepage help) */
.blank-check-guide {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.help-content--wide {
  max-width: min(100%, 56rem);
}

.blank-check-guide .help-content--wide h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--text);
}

.blank-check-guide .help-content--wide p,
.blank-check-guide .help-content--wide blockquote p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.blank-check-guide blockquote {
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--border);
}

@media (min-width: 992px) {
  .help-content--wide {
    max-width: min(100%, 62rem);
  }
}

/* Legacy 676px table fallback (before HowToSelectBlankChecks.htm is updated) */
body.inner-layout > div:has(table[width="676"]) {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(to bottom, var(--bg-subtle), var(--bg));
  border-top: 1px solid var(--border);
}

body.inner-layout table[width="676"] {
  display: block;
  width: 100% !important;
  max-width: min(100%, 62rem);
  margin: 0 auto;
}

body.inner-layout table[width="676"] tbody,
body.inner-layout table[width="676"] tr,
body.inner-layout table[width="676"] td {
  display: block;
  width: 100% !important;
}

body.inner-layout table[width="676"] td {
  max-width: min(100%, 62rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

body.inner-layout table[width="676"] p {
  margin-bottom: 0.85rem;
}

body.inner-layout table[width="676"] blockquote {
  margin: 0 0 1rem 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
}

.help-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.help-cta p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.help-cta a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.payment-icons img {
  max-height: 28px;
  opacity: 0.9;
}

.prototype-banner {
  background: #fef3cd;
  color: #856404;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid #ffc107;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .sellers-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; text-align: center; }
  .header-utils { align-items: center; }
  .header-actions { align-items: center; }
  .header-mini-cart {
    min-width: 0;
    max-width: min(100%, 280px);
    align-self: center;
  }
  .util-links { justify-content: center; }

  .nav-toggle { display: block; }

  .nav-inner {
    display: none;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .nav-inner.open { display: flex; }

  .nav-inner a { padding: 0.75rem 1.5rem; }

  .tools-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
}

/* VP-ASP dynamic blocks on modern homepage */
.modern-top-sellers table { width: 100%; border: 0; border-collapse: separate; border-spacing: 0 0.75rem; }
.modern-top-sellers .leftmenumain { background: transparent; font-weight: normal; text-align: left; }
.modern-top-sellers .leftmenumain a {
  display: block; padding: 1rem 1.25rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; font-weight: 500; font-size: 0.92rem; color: var(--text); text-decoration: none;
}
.modern-top-sellers .leftmenumain a:hover {
  border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--primary); text-decoration: none;
}
.tool-card select.txtfielddropdown {
  width: 100% !important;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
  box-sizing: border-box;
  min-height: 0;
  height: calc(0.65rem * 2 + 1.25 * 0.95rem + 2px);
}
.sidebar-cart-dynamic { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.sidebar-cart-dynamic a { font-weight: 500; }

/* Phase 2 — inner VP-ASP pages (products, cart, checkout, etc.) */
.inner-page {
  padding: 2rem 0 3rem;
  background: var(--bg);
}

.inner-content {
  max-width: var(--max-width);
  width: 100%;
}

.vp-legacy-content .breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.vp-legacy-content .breadcrumb a {
  font-weight: 500;
  color: var(--primary);
}

.vp-legacy-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.vp-legacy-content table {
  max-width: 100%;
}

.vp-legacy-content img {
  height: auto;
}

/* VP-ASP category grid (shopdisplaycategories.asp) — use vp-category-* not category-grid (homepage conflict) */
.vp-legacy-content table.vp-category-table {
  display: table;
  table-layout: fixed;
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  border-collapse: separate;
  border-spacing: 0.75rem 0;
}

.vp-legacy-content td.vp-category-cell {
  width: 33.333%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.25rem 1.25rem;
  vertical-align: top;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  --vp-category-width: 90%;
}

.vp-legacy-content .vp-category-title {
  margin: 0 auto 0.35rem;
  width: var(--vp-category-width);
  max-width: var(--vp-category-width);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.vp-legacy-content .vp-category-title a {
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.vp-legacy-content .vp-category-image {
  margin: 0.5rem auto;
  width: var(--vp-category-width);
  max-width: var(--vp-category-width);
}

.vp-legacy-content .vp-category-image a {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 280px;
}

.vp-legacy-content .vp-category-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  border-radius: 6px;
}

.vp-legacy-content .vp-category-desc {
  margin: 0.35rem auto 0;
  width: var(--vp-category-width);
  max-width: var(--vp-category-width);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Legacy category markup fallback */
.vp-legacy-content center {
  display: block;
  width: 100%;
  max-width: 100%;
}

.vp-legacy-content table:has(td[valign="top"][align="center"] img) {
  table-layout: fixed;
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  border-collapse: separate;
  border-spacing: 0.75rem 0;
}

.vp-legacy-content td[valign="top"][align="center"]:has(img) {
  width: 33.333%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.25rem 1.25rem;
  vertical-align: top;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Category images — fill each column */
.vp-legacy-content td[valign="top"][align="center"]:has(img) img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  max-height: 280px;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  object-position: center;
  margin: 0.5rem auto;
  border-radius: 6px;
}

.vp-legacy-content td[valign="top"][align="center"]:has(img) a {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.vp-legacy-content td[valign="top"][align="center"]:has(img) font {
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  font-family: inherit !important;
}

.vp-legacy-content td[valign="top"][align="center"]:has(img) p[align="center"] {
  max-width: 100%;
  width: 100%;
  margin: 0.35rem auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.vp-legacy-content p[align="center"] {
  margin: 0.5rem 0;
}

@media (max-width: 767px) {
  .vp-legacy-content td.vp-category-cell {
    display: table-cell;
    width: 33.333%;
  }

  .vp-legacy-content td.vp-category-cell {
    --vp-category-width: 85%;
  }

  .vp-legacy-content .vp-category-image a {
    max-height: 200px;
  }

  .vp-legacy-content .vp-category-image img {
    max-height: 200px;
  }

  .vp-legacy-content td[valign="top"][align="center"]:has(img) {
    display: block;
    width: 100%;
  }

  .vp-legacy-content td[valign="top"][align="center"]:has(img) img {
    width: 200px !important;
    max-width: 100%;
    height: 160px !important;
    max-height: 160px;
    aspect-ratio: auto;
  }
}

.vp-legacy-content .menuhdr,
.vp-legacy-content td.menuhdr {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 8px 8px 0 0;
}

.vp-legacy-content .dashed,
.vp-legacy-content table.dashed {
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: var(--bg);
}

/* Product detail + cart — tier pricing table (shopexd.asp, shopaddtocart.asp)
   VP-ASP markup: table.dashed > td.menuhdr[colspan="3"|"4"] + qty/total/% grid
   Dual selectors: :has() for modern browsers + td[width] fallback (no :has). */
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]),
.vp-legacy-content table.dashed:has(td[width="67"]) {
  display: table !important;
  width: 100% !important;
  max-width: 340px;
  margin: 0.75rem auto;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Increments note (row 2) */
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(2) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(2) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(2) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(2) > td {
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center !important;
  line-height: 1.3;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(2) td div,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(2) td div,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(2) td div,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(2) td div {
  text-align: center !important;
}

/* Column headers + data rows — override align=center and inline italics */
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(n+3) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(n+3) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) > td,
.vp-legacy-content table.dashed td[width="67"],
.vp-legacy-content table.dashed td[width="64"] {
  padding: 0.2rem 0.35rem;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  vertical-align: middle;
  font-size: 0.875rem !important;
  font-style: normal !important;
  line-height: 1.25;
}

/* Percent Off (+ Per Unit on 4-col) — override VP-ASP inline font-size:10px */
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:nth-child(4),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) > td:nth-child(4),
.vp-legacy-content table.dashed td[width="64"] {
  font-size: 0.875rem !important;
  white-space: nowrap;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(n+3) td div,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(n+3) td div,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) td div,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) td div,
.vp-legacy-content table.dashed td[width="67"] div,
.vp-legacy-content table.dashed td[width="64"] div {
  text-align: right !important;
  font-style: normal !important;
  font-size: inherit !important;
  padding: 0 !important;
  line-height: inherit;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(3) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(3) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(3) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(3) > td,
.vp-legacy-content table.dashed > tbody > tr:nth-child(3) > td[width="67"],
.vp-legacy-content table.dashed > tbody > tr:nth-child(3) > td[width="64"],
.vp-legacy-content table.dashed > tr:nth-child(3) > td[width="67"],
.vp-legacy-content table.dashed > tr:nth-child(3) > td[width="64"] {
  font-weight: 600;
  font-size: 0.875rem !important;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(3) > td:nth-child(4),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(3) > td:nth-child(4) {
  white-space: nowrap;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(3) > td:nth-child(1),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(3) > td:nth-child(2),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(3) > td:nth-child(1),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(3) > td:nth-child(2),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(3) > td:nth-child(1),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(3) > td:nth-child(2),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(3) > td:nth-child(1),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(3) > td:nth-child(2) {
  font-size: 0.875rem !important;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(even):nth-child(n+4) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(even):nth-child(n+4) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(even):nth-child(n+4) > td,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(even):nth-child(n+4) > td {
  background: var(--bg-subtle);
}

/* 3-column cart price levels */
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(n+3) > td:first-child,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(n+3) > td:first-child {
  width: 30%;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(n+3) > td:nth-child(2),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(n+3) > td:nth-child(2) {
  width: 40%;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tbody > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) > tr:nth-child(n+3) > td:nth-child(3) {
  width: 30%;
}

/* 4-column product detail */
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:first-child,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) > td:first-child,
.vp-legacy-content table.dashed td[width="67"] {
  width: 22%;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:nth-child(2),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tbody > tr:nth-child(n+3) > td:nth-child(4),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) > td:nth-child(2),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) > td:nth-child(3),
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) > tr:nth-child(n+3) > td:nth-child(4),
.vp-legacy-content table.dashed td[width="64"] {
  width: 26%;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) a,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) a,
.vp-legacy-content table.dashed td[width="67"] a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]) a:hover,
.vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]) a:hover,
.vp-legacy-content table.dashed td[width="67"] a:hover {
  text-decoration: underline;
}

/* Cart — Show Price Levels popup (ShopCCSCommon.asp MinListGenCheckout + showMoreInfo JS) */
.vp-legacy-content table.dashed_headerless {
  display: table !important;
  width: 100% !important;
  max-width: 260px;
  margin: 0.25rem auto;
  table-layout: fixed;
  border-collapse: collapse;
}

.vp-legacy-content table.cart-price-tiers,
.vp-legacy-content table.dashed_headerless table,
.vp-legacy-content td[id^="hiddentr"] table,
.vp-legacy-content td[name^="hiddentr"] table {
  display: table !important;
  width: 100% !important;
  max-width: 260px;
  margin: 0.35rem auto 0;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
}

.vp-legacy-content table.cart-price-tiers td,
.vp-legacy-content table.dashed_headerless table td,
.vp-legacy-content td[id^="hiddentr"] table td,
.vp-legacy-content td[name^="hiddentr"] table td,
.vp-legacy-content table.cart-price-tiers td[width="67"],
.vp-legacy-content table.cart-price-tiers td[width="64"],
.vp-legacy-content table.dashed_headerless table td[width="67"],
.vp-legacy-content table.dashed_headerless table td[width="64"] {
  padding: 0.2rem 0.35rem !important;
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  vertical-align: middle;
  font-size: 0.875rem !important;
  font-style: normal !important;
  line-height: 1.25;
}

.vp-legacy-content table.cart-price-tiers tr:first-child td,
.vp-legacy-content table.dashed_headerless table tr:first-child td,
.vp-legacy-content td[id^="hiddentr"] table tr:first-child td,
.vp-legacy-content td[name^="hiddentr"] table tr:first-child td {
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.vp-legacy-content table.cart-price-tiers tr:nth-child(even):nth-child(n+2) td,
.vp-legacy-content table.dashed_headerless table tr:nth-child(even):nth-child(n+2) td,
.vp-legacy-content td[id^="hiddentr"] table tr:nth-child(even):nth-child(n+2) td,
.vp-legacy-content td[name^="hiddentr"] table tr:nth-child(even):nth-child(n+2) td {
  background: var(--bg-subtle);
}

.vp-legacy-content table.cart-price-tiers td div,
.vp-legacy-content table.dashed_headerless table td div,
.vp-legacy-content td[id^="hiddentr"] table td div,
.vp-legacy-content td[name^="hiddentr"] table td div {
  text-align: right !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-style: normal !important;
}

.vp-legacy-content table.cart-price-tiers td span,
.vp-legacy-content table.dashed_headerless table td span,
.vp-legacy-content td[id^="hiddentr"] table td span,
.vp-legacy-content td[name^="hiddentr"] table td span {
  font-size: inherit !important;
  font-style: normal !important;
}

.vp-legacy-content table.cart-price-tiers td:nth-child(1),
.vp-legacy-content table.dashed_headerless table td:nth-child(1),
.vp-legacy-content td[id^="hiddentr"] table td:nth-child(1),
.vp-legacy-content td[name^="hiddentr"] table td:nth-child(1) {
  width: 30%;
}

.vp-legacy-content table.cart-price-tiers td:nth-child(2),
.vp-legacy-content table.dashed_headerless table td:nth-child(2),
.vp-legacy-content td[id^="hiddentr"] table td:nth-child(2),
.vp-legacy-content td[name^="hiddentr"] table td:nth-child(2) {
  width: 40%;
}

.vp-legacy-content table.cart-price-tiers td:nth-child(3),
.vp-legacy-content table.dashed_headerless table td:nth-child(3),
.vp-legacy-content td[id^="hiddentr"] table td:nth-child(3),
.vp-legacy-content td[name^="hiddentr"] table td:nth-child(3) {
  width: 30%;
}

.vp-legacy-content table.cart-price-tiers a,
.vp-legacy-content table.dashed_headerless table a,
.vp-legacy-content td[id^="hiddentr"] table a,
.vp-legacy-content td[name^="hiddentr"] table a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.vp-legacy-content table.cart-price-tiers a:hover,
.vp-legacy-content table.dashed_headerless table a:hover,
.vp-legacy-content td[id^="hiddentr"] table a:hover,
.vp-legacy-content td[name^="hiddentr"] table a:hover {
  text-decoration: underline;
}

.vp-legacy-content .leftmenumain,
.vp-legacy-content td.leftmenumain {
  background: transparent;
  padding: 0.35rem 0;
}

.vp-legacy-content .leftmenumain a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.vp-legacy-content .leftmenumain a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.vp-legacy-content input[type="text"],
.vp-legacy-content input[type="password"],
.vp-legacy-content select,
.vp-legacy-content textarea,
.vp-legacy-content .searchfield,
.vp-legacy-content .txtfielddropdown,
.vp-legacy-content input.txtfield {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
  box-sizing: border-box;
  max-width: 100%;
  background-color: #fff;
  color: var(--text);
}

/* Single-line selects — reset native chrome so height matches text inputs (checkout, account, etc.) */
.site-main select:not([multiple]):where(:not([size]), [size="1"]),
.site-main select.txtfielddropdown:not([multiple]):where(:not([size]), [size="1"]),
.vp-legacy-content select:not([multiple]):where(:not([size]), [size="1"]),
.vp-legacy-content select.txtfielddropdown:not([multiple]):where(:not([size]), [size="1"]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 0;
  max-height: calc(0.55rem * 2 + 1.25 * 0.95rem + 2px);
  height: calc(0.55rem * 2 + 1.25 * 0.95rem + 2px);
  padding-right: 1.75rem;
  vertical-align: middle;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6370' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.75rem;
  cursor: pointer;
}

/* VP-ASP action buttons — compact blue (overrides legacy SecureChecks.css .submitbtn gray) */
body.inner-layout .site-main input.submitbtn,
body.inner-layout .site-main input[type="submit"],
body.inner-layout .site-main input[type="button"]:not(.nav-toggle),
body.inner-layout .site-main input[type="reset"],
body.inner-layout .site-main button:not(.nav-toggle),
body.inner-layout .vp-legacy-content input.submitbtn,
body.inner-layout .vp-legacy-content input[type="submit"],
body.inner-layout .vp-legacy-content input[type="button"],
body.inner-layout .vp-legacy-content input[type="reset"],
body.inner-layout .vp-legacy-content button:not(.nav-toggle),
body.page-checkout input.submitbtn,
body.page-checkout input[type="submit"],
body.page-checkout input[type="button"],
body.page-checkout input[type="reset"],
body.inner-layout input.submitbtn,
body.page-checkout input.submitbtn,
input.submitbtn {
  padding: 0.3rem 0.75rem !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
  border: none !important;
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  font-family: inherit !important;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

body.inner-layout .site-main input.submitbtn:hover,
body.inner-layout .site-main input[type="submit"]:hover,
body.inner-layout .site-main input[type="button"]:not(.nav-toggle):hover,
body.inner-layout .site-main input[type="reset"]:hover,
body.inner-layout .site-main button:not(.nav-toggle):hover,
body.inner-layout .vp-legacy-content input.submitbtn:hover,
body.inner-layout .vp-legacy-content input[type="submit"]:hover,
body.inner-layout .vp-legacy-content input[type="button"]:hover,
body.inner-layout .vp-legacy-content input[type="reset"]:hover,
body.inner-layout .vp-legacy-content button:not(.nav-toggle):hover,
body.page-checkout input.submitbtn:hover,
body.page-checkout input[type="submit"]:hover,
body.page-checkout input[type="button"]:hover,
body.page-checkout input[type="reset"]:hover,
body.inner-layout input.submitbtn:hover,
body.page-checkout input.submitbtn:hover,
input.submitbtn:hover {
  background: var(--primary-dark) !important;
  background-color: var(--primary-dark) !important;
  color: #fff !important;
}

body.page-checkout center input.submitbtn,
body.page-checkout p input.submitbtn,
body.page-checkout form input.submitbtn {
  margin: 0.15rem 0.25rem;
}

.vp-legacy-content h1,
.vp-legacy-content h2,
.vp-legacy-content h3 {
  color: var(--primary);
  margin: 1rem 0 0.75rem;
}

.vp-legacy-content form {
  margin: 0.75rem 0;
}

/* shoppreprinted.asp — compact fields; preserve legacy table layout */
.vp-legacy-content form#preprinted,
.vp-legacy-content form[name="preprinted"] {
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 676px;
}

.vp-legacy-content form#preprinted table,
.vp-legacy-content form[name="preprinted"] table {
  display: table !important;
  table-layout: fixed;
  width: 100%;
  max-width: 676px;
  border-collapse: collapse;
}

.vp-legacy-content form#preprinted tbody,
.vp-legacy-content form#preprinted thead,
.vp-legacy-content form#preprinted tfoot,
.vp-legacy-content form[name="preprinted"] tbody,
.vp-legacy-content form[name="preprinted"] thead,
.vp-legacy-content form[name="preprinted"] tfoot {
  display: table-row-group !important;
}

.vp-legacy-content form#preprinted tr,
.vp-legacy-content form[name="preprinted"] tr {
  display: table-row !important;
}

.vp-legacy-content form#preprinted td,
.vp-legacy-content form#preprinted th,
.vp-legacy-content form[name="preprinted"] td,
.vp-legacy-content form[name="preprinted"] th {
  display: table-cell !important;
  vertical-align: top;
  padding: 2px 4px;
}

.vp-legacy-content form#preprinted input[type="text"],
.vp-legacy-content form#preprinted input[type="password"],
.vp-legacy-content form#preprinted select,
.vp-legacy-content form#preprinted textarea,
.vp-legacy-content form[name="preprinted"] input[type="text"],
.vp-legacy-content form[name="preprinted"] input[type="password"],
.vp-legacy-content form[name="preprinted"] select,
.vp-legacy-content form[name="preprinted"] textarea {
  padding: 1px 4px;
  font-size: 0.75rem !important;
  line-height: 1.2;
  border-radius: 3px;
  max-width: 100%;
  width: auto;
  box-sizing: border-box;
}

.vp-legacy-content form#preprinted select:not([multiple]):where(:not([size]), [size="1"]),
.vp-legacy-content form[name="preprinted"] select:not([multiple]):where(:not([size]), [size="1"]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 2px 2px;
  min-height: 0;
  height: calc(2px * 2 + 1.2 * 0.75rem + 2px);
  padding-right: 1.25rem;
  vertical-align: middle;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6370' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  background-size: 0.6rem;
  cursor: pointer;
}

.vp-legacy-content form#preprinted input[type="submit"],
.vp-legacy-content form#preprinted input[type="button"],
.vp-legacy-content form[name="preprinted"] input[type="submit"],
.vp-legacy-content form[name="preprinted"] input[type="button"],
.vp-legacy-content form#preprinted input.submitbtn,
.vp-legacy-content form[name="preprinted"] input.submitbtn {
  padding: 0.25rem 0.6rem !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

.vp-legacy-content form#preprinted font,
.vp-legacy-content form[name="preprinted"] font {
  font-size: inherit !important;
}

/* shoppreprinted.asp — center Continue at bottom of form */
.vp-legacy-content form#preprinted > input.submitbtn[name="Action"],
.vp-legacy-content form[name="preprinted"] > input.submitbtn[name="Action"],
.vp-legacy-content form#preprinted > input[type="submit"][name="Action"],
.vp-legacy-content form[name="preprinted"] > input[type="submit"][name="Action"] {
  display: block;
  margin: 1rem auto 0;
}

/* Checkout — center Continue (shopcustomer.asp form[name=shipping]) */
.vp-legacy-content form[name="shipping"] .checkout-submit-row,
.vp-legacy-content form[name="shipping"] p.checkout-submit-row {
  text-align: center !important;
  margin: 1rem 0;
}

.vp-legacy-content form[name="shipping"] .checkout-submit-row input.submitbtn,
.vp-legacy-content form[name="shipping"] input.submitbtn[type="submit"] {
  display: inline-block;
  margin: 0 auto;
}

/* shopcustomer.asp / upsdbworld.asp — checkbox gap, table cell padding, shipping headers */
.vp-legacy-content form[name="shipping"] input[type="checkbox"] {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.vp-legacy-content form[name="shipping"] table td {
  padding: 0.4rem 0.65rem;
  vertical-align: middle;
}

.vp-legacy-content form[name="shipping"] td.menureverse,
.vp-legacy-content form[name="shipping"] td.menubdr,
body.page-checkout .vp-legacy-content td.menubdr,
body.page-checkout .vp-legacy-content td.menureverse,
body.page-checkout .vp-legacy-content table[border="1"] > tbody > tr > td {
  padding: 0.65rem 1rem !important;
  vertical-align: middle;
}

/* Shop_CustomerCheckout.asp — compact selects to match text fields */
body.page-checkout .vp-legacy-content form input[type="text"],
body.page-checkout .vp-legacy-content form input[type="password"],
body.page-checkout .vp-legacy-content form select,
body.page-checkout .vp-legacy-content form select.txtfielddropdown {
  padding: 0.35rem 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #fff;
  color: var(--text);
}

body.page-checkout .vp-legacy-content form select:not([multiple]):where(:not([size]), [size="1"]),
body.page-checkout .vp-legacy-content form select.txtfielddropdown:not([multiple]):where(:not([size]), [size="1"]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: calc(0.35rem * 2 + 1.2 * 0.875rem + 2px) !important;
  max-height: calc(0.35rem * 2 + 1.2 * 0.875rem + 2px) !important;
  min-height: 0 !important;
  padding-right: 1.75rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6370' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.75rem;
}

/* Shop_CustomerCheckout.asp — payment form label/input column alignment */
body.page-checkout .vp-legacy-content table.checkout-payment-fields,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table {
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
  display: table !important;
}

body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center {
  display: block;
  text-align: left;
  width: 100%;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields col.checkout-payment-label {
  width: 13.5rem;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields col.checkout-payment-input {
  width: 20rem;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields tr,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table tr {
  display: table-row !important;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields td,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table td {
  display: table-cell !important;
  padding: 0.4rem 0.5rem;
  vertical-align: middle;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields td[width="150"],
body.page-checkout .vp-legacy-content table.checkout-payment-fields tr > td:first-child,
body.page-checkout .vp-legacy-content table.checkout-payment-fields td.checkout-payment-label,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table td[width="150"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table tr > td:first-child {
  width: 13.5rem !important;
  text-align: right !important;
  padding-right: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  vertical-align: middle;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields tr > td:last-child,
body.page-checkout .vp-legacy-content table.checkout-payment-fields td[align="left"]:not([width="150"]),
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table tr > td:last-child {
  width: 20rem !important;
  text-align: left !important;
  vertical-align: middle;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields input[type="text"],
body.page-checkout .vp-legacy-content table.checkout-payment-fields input[type="password"],
body.page-checkout .vp-legacy-content table.checkout-payment-fields select,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table input[type="text"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table input[type="password"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table select {
  width: 100% !important;
  max-width: 20rem;
  display: block;
  margin: 0;
  box-sizing: border-box;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields input#strOcardCVN,
body.page-checkout .vp-legacy-content table.checkout-payment-fields input[name="strOcardCVN"],
body.page-checkout .vp-legacy-content table.checkout-payment-fields input[name="strvalidfrom"],
body.page-checkout .vp-legacy-content table.checkout-payment-fields input[name="strOcardissue"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table input#strOcardCVN,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table input[name="strOcardCVN"] {
  width: 5rem !important;
  max-width: 5rem;
  display: block;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields select[name="strocardmm"],
body.page-checkout .vp-legacy-content table.checkout-payment-fields select[name="strocardyy"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table select[name="strocardmm"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table select[name="strocardyy"] {
  width: 4.25rem !important;
  max-width: 4.25rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.15rem;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields #ccDeleteCard,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table #ccDeleteCard {
  display: inline-block;
  width: auto !important;
  max-width: none;
  margin: 0.35rem 0 0;
  vertical-align: middle;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields input[type="checkbox"],
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table input[type="checkbox"] {
  display: inline-block;
  width: auto !important;
  max-width: none;
  margin-right: 0.35rem;
  vertical-align: middle;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields font,
body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table font {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* Checkout flow — center submit in legacy left-aligned wrappers (other steps) */
body.page-checkout .vp-legacy-content table:not(.checkout-payment-fields) td[align="left"]:has(input.submitbtn),
body.page-checkout .vp-legacy-content div[align="left"]:has(input.submitbtn) {
  text-align: center !important;
}

body.page-checkout .vp-legacy-content table:not(.checkout-payment-fields) tr:has(input.submitbtn[type="submit"]) > td:has(input.submitbtn) {
  text-align: center !important;
}

/* Payment form labels — after submit-row rules; right-align to input column */
body.page-checkout .vp-legacy-content table.checkout-payment-fields td.checkout-payment-label,
body.page-checkout .vp-legacy-content table.checkout-payment-fields tr > td:first-child {
  text-align: right !important;
}

body.page-checkout .vp-legacy-content table.checkout-payment-fields td.checkout-payment-label font,
body.page-checkout .vp-legacy-content table.checkout-payment-fields tr > td:first-child font {
  display: block;
  width: 100%;
  text-align: right !important;
}

/* Shop_CustomerCheckout.asp — PayPal express button aligns with 90% payment tables */
body.page-checkout .vp-legacy-content table.checkout-paypal-row {
  margin-top: 0.75rem;
}

body.page-checkout .vp-legacy-content table.checkout-paypal-row td {
  padding: 0;
  text-align: right !important;
  vertical-align: top;
}

body.page-checkout .vp-legacy-content table.checkout-paypal-row form {
  margin: 0;
  padding: 0;
  display: inline-block;
  text-align: right;
}

body.page-checkout .vp-legacy-content table.checkout-paypal-row input[type="image"],
body.page-checkout .vp-legacy-content form[action*="paypal.com/cgi-bin/webscr"] input[type="image"] {
  display: inline-block !important;
  width: auto !important;
  max-width: none;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  vertical-align: top;
}

@media (max-width: 768px) {
  .inner-page { padding: 1.25rem 0 2rem; }
  .vp-legacy-content table.vp-category-table {
    display: table;
    overflow-x: visible;
  }
  .vp-legacy-content table:not(.vp-category-table):not(.dashed) { display: block; overflow-x: auto; }
  .vp-legacy-content table.dashed:has(td.menuhdr[colspan="3"]),
  .vp-legacy-content table.dashed:has(td.menuhdr[colspan="4"]),
  .vp-legacy-content table.dashed:has(td[width="67"]),
  .vp-legacy-content table.dashed_headerless,
  .vp-legacy-content table.cart-price-tiers {
    display: table !important;
    overflow-x: visible;
  }
  .vp-legacy-content form#preprinted table,
  .vp-legacy-content form[name="preprinted"] table {
    display: table !important;
    overflow-x: visible;
  }

  body.page-checkout .vp-legacy-content table.checkout-payment-fields,
  body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table {
    display: table !important;
    overflow-x: visible;
  }

  body.page-checkout .vp-legacy-content table.checkout-payment-fields tr,
  body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table tr {
    display: table-row !important;
  }

  body.page-checkout .vp-legacy-content table.checkout-payment-fields td,
  body.page-checkout .vp-legacy-content table[border="1"] form[name="form1"] center > table td {
    display: table-cell !important;
  }

  body.page-checkout .vp-legacy-content table.checkout-paypal-row {
    display: table !important;
    overflow-x: visible;
  }

  body.page-checkout .vp-legacy-content table.checkout-paypal-row tr {
    display: table-row !important;
  }

  body.page-checkout .vp-legacy-content table.checkout-paypal-row td {
    display: table-cell !important;
  }

  /* Checkout payment card icon row — do not collapse to block stack on mobile */
  body.page-checkout .vp-legacy-content table:has(img[src*="/c_"]),
  body.page-checkout .vp-legacy-content table:has(img[src*="visa"]),
  body.page-checkout .vp-legacy-content table:has(img[src*="master"]),
  body.page-checkout .vp-legacy-content table:has(img[src*="amex"]),
  body.page-checkout .vp-legacy-content table:has(img[src*="disc"]) {
    display: table !important;
    overflow-x: visible;
  }

  body.page-checkout .vp-legacy-content table:has(img[src*="/c_"]) tr,
  body.page-checkout .vp-legacy-content table:has(img[src*="visa"]) tr,
  body.page-checkout .vp-legacy-content table:has(img[src*="master"]) tr {
    display: table-row !important;
  }

  body.page-checkout .vp-legacy-content table:has(img[src*="/c_"]) td,
  body.page-checkout .vp-legacy-content table:has(img[src*="visa"]) td,
  body.page-checkout .vp-legacy-content table:has(img[src*="master"]) td {
    display: table-cell !important;
  }
}

/* Checkout — credit card brand icons horizontal (global img { display:block } stacks them) */
body.page-checkout .vp-legacy-content div[align="center"] img,
body.page-checkout .vp-legacy-content div[align="center"] > img,
body.inner-layout .vp-legacy-content div[align="center"] img,
body.page-checkout .vp-legacy-content img[src*="/c_"],
body.page-checkout .vp-legacy-content img[src*="visa"],
body.page-checkout .vp-legacy-content img[src*="master"],
body.page-checkout .vp-legacy-content img[src*="mc."],
body.page-checkout .vp-legacy-content img[src*="amex"],
body.page-checkout .vp-legacy-content img[src*="disc"],
body.page-checkout .vp-legacy-content img[src*="discover"],
body.page-checkout .vp-legacy-content td > img[src*="images/"],
body.page-checkout .vp-legacy-content center > img[src*="images/"],
body.page-checkout .vp-legacy-content p > img[src*="images/"],
body.page-checkout .vp-legacy-content td[valign="top"][align="center"]:has(img) img[src*="/c_"],
body.page-checkout .vp-legacy-content td[valign="top"][align="center"]:has(img) img[src*="visa"],
body.page-checkout .vp-legacy-content td[valign="top"][align="center"]:has(img) img[src*="master"],
body.page-checkout .vp-legacy-content td[valign="top"][align="center"]:has(img) img[src*="amex"],
body.page-checkout .vp-legacy-content td[valign="top"][align="center"]:has(img) img[src*="disc"],
body.page-checkout .vp-legacy-content td[valign="top"][align="center"]:has(img) img[src*="images/"] {
  display: inline !important;
  vertical-align: middle;
  width: auto !important;
  max-width: none !important;
  max-height: 32px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 0.2rem !important;
}

body.page-checkout .vp-legacy-content center:has(> img[src*="images/"]),
body.page-checkout .vp-legacy-content p:has(> img[src*="images/"]) {
  line-height: normal;
}

body.page-checkout .vp-legacy-content table:has(img[src*="/c_"]),
body.page-checkout .vp-legacy-content table:has(img[src*="visa"]),
body.page-checkout .vp-legacy-content table:has(img[src*="master"]),
body.page-checkout .vp-legacy-content table:has(img[src*="amex"]),
body.page-checkout .vp-legacy-content table:has(img[src*="disc"]) {
  display: table !important;
  width: auto !important;
  max-width: 100%;
  border-collapse: collapse;
}

body.page-checkout .vp-legacy-content table:has(img[src*="/c_"]) td,
body.page-checkout .vp-legacy-content table:has(img[src*="visa"]) td,
body.page-checkout .vp-legacy-content table:has(img[src*="master"]) td {
  display: table-cell !important;
  vertical-align: middle;
  padding: 0 0.15rem;
  white-space: nowrap;
}

/* Terminal button overrides — beats SecureChecks.css when injected mid-page on checkout templates */
body.inner-layout .submitbtn,
body.inner-layout input.submitbtn,
body.inner-layout button.submitbtn,
body.page-checkout .submitbtn,
body.page-checkout input.submitbtn,
body.page-checkout button.submitbtn,
.vp-legacy-content .submitbtn,
.vp-legacy-content input.submitbtn,
.vp-legacy-content button.submitbtn,
input.submitbtn[type="submit"],
input.submitbtn[type="button"],
input.submitbtn[type="reset"],
button.submitbtn {
  background: #0f4c81 !important;
  background-color: #0f4c81 !important;
  color: #fff !important;
  border: none !important;
}

body.inner-layout .submitbtn:hover,
body.inner-layout input.submitbtn:hover,
body.inner-layout button.submitbtn:hover,
body.page-checkout .submitbtn:hover,
body.page-checkout input.submitbtn:hover,
body.page-checkout button.submitbtn:hover,
.vp-legacy-content .submitbtn:hover,
input.submitbtn[type="submit"]:hover,
input.submitbtn[type="button"]:hover,
input.submitbtn[type="reset"]:hover,
button.submitbtn:hover {
  background: #0a3558 !important;
  background-color: #0a3558 !important;
  color: #fff !important;
}
