#categoriesTabs { background: none; border: 0; box-shadow: none; margin-top: .75rem; padding: .5rem .5rem .25rem; }
#categoriesTabs #navCatTabs { flex-wrap: wrap; justify-content: center; background: none; border: 0; }
#categoriesTabs .nav-link { flex: 0 0 auto; padding: .3rem .8rem; margin: .2rem !important; font-size: .9rem; white-space: nowrap; }

#productsListing td.data:first-child { padding: 5px 0; width: 200px; min-width: 200px; }
/* Bootstrap 4 .table-responsive on the <table> itself makes it display:block, so it only
   shrinks to its content. On desktop, render it as a real table so it fills the column;
   below 992px keep the horizontal scroll. */
@media (min-width: 992px) {
  #productsListing table.table-responsive { display: table; }
}

/* =====================================================================
   Category page descriptions (ct-)
   Wrap each description in <div class="ct-wrap"> and optionally add a
   theme class to change the accent color:
     ct-theme-brass | ct-theme-alum | ct-theme-ss | ct-theme-plastic
   ===================================================================== */
.ct-wrap { --ct-accent: #1f4e79; --ct-tint: #e9f1f8; }
.ct-wrap.ct-theme-brass   { --ct-accent: #8a6510; --ct-tint: #fbf3dc; }
.ct-wrap.ct-theme-alum    { --ct-accent: #5a3d8a; --ct-tint: #f3eefb; }
.ct-wrap.ct-theme-ss      { --ct-accent: #3d454d; --ct-tint: #eef0f2; }
.ct-wrap.ct-theme-plastic { --ct-accent: #0c5a8a; --ct-tint: #e8f4fd; }

/* Cards */
.ct-card { border: 0; border-top: 4px solid var(--ct-accent); border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.ct-card h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .75rem; }
.ct-card h5 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #495057; margin-bottom: .75rem; }
.ct-card p { line-height: 1.6; }

/* Chips */
.ct-chip { display: inline-block; padding: .3rem .75rem; margin: 0 .35rem .5rem 0; border-radius: 2rem; font-size: .8rem; font-weight: 700; background: var(--ct-tint); color: var(--ct-accent); }
.ct-chip-nomin { background: #eaf6ec; color: #1e7b34; }
/* material chips (outlined) */
.ct-chip-plastic, .ct-chip-ss, .ct-chip-brass, .ct-chip-alum { border: 1px solid transparent; }
.ct-chip-plastic { background: #e8f4fd; color: #0c5a8a; border-color: #b8dcf5; }
.ct-chip-ss      { background: #eef0f2; color: #3d454d; border-color: #cfd4d9; }
.ct-chip-brass   { background: #fbf3dc; color: #7a5b0c; border-color: #ecd99a; }
.ct-chip-alum    { background: #f3eefb; color: #5a3d8a; border-color: #d9cbef; }
.ct-chip-outline { border: 1px solid transparent; }  /* outline a non-material chip to match */

/* Callout note */
.ct-note { background: var(--ct-tint); border-left: 4px solid var(--ct-accent); border-radius: .5rem; padding: .75rem 1rem; font-weight: 600; margin: 1rem 0; }
/* note with a thumbnail on the left (nameplates page) */
.ct-note-media { display: flex; align-items: center; gap: 1rem; font-weight: normal; }
.ct-note-media img { max-width: 90px; height: auto; border-radius: .35rem; flex-shrink: 0; }
.ct-note .ct-big { font-weight: 700; color: var(--ct-accent); }

/* Action buttons */
.ct-actions { text-align: center; margin-top: 1.25rem; }
.ct-actions .btn, .ct-note .btn { border-radius: 2rem; margin: .25rem; font-weight: 600; padding-left: 1rem; padding-right: 1rem; }

/* "Typical uses" tiles */
.ct-uses { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ct-uses li { background: #f8f9fa; border: 1px solid #e3e6ea; border-radius: .5rem; padding: .45rem .8rem; font-weight: 600; }

/* Checkmark list */
.ct-list { list-style: none; padding: 0; margin: 0; }
.ct-list li { position: relative; padding: .35rem 0 .35rem 1.75rem; border-bottom: 1px dashed #e5e5e5; }
.ct-list li:last-child { border-bottom: 0; }
.ct-list li::before { content: "\2713"; position: absolute; left: 0; top: .4rem; width: 1.2rem; height: 1.2rem; line-height: 1.2rem; text-align: center; font-size: .75rem; font-weight: 700; color: #fff; background: #28a745; border-radius: 50%; }
.ct-list a { font-weight: 600; text-decoration: underline; }
.ct-list small { color: #6c757d; }

/* Image gallery */
.ct-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed #e5e5e5; }
.ct-gallery a, .ct-gallery span { display: block; background: #f8f9fa; border-radius: .5rem; padding: .5rem; transition: transform .2s, box-shadow .2s; }
.ct-gallery a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.ct-gallery img { max-width: 100%; height: auto; }
/* plain <img> tags without size attributes: cap the height */
.ct-gallery-thumbs img { width: auto; max-height: 140px; }
/* Gallery as its own row below a card: white tiles, no divider */
.ct-gallery-row { margin-top: 1rem; padding-top: 0; border-top: 0; }
.ct-gallery-row a, .ct-gallery-row span { background: #fff; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); }

/* Single-card layout: right column divided from the intro by a dashed rule */
.ct-split { border-top: 1px dashed #e5e5e5; padding-top: 1.25rem; }
@media (min-width: 992px) { .ct-split { border-top: 0; padding-top: 0; border-left: 1px dashed #e5e5e5; padding-left: 1.5rem; } }
/* Vertically center each column's content; columns stay full height so the divider does too */
@media (min-width: 992px) { .ct-split-row > [class*="col-"] { display: flex; flex-direction: column; justify-content: center; } }

/* Section heading below the intro cards */
.ct-section { font-size: 1.5rem; font-weight: 700; padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 2px solid #1f4e79; }

/* Material pills */
.ct-pill { display: inline-block; padding: .15rem .6rem; border-radius: 2rem; font-size: .8rem; font-weight: 600; background: #e8f4fd; color: #0c5a8a; }
.ct-pill-hd { background: #fff4e0; color: #8a5a00; }
.ct-pill-ss { background: #eef0f2; color: #3d454d; }
.ct-mats { margin: 1rem 0; }
.ct-mats > div { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed #e5e5e5; }
.ct-mats > div:last-child { border-bottom: 0; }
.ct-mats .ct-pill { flex: 0 0 9.5rem; text-align: center; align-self: flex-start; }

/* Comparison table */
.ct-table { margin: 0; }
.ct-table th, .ct-table td { vertical-align: middle; text-align: center; border-top: 1px solid #eef0f2; padding: .6rem .75rem; white-space: nowrap; }
.ct-table thead th { border-top: 0; border-bottom: 2px solid var(--ct-accent); color: var(--ct-accent); font-weight: 700; }
.ct-table tbody tr:hover { background: #fafbfc; }
.ct-table .ct-rowlabel { text-align: left; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #495057; }
.ct-table .ct-thumb img { max-height: 120px; width: auto; transition: transform .2s; }
.ct-table .ct-thumb a:hover img { transform: scale(1.05); }
.ct-table .btn { border-radius: 2rem; font-weight: 600; }

/* Product specs table (getProductSpecs.php) */
.product-specs { width: 100% !important; max-width: 100%; display: table; }

/* =====================================================================
   Shared page look (ct-page)
   Wrap any category description, category bottom content, EZ-Page or
   define page in <div class="ct-wrap ct-page"> and its plain Bootstrap
   markup picks up the same look as the ct- cards above. Add a theme
   class (ct-theme-brass etc.) to change the accent.
   ===================================================================== */
.ct-page { line-height: 1.6; }

/* Cards: same as .ct-card */
.ct-page .card { border: 0; border-top: 4px solid var(--ct-accent); border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); background: #fff; color: #212529; }
.ct-page .card > .card-body { padding: 1.5rem; }
.ct-page .card-header { background: var(--ct-tint); color: var(--ct-accent); border-bottom: 0; font-weight: 700; padding: .75rem 1.5rem; }
.ct-page .card-header:first-child { border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
.ct-page .card-header h1, .ct-page .card-header h2, .ct-page .card-header h3, .ct-page .card-header h4, .ct-page .card-header h5 { color: inherit; font-size: 1.1rem; margin: 0; padding: 0; border: 0; }
.ct-page .card-footer { background: transparent; border-top: 1px dashed #e5e5e5; padding: .75rem 1.5rem; }
.ct-page .card-footer:last-child { border-radius: 0 0 .75rem .75rem; }
/* Card inside a card: lighter callout panel */
.ct-page .card .card { border: 0; border-left: 4px solid var(--ct-accent); border-radius: .5rem; box-shadow: none; background: var(--ct-tint); }
.ct-page .card .card > .card-body { padding: 1rem 1.25rem; }
.ct-page .card .card .card-header { background: transparent; padding: .75rem 1.25rem 0; }
.ct-page .card .card .card-footer { border-top: 0; padding: 0 1.25rem 1rem; }
.ct-page .card-deck .card { margin-bottom: 1rem; }
/* Third level and deeper: no extra panel, just content */
.ct-page .card .card .card { border-left: 0; background: transparent; }
.ct-page .card .card .card > .card-body { padding: .5rem 1.25rem; }

/* Headings */
.ct-page h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.ct-page h2 { font-size: 1.5rem; font-weight: 700; padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ct-accent); }
.ct-page .card h2 { font-size: 1.35rem; padding-bottom: 0; border-bottom: 0; margin-bottom: .75rem; }
.ct-page .card h2.h5 { font-size: 1.05rem; color: var(--ct-accent); margin-top: 1.25rem; }
.ct-page .card h2.h5:first-child { margin-top: 0; }
.ct-page h3 { font-size: 1.15rem; font-weight: 700; color: var(--ct-accent); margin-top: 1.25rem; margin-bottom: .5rem; }
.ct-page h3:first-child { margin-top: 0; }
.ct-page h3.h6 { font-size: 1rem; margin-top: 0; }
.ct-page h3.h4 { font-size: 1.25rem; }
.ct-page h4 { font-size: 1.05rem; font-weight: 700; color: #343a40; margin-top: 1rem; margin-bottom: .5rem; }
.ct-page h5:not(.modal-title) { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #495057; margin-bottom: .75rem; }

/* Text, lists, rules */
.ct-page ul:not([class]) { padding-left: 1.25rem; }
.ct-page ul:not([class]) > li { margin-bottom: .25rem; }
.ct-page ul:not([class]) > li::marker { color: var(--ct-accent); }
.ct-page .list-group-item { background: transparent; border-color: #e5e5e5; border-style: dashed; }
.ct-page .list-group-flush .list-group-item { padding-left: 0; padding-right: 0; }
.ct-page hr { border-top: 1px dashed #e5e5e5; }
.ct-page .fa-hand-point-right { color: var(--ct-accent); }
.ct-page img.img-fluid { border-radius: .35rem; }

/* Callouts: alerts look like .ct-note */
.ct-page .alert { border: 0; border-left: 4px solid var(--ct-accent); border-radius: .5rem; background: var(--ct-tint); color: #212529; padding: .75rem 1rem; }
.ct-page .alert-warning { border-left-color: #f0ad4e; background: #fff8e1; }

/* Tables: same as .ct-table */
.ct-page .table th, .ct-page .table td { vertical-align: middle; border-top-color: #eef0f2; }
.ct-page .table thead th { border-top: 0; border-bottom: 2px solid var(--ct-accent); color: var(--ct-accent); font-weight: 700; background: transparent; }
.ct-page .table-striped tbody tr:nth-of-type(odd) { background-color: #f8f9fb; }
.ct-page .table-bordered, .ct-page .table-bordered th, .ct-page .table-bordered td { border-color: #e3e6ea; }

/* Buttons: pill style, same as .ct-actions */
.ct-page .btn { border-radius: 2rem; font-weight: 600; padding-left: 1rem; padding-right: 1rem; }

/* =====================================================================
   Header (tpl_header.php)
   #navMain IDs are used so these win over the theme's color block,
   which loads after this stylesheet.
   ===================================================================== */
#navMain nav.cl-header { background-color: #1f4e79; padding: .5rem 1rem; box-shadow: 0 2px 12px rgba(0,0,0,.18); }

/* Logo + name */
#navMain .cl-brand { display: flex; align-items: center; gap: .6rem; margin-right: 1rem; color: #fff; font-weight: 700; letter-spacing: .01em; }
#navMain .cl-brand:hover { color: #fff; text-decoration: none; }
#navMain .cl-brand img { display: block; }

/* Cart: white outlined pill */
#navMain a.cl-cart { display: inline-flex; align-items: center; padding: .35rem .9rem; border: 1px solid rgba(255,255,255,.6); border-radius: 2rem; color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s; }
#navMain a.cl-cart:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
#navMain a.cl-cart #topcartinner, #navMain a.cl-cart #topcarttext { display: inline; padding: 0; }
#navMain a.cl-cart .fa-shopping-cart { margin-right: .35rem; }

/* Checkout: the one bright button */
#navMain a.cl-checkout { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; padding: .35rem 1rem; border-radius: 2rem; background: #28a745; color: #fff; font-size: .9rem; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color .15s; }
#navMain a.cl-checkout:hover { background: #218838; color: #fff; }

/* Links */
#navMain nav.cl-header a.nav-link { color: rgba(255,255,255,.92); font-weight: 600; padding: .5rem .75rem; border-radius: .35rem; white-space: nowrap; }
#navMain nav.cl-header a.nav-link:hover, #navMain nav.cl-header a.nav-link:focus { color: #fff; background: rgba(255,255,255,.12); }
#navMain nav.cl-header a.nav-link i { color: #9cc3e6; margin-right: .2rem; }

/* Mobile menu button */
#navMain nav.cl-header .navbar-toggler { margin-left: auto; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: .5rem; }
#navMain nav.cl-header .navbar-toggler:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Search: rounded field with an attached button */
#navMain form[name="quick_find_header"] .input-group { flex-wrap: nowrap; }
#navMain form[name="quick_find_header"] .form-control { border: 0; border-radius: 2rem 0 0 2rem; padding-left: 1rem; min-width: 10rem; }
#navMain form[name="quick_find_header"] .input-group-append { margin-left: 0 !important; }
#navMain form[name="quick_find_header"] .btn { border: 0; border-radius: 0 2rem 2rem 0; background: #e9f1f8; color: #1f4e79; font-weight: 700; padding-left: 1rem; padding-right: 1rem; }
#navMain form[name="quick_find_header"] .btn:hover { background: #fff; color: #163a5c; }
@media (min-width: 992px) { #navMain form[name="quick_find_header"] { margin-left: .75rem; } }
@media (max-width: 991.98px) {
  #navMain .navbar-collapse { padding: .5rem 0 .75rem; }
  #navMain form[name="quick_find_header"] { margin-top: .5rem; }
  #navMain form[name="quick_find_header"] .input-group { width: 100%; }
}

/* Small phones: keep logo, cart, checkout and menu button on one row */
@media (max-width: 575.98px) {
  #navMain nav.cl-header { padding: .5rem .75rem; }
  #navMain .cl-brand { margin-right: .5rem; }
  #navMain .cl-brand img { width: 34px; height: 34px; }
  #navMain a.cl-cart { padding: .3rem .7rem; font-size: .85rem; }
  #navMain a.cl-checkout { padding: .3rem .7rem; margin-left: .4rem; }
  #navMain a.cl-checkout .cl-checkout-label { display: none; }
  #navMain nav.cl-header .navbar-toggler { padding: .25rem .6rem; }
}

/* Category tabs under the bar (phones/tablets) */
#categoriesTabs #navCatTabs a.nav-link { background: #fff; color: #1f4e79; border: 1px solid #d6e0ea; border-radius: 2rem; font-weight: 600; }
#categoriesTabs #navCatTabs a.nav-link:hover { background: #e9f1f8; color: #1f4e79; }
#categoriesTabs #navCatTabs a.nav-link.activeLink { background: #1f4e79; border-color: #1f4e79; color: #fff; }

/* =====================================================================
   Breadcrumb (#navBreadCrumb). ol.breadcrumb adds enough weight to beat
   the theme's #navBreadCrumb colors, which load after this file.
   ===================================================================== */
#navBreadCrumb ol.breadcrumb { background-color: #fff; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); padding: .6rem 1.1rem; margin-bottom: 1rem; font-size: .9rem; align-items: center; }
#navBreadCrumb ol.breadcrumb li { color: #495057; }
#navBreadCrumb ol.breadcrumb li a { color: #1f4e79; font-weight: 600; text-decoration: none; }
#navBreadCrumb ol.breadcrumb li a:hover { color: #163a5c; text-decoration: underline; }
#navBreadCrumb ol.breadcrumb .breadcrumb-separator { color: #adb5bd; padding: 0 .15rem; }

/* =====================================================================
   Sidebar category menu (left column)
   ===================================================================== */
/* Box: same card look as the page content. The sidebox template puts
   style="border: none" on this card, so the accent needs !important. */
#categories-leftBoxCard { border-top: 4px solid #1f4e79 !important; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); background: #fff; overflow: hidden; }
#categories-leftBoxCard #categories-leftBoxHeading { background: #fff; color: #495057; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px dashed #e5e5e5; padding: .9rem 1rem .7rem; margin: 0; }

.cl-catnav { padding: .35rem 0 .75rem; background: #fff; }
.cl-catnav-group + .cl-catnav-group { border-top: 1px solid #f0f2f4; }

/* Top-level category */
.cl-catnav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .55rem 1rem; background: transparent; border: 0; border-radius: 0; color: #212529; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.cl-catnav-toggle::after { content: ""; flex-shrink: 0; width: .45rem; height: .45rem; margin-left: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; opacity: .55; transform: rotate(-45deg); transition: transform .2s; }
.cl-catnav-toggle:not(.collapsed) { color: #1f4e79; }
.cl-catnav-toggle:not(.collapsed)::after { transform: rotate(45deg); }
.cl-catnav-toggle:hover { background: #e9f1f8; color: #1f4e79; }
.cl-catnav-toggle:focus { outline: 0; }
.cl-catnav-toggle:focus-visible { box-shadow: inset 0 0 0 2px #1f4e79; }

/* Subcategory links */
.cl-catnav-links { padding: 0 0 .5rem; }
a.cl-catnav-link { display: block; padding: .35rem 1rem .35rem 1.5rem; border-left: 3px solid transparent; color: #212529; font-size: .9rem; line-height: 1.35; text-decoration: none; transition: background-color .15s, color .15s; }
a.cl-catnav-link:hover { background: #f4f7fb; color: #1f4e79; text-decoration: none; }
a.cl-catnav-link.active { background: #e9f1f8; border-left-color: #1f4e79; color: #1f4e79; font-weight: 600; }

/* Support / Contact links */
.cl-catnav-extra { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed #e5e5e5; }
.cl-catnav-extra a { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem; color: #212529; font-weight: 600; text-decoration: none; }
.cl-catnav-extra a i { width: 1.1rem; color: #1f4e79; text-align: center; }
.cl-catnav-extra a:hover { background: #e9f1f8; color: #1f4e79; text-decoration: none; }

/* Google reviews box (from reviews.php) */
.cl-catnav .card { margin: .75rem 1rem 0; border: 0; border-radius: .5rem; background: #f8f9fa; overflow: hidden; }
.cl-catnav .card .card-header { background: transparent; border-bottom: 0; }
.cl-catnav .card .btn { border-radius: 0; background: #1f4e79; border-color: #1f4e79; color: #fff; }
.cl-catnav .card .btn:hover { background: #163a5c; border-color: #163a5c; color: #fff; }

/* Original product menu (list-group links). The ID beats the theme's
   .leftBoxCard .list-group-item color, which loads after this file. */
#categories-leftBoxCard .list-group-item { color: #212529; }
#categories-leftBoxCard .list-group-item:hover { color: #1f4e79; background-color: #e9f1f8; }
#categories-leftBoxCard .list-group-item.active { color: #1f4e79; font-weight: 700; background-color: #e9f1f8; border-color: rgba(0,0,0,.125); box-shadow: inset 4px 0 0 #1f4e79; }

/* =====================================================================
   Page utilities (EZ-Pages, define pages, categories)
   ===================================================================== */
/* Max widths */
.maxw-18rem  { max-width: 18rem; }
.maxw-20rem  { max-width: 20rem; }
.maxw-22rem  { max-width: 22rem; }
.maxw-30rem  { max-width: 30rem; }
.maxw-40rem  { max-width: 40rem; }
.maxw-50rem  { max-width: 50rem; }
.maxw-60rem  { max-width: 60rem; }
.maxw-550px  { max-width: 550px; }
.maxw-600px  { max-width: 600px; }
.maxw-1200px { max-width: 1200px; }

/* Fixed widths */
.width-50rem { width: 50rem; }
.width-100px { width: 100px; }

/* Text & highlights */
.text-black-solid { color: #000; }
.fs-150 { font-size: 150%; }
.hl-yellow { background-color: yellow; }

/* Gray card (category 16) */
.card.card-gray { background: #ddd; }

/* Solid red button (overrides the theme's .btn color, including hover) */
.btn.btn-red, .btn.btn-red:hover { background: red; border: 1px solid red; }

/* Light outlined button (DOC page "Contact Us") */
a.btn.btn-soft { color: #212529; text-decoration: none; padding: .5rem 1rem; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: .25rem; display: inline-flex; align-items: center; transition: background-color .2s; }
a.btn.btn-soft:hover { color: #212529; background-color: #e9ecef; border-color: #dee2e6; }

/* Visually hidden, still read by screen readers (phenolic labels page) */
.lp-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =====================================================================
   Home page (hp-)
   ===================================================================== */
.hp { --hp-accent: #1f4e79; --hp-tint: #e9f1f8; }
.hp-card { border: 0; border-top: 4px solid var(--hp-accent); border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); background: #fff; }
.hp-card p { line-height: 1.6; }
.hp-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.hp-eyebrow { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #495057; margin-bottom: .75rem; }
.hp-h1 { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 1.25rem; }
.hp-section { font-size: 1.5rem; font-weight: 700; padding-bottom: .5rem; margin: 2rem 0 1.25rem; border-bottom: 2px solid #1f4e79; }
.hp-carousel { border-radius: .75rem; overflow: hidden; }
.hp-chip { display: inline-block; padding: .3rem .75rem; margin: 0 .35rem .5rem 0; border-radius: 2rem; font-size: .8rem; font-weight: 700; background: var(--hp-tint); color: var(--hp-accent); }
.hp-chip-green { background: #eaf6ec; color: #1e7b34; }
.hp-list { list-style: none; padding: 0; margin: 0; }
.hp-list li { position: relative; padding: .35rem 0 .35rem 1.75rem; border-bottom: 1px dashed #e5e5e5; break-inside: avoid; }
.hp-list li:last-child { border-bottom: 0; }
.hp-list li::before { content: "\2713"; position: absolute; left: 0; top: .4rem; width: 1.2rem; height: 1.2rem; line-height: 1.2rem; text-align: center; font-size: .75rem; font-weight: 700; color: #fff; background: #28a745; border-radius: 50%; }
.hp-list-2col { column-count: 2; column-gap: 2rem; }
@media (max-width: 575px) { .hp-list-2col { column-count: 1; } }
.hp-box { background: var(--hp-tint); border-radius: .75rem; padding: 1.25rem; }
.hp-note { background: #fff8e1; border-left: 4px solid #f0ad4e; border-radius: .5rem; padding: .75rem 1rem; font-weight: 600; margin: 1rem 0; }
.hp .btn { border-radius: 2rem; font-weight: 600; padding-left: 1rem; padding-right: 1rem; margin: .25rem; }
.hp-actions { margin-top: 1rem; }
.hp-img { display: block; background: #f8f9fa; border-radius: .5rem; padding: .5rem; transition: transform .2s, box-shadow .2s; }
a.hp-img:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.hp-img img { max-width: 100%; height: auto; border-radius: .35rem; }
.hp-prod { text-align: center; }
.hp-prod .card-body { display: flex; flex-direction: column; }
.hp-prod .hp-prod-btn { margin-top: auto; padding-top: .75rem; }
.hp-defs { margin: 0; }
.hp-defs dt { color: var(--hp-accent); font-weight: 700; margin-top: .75rem; }
.hp-defs dd { margin: .15rem 0 0; padding-bottom: .75rem; border-bottom: 1px dashed #e5e5e5; line-height: 1.6; }
.hp-defs dd:last-child { border-bottom: 0; }
.hp-foot { text-align: center; margin-top: auto; padding-top: 1rem; }
.hp-foot img { max-width: 100%; height: auto; margin-top: .75rem; border-radius: .35rem; }

/* =====================================================================
   Product page: material / color swatches (radio buttons with images)
   Each swatch is a tile with its radio button centered underneath, so
   the button sits with its own image instead of next to the neighbor's.
   ===================================================================== */
#attributes-card-body .attribImg { display: inline-block; margin: .3rem; padding-left: 0; text-align: center; vertical-align: top; }
#attributes-card-body .attribImg > br { display: none; }
#attributes-card-body .attribImg .custom-control-label { display: block; padding: .4rem .4rem 1.85rem; background: #fff; border: 2px solid #e3e6ea; border-radius: .5rem; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
#attributes-card-body .attribImg .custom-control-label img { display: block; margin: 0 auto; }
#attributes-card-body .attribImg .custom-control-label::before,
#attributes-card-body .attribImg .custom-control-label::after { top: auto; bottom: .45rem; left: 50%; margin-left: -.5rem; }
#attributes-card-body .attribImg .custom-control-label:hover { border-color: #9cb3c9; }
#attributes-card-body .attribImg .custom-control-input:checked ~ .custom-control-label { border-color: #1f4e79; background: #e9f1f8; box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
#attributes-card-body .attribImg .custom-control-input:checked ~ .custom-control-label::before { background-color: #1f4e79; border-color: #1f4e79; }
#attributes-card-body .attribImg .custom-control-input:focus ~ .custom-control-label { box-shadow: 0 0 0 3px rgba(31,78,121,.25); }

/* =====================================================================
   How to Order (ezpages/howtoorder.php)
   ===================================================================== */
.ct-accent-green { --ct-accent: #2e7d5b; --ct-tint: #e2f0e8; }
.ct-accent-gray  { --ct-accent: #495057; --ct-tint: #eef0f2; }
.ct-howto-intro { font-size: 1.05rem; margin-bottom: 1.25rem; }
.ct-howto .card-deck .card { position: relative; display: flex; flex-direction: column; }
.ct-howto .card-deck .card > .card-body { flex: 1 1 auto; }
.ct-howto-img { display: block; overflow: hidden; }
.ct-howto-img img { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 0; transition: transform .3s; }
.ct-howto-img:hover img { transform: scale(1.03); }
.ct-howto .ct-list { margin-bottom: 1rem; }
.ct-howto .ct-list li::before { background: var(--ct-accent); }
.ct-howto .ct-list li.ct-con::before { content: "\2013"; background: #adb5bd; }
.ct-howto .ct-list li.ct-con { color: #6c757d; }
.ct-howto .ct-chip { background: var(--ct-tint); color: var(--ct-accent); }
.ct-howto-tip { margin: .75rem 0 0; font-size: .9rem; color: #495057; }
.ct-howto-tip i { color: #e0a800; margin-right: .2rem; }
.ct-howto .card-body a:not(.btn) { color: var(--ct-accent); font-weight: 600; }
.ct-ribbon { position: absolute; top: .65rem; right: .75rem; z-index: 1; padding: .2rem .65rem; border-radius: 2rem; background: #1f4e79; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.ct-howto .btn-success { background: #2e7d5b; border-color: #2e7d5b; }
.ct-howto .btn-secondary { background: #495057; border-color: #495057; }
.ct-howto-compare { margin-top: .5rem; }
.ct-howto-intro a { color: #1f4e79; font-weight: 600; }
.ct-howto-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1rem; padding: 1.25rem 1.5rem; background: #e9f1f8; border-left: 4px solid #1f4e79; border-radius: .75rem; }
.ct-howto-cta h3 { margin: 0 0 .25rem; color: #1f4e79; }
.ct-howto-cta p { margin: 0; }
.ct-howto-cta-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-howto-cta-btns .btn-outline-primary { color: #1f4e79; border-color: #1f4e79; background: #fff; }
.ct-howto-cta-btns .btn-outline-primary:hover { background: #1f4e79; color: #fff; }
.ct-howto-compare tbody th { color: #495057; font-weight: 700; white-space: nowrap; }
.ct-howto-compare td, .ct-howto-compare th { padding: .5rem .75rem; }
@media (max-width: 575.98px) { .ct-ribbon { position: static; display: inline-block; margin: .75rem 0 0 1.5rem; } }

/* =====================================================================
   Customer Support (ezpages/customersupport.php)
   ===================================================================== */
.ct-support-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 1.25rem 0 1.5rem; padding: 1.25rem 1.5rem; background: #fff; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.ct-support-hello { flex: 1 1 16rem; }
.ct-page .ct-support-hello h2 { margin: 0 0 .25rem; padding: 0; border: 0; font-size: 1.35rem; color: #1f4e79; }
.ct-support-hello p { margin: 0; color: #495057; }
.ct-support-ways { flex: 2 1 30rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; }
.ct-support-way { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; background: #f4f7fb; border: 1px solid #e3e6ea; border-radius: .6rem; color: #212529; transition: background-color .15s, border-color .15s, transform .15s; }
.ct-support-way:hover { background: #e9f1f8; border-color: #1f4e79; color: #212529; text-decoration: none; transform: translateY(-1px); }
.ct-support-way i { flex: 0 0 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1f4e79; color: #fff; font-size: .95rem; }
.ct-support-way span { font-size: .82rem; color: #6c757d; line-height: 1.3; word-break: break-word; }
.ct-support-way b { display: block; font-size: .95rem; color: #1f4e79; }

.ct-page h3.ct-support-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; padding-bottom: .75rem; border-bottom: 1px dashed #e5e5e5; font-size: 1.1rem; color: #212529; }
.ct-support-title span { flex: 0 0 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: .6rem; background: #e9f1f8; color: #1f4e79; font-size: 1rem; }

.ct-links { list-style: none; margin: 0; padding: 0; }
.ct-links li + li { margin-top: 2px; }
.ct-links a { position: relative; display: flex; align-items: center; gap: .65rem; padding: .5rem 2rem .5rem .6rem; border-radius: .45rem; color: #212529; font-weight: 600; font-size: .95rem; transition: background-color .15s, color .15s; }
.ct-links a i { width: 1.25rem; text-align: center; color: #6c8fb0; transition: color .15s; }
.ct-links a::after { content: "\203A"; position: absolute; right: .75rem; top: 50%; transform: translateY(-55%); font-size: 1.3rem; color: #c3ced9; transition: color .15s, right .15s; }
.ct-links a:hover { background: #e9f1f8; color: #1f4e79; text-decoration: none; }
.ct-links a:hover i, .ct-links a:hover::after { color: #1f4e79; }
.ct-links a:hover::after { right: .5rem; }

/* =====================================================================
   Shared page parts (ct-) used across the EZ-pages and info pages
   ===================================================================== */
/* Section heading with an icon tile:  <h2 class="ct-h"><span><i class="fas fa-truck"></i></span>Title</h2> */
.ct-page h2.ct-h, .ct-page h3.ct-h { display: flex; align-items: center; gap: .6rem; margin: 1.75rem 0 .75rem; padding-bottom: .6rem; border-bottom: 1px dashed #e5e5e5; font-size: 1.25rem; color: #212529; }
.ct-page .card-body > h2.ct-h:first-child, .ct-page .card-body > h3.ct-h:first-child { margin-top: 0; }
.ct-page h3.ct-h { font-size: 1.1rem; }
.ct-h > span { flex: 0 0 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: .6rem; background: var(--ct-tint); color: var(--ct-accent); font-size: 1rem; }

/* Fact tiles: <div class="ct-facts"><div class="ct-fact"><i class="fas fa-bolt"></i><span><b>1-2 days</b>Online orders</span></div></div> */
.ct-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.ct-fact { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: #fff; border-left: 4px solid var(--ct-accent); border-radius: .6rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.ct-fact > i { flex: 0 0 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ct-tint); color: var(--ct-accent); font-size: 1rem; }
.ct-fact span { font-size: .85rem; color: #6c757d; line-height: 1.3; }
.ct-fact b { display: block; font-size: 1.1rem; color: #212529; }

/* Contact / action tiles (same look as the Customer Support tiles) */
.ct-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; }
.ct-way { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; background: #f4f7fb; border: 1px solid #e3e6ea; border-radius: .6rem; color: #212529; transition: background-color .15s, border-color .15s, transform .15s; }
a.ct-way:hover { background: #e9f1f8; border-color: #1f4e79; color: #212529; text-decoration: none; transform: translateY(-1px); }
.ct-way > i { flex: 0 0 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1f4e79; color: #fff; font-size: .95rem; }
.ct-way span { font-size: .82rem; color: #6c757d; line-height: 1.35; word-break: break-word; }
.ct-way b { display: block; font-size: .95rem; color: #1f4e79; }

/* Call-to-action box at the end of a page */
.ct-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin: 1.25rem 0 0; padding: 1.25rem 1.5rem; background: #e9f1f8; border-left: 4px solid #1f4e79; border-radius: .75rem; }
.ct-page .ct-cta h3 { margin: 0 0 .25rem; color: #1f4e79; }
.ct-cta p { margin: 0; }
.ct-cta-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-page .ct-cta .btn-outline-primary { color: #1f4e79; border-color: #1f4e79; background: #fff; }
.ct-page .ct-cta .btn-outline-primary:hover { background: #1f4e79; color: #fff; }

/* Numbered steps: <ol class="ct-steps"><li><b>Title</b> text</li></ol> */
.ct-steps { list-style: none; counter-reset: ct-step; margin: 0 0 1rem; padding: 0; }
.ct-steps > li { position: relative; counter-increment: ct-step; padding: .2rem 0 .85rem 2.75rem; }
.ct-steps > li::before { content: counter(ct-step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ct-accent); color: #fff; font-weight: 800; }
.ct-steps > li:not(:last-child)::after { content: ""; position: absolute; left: .95rem; top: 2.2rem; bottom: .2rem; border-left: 2px dashed #d6e0ea; }
.ct-steps > li > b:first-child { display: block; color: #212529; }

/* Highlighted key phrase (replaces hl-yellow inside ct pages) */
.ct-page .hl-yellow, .ct-key { background: linear-gradient(transparent 55%, #fff1b8 55%); padding: 0 .1rem; }

/* Warning note (use with .ct-note) */
.ct-note.ct-note-warn { --ct-accent: #b8860b; --ct-tint: #fff8e1; }
.ct-note.ct-note-stop { --ct-accent: #c0392b; --ct-tint: #fdecee; }

/* Minus point in a checklist: <li class="ct-con"> */
.ct-page .ct-list li.ct-con::before { content: "\2013"; background: #adb5bd; }
.ct-page .ct-list li.ct-con { color: #6c757d; }

/* Small "last updated" line */
.ct-updated { margin: 0 0 1rem; font-size: .8rem; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }

/* Contact page (pages/contactus.php) */
.ct-contact .ct-ways { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ct-contact-hours .table th { width: 50%; color: #495057; font-weight: 700; border-top: 0; }
.ct-contact-hours .table td { border-top: 0; }
.ct-contact-hours .table tr + tr th, .ct-contact-hours .table tr + tr td { border-top: 1px dashed #e5e5e5; }
.ct-contact-cards { display: block; max-width: 100%; height: auto; margin-top: .5rem; }

/* ---------------------------------------------------------------------
   Page-specific parts (EZ-pages, Oct 2026 refresh)
   --------------------------------------------------------------------- */
.ct-lead { font-size: 1.1rem; font-weight: 600; color: #343a40; }
.ct-tagline { margin-top: -.25rem; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-accent); }
.ct-rounded { border-radius: .6rem; }
.ct-page .ct-section-title { margin: 1.5rem 0 .75rem; padding: 0; border: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #495057; }

/* Screenshot / figure in a soft frame */
.ct-shot { margin: .75rem 0; padding: .5rem; background: #f8f9fb; border: 1px solid #e3e6ea; border-radius: .6rem; text-align: center; }
.ct-shot img { max-width: 100%; height: auto; border-radius: .35rem; }
.ct-shot figcaption { margin-top: .4rem; font-size: .85rem; font-weight: 600; color: #495057; }

/* Text beside an image */
.ct-split-media { display: flex; align-items: center; gap: 1.5rem; }
.ct-split-media > div { flex: 1 1 auto; }
.ct-split-media > img { flex: 0 0 auto; max-width: 200px; height: auto; border-radius: .6rem; }
@media (max-width: 575.98px) { .ct-split-media { flex-direction: column; } }

/* Picture tiles that link somewhere */
.ct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; }
.ct-tile { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e3e6ea; border-radius: .75rem; color: #212529; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ct-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); border-color: #9cb3c9; color: #212529; text-decoration: none; }
.ct-tile img { display: block; width: 100%; height: 150px; object-fit: cover; }
.ct-tile span { padding: .65rem .8rem .8rem; font-size: .85rem; color: #6c757d; }
.ct-tile b { display: block; font-size: 1rem; color: var(--ct-accent); }

/* Benefit tiles */
.ct-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; }
.ct-benefit { padding: 1rem 1.1rem; background: #f8f9fb; border: 1px solid #e3e6ea; border-radius: .6rem; }
.ct-benefit > i { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; border-radius: .55rem; background: var(--ct-tint); color: var(--ct-accent); }
.ct-page .ct-benefit h4 { margin: 0 0 .35rem; font-size: 1rem; color: #212529; }
.ct-benefit p { margin: 0; font-size: .9rem; color: #495057; }

/* About page */
.ct-about-sign { margin-top: 1.25rem; font-weight: 700; }
.ct-about-sign span { font-weight: 400; color: #6c757d; }
.ct-about-photo { margin: 1.5rem 0 0; }
.ct-about-photo img { max-width: 100%; height: auto; border-radius: .6rem; }
.ct-about-photo figcaption { margin-top: .5rem; font-size: .85rem; color: #6c757d; }
.ct-person > a img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
.ct-page .ct-person h3 { margin: 0 0 .5rem; font-size: 1.2rem; color: var(--ct-accent); }

/* Languages page: copy-and-paste symbols */
.ct-glyphs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ct-glyphs > div { padding: .75rem 1rem; background: #f8f9fb; border: 1px dashed #c3ced9; border-radius: .6rem; }
.ct-glyphs span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.ct-glyphs b { font-size: 1.5rem; letter-spacing: .15em; user-select: all; }
.ct-glyphs small { font-size: .7rem; letter-spacing: 0; color: #6c757d; font-weight: 600; }

/* Terms: quick links and numbered sections */
.ct-toc { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: .75rem; background: #f8f9fb; border-radius: .6rem; }
.ct-toc a { padding: .2rem .65rem; border: 1px solid #d6e0ea; border-radius: 2rem; background: #fff; color: #1f4e79; font-size: .8rem; font-weight: 700; }
.ct-toc a:hover { background: #1f4e79; border-color: #1f4e79; color: #fff; text-decoration: none; }
.ct-terms h2.ct-h > span { font-weight: 800; }
.ct-terms h2.ct-h { scroll-margin-top: 90px; }

/* Text fitment examples */
.ct-example { padding: .25rem 0 .75rem; border-bottom: 1px dashed #e5e5e5; margin-bottom: .75rem; }
.ct-example:last-child { border-bottom: 0; margin-bottom: 0; }
.ct-page .ct-example h3 { margin: .5rem 0 .4rem; font-size: 1.05rem; }
.ct-facts-tight { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.ct-facts-tight .ct-fact { box-shadow: none; border: 1px solid #e3e6ea; border-left-width: 4px; border-left-color: var(--ct-accent); }
.ct-fact > i:not([class]) { font-style: normal; font-weight: 800; }

/* Transit maps */
.ct-page .card-header.ct-carrier { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.ct-carrier img { height: 28px; width: auto; }

/* Spreadsheet download */
.ct-download { display: block; padding: .75rem; background: #f8f9fb; border: 1px solid #e3e6ea; border-radius: .75rem; transition: box-shadow .15s; }
.ct-download:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); text-decoration: none; }
.ct-download img { display: block; margin: 0 auto .75rem; border-radius: .35rem; }

/* Material swatches */
.ct-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .75rem; }
.ct-swatch { margin: 0; text-align: center; }
.ct-swatch img { display: block; width: 100%; max-width: 110px; height: auto; margin: 0 auto; padding: .3rem; background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; }
.ct-swatch figcaption { margin-top: .3rem; font-size: .75rem; font-weight: 600; color: #495057; line-height: 1.2; }
.ct-swatch-legend img { max-width: 100%; height: auto; }
.ct-swatch-strip { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-swatch-strip .attribsSwatch { width: 64px; height: auto; padding: .2rem; background: #fff; border: 1px solid #e3e6ea; border-radius: .4rem; }

/* Order Online: three steps */
.ct-online-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; align-items: start; }
.ct-online-steps .card { margin: 0; }
.ct-step-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; font-size: 1.15rem; font-weight: 800; color: #212529; }
.ct-step-head span { width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ct-accent); color: #fff; }

/* FAQ: click a question to open it */
.ct-faq details { border-bottom: 1px dashed #e5e5e5; }
.ct-faq details:last-of-type { border-bottom: 0; }
.ct-faq summary { position: relative; padding: .8rem 2rem .8rem 0; font-weight: 700; color: #212529; cursor: pointer; list-style: none; }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::before { content: "Q"; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin-right: .6rem; border-radius: 50%; background: var(--ct-tint); color: var(--ct-accent); font-size: .8rem; font-weight: 800; }
.ct-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: #9cb3c9; }
.ct-faq details[open] summary::after { content: "\2212"; color: var(--ct-accent); }
.ct-faq summary:hover { color: var(--ct-accent); }
.ct-faq details > p { margin: 0 0 .75rem 2.2rem; }

/* Good vs "could be better" image pairs */
.ct-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: .5rem; }
.ct-compare figure { margin: 0; padding: .75rem; border: 2px solid #e3e6ea; border-radius: .75rem; text-align: center; background: #fff; }
.ct-compare figure > span { display: inline-block; margin-bottom: .5rem; padding: .15rem .7rem; border-radius: 2rem; font-size: .8rem; font-weight: 800; }
.ct-compare img { display: block; max-width: 100%; height: auto; margin: 0 auto .5rem; }
.ct-compare figcaption { font-size: .88rem; color: #495057; }
.ct-compare .ct-good { border-color: #b9dcc8; }
.ct-compare .ct-good > span { background: #e2f0e8; color: #1d5c41; }
.ct-compare .ct-bad { border-color: #f0c2c7; }
.ct-compare .ct-bad > span { background: #fdecee; color: #a71d2a; }

/* Comparison table marks */
.ct-yes { color: #2e7d5b; font-weight: 700; }
.ct-no { color: #c0392b; font-weight: 700; }
.ct-dollars { color: #2e7d5b; letter-spacing: .05em; }
.ct-compare-table tbody th { color: #495057; font-weight: 700; white-space: nowrap; }
.ct-compare-table td { text-align: center; }
.ct-compare-table thead th:not(:first-child) { text-align: center; }

/* CTA stacked (narrow sidebar) */
.ct-cta.ct-cta-stack { flex-direction: column; align-items: stretch; }
.ct-cta.ct-cta-stack .btn { flex: 1 1 auto; }

/* =====================================================================
   Product attributes: compact text rows + collapsible option groups
   (JS in tpl_product_info_display.php adds the cl-attr-* classes)
   ===================================================================== */
#attributes-card-body .cl-attr-text { display: flex; flex-direction: row; align-items: stretch; margin-bottom: .5rem !important; }
#attributes-card-body .cl-attr-text > .card-header { display: flex; align-items: center; flex: 0 0 10rem; max-width: 10rem; margin: 0; padding: .5rem .75rem; border-bottom: 0; border-right: 1px solid rgba(0,0,0,.125); font-size: .95rem; }
#attributes-card-body .cl-attr-text > .card-header label { margin: 0; }
#attributes-card-body .cl-attr-text > .card-body { flex: 1 1 auto; min-width: 0; padding: .45rem .6rem !important; }
#attributes-card-body .cl-attr-hide { display: none !important; }

#attributes-card-body .cl-attr-collapsible { margin-bottom: .5rem !important; }
#attributes-card-body .cl-attr-collapsible > .card-header { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .5rem .75rem; cursor: pointer; user-select: none; font-size: .95rem; }
#attributes-card-body .cl-attr-collapsible > .card-header label { margin: 0; cursor: pointer; }
#attributes-card-body .cl-attr-collapsible:not(.cl-attr-open) > .card-header { border-bottom: 0; }
#attributes-card-body .cl-attr-collapsible:not(.cl-attr-open) > .card-body { display: none; }
.cl-attr-toggle { display: flex; align-items: center; gap: .6rem; margin-left: auto; padding: 0; background: none; border: 0; color: inherit; font-size: .85rem; font-weight: 600; }
.cl-attr-toggle:focus { outline: 2px solid #1f4e79; outline-offset: 2px; }
.cl-attr-pick { display: flex; align-items: center; gap: .3rem; }
.cl-attr-pick img { display: block; width: auto !important; height: 34px !important; max-width: 100px; padding: 2px; background: #fff; border: 1px solid #d6dde4; border-radius: .3rem; }
.cl-attr-pick-none { color: #b45309; font-style: italic; font-weight: 600; }
.cl-attr-more { color: #6c757d; font-size: .8rem; }
.cl-attr-chev { width: .55rem; height: .55rem; margin: 0 .2rem 0 .1rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.cl-attr-open .cl-attr-chev { transform: rotate(-135deg) translateY(-2px); }
.cl-attr-change { color: #1f4e79; font-size: .8rem; text-decoration: underline; }
.cl-attr-open .cl-attr-change { display: none; }

#attributes-card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.cl-attr-all { padding: .15rem .7rem; background: transparent; border: 1px solid currentColor; border-radius: 2rem; color: inherit; font-size: .8rem; font-weight: 600; line-height: 1.4; }
.cl-attr-all:hover { background: rgba(255,255,255,.15); }

@media (max-width: 575.98px) {
  #attributes-card-body .cl-attr-text { flex-direction: column; }
  #attributes-card-body .cl-attr-text > .card-header { flex-basis: auto; max-width: none; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.125); }
}

/* =====================================================================
   Product info page: same modern cards as the rest of the site
   ===================================================================== */
#productInfo { --ct-accent: #1f4e79; --ct-tint: #e9f1f8; }
#productInfo .card { border: 0; border-top: 4px solid var(--ct-accent); border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); background: #fff; color: #212529; }
#productInfo .card-header { background: var(--ct-tint); color: var(--ct-accent); border-bottom: 0; font-weight: 700; padding: .75rem 1.25rem; }
#productInfo .card-header:first-child { border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
#productInfo h1.card-header, #productInfo h2.card-header, #productInfo h3.card-header, #productInfo h4.card-header, #productInfo h5.card-header,
#productInfo .card-header h1, #productInfo .card-header h2, #productInfo .card-header h3, #productInfo .card-header h4, #productInfo .card-header h5 { color: inherit; font-size: 1.1rem; font-weight: 700; margin: 0; }
#productInfo .card-header a { color: inherit; text-decoration: none; }
#productInfo .card-header a:hover { text-decoration: underline; }
#productInfo .card-footer { background: transparent; border-top: 1px dashed #e5e5e5; }
#productInfo .card-footer:last-child { border-radius: 0 0 .75rem .75rem; }

/* cards inside cards (attribute options, cart items): tinted panel with an accent edge */
#productInfo .card .card { border-top: 0; border-left: 4px solid var(--ct-accent); border-radius: .5rem; box-shadow: none; background: var(--ct-tint); }
#productInfo .card .card > .card-header { background: transparent; color: #212529; padding: .5rem .75rem; border-radius: 0; }
#productInfo .card .card > .card-header label { color: #212529; font-weight: 700; }
#attributes-card-body .cl-attr-text > .card-header { border-right-color: rgba(31,78,121,.18); }
#attributes-card-body .cl-attr-collapsible.cl-attr-open > .card-header { border-bottom: 1px dashed rgba(31,78,121,.25); }

/* additional image tiles stay white */
#productInfo-productAdditionalImages .card { background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; }

#productInfo-productName { margin-bottom: 1rem; font-size: 1.6rem; font-weight: 800; color: #212529; }
#productInfo .productDescriptionVisible ul > li::marker { color: var(--ct-accent); }

/* Add to Cart card: navy model/price bar instead of green, rounded to match the card */
#addToCart-card { border-top: 0; }
#addToCart-card #preview-nav { background-color: #1f4e79; border-radius: .5rem .5rem 0 0; }
/* bottom bar (qty / Add to Cart) follows the card's rounded bottom corners (.75rem from #productInfo .card) */
#addToCart-card > nav.navbar:last-child { border-radius: 0 0 .75rem .75rem; }
/* edit mode (editing a cart line): the card keeps its normal colors; the page dims around it (below) */
#productInfo.cl-edit-mode .cl-cart-qd { display: none; }
/* "Edit" pill in the preview header (item is in the cart): white oval like the specs pill; hidden while editing */
#preview-nav a.cl-pn-edit { display: inline-flex; align-items: center; gap: .4rem; margin-left: .35rem; padding: .4rem 1rem; background: #fff; border-radius: 2rem; color: #1f4e79; font-size: .85rem; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color .15s, box-shadow .15s; }
#preview-nav a.cl-pn-edit:hover, #preview-nav a.cl-pn-edit:focus { background: #e9f1f8; color: #1f4e79; box-shadow: 0 0 0 3px rgba(255,255,255,.25); text-decoration: none; }
/* edit mode: the Edit pill turns into Cancel */
#preview-nav a.cl-pn-cancel, #productInfo.cl-edit-mode #preview-nav a#clPnEdit { display: none; }
#productInfo.cl-edit-mode #preview-nav a.cl-pn-cancel { display: inline-flex; }
/* options changed since the page matched the cart line (jscript_addtocart.php) */
#preview-nav .cl-pn-edit-item.cl-pn-stale { display: none; }
/* edit opened from the cart page: no side cart (they came from the full one and go back to it) */
#productInfo.cl-from-cart .cl-cart-card { display: none; }
/* edit mode keeps the page to the options: no Specs & Dimensions, Product Details or "See all" link */
#productInfo.cl-edit-mode #productInfo-productAdditionalImages,
#productInfo.cl-edit-mode #productInfo-descriptionCard,
#productInfo.cl-edit-mode #productInfo-categoryHubLink { display: none; }
/* edit mode "modal": the page dims behind the two cards being worked on; they stay where they are, so nothing moves.
   The dimmed layer sits over the fixed site header (1030) and under Bootstrap modals (1050) and the toast (1080). */
#productInfo.cl-edit-mode::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background: rgba(0,0,0,.5); }
#productInfo.cl-edit-mode #addToCart-card,
#productInfo.cl-edit-mode #productInfo-productAttributes,
#productInfo.cl-edit-mode .cl-cart-card,
#productInfo.cl-edit-mode #productInfo-nameRow { position: relative; z-index: 1041; }
/* heading row sits on the dimmed layer: white "Editing Cart Item" title + Done Editing */
#productInfo.cl-edit-mode #productInfo-productName { color: #fff; }
/* kept under the H1's line height (1.6rem x 1.2 = ~31px) so the heading row doesn't grow when edit mode starts or ends */
.cl-done-btn { margin-bottom: 1rem; padding: .2rem 1.1rem; font-size: .9rem; line-height: 1.3; background: #fff; border: 2px solid #fff; border-radius: 2rem; color: #1f4e79; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.cl-done-btn:hover, .cl-done-btn:focus { background: #e9f1f8; border-color: #e9f1f8; color: #1f4e79; }
/* Add to Cart / Save: one width, so the button doesn't change size between modes */
#productInfo #clCartSubmit { min-width: 9.5rem; text-align: center; white-space: nowrap; }
/* the template colors .fa-cart-plus like the button background; on the button it takes the text color */
#productInfo #clCartSubmit .fa-cart-plus { color: inherit; }
/* "Done" beside Save: same white/navy as Done Editing */
#productInfo #clCancelEdit { background: #fff; border: 1px solid #1f4e79; color: #1f4e79; font-weight: 700; }
#productInfo #clCancelEdit:hover, #productInfo #clCancelEdit:focus { background: #e9f1f8; color: #1f4e79; }
/* Update Cart Item status: fixed to the bottom of the screen */
.cl-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 1080; max-width: min(34rem, calc(100vw - 2rem)); padding: .7rem 1rem; border-radius: .5rem; box-shadow: 0 6px 24px rgba(0,0,0,.25); color: #fff; font-size: .9rem; opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity .2s, transform .2s; }
.cl-toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cl-toast.cl-toast-success { background: #1e7e34; }
.cl-toast.cl-toast-warning { background: #b35900; }
.cl-toast.cl-toast-danger { background: #b02a37; }
.cl-toast a { color: #fff; text-decoration: underline; }
.cl-toast .cl-toast-close { margin-left: .75rem; padding: 0; background: none; border: 0; color: #fff; font-size: 1.1rem; line-height: 1; opacity: .8; }

/* =====================================================================
   Login page (tpl_login_default.php)
   ===================================================================== */
.ct-login { max-width: 70rem; }
.ct-login h2.card-header { margin: 0; padding: .75rem 1.5rem; font-size: 1.1rem; }
.ct-login .card-header i { margin-right: .35rem; opacity: .85; }
.ct-login .row > [class*="col-"] > .card { height: calc(100% - 1rem); }
.ct-login label { margin-bottom: .3rem; font-size: .9rem; font-weight: 600; color: #343a40; }
.ct-login .input-group-text { background: var(--ct-tint); color: var(--ct-accent); }
.ct-login .form-control:focus { border-color: var(--ct-accent); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.ct-login .input-group .ct-login-peek { padding: .375rem .75rem; border: 1px solid #ced4da !important; border-radius: 0 .25rem .25rem 0 !important; background: var(--ct-tint) !important; color: var(--ct-accent) !important; box-shadow: none !important; }
.ct-login .input-group .ct-login-peek:hover, .ct-login .input-group .ct-login-peek:focus { background: #d6e4f0 !important; }
.ct-login-btn { margin-top: .5rem; padding-top: .55rem; padding-bottom: .55rem; }
.ct-login-forgot { margin: .9rem 0 0; text-align: center; font-size: .9rem; }
.ct-login-forgot a { color: var(--ct-accent); font-weight: 600; }
.ct-login-option { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed #e5e5e5; }
.ct-login-option:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ct-page .ct-login-option h3.h6 { margin: 0 0 .3rem; font-size: 1rem; }
.ct-login-option h3 i { margin-right: .3rem; }
.ct-login-option p, .ct-login-option .information { margin-bottom: .6rem; color: #495057; }
.ct-login-help { display: flex; align-items: flex-start; gap: .75rem; font-weight: normal; }
.ct-login-help > i { margin-top: .2rem; color: var(--ct-accent); font-size: 1.2rem; }
.ct-login-help a { color: var(--ct-accent); font-weight: 600; }
.ct-login .nav-tabs .nav-link.active { color: var(--ct-accent); font-weight: 700; border-top: 3px solid var(--ct-accent); }

/* =====================================================================
   Product info "Model ####" dropdown: tile picker (getCategoryProducts small menu)
   ===================================================================== */
#preview-nav .dropdown-menu { width: min(32rem, 92vw); padding: 0; overflow: hidden; border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); text-align: left; }
.cl-pm-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: #e9f1f8; color: #1f4e79; }
.cl-pm-title { font-weight: 700; }
.cl-pm-count { font-size: .8rem; font-weight: 600; color: #6c757d; }
.cl-pm-filter { padding: .6rem 1rem 0; }
.cl-pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; max-height: min(60vh, 32rem); overflow-y: auto; padding: .75rem 1rem 1rem; }
#preview-nav .cl-pm-tile { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .4rem .45rem; background: #fff; border: 2px solid #e3e6ea; border-radius: .6rem; color: #212529; text-align: center; white-space: normal; line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
#preview-nav .cl-pm-tile:hover, #preview-nav .cl-pm-tile:focus { background: #fff; border-color: #9cb3c9; box-shadow: 0 4px 12px rgba(0,0,0,.08); color: #212529; }
#preview-nav .cl-pm-tile.active, #preview-nav .cl-pm-tile:active { background: #e9f1f8; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.15); color: #212529; }
.cl-pm-img { display: flex; align-items: center; justify-content: center; height: 90px; }
.cl-pm-img img { max-width: 100%; max-height: 90px; width: auto; height: auto; }
.cl-pm-label { margin-top: .2rem; font-size: .85rem; font-weight: 700; }
.cl-pm-dims { font-size: .75rem; color: #495057; }
.cl-pm-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem; width: 100%; margin-top: .2rem; padding-top: .3rem; border-top: 1px dashed #e5e5e5; font-size: .75rem; }
.cl-pm-model { color: #6c757d; font-weight: 600; }
.cl-pm-price { color: #1f4e79; font-weight: 700; }
.cl-pm-price .productBasePrice { display: inline; }
.cl-pm-tile.active .cl-pm-meta { border-top-color: rgba(31,78,121,.25); }
@media (max-width: 991.98px) { #preview-nav .dropdown-menu { width: 100%; } }

/* Product info nav bar: current-model picker + round prev/next arrows */
#preview-nav .cl-pn-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: .45rem; }
#preview-nav .cl-pn-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; font-size: .8rem; text-decoration: none; transition: background-color .15s, color .15s; }
#preview-nav .cl-pn-arrow:hover, #preview-nav .cl-pn-arrow:focus { background: #fff; color: #1f4e79; }
#preview-nav .cl-pn-arrow.disabled { opacity: .35; pointer-events: none; }
#preview-nav .cl-pn-pick { display: flex; align-items: center; gap: .55rem; padding: .25rem .65rem .25rem .3rem; border: 1px solid rgba(255,255,255,.35); border-radius: .6rem; background: rgba(255,255,255,.08); color: #fff; }
#preview-nav .cl-pn-pick:hover, #preview-nav .cl-pn-pick:focus, #preview-nav .cl-pn-pick[aria-expanded="true"] { background: rgba(255,255,255,.2); color: #fff; }
#preview-nav .cl-pn-pick.dropdown-toggle::after { display: none; }
#preview-nav .cl-pn-thumb img { display: block; width: auto !important; height: 36px !important; max-width: 60px; padding: 2px; background: #fff; border-radius: .35rem; }
#preview-nav .cl-pn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
#preview-nav .cl-pn-model { font-size: .9rem; font-weight: 700; }
#preview-nav .cl-pn-change { color: #fff; font-size: .72rem; text-decoration: underline; opacity: .85; }
#preview-nav .cl-pn-chev { width: .5rem; height: .5rem; margin-left: .1rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
#preview-nav .cl-pn-pick[aria-expanded="true"] .cl-pn-chev { transform: rotate(-135deg) translateY(-2px); }
#preview-nav .cl-pn-all { margin-left: .35rem; }

/* Qty Discounts button beside Add to Cart (green outline, kept apart from the site's navy .btn) */
#productInfo .cl-qd-btn { background: #fff; border: 1px solid #28a745; border-radius: .25rem; color: #1e7e34; font-weight: 600; white-space: nowrap; }
#productInfo .cl-qd-btn:hover, #productInfo .cl-qd-btn:focus { background: #28a745; border-color: #28a745; color: #fff; }

/* Product info: Checkout button beside the Shopping Cart heading (matches the header's green Checkout) */
#productInfo .cl-cart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
#productInfo .card-header a.cl-cart-checkout { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .85rem; border-radius: 2rem; background: #28a745; color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
#productInfo .card-header a.cl-cart-checkout:hover, #productInfo .card-header a.cl-cart-checkout:focus { background: #218838; color: #fff; text-decoration: none; }
/* Discounts pill beside Checkout (quantity discount modal) */
#productInfo .cl-cart-head-acts { display: inline-flex; align-items: center; gap: .4rem; }
#productInfo .card-header a.cl-cart-qd { display: inline-flex; align-items: center; gap: .35rem; padding: calc(.3rem - 1px) .85rem; border: 1px solid #28a745; border-radius: 2rem; background: #fff; color: #1e7e34; font-size: .85rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
#productInfo .card-header a.cl-cart-qd:hover, #productInfo .card-header a.cl-cart-qd:focus { background: #28a745; color: #fff; text-decoration: none; }

/* =====================================================================
   AJAX cart list (tpl_modules_ajax_shopping_cart_contents.php)
   Compact rows, summary line, newest first, "View full cart" link
   ===================================================================== */
#productInfo .cl-cart-body { padding: .75rem; }
.cl-cart-sum { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; padding: .5rem .75rem; background: #e9f1f8; border-radius: .5rem; color: #1f4e79; font-size: .9rem; }
.cl-cart-sum-total b { font-size: 1rem; }
.cl-cart-list { display: flex; flex-direction: column; gap: .4rem; }
.cl-cart-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; }
.cl-cart-row.cl-cart-new, .cl-cart-row.cl-cart-current { border-color: #28a745; box-shadow: 0 0 0 2px rgba(40,167,69,.2); }
.cl-cart-thumb { display: flex; flex: 0 0 80px; align-items: center; justify-content: center; width: 80px; height: 80px; }
.cl-cart-thumb svg, .cl-cart-thumb img { display: block; width: 80px !important; height: 80px !important; max-width: 80px; }
.cl-cart-info { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; font-size: .8rem; line-height: 1.25; }
.cl-cart-name { display: -webkit-box; overflow: hidden; color: #212529; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-cart-name:hover { color: #1f4e79; }
.cl-cart-qty { margin-top: .15rem; color: #6c757d; }
.cl-cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; font-size: .85rem; white-space: nowrap; }
.cl-cart-price { color: #1f4e79; }
.cl-cart-remove { color: #adb5bd; font-size: .85rem; cursor: pointer; }
.cl-cart-remove:hover, .cl-cart-remove:focus { color: #c0392b; }
.cl-cart-acts { display: flex; gap: .7rem; }
.cl-cart-edit { color: #adb5bd; font-size: .85rem; }
.cl-cart-edit:hover, .cl-cart-edit:focus { color: #1f4e79; }
/* product page edit mode: the line being edited (jscript_addtocart.php) */
.cl-cart-row.cl-cart-editing { background: #eaf6ec; border-color: #28a745; box-shadow: 0 0 0 2px rgba(40,167,69,.25); }
.cl-cart-row.cl-cart-editing .cl-cart-edit, .cl-cart-row.cl-cart-editing .cl-cart-edit:hover { color: #28a745; font-size: 1rem; }
.cl-cart-more { display: block; margin-top: .6rem; padding: .45rem; border: 1px dashed #9cb3c9; border-radius: .5rem; color: #1f4e79; font-size: .85rem; font-weight: 600; text-align: center; }
.cl-cart-more:hover { background: #e9f1f8; color: #1f4e79; text-decoration: none; }
.cl-cart-empty { padding: 1rem 0; color: #6c757d; text-align: center; }

/* Cart thumbnails: + zoom button (product info page only; the modal lives there) */
.cl-cart-thumb { position: relative; }
.cl-cart-thumb > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cl-cart-zoom { display: none; }
#productInfo .cl-cart-zoom { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #1f4e79; color: #fff; font-size: .6rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
#productInfo .cl-cart-zoom:hover, #productInfo .cl-cart-zoom:focus { background: #163a5c; outline: none; box-shadow: 0 0 0 3px rgba(31,78,121,.3); }
#clCartZoom .modal-content { border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; }
#clCartZoom .modal-title { font-size: 1.05rem; font-weight: 700; color: #1f4e79; }
#clCartZoom .cl-zoom-art { display: flex; align-items: center; justify-content: center; padding: .5rem; background: #f8f9fa; border-radius: .5rem; }
#clCartZoom .cl-zoom-art svg, #clCartZoom .cl-zoom-art img { display: block; width: 100%; height: auto; max-height: 70vh; }

/* =====================================================================
   Shopping cart page (tpl_shopping_cart_default.php)
   ===================================================================== */
.ct-cart h1 i { margin-right: .35rem; color: var(--ct-accent); }
.ct-cart-summary .card-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.5rem; }
.ct-cart-totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; font-size: 1.05rem; }
.ct-cart-sub b { color: var(--ct-accent); font-size: 1.25rem; }
.ct-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ct-cart-min { flex-basis: 100%; margin: 0; }
.ct-page a.ct-cart-checkout { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1.2rem; border-radius: 2rem; background: #28a745; color: #fff; font-weight: 700; white-space: nowrap; text-decoration: none; }
.ct-page a.ct-cart-checkout:hover, .ct-page a.ct-cart-checkout:focus { background: #218838; color: #fff; text-decoration: none; }
.ct-page a.ct-cart-checkout-lg { padding: .6rem 1.6rem; font-size: 1.1rem; }

.ct-cart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.ct-cart-head small { color: #6c757d; font-weight: 600; }
.ct-cart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; }
.ct-cart-all { color: #495057; font-weight: 600; cursor: pointer; }
.ct-cart-all input { margin-right: .3rem; vertical-align: middle; }
.ct-page .ct-cart-tools .btn { padding: .25rem .8rem; }

.ct-page .ct-cart-items > .card-body { padding: 0 1.5rem; }
.ct-cart-row { display: grid; grid-template-columns: 1.5rem 120px minmax(0, 1fr) 6rem 8rem; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px dashed #e5e5e5; }
.ct-cart-row:last-child { border-bottom: 0; }
.ct-cart-pick { padding-top: .2rem; }
.ct-cart-pick input { width: 1.05rem; height: 1.05rem; cursor: pointer; }
.ct-cart-thumb { position: relative; width: 120px; height: 120px; }
.ct-cart-thumb > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 4px; background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; }
.ct-cart-thumb svg, .ct-cart-thumb img { display: block; width: 100% !important; height: 100% !important; }
.ct-cart-zoom { position: absolute; right: -6px; bottom: -6px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #1f4e79; color: #fff; font-size: .7rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.ct-cart-zoom:hover, .ct-cart-zoom:focus { background: #163a5c; outline: none; box-shadow: 0 0 0 3px rgba(31,78,121,.3); }
.ct-page a.ct-cart-name { display: block; margin-bottom: .35rem; color: #212529; font-weight: 700; }
.ct-page a.ct-cart-name:hover { color: var(--ct-accent); }
.ct-page a.ct-cart-name:has(+ .ct-cart-model) { margin-bottom: .1rem; }
.ct-page .ct-cart-model { margin-bottom: .35rem; color: #6c757d; font-size: .85rem; }
.ct-page .ct-cart-model b { color: #212529; }
.ct-page ul.ct-cart-attrs { margin: 0; padding: 0; list-style: none; font-size: .85rem; color: #495057; }
.ct-page ul.ct-cart-attrs li { padding: .1rem 0; }
.ct-cart-attrs li > span { margin-right: .25rem; color: var(--ct-accent); font-weight: 600; }
.ct-cart-attrs li > span::after { content: ":"; }
.ct-cart-label { display: block; margin-bottom: .2rem; color: #6c757d; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ct-cart-qty input[type="text"], .ct-cart-qty input[type="number"] { width: 4.5rem; max-width: 100%; margin: 0 !important; text-align: center; }
.ct-cart-money { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; text-align: right; }
.ct-cart-total { color: var(--ct-accent); font-size: 1.1rem; font-weight: 800; }
.ct-cart-each { color: #6c757d; font-size: .8rem; }
.ct-page a.ct-cart-del { margin-top: .35rem; color: #c0392b; font-size: .8rem; font-weight: 600; }
.ct-page a.ct-cart-edit { margin-top: .35rem; color: #1f4e79; font-size: .8rem; font-weight: 600; }

.ct-page .ct-cart-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1.5rem; }
.ct-cart-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; }

#ctCartZoom .modal-content { border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; }
#ctCartZoom .modal-title { color: #1f4e79; font-size: 1.05rem; font-weight: 700; }
#ctCartZoom .ct-zoom-art { display: flex; align-items: center; justify-content: center; padding: .5rem; background: #f8f9fa; border-radius: .5rem; }
#ctCartZoom .ct-zoom-art svg, #ctCartZoom .ct-zoom-art img { display: block; width: 100%; height: auto; max-height: 70vh; }

@media (max-width: 767.98px) {
  .ct-page .ct-cart-items > .card-body { padding: 0 1rem; }
  .ct-cart-row { grid-template-columns: 1.25rem 90px minmax(0, 1fr); gap: .5rem .75rem; }
  .ct-cart-thumb { width: 90px; height: 90px; }
  .ct-cart-qty, .ct-cart-money { grid-column: 3; }
  .ct-cart-money { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; text-align: left; }
  .ct-cart-tools { width: 100%; }
}
.ct-page .ct-cart-tools .ct-cart-remove-sel { background: #fff; border: 1px solid #c0392b; color: #c0392b; }
.ct-page .ct-cart-tools .ct-cart-remove-sel:hover, .ct-page .ct-cart-tools .ct-cart-remove-sel:focus { background: #c0392b; color: #fff; }

/* =====================================================================
   Checkout: shared parts (step bar, top bar, buttons) + shipping page
   ===================================================================== */
.ct-progress { display: flex; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ct-progress li { display: flex; flex: 1 1 0; align-items: center; gap: .5rem; padding: .55rem .8rem; background: #fff; border-top: 3px solid #dee2e6; border-radius: .6rem; box-shadow: 0 4px 18px rgba(0,0,0,.06); color: #6c757d; font-size: .9rem; font-weight: 600; }
.ct-progress li span { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e9ecef; color: #6c757d; font-size: .8rem; font-weight: 800; }
.ct-progress li a { color: inherit; text-decoration: none; }
.ct-progress li.done { border-top-color: #28a745; color: #1e7e34; }
.ct-progress li.done span { background: #28a745; color: #fff; }
.ct-progress li.active { border-top-color: #1f4e79; color: #1f4e79; }
.ct-progress li.active span { background: #1f4e79; color: #fff; }
@media (max-width: 575.98px) {
  .ct-progress li { justify-content: center; padding: .5rem; }
  .ct-progress li:not(.active) { font-size: 0; }
  .ct-progress li:not(.active) span { font-size: .8rem; }
}

.ct-checkout-bar .card-body { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .85rem 1.5rem; }
.ct-page .ct-checkout-bar h1 { flex: 1 1 auto; margin: 0; font-size: 1.4rem; }
.ct-checkout-bar h1 i { margin-right: .35rem; color: var(--ct-accent); }
.ct-page a.ct-checkout-back { color: var(--ct-accent); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.ct-checkout-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ct-checkout-next { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.3rem; border: 0; border-radius: 2rem; background: #28a745; color: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ct-checkout-next:hover, .ct-checkout-next:focus { background: #218838; color: #fff; outline: none; }
.ct-checkout-foot { display: flex; justify-content: flex-end; margin: 0 0 1.5rem; }
.ct-checkout-foot .ct-checkout-next { padding: .6rem 1.6rem; font-size: 1.05rem; }
.ct-page .ct-checkout h2.card-header, .ct-checkout h2.card-header { margin: 0; padding: .75rem 1.5rem; font-size: 1.1rem; }
.ct-checkout .card-header i { margin-right: .35rem; }
.ct-checkout-help { color: #495057; font-size: .9rem; }

.ct-checkout-address { margin-bottom: .75rem; padding: .75rem 1rem; background: #f8f9fb; border-left: 4px solid var(--ct-accent); border-radius: .5rem; font-style: normal; line-height: 1.5; }
.ct-checkout-addr-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-page .ct-checkout-tax { margin: 1rem 0 0; font-weight: normal; }
.ct-checkout-tax p { margin-bottom: .5rem; }
.ct-page .ct-checkout-comment-note { margin-top: 0; font-weight: normal; }

.ct-ship-group { margin-bottom: 1rem; }
.ct-ship-group:last-child { margin-bottom: 0; }
.ct-ship-group-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; color: #343a40; font-weight: 700; }
.ct-ship-group-head img { max-height: 28px; width: auto; }
.ct-ship-opt.custom-control { margin-bottom: .4rem; padding-left: 0; }
.ct-ship-opt .custom-control-label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .65rem .9rem .65rem 2.6rem; background: #fff; border: 2px solid #e3e6ea; border-radius: .6rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ct-ship-opt .custom-control-label::before, .ct-ship-opt .custom-control-label::after { top: 50%; left: .9rem; margin-top: -.5rem; }
.ct-ship-opt .custom-control-label:hover { border-color: #9cb3c9; }
.ct-ship-opt .custom-control-input:checked ~ .custom-control-label { background: #e9f1f8; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.12); }
.ct-ship-opt .custom-control-input:checked ~ .custom-control-label::before { background-color: #1f4e79; border-color: #1f4e79; }
.ct-ship-title { font-weight: 600; }
.ct-ship-cost { color: var(--ct-accent); font-weight: 800; white-space: nowrap; }
.ct-ship-error { color: #a71d2a; font-size: .9rem; }
.ct-ship-free { padding: .75rem 1rem; background: #e2f0e8; border-left: 4px solid #2e7d5b; border-radius: .5rem; }
.ct-checkout { max-width: 72rem; margin-left: auto; margin-right: auto; }

/* =====================================================================
   Checkout address modals: Address Book + Create New Address
   (modalboxes tpl_shipping_address_book.php / tpl_shipping_address.php,
    tpl_modules_checkout_address_book.php, tpl_modules_checkout_new_shipping_address.php)
   ===================================================================== */
.shipadd-modal-lg .modal-content, .shipaddbook-modal-lg .modal-content { border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.shipadd-modal-lg .modal-header, .shipaddbook-modal-lg .modal-header { background: #e9f1f8; border-bottom: 0; border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
.shipadd-modal-lg .modal-title, .shipaddbook-modal-lg .modal-title { color: #1f4e79; font-size: 1.15rem; font-weight: 700; }
.shipadd-modal-lg .modal-body > .container { padding: 0; }
.shipadd-modal-lg .card, .shipaddbook-modal-lg #addressBookEntries-card { border: 0; background: transparent; box-shadow: none; }
.shipaddbook-modal-lg #addressBookEntries-card > .card-header, .ct-addr-form > .card-header { padding: 0 0 .6rem; background: transparent; border: 0; color: #343a40; font-size: 1rem; font-weight: 700; }
.shipaddbook-modal-lg #addressBookEntries-card > .card-body, .ct-addr-form > .card-body { padding: 0 !important; }

/* saved addresses: one tile each */
.ct-addr-list { display: flex; flex-direction: column; gap: .5rem; }
.ct-addr-opt.custom-control { margin: 0; padding-left: 0; }
.ct-addr-opt .custom-control-label { display: block; width: 100%; padding: .7rem 1rem .7rem 2.6rem; background: #fff; border: 2px solid #e3e6ea; border-radius: .6rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ct-addr-opt .custom-control-label::before, .ct-addr-opt .custom-control-label::after { top: .95rem; left: .95rem; }
.ct-addr-opt .custom-control-label:hover { border-color: #9cb3c9; }
.ct-addr-opt .custom-control-input:checked ~ .custom-control-label { background: #e9f1f8; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.12); }
.ct-addr-opt .custom-control-input:checked ~ .custom-control-label::before { background-color: #1f4e79; border-color: #1f4e79; }
.ct-addr-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: #212529; font-weight: 700; }
.ct-addr-badge { padding: .1rem .55rem; background: #1f4e79; border-radius: 2rem; color: #fff; font-size: .7rem; font-weight: 700; }
.ct-addr-opt address { margin: .25rem 0 0; color: #495057; font-size: .9rem; line-height: 1.45; }

/* new address form */
.ct-addr-form .required-info { margin-bottom: .75rem; color: #6c757d; font-size: .8rem; }
.ct-addr-form label.inputLabel { margin-bottom: .25rem; color: #343a40; font-size: .85rem; font-weight: 600; }
.ct-addr-form .form-control:focus, .ct-addr-form .custom-select:focus { border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.ct-addr-form-foot { display: flex; justify-content: flex-end; padding-top: .75rem; border-top: 1px dashed #e5e5e5; }
.ct-addr-form-foot .btn { border-radius: 2rem; font-weight: 600; padding-left: 1.2rem; padding-right: 1.2rem; }
.shipaddbook-modal-lg .modal-body { max-height: calc(100vh - 11rem); overflow-y: auto; }
/* Edit Address form: "your current address is filled in" note + Clear the form link */
.ct-addr-help { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; padding: .6rem .85rem; background: #e9f1f8; border-left: 4px solid #1f4e79; border-radius: .5rem; color: #212529; font-size: .85rem; }
.ct-addr-help > i { margin-top: .15rem; color: #1f4e79; }
.ct-addr-clear { padding: 0; border: 0; background: none; color: #1f4e79; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ct-addr-clear:hover, .ct-addr-clear:focus { color: #163a5c; outline: none; }

/* =====================================================================
   Checkout payment page (tpl_checkout_payment_default.php)
   ===================================================================== */
.ct-pay-cards { margin-bottom: .75rem; color: #495057; font-size: .9rem; }
.ct-page .card .ct-pay-opt.card { margin-bottom: .6rem; background: #fff; border: 2px solid #e3e6ea; border-radius: .6rem; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.ct-page .card .ct-pay-opt.card:last-child { margin-bottom: 0; }
.ct-page .card .ct-pay-opt > .card-header { padding: .65rem .9rem; background: transparent; border: 0; color: #212529; }
.ct-pay-opt .custom-control-label, .ct-pay-only { font-weight: 600; cursor: pointer; }
.ct-pay-opt .custom-control-label img { max-height: 26px; width: auto; vertical-align: middle; }
.ct-page .card .ct-pay-opt:hover { border-color: #9cb3c9; }
.ct-page .card .ct-pay-opt:has(input[name="payment"]:checked) { background: #f4f8fc; border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.12); }
.ct-pay-opt .custom-control-input:checked ~ .custom-control-label::before { background-color: #1f4e79; border-color: #1f4e79; }
.ct-page .card .ct-pay-opt > .ccInfo { padding: .5rem .9rem .9rem; border-top: 1px dashed #e5e5e5; }
.ct-pay-error { color: #a71d2a; font-size: .9rem; }

.ct-page .ct-ot-table { margin: 0; }
.ct-page .ct-ot-table td { padding: .35rem 0; border: 0; }
.ct-ot-table .ot-title { color: #495057; text-align: left; }
.ct-ot-table .ot-text { font-weight: 600; text-align: right; white-space: nowrap; }
.ct-page .ct-ot-table #ottotal td { padding-top: .6rem; border-top: 2px solid #1f4e79; color: #1f4e79; font-size: 1.15rem; font-weight: 800; }
#checkoutPayment #cli_comment { min-height: 4.5rem; cursor: pointer; }

/* billing address popups: same look as the shipping ones */
.payadd-modal-lg .modal-content, .payaddbook-modal-lg .modal-content { border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.payadd-modal-lg .modal-header, .payaddbook-modal-lg .modal-header { background: #e9f1f8; border-bottom: 0; border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
.payadd-modal-lg .modal-title, .payaddbook-modal-lg .modal-title { color: #1f4e79; font-size: 1.15rem; font-weight: 700; }
.payadd-modal-lg .modal-body > .container { padding: 0; }
.payadd-modal-lg .card, .payaddbook-modal-lg #addressBookEntries-card { border: 0; background: transparent; box-shadow: none; }
.payaddbook-modal-lg #addressBookEntries-card > .card-header { padding: 0 0 .6rem; background: transparent; border: 0; color: #343a40; font-size: 1rem; font-weight: 700; }
.payaddbook-modal-lg #addressBookEntries-card > .card-body { padding: 0 !important; }
.payaddbook-modal-lg .modal-body { max-height: calc(100vh - 11rem); overflow-y: auto; }

/* =====================================================================
   Checkout review / confirmation page (tpl_checkout_confirmation_default.php)
   ===================================================================== */
.ct-confirm-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 400px; margin-bottom: 1rem; background: #fff; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); color: #1f4e79; font-weight: 700; }
.ct-confirm-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ct-confirm-head small { color: #6c757d; font-weight: 600; }
.ct-page a.ct-confirm-edit { color: var(--ct-accent); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ct-confirm-row { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-bottom: 1px dashed #e5e5e5; }
.ct-confirm-row:first-child { padding-top: 0; }
.ct-confirm-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ct-confirm-qty { flex: 0 0 3rem; color: #1f4e79; font-weight: 800; }
.ct-confirm-item { flex: 1 1 auto; min-width: 0; }
.ct-confirm-name { margin-bottom: .2rem; font-weight: 700; }
.ct-confirm-tax { color: #6c757d; font-size: .85rem; white-space: nowrap; }
.ct-confirm-price { color: #1f4e79; font-weight: 800; text-align: right; white-space: nowrap; }
.ct-confirm-cta { margin-top: 1rem; }
.ct-confirm-cta .ct-checkout-next { justify-content: center; width: 100%; padding: .65rem 1rem; font-size: 1.05rem; }
.ct-confirm-loading { max-height: 40px; margin: 0 auto; }
.ct-confirm-line { margin-top: .25rem; }
.ct-confirm-label { display: block; margin-bottom: .15rem; color: #6c757d; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ct-confirm-comment { color: #495057; }
@media (max-width: 575.98px) {
  .ct-confirm-qty { flex-basis: 2.25rem; }
}

/* Address popups (modalboxes): icon in title, help line, Cancel / Use buttons in the footer */
.ct-addr-modal .modal-title i { margin-right: .4rem; opacity: .85; }
.ct-addr-modal-help { margin-bottom: .75rem; color: #495057; font-size: .9rem; }
.ct-addr-modal .modal-footer { justify-content: space-between; border-top: 1px dashed #e5e5e5; }
.ct-addr-modal .ct-addr-use { padding: .45rem 1.2rem; border-radius: 2rem; font-weight: 600; }
.ct-addr-modal .ct-addr-cancel { color: #6c757d; font-weight: 600; }
.ct-addr-page .ct-addr-form { margin-bottom: 1rem; }

/* Payment page: Order Options card (Priority Handling + order comment) */
.ct-opt-section { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed #e5e5e5; }
.ct-opt-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ct-page h3.ct-opt-title { margin: 0 0 .3rem; color: var(--ct-accent); font-size: 1rem; }
.ct-opt-title i { margin-right: .35rem; }
.ct-opt-section .ct-checkout-help { margin-bottom: .5rem; }
.ct-opt-section .inputLabel { margin-bottom: .25rem; font-size: .9rem; font-weight: 600; }

/* =====================================================================
   Checkout popups: Purchase Order (tpl_po), Order Comment (tpl_order_comment), UPS Collect (tpl_ups_collect)
   ===================================================================== */
.ct-pop .modal-content { border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.ct-pop .modal-header { align-items: center; background: #e9f1f8; border-bottom: 0; border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
.ct-pop .modal-title { color: #1f4e79; font-size: 1.15rem; font-weight: 700; }
.ct-pop .modal-title i { margin-right: .4rem; opacity: .85; }
.ct-pop .modal-footer { justify-content: space-between; border-top: 1px dashed #e5e5e5; }
.ct-pop .ct-pop-ok { padding: .45rem 1.2rem; border-radius: 2rem; font-weight: 600; }
.ct-pop .ct-pop-cancel { color: #6c757d; font-weight: 600; }
.ct-pop-label { margin-bottom: .25rem; color: #343a40; font-size: .9rem; font-weight: 600; }
.ct-pop .form-control:focus, .ct-pop .custom-select:focus { border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.ct-pop .ct-pop-warn { margin: 0 0 1rem; font-weight: normal; }
.ct-pop-sub { margin: 1.25rem 0 .5rem; color: #1f4e79; font-size: .95rem; font-weight: 700; }
.ct-pop-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.ct-pop-list li { display: flex; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed #eef0f2; }
.ct-pop-list li:last-child { border-bottom: 0; }
.ct-pop-list li > i { flex: 0 0 1.1rem; margin-top: .2rem; color: #1f4e79; text-align: center; }
.ct-pop-list a { color: #1f4e79; font-weight: 600; }
.ct-pop-thanks { margin: 0; color: #6c757d; font-size: .9rem; }
.ct-pop-intro { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: .75rem 1rem; background: #f8f9fb; border-radius: .5rem; }
.ct-pop-intro img { flex: 0 0 auto; height: auto; }
.ct-pop-intro p { margin: 0; color: #495057; font-size: .9rem; }
.ct-pop-acct { max-width: 12rem; font-family: SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; }
.ct-pop-error { margin-top: .35rem; color: #c0392b; font-size: .85rem; font-weight: 600; }
.ct-pop-error:empty { display: none; }
.ct-pop .ct-pop-cancel, .ct-addr-modal .ct-addr-cancel { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: #6c757d !important; }
.ct-pop .ct-pop-cancel:hover, .ct-pop .ct-pop-cancel:focus, .ct-addr-modal .ct-addr-cancel:hover, .ct-addr-modal .ct-addr-cancel:focus { color: #1f4e79 !important; text-decoration: underline; }

/* Payment page: tighten the Square credit card area. These elements are Square's; each rule only
   hides something while it is empty or hidden, so Apple Pay (Safari), the card button and card
   error messages still show when Square fills them in. */
#apple-pay-button:empty { display: none; }
#ct-pay-square_webPay #card-button[style*="hidden"] { display: none; }
#ct-pay-square_webPay .sq-card-message:empty { display: none; }
#ct-pay-square_webPay .sq-card-message { margin: .35rem 0 0; }
#ct-pay-square_webPay .ccInfo > .inputLabelPayment:empty { display: none; }
#ct-pay-square_webPay #google-pay-button { margin-bottom: .6rem; }
#ct-pay-square_webPay .ccInfo { padding-top: .75rem; }
/* order comment hints in grey (the site's placeholder color is red) */
#checkoutPayment #cli_comment::placeholder, #cli_comment_popup::placeholder { color: #8a9099; opacity: 1; }

/* Review page: ship-to first (highlighted), "Ships to" line by the Confirm button, billing + comments in one card */
.ct-page .ct-confirm-shipto { box-shadow: 0 0 0 2px rgba(31,78,121,.18), 0 4px 18px rgba(0,0,0,.08); }
.ct-confirm-head i { margin-right: .35rem; }
.ct-confirm-shipto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ct-confirm-shipto .ct-checkout-address { margin: 0; font-size: 1.05rem; }
.ct-confirm-shipto-grid .ct-confirm-line { margin-top: 0; padding: .75rem 1rem; background: #e9f1f8; border-radius: .5rem; }
.ct-confirm-shipsto { display: flex; align-items: flex-start; gap: .5rem; margin-top: 1rem; padding: .55rem .75rem; background: #fff8e1; border-left: 4px solid #e0a800; border-radius: .5rem; font-size: .85rem; }
.ct-confirm-shipsto i { margin-top: .15rem; color: #b8860b; }
.ct-page h3.ct-confirm-subhead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ct-confirm-subhead i { margin-right: .35rem; }
@media (max-width: 575.98px) {
  .ct-confirm-shipto-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Checkout success (tpl_checkout_success_default.php)
   ===================================================================== */
.ct-success-hero .card-body { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
.ct-success-icon { display: flex; flex: 0 0 3.5rem; align-items: center; justify-content: center; height: 3.5rem; border-radius: 50%; background: #28a745; box-shadow: 0 0 0 6px rgba(40,167,69,.15); color: #fff; font-size: 1.6rem; }
.ct-success-main { flex: 1 1 auto; min-width: 0; }
.ct-page .ct-success-hero h1 { margin: 0 0 .5rem; font-size: 1.5rem; }
.ct-success-number { display: inline-block; margin-bottom: .6rem; padding: .3rem .9rem; background: #e9f1f8; border-radius: 2rem; color: #1f4e79; font-size: .95rem; }
.ct-success-number b { margin-left: .25rem; font-size: 1.15rem; }
.ct-success-main p { margin-bottom: 0; color: #495057; }
.ct-success-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ct-page .ct-success-po { display: flex; align-items: flex-start; gap: .6rem; font-weight: normal; }
.ct-success-po > i { margin-top: .2rem; }
.ct-success-thanks { margin: 1rem 0 2rem; color: #1f4e79; font-size: 1.1rem; font-weight: 700; text-align: center; }
.ct-success .custom-control { margin-bottom: .35rem; }
@media (max-width: 575.98px) {
  .ct-success-hero .card-body { flex-direction: column; align-items: center; text-align: center; }
  .ct-success-actions { justify-content: center; }
}

/* =====================================================================
   Order details (tpl_account_history_info_default.php)
   used by My Account > order info and by checkout success
   ===================================================================== */
.ct-orderinfo-title { flex: 1 1 auto; min-width: 0; }
.ct-page .ct-orderinfo-title h2 { margin: 0; padding: 0; border: 0; font-size: 1.4rem; }
.ct-orderinfo-title h2 i { margin-right: .35rem; color: var(--ct-accent); }
.ct-orderinfo-date { display: block; margin-top: .15rem; color: #6c757d; font-size: .85rem; }
.ct-orderinfo-status { display: inline-block; padding: .3rem .9rem; background: var(--ct-tint); border-radius: 2rem; color: var(--ct-accent); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.ct-orderinfo .card-header h3, .ct-page.ct-orderinfo h3.card-header { margin: 0; font-size: 1.1rem; color: var(--ct-accent); }
.ct-orderinfo .card-header i { margin-right: .35rem; }
.ct-orderinfo-row { display: flex; align-items: flex-start; gap: .9rem; padding: .85rem 0; border-bottom: 1px dashed #e5e5e5; }
.ct-orderinfo-row:first-child { padding-top: 0; }
.ct-orderinfo-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ct-orderinfo-thumb { display: flex; flex: 0 0 80px; align-items: center; justify-content: center; width: 80px; height: 80px; padding: 4px; background: #f8f9fb; border: 1px solid #e5e5e5; border-radius: .5rem; overflow: hidden; }
.ct-orderinfo-thumb svg, .ct-orderinfo-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.ct-orderinfo-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .25rem; color: #6c757d; font-size: .85rem; }
.ct-orderinfo-meta b { color: #212529; }
.ct-page .ct-orderinfo-totals { display: flex; justify-content: flex-end; padding: .85rem 1.5rem 1rem; background: #f8f9fb; border-top: 1px solid #e5e5e5; border-radius: 0 0 .75rem .75rem; }
.ct-orderinfo-totals .ct-ot-table { width: auto; min-width: 280px; }
.ct-orderinfo-totals .ct-ot-table .ot-title { padding-right: 2rem; text-align: right; }
.ct-orderinfo .ct-confirm-line { margin-top: .5rem; }
.ct-page ol.ct-orderinfo-timeline { position: relative; margin: 0; padding: 0 0 0 1.25rem; list-style: none; }
.ct-orderinfo-timeline::before { content: ""; position: absolute; top: .4rem; bottom: .4rem; left: .3rem; width: 2px; background: #dbe4ee; }
.ct-orderinfo-timeline > li { position: relative; padding-bottom: .9rem; }
.ct-orderinfo-timeline > li:last-child { padding-bottom: 0; }
.ct-orderinfo-timeline > li::before { content: ""; position: absolute; top: .35rem; left: -1.25rem; width: .75rem; height: .75rem; background: #fff; border: 2px solid var(--ct-accent); border-radius: 50%; }
.ct-orderinfo-timeline > li:last-child::before { background: var(--ct-accent); }
.ct-orderinfo-when { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; }
.ct-orderinfo-when b { color: var(--ct-accent); }
.ct-orderinfo-when span { color: #6c757d; font-size: .8rem; }
.ct-orderinfo-note { margin-top: .35rem; padding: .4rem .65rem; background: #f8f9fb; border-radius: .4rem; color: #495057; font-size: .875rem; overflow-wrap: anywhere; }
.ct-success .ct-orderinfo { margin-top: 0; }
@media (max-width: 575.98px) {
  .ct-orderinfo-thumb { flex-basis: 60px; width: 60px; height: 60px; }
  .ct-orderinfo-row { flex-wrap: wrap; }
  .ct-orderinfo-row .ct-confirm-price { flex: 1 0 100%; }
  .ct-page .ct-orderinfo-totals { padding: .75rem 1rem; }
  .ct-orderinfo-totals .ct-ot-table { width: 100%; min-width: 0; }
}
/* Order details: notes, PO / UPS chips and collapsible history in the header card */
.ct-orderinfo-notes { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px dashed #e5e5e5; }
.ct-orderinfo-chip { display: inline-block; padding: .25rem .75rem; background: var(--ct-tint); border-radius: 2rem; color: var(--ct-accent); font-size: .8rem; }
.ct-orderinfo-chip b { margin-left: .15rem; color: #212529; }
.ct-orderinfo-comment { flex: 1 0 100%; order: 2; padding: .45rem .75rem; background: #f8f9fb; border-left: 3px solid var(--ct-accent); border-radius: .4rem; color: #495057; font-size: .9rem; overflow-wrap: anywhere; }
.ct-orderinfo-comment .ct-confirm-label { display: inline; margin: 0 .5rem 0 0; }
.ct-page a.ct-orderinfo-histlink { order: 1; margin-left: auto; color: var(--ct-accent); font-size: .85rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ct-orderinfo-histlink i { margin-right: .2rem; }
.ct-orderinfo-chev { margin: 0 0 0 .2rem; font-size: .7rem; transition: transform .2s; }
.ct-orderinfo-histlink:not(.collapsed) .ct-orderinfo-chev { transform: rotate(180deg); }
.ct-orderinfo-history { flex: 1 0 100%; }
.ct-orderinfo-history .ct-orderinfo-timeline { margin-top: .5rem; padding-top: .75rem; }
/* Print / Save Invoice: prominent navy button + callout under the order totals */
.ct-page a.ct-invoice-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.15rem; background: #1f4e79; border: 0; border-radius: .5rem; box-shadow: 0 2px 8px rgba(31,78,121,.3); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.ct-page a.ct-invoice-btn:hover, .ct-page a.ct-invoice-btn:focus { background: #163a5c; color: #fff; text-decoration: none; transform: translateY(-1px); }
.ct-page .ct-orderinfo-totals { flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 1.5rem; }
.ct-invoice-callout { display: flex; flex: 1 1 260px; align-items: flex-start; gap: .75rem; max-width: 420px; padding: .85rem 1rem; background: #fff; border: 1px solid #dbe4ee; border-left: 4px solid #1f4e79; border-radius: .6rem; }
.ct-invoice-callout > i { flex: 0 0 auto; margin-top: .15rem; color: #1f4e79; font-size: 1.6rem; }
.ct-invoice-callout b { display: block; color: #1f4e79; }
.ct-invoice-callout span { display: block; margin-bottom: .6rem; color: #495057; font-size: .875rem; }
.ct-success-invoice-tip { margin-top: .75rem; color: #6c757d; font-size: .85rem; }
.ct-success-invoice-tip i { margin-right: .25rem; color: #1f4e79; }
.ct-success-invoice-tip a { font-weight: 600; }
@media (max-width: 575.98px) {
  .ct-invoice-callout { max-width: none; }
  .ct-page a.ct-invoice-btn { justify-content: center; width: 100%; }
}
/* Checkout success: green Print / Save Invoice pill beside the order number */
.ct-success-numrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .6rem; }
.ct-success-numrow .ct-success-number { margin-bottom: 0; }
.ct-page a.ct-invoice-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1.1rem; background: #28a745; border-radius: 2rem; box-shadow: 0 2px 8px rgba(40,167,69,.3); color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.ct-page a.ct-invoice-pill:hover, .ct-page a.ct-invoice-pill:focus { background: #218838; color: #fff; text-decoration: none; transform: translateY(-1px); }
@media (max-width: 575.98px) {
  .ct-success-numrow { justify-content: center; }
}
/* Review page: ship-to + bill-to side by side above the items (summary chips in the header use the ct-orderinfo- styles) */
.ct-page .ct-confirm-addrs { box-shadow: 0 0 0 2px rgba(31,78,121,.18), 0 4px 18px rgba(0,0,0,.08); }
.ct-confirm-addr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ct-page h2.ct-confirm-addr-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .6rem; padding: 0 0 .5rem; border-bottom: 1px dashed #e5e5e5; color: var(--ct-accent); font-size: 1.05rem; }
.ct-confirm-addr-head i { margin-right: .35rem; }
.ct-confirm-addr .ct-checkout-address { margin-bottom: .5rem; }
.ct-confirm-addr-ship .ct-checkout-address { background: var(--ct-tint); font-size: 1.05rem; }
.ct-confirm-addr .content { margin-top: .25rem; color: #495057; font-size: .875rem; }
@media (max-width: 767.98px) {
  .ct-confirm-addr-grid { grid-template-columns: 1fr; }
}
/* Checkout steps: the whole card is the link on completed steps */
.ct-progress li > a { display: flex; flex: 1 1 auto; align-self: stretch; align-items: center; gap: .5rem; margin: -.55rem -.8rem; padding: .55rem .8rem; border-radius: .6rem; color: inherit; text-decoration: none; transition: background .15s; }
.ct-progress li > a:hover, .ct-progress li > a:focus { background: #f1f8f3; color: inherit; text-decoration: none; }
.ct-progress li.done:hover { box-shadow: 0 4px 18px rgba(40,167,69,.18); }
@media (max-width: 575.98px) {
  .ct-progress li > a { justify-content: center; margin: -.5rem; padding: .5rem; }
}

/* =====================================================================
   My Account (tpl_account_default.php) + Order History list (tpl_account_history_default.php)
   ===================================================================== */
.ct-acct-title { flex: 1 1 auto; min-width: 0; }
.ct-page .ct-acct-title h1 { margin: 0; font-size: 1.4rem; }
.ct-acct-title h1 i { margin-right: .35rem; color: var(--ct-accent); }
.ct-acct-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.ct-page a.ct-acct-tile { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.15rem; background: #fff; border-top: 4px solid var(--ct-accent); border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); color: #495057; font-size: .875rem; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ct-page a.ct-acct-tile:hover, .ct-page a.ct-acct-tile:focus { box-shadow: 0 6px 22px rgba(31,78,121,.18); color: #495057; text-decoration: none; transform: translateY(-2px); }
.ct-acct-tile > i { display: flex; flex: 0 0 2.6rem; align-items: center; justify-content: center; height: 2.6rem; background: var(--ct-tint); border-radius: .6rem; color: var(--ct-accent); font-size: 1.15rem; }
.ct-acct-tile b { display: block; margin-bottom: .15rem; color: var(--ct-accent); font-size: 1rem; }
.ct-page a.ct-acct-tile-main { grid-column: span 2; background: #1f4e79; border-top-color: #28a745; color: #dbe7f2; }
.ct-page a.ct-acct-tile-main:hover, .ct-page a.ct-acct-tile-main:focus { color: #dbe7f2; }
.ct-acct-tile-main > i { background: rgba(255,255,255,.15); color: #fff; }
.ct-acct-tile-main b { color: #fff; font-size: 1.1rem; }
.ct-page h2.card-header i { margin-right: .35rem; }
.ct-page ul.ct-acct-csv-cols { margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; }
.ct-acct-csv-cols li { padding: .3rem 0; border-bottom: 1px dashed #e5e5e5; color: #495057; }
.ct-acct-csv-cols li:last-child { border-bottom: 0; }
.ct-acct-csv-cols li b { display: inline-block; min-width: 11rem; color: var(--ct-accent); }
.ct-acct-csv-form { padding: .85rem 1rem; background: #f8f9fb; border-radius: .6rem; }
/* smaller versions of the navy / green buttons */
.ct-page a.ct-btn-sm, .ct-page button.ct-btn-sm { padding: .35rem .8rem; font-size: .85rem; }
/* order history list */
.ct-ohist-card .card-body { padding: 1rem 1.25rem; }
.ct-ohist-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; }
.ct-page a.ct-ohist-num { color: var(--ct-accent); text-decoration: none; }
.ct-ohist-num b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.ct-ohist-num:hover b { text-decoration: underline; }
.ct-ohist-fact { color: #212529; font-size: .9rem; }
.ct-ohist-fact .ct-confirm-label, .ct-ohist-num .ct-confirm-label { margin-bottom: .1rem; }
.ct-ohist-shipto { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.ct-ohist-total b { color: var(--ct-accent); font-size: 1.05rem; }
.ct-ohist-top .ct-orderinfo-status { margin-left: auto; }
.ct-page .ct-orderinfo-status.is-shipped { background: #e2f0e8; color: #1e7e34; }
.ct-page .ct-orderinfo-status.is-closed { background: #eef0f2; color: #6c757d; }
.ct-ohist-track { margin-top: .75rem; padding: .45rem .75rem; background: #e2f0e8; border-left: 3px solid #28a745; border-radius: .4rem; color: #1e5631; font-size: .875rem; overflow-wrap: anywhere; }
.ct-ohist-track i { margin-right: .3rem; color: #28a745; }
.ct-ohist-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed #e5e5e5; }
.ct-ohist-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1.5rem; color: #6c757d; font-size: .875rem; }
.ct-ohist-pager .pagination { margin: 0; }
.ct-ohist-empty { padding: 2.5rem 1.5rem; text-align: center; }
.ct-ohist-empty > i { margin-bottom: .75rem; color: var(--ct-accent); font-size: 2.5rem; }
@media (max-width: 575.98px) {
  .ct-page a.ct-acct-tile-main { grid-column: auto; }
  .ct-ohist-top { gap: .6rem 1.25rem; }
  .ct-ohist-top .ct-orderinfo-status { margin-left: 0; }
  .ct-ohist-actions { justify-content: stretch; }
  .ct-ohist-actions > a { flex: 1 1 100%; justify-content: center; text-align: center; }
}
/* light secondary button (View Details) */
.ct-page a.ct-btn-light { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.1rem; background: var(--ct-tint); border-radius: .5rem; color: var(--ct-accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ct-page a.ct-btn-light:hover, .ct-page a.ct-btn-light:focus { background: #d6e5f2; color: var(--ct-accent); text-decoration: none; }
.ct-account h2.card-header { margin: 0; padding: .75rem 1.5rem; border-bottom: 0; font-size: 1.1rem; }
/* =====================================================================
   Account forms: Account Information, Change Password, My Addresses (list + add/edit/delete),
   Newsletter, Product Notifications
   ===================================================================== */
.ct-form .required-info { margin-bottom: .75rem; color: #6c757d; font-size: .8rem; text-align: left; }
.ct-form label.inputLabel { margin-bottom: .25rem; color: #343a40; font-size: .85rem; font-weight: 600; }
.ct-form .form-group { margin-bottom: .9rem; }
.ct-form .form-control:focus, .ct-form .custom-select:focus { border-color: #1f4e79; box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.ct-form .ct-opt-section { margin: .5rem 0 1rem; }
.ct-form .ct-opt-title i { margin-right: .35rem; }
.ct-form-foot-split { justify-content: space-between; align-items: center; gap: .5rem; }
.ct-form-aside .card-body { color: #495057; font-size: .9rem; }
.ct-form-aside i { width: 1.25rem; color: var(--ct-accent); }
.ct-page button.ct-btn-danger { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.3rem; background: #c0392b; border: 0; border-radius: 2rem; color: #fff; font-weight: 700; cursor: pointer; }
.ct-page button.ct-btn-danger:hover, .ct-page button.ct-btn-danger:focus { background: #a93226; outline: none; }
/* My Addresses */
.ct-ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ct-page .card.ct-ab-tile { margin: 0; border-top-color: #dee2e6; }
.ct-page .card.ct-ab-tile.primary-address { border-top-color: var(--ct-accent); box-shadow: 0 0 0 2px rgba(31,78,121,.18), 0 4px 18px rgba(0,0,0,.08); }
.ct-ab-tile .card-body { display: flex; flex-direction: column; padding: 1rem 1.15rem; }
.ct-ab-tile address { flex: 1 1 auto; margin: .4rem 0 .85rem; color: #495057; font-size: .9rem; line-height: 1.5; }
.ct-ab-tile .ct-addr-badge i { margin-right: .15rem; font-size: .6rem; }
.ct-ab-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px dashed #e5e5e5; }
.ct-page a.ct-ab-delete { color: #c0392b; font-size: .85rem; font-weight: 600; }
.ct-page a.ct-ab-delete:hover { color: #a93226; }
.ct-page a.ct-ab-add, .ct-ab-add.is-full { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 170px; padding: 1rem; border: 2px dashed #b9c9d9; border-radius: .75rem; color: var(--ct-accent); font-weight: 700; text-align: center; text-decoration: none; transition: background .15s, border-color .15s; }
.ct-page a.ct-ab-add:hover { background: var(--ct-tint); border-color: var(--ct-accent); color: var(--ct-accent); text-decoration: none; }
.ct-ab-add > i { font-size: 1.75rem; }
.ct-ab-add.is-full { color: #6c757d; font-weight: 600; font-size: .9rem; }
#primaryAddress-card i { margin-right: .35rem; color: var(--ct-accent); }
/* Log Off (tpl_logoff_default.php) */
.ct-logoff-card { max-width: 560px; margin: 1.5rem auto; text-align: center; }
.ct-logoff-card .card-body { padding: 2rem 1.75rem; }
.ct-logoff-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: 1rem; background: var(--ct-tint); border-radius: 50%; box-shadow: 0 0 0 6px rgba(31,78,121,.08); color: var(--ct-accent); font-size: 1.6rem; }
.ct-page .ct-logoff-card h1 { margin: 0 0 .75rem; padding: 0; border: 0; font-size: 1.5rem; }
.ct-logoff-text { color: #495057; }
.ct-logoff-text p:last-child { margin-bottom: 0; }
.ct-logoff-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed #e5e5e5; }
/* =====================================================================
   Site footer (common/tpl_footer.php) - at the end of the page, not fixed to the screen
   ===================================================================== */
/* tpl_main_page wraps the footer in .container-fluid > .row > .col and adds <br>s that made room for the old fixed bar */
#footer-wrapper.container-fluid { padding-left: 0; padding-right: 0; }
#footer-wrapper > .row { margin-left: 0; margin-right: 0; }
#footer-wrapper > .row > .col { padding-left: 0; padding-right: 0; }
#footer-wrapper > br { display: none; }
.ct-footer { margin-top: 1rem; background: #1f4e79; border-top: 4px solid #28a745; color: #dbe7f2; font-size: .9rem; }
.ct-footer #bannerFive { padding: 1rem; background: #fff; }
.ct-footer-main { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 1.5rem; }
.ct-footer-col { flex: 1 1 170px; min-width: 0; }
.ct-footer-brand { flex: 1.6 1 260px; }
.ct-footer-name { margin-bottom: .4rem; color: #fff; font-size: 1.15rem; font-weight: 800; }
.ct-footer-brand p { margin-bottom: .75rem; color: #b9cde0; }
.ct-footer-usa { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; background: rgba(255,255,255,.1); border-radius: 2rem; color: #fff; font-weight: 700; font-size: .85rem; }
/* small flag drawn with CSS: 13 stripes + blue canton */
.ct-footer-flag { display: inline-block; width: 1.35rem; height: .9rem; border-radius: 2px; background: linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 45% 54% no-repeat, repeating-linear-gradient(#b22234 0 7.69%, #fff 7.69% 15.38%); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ct-footer-head { margin-bottom: .6rem; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ct-footer ul { margin: 0; padding: 0; list-style: none; }
.ct-footer li { margin-bottom: .4rem; }
.ct-footer a, .ct-footer .nav-link { color: #dbe7f2; text-decoration: none; }
.ct-footer a:hover, .ct-footer a:focus, .ct-footer .nav-link:hover { color: #fff; text-decoration: underline; }
.ct-footer li i { width: 1.25rem; color: #8fb3d5; }
.ct-footer-ez .ezpagesBar { background: transparent; }
.ct-footer-ez .nav { flex-direction: column; }
.ct-footer-ez .nav-link { padding: 0 0 .4rem; background: transparent !important; }
.ct-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; padding: .75rem 1.5rem; background: #163a5c; color: #8fb3d5; font-size: .8rem; text-align: center; }
.ct-footer-noindex { color: #fff; }
@media (max-width: 767.98px) {
  .ct-footer-main { padding: 1.5rem 1rem 1rem; }
  .ct-footer-brand { flex-basis: 100%; }
}
/* the template's color settings print #footerWrapper { white background, black text } inline - override inside the navy footer */
.ct-footer #footerWrapper { background: transparent; color: inherit; }
.ct-footer #ezpagesBarFooter { background: transparent; }
/* footer logo + store name */
.ct-page a.ct-footer-logo, .ct-footer a.ct-footer-logo { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: .6rem; text-decoration: none; }
.ct-footer a.ct-footer-logo:hover { text-decoration: none; }
.ct-footer-logo img { flex: 0 0 auto; width: 44px; height: 44px; }
.ct-footer-logo .ct-footer-name { margin: 0; }
/* "Shopping for <customer>" chip in the navbar (master-password login); replaces the big header alert */
#navMain .cl-emp { display: inline-flex; align-items: center; gap: .35rem; max-width: 19rem; margin-left: .5rem; padding: .3rem .85rem; background: #ffc107; border-radius: 2rem; color: #212529; font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
#navMain .cl-emp .cl-emp-label { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
  #navMain .cl-emp { padding: .3rem .55rem; }
  #navMain .cl-emp .cl-emp-label { display: none; }
}
/* =====================================================================
   Shipping estimator (tpl_modules_shipping_estimator.php; shown in #shippingEstimatorModal on the cart)
   ===================================================================== */
#shippingEstimatorModal .modal-content { border: 0; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
#shippingEstimatorModal .modal-header { background: #e9f1f8; border-bottom: 0; border-radius: calc(.75rem - 4px) calc(.75rem - 4px) 0 0; }
#shippingEstimatorModal .modal-title { color: #1f4e79; font-size: 1.15rem; font-weight: 700; }
#shippingEstimatorModal .modal-footer { border-top: 1px dashed #e5e5e5; }
.ct-se { width: 100%; }
.ct-page h2.ct-se-title, .ct-se-title { margin: 0 0 .75rem; color: #1f4e79; font-size: 1.15rem; }
.ct-se-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ct-se-summary i { margin-right: .2rem; }
.ct-se-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: start; }
.ct-se .ct-confirm-label { margin-bottom: .4rem; }
.ct-se .ct-confirm-label i { margin-right: .25rem; color: #1f4e79; }
.ct-se-shipto .ct-checkout-address { margin-bottom: .75rem; font-size: .95rem; }
.ct-se-shipto label.inputLabel { margin-bottom: .2rem; color: #343a40; font-size: .85rem; font-weight: 600; }
.ct-se-shipto .form-group { margin-bottom: .7rem; }
.ct-se-shipto select, .ct-se-shipto input[type=text] { width: 100%; }
.ct-se-criteria { margin-bottom: .75rem; padding: .5rem .75rem; background: #f8f9fb; border-radius: .5rem; font-size: .9rem; }
.ct-se ul.ct-se-list { margin: 0; padding: 0; list-style: none; border: 1px solid #e3e6ea; border-radius: .6rem; overflow: hidden; }
.ct-se-rate { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid #eef0f2; }
.ct-se-rate:last-child { border-bottom: 0; }
.ct-se-rate.is-selected { background: #e9f1f8; box-shadow: inset 4px 0 0 #1f4e79; }
.ct-se-name { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.ct-se-name b { display: block; color: #212529; font-weight: 700; }
.ct-se-name small { display: block; color: #6c757d; font-size: .78rem; }
.ct-se-tag { padding: .1rem .55rem; background: #e2f0e8; border-radius: 2rem; color: #1e7e34; font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.ct-se-price { color: #1f4e79; font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.ct-se-rate.is-error { color: #856404; background: #fff8e1; }
.ct-se-foot { margin: .6rem 0 0; color: #6c757d; font-size: .8rem; }
@media (max-width: 767.98px) {
  .ct-se-grid { grid-template-columns: 1fr; gap: 1rem; }
}
/* estimator popup width: the template sets #shippingEstimatorContent to width: fit-content, and the popup is modal-xl (1140px) */
#shippingEstimatorModal .modal-dialog { max-width: 780px; }
#shippingEstimatorModal #shippingEstimatorContent { width: 100%; max-width: none; margin: 0; }
/* product info: Specs & Dimensions pill in the navy model bar (opens the printable specs modal) */
#preview-nav a.cl-pn-specs { display: inline-flex; align-items: center; gap: .4rem; margin-left: .35rem; padding: .4rem 1rem; background: #fff; border-radius: 2rem; color: #1f4e79; font-size: .85rem; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color .15s, box-shadow .15s; }
#preview-nav a.cl-pn-specs:hover, #preview-nav a.cl-pn-specs:focus { background: #e9f1f8; color: #1f4e79; box-shadow: 0 0 0 3px rgba(255,255,255,.25); text-decoration: none; }
@media (max-width: 400px) { #preview-nav a.cl-pn-specs { padding: .4rem .7rem; font-size: .8rem; } }
/* product info: Specs & Dimensions bar at the bottom of the add-to-cart card */
#addToCart-card a.cl-specs-bar { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; background: #e9f1f8; border-top: 1px solid #d6e2ee; border-radius: 0 0 .5rem .5rem; color: #1f4e79; text-decoration: none; transition: background-color .15s; }
#addToCart-card a.cl-specs-bar:hover, #addToCart-card a.cl-specs-bar:focus { background: #d6e5f2; color: #1f4e79; text-decoration: none; }
.cl-specs-icon { flex: 0 0 auto; font-size: 1.25rem; }
.cl-specs-text { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.cl-specs-text b { display: block; font-size: .95rem; }
.cl-specs-text small { display: block; color: #495057; font-size: .78rem; }
.cl-specs-go { flex: 0 0 auto; font-size: .8rem; opacity: .7; }
/* Specs & Dimensions bar now sits at the top of the additional-images (scale drawing) card */
#productInfo-productAdditionalImages a.cl-specs-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; padding: .65rem 1rem; background: #e9f1f8; border: 1px solid #d6e2ee; border-radius: .5rem; color: #1f4e79; text-align: left; text-decoration: none; transition: background-color .15s; }
#productInfo-productAdditionalImages a.cl-specs-bar:hover, #productInfo-productAdditionalImages a.cl-specs-bar:focus { background: #d6e5f2; color: #1f4e79; text-decoration: none; }
/* ...and joins that card as its header (when the card is there) */
#productInfo-productAdditionalImages:has(> .card) > a.cl-specs-bar { margin-bottom: 0; border: 0; border-top: 4px solid #1f4e79; border-bottom: 1px solid #d6e2ee; border-radius: .75rem .75rem 0 0; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
#productInfo-productAdditionalImages > a.cl-specs-bar ~ .card { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
/* scale drawing caption under the additional image */
.cl-draw-cap { display: block; line-height: 1.25; }
.cl-draw-cap b { display: block; color: #1f4e79; }
.cl-draw-cap small { display: block; margin-top: .15rem; color: #6c757d; font-size: .78rem; }
/* =====================================================================
   Category product table (inc/getcategoryproducts.php)
   ===================================================================== */
.cl-plist { margin: 0 0 1.5rem; background: #fff; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); overflow: hidden; }
.cl-plist-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; padding: .9rem 1.25rem; background: #e9f1f8; border-bottom: 1px solid #d6e2ee; }
.cl-plist-filter { flex: 1 1 150px; min-width: 0; }
.cl-plist-filter label { display: block; margin-bottom: .2rem; color: #1f4e79; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cl-plist-filter-end { flex: 0 0 auto; display: flex; align-items: center; gap: .75rem; }
.cl-plist .btn.cl-plist-clear { background: #fff; border: 1px solid #c3d3e3; border-radius: 2rem; color: #1f4e79; font-weight: 600; }
.cl-plist .btn.cl-plist-clear:disabled { opacity: .5; }
.cl-plist-count { color: #6c757d; font-size: .8rem; white-space: nowrap; }
.cl-plist-table { margin: 0; }
.cl-plist-table thead th { padding: .6rem .75rem; background: #1f4e79; border: 0; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.cl-plist-table thead th small { margin-left: .2rem; color: #b9cde0; font-size: .7rem; text-transform: none; }
.cl-plist-table tbody td { padding: .85rem .75rem; border-top: 1px dashed #e3e6ea; vertical-align: middle; }
.cl-plist-table tbody tr.data-row:first-of-type td, .cl-plist-table tbody tr.filter-empty + tr td { border-top: 0; }
.cl-plist-table tbody tr.data-row:hover td { background: #f8fafc; }
.cl-plist-img { width: 150px; text-align: center; }
.cl-plist-thumb { position: relative; display: inline-block; padding: 4px; background: #fff; border: 1px solid #e3e6ea; border-radius: .5rem; }
.cl-plist-thumb img { display: block; max-width: 130px; height: auto; }
.cl-plist-zoom { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; padding: 0; background: #1f4e79; border: 0; border-radius: 50%; color: #fff; font-size: .7rem; opacity: .9; cursor: pointer; }
.cl-plist-zoom:hover { opacity: 1; }
.cl-plist-name { min-width: 200px; }
.cl-plist-name > a { color: #212529; font-weight: 700; line-height: 1.3; }
.cl-plist-name > a:hover { color: #1f4e79; }
.cl-plist-model { display: table; margin-top: .35rem; padding: .1rem .55rem; background: #e9f1f8; border-radius: 2rem; color: #1f4e79; font-size: .75rem; font-weight: 700; }
.cl-plist-mat { margin-top: .3rem; color: #6c757d; font-size: .8rem; line-height: 1.35; }
.cl-plist-spec { white-space: nowrap; }
.cl-plist-spec b { display: block; color: #212529; font-size: .9rem; }
.cl-plist-spec small { display: block; color: #6c757d; font-size: .75rem; }
.cl-plist-text ul { margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.cl-plist-text li { padding: .05rem 0; white-space: nowrap; }
.cl-plist-text li span { color: #495057; }
.cl-plist-text li small { color: #6c757d; }
.cl-plist-buy { width: 140px; text-align: right; }
.cl-plist-price { margin-bottom: .45rem; color: #1f4e79; font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.cl-plist a.cl-plist-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .9rem; background: #28a745; border-radius: 2rem; color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.cl-plist a.cl-plist-btn:hover, .cl-plist a.cl-plist-btn:focus { background: #218838; color: #fff; text-decoration: none; }
/* phones / small tablets: each product becomes a stacked card */
@media (max-width: 767.98px) {
  .cl-plist-table thead { display: none; }
  .cl-plist-table, .cl-plist-table tbody { display: block; }
  .cl-plist-table tr.data-row { display: grid; grid-template-columns: 110px 1fr; gap: .25rem .9rem; padding: .9rem 1rem; border-top: 1px dashed #e3e6ea; }
  .cl-plist-table tr.data-row:first-of-type { border-top: 0; }
  .cl-plist-table tr.data-row[style*="none"] { display: none; }
  .cl-plist-table tr.data-row td { display: block; width: auto; padding: 0; border: 0; background: transparent !important; text-align: left; }
  .cl-plist-table tr.data-row td.cl-plist-img { grid-row: 1 / span 6; }
  .cl-plist-thumb img { max-width: 100px; }
  .cl-plist-table td[data-label]:not(.cl-plist-name)::before { content: attr(data-label); display: block; margin-top: .35rem; color: #1f4e79; font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .cl-plist-spec b, .cl-plist-spec small { display: inline; margin-right: .35rem; }
  .cl-plist-buy { display: flex !important; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
  .cl-plist-price { margin: 0; }
  .cl-plist-filters { padding: .75rem 1rem; }
}
/* =====================================================================
   Category listing page (tpl_index_product_list.php / tpl_modules_product_listing.php)
   ===================================================================== */
.cl-catlist #productListHeading { margin-bottom: .75rem; }
.cl-cat-howto { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 .75rem; padding: .55rem 1rem; background: #fff; border-left: 4px solid #28a745; border-radius: .5rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); color: #495057; font-size: .875rem; }
.cl-cat-howto span { display: inline-flex; align-items: center; gap: .45rem; }
.cl-cat-howto b { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; background: #1f4e79; border-radius: 50%; color: #fff; font-size: .75rem; }
.cl-cat-howto em { color: #1e7e34; font-style: normal; font-weight: 700; }
.cl-cat-about { margin: 0 0 1.5rem; padding: 1.5rem 1.75rem; background: #fff; border-top: 4px solid #1f4e79; border-radius: .75rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.cl-cat-about > section, .cl-cat-about > :first-child { margin-top: 0 !important; }
.cl-cat-about h2 { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid #1f4e79; color: #212529; font-size: 1.3rem; font-weight: 700; }
.cl-cat-about h3 { margin: 1.25rem 0 .4rem; color: #1f4e79; font-size: 1.05rem; font-weight: 700; }
.cl-cat-about p { color: #495057; line-height: 1.65; }
.cl-cat-about p:last-child { margin-bottom: 0; }
.cl-cat-about a { color: #1f4e79; font-weight: 600; }
@media (max-width: 575.98px) {
  .cl-cat-howto { flex-direction: column; gap: .35rem; }
  .cl-cat-about { padding: 1.1rem 1.1rem; }
}
/* =====================================================================
   Subcategory pages (tpl_index_categories.php): the "Select ..." grid from getcategorycategories.php
   and the popular-size cards in preview/categories/<id>-b.php
   ===================================================================== */
#indexCategories > h2, #indexCategories-bottomContent h2 { margin: 1.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid #1f4e79; color: #212529; font-size: 1.35rem; font-weight: 700; }
#indexCategories > .card-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; width: auto; margin: 0 0 1.5rem; }
#indexCategories > .card-deck > .card { position: relative; display: flex; flex-direction: column; min-width: 0 !important; width: auto; margin: 0 !important; overflow: hidden; background: #fff; border: 1px solid #dde3ea; border-radius: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s; }
#indexCategories > .card-deck > .card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31,78,121,.18); }
#indexCategories > .card-deck > .card > .card-body { order: 1; display: flex; align-items: center; justify-content: center; padding: .75rem; background: #fff; }
#indexCategories > .card-deck > .card > .card-body img { max-width: 100%; height: auto; }
#indexCategories > .card-deck > .card > .card-header { order: 2; margin-top: auto; padding: 0; background: #1f4e79; border: 0; border-radius: 0; transition: background-color .15s; }
#indexCategories > .card-deck > .card > .card-header a.btn { display: block; width: 100%; padding: .65rem .5rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #fff; font-size: .95rem; font-weight: 700; white-space: normal; }
/* whole tile clicks through to the subcategory */
#indexCategories > .card-deck > .card > .card-header a.btn::after { content: ""; position: absolute; inset: 0; }
#indexCategories > .card-deck > .card:hover > .card-header { background: #28a745; }
#indexCategories-bottomContent .card { border: 1px solid #dde3ea; border-radius: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s; }
#indexCategories-bottomContent .card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31,78,121,.18); }
@media (max-width: 575.98px) {
  #indexCategories > .card-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  #indexCategories > .card-deck > .card > .card-header a.btn { font-size: .85rem; }
}
