:root {
  --cl-surface: #ffffff;
  --cl-muted: #6c757d;
  --cl-border: #edf1f4;
  --cl-danger: #c0392b;
  --cl-success: #198754;
}
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
[data-cl-hidden="true"], .cl-hidden { display: none !important; }
.cl-page-shell { min-height: 42vh; }
.cl-loading { min-height: 180px; display:flex; align-items:center; justify-content:center; color:var(--cl-muted); }
.cl-empty { border:1px dashed #d7dde3; background:#fafbfc; padding:2.5rem 1.25rem; text-align:center; }
.cl-toast-stack { position:fixed; right:1rem; bottom:1rem; z-index:1085; max-width:380px; width:calc(100% - 2rem); }
.cl-toast { background:#212529; color:#fff; border-radius:.35rem; margin-top:.5rem; padding:.8rem 1rem; box-shadow:0 .5rem 1.5rem rgba(0,0,0,.2); }
.cl-toast.success { background:var(--cl-success); }
.cl-toast.error { background:var(--cl-danger); }
.cl-product-card .product-img img { object-fit:contain; height:260px; width:100%; }
.cl-product-card .stock-badge { position:absolute; left:.75rem; top:.75rem; z-index:2; }
.cl-product-card .condition-badge { position:absolute; right:.75rem; top:.75rem; z-index:2; }
.cl-product-title { min-height:48px; }
.cl-price-old { text-decoration:line-through; color:#8b939b; margin-left:.35rem; }
.cl-filter-card { border-bottom:1px solid var(--cl-border); padding-bottom:1rem; margin-bottom:1.25rem; }
.cl-filter-card h5 { font-size:1rem; margin-bottom:.75rem; }
.cl-filter-select { min-height:44px; }
.cl-native-multiselect { width:100%; min-height:120px; }
.cl-pagination { display:flex; justify-content:center; gap:.35rem; flex-wrap:wrap; }
.cl-pagination button { min-width:38px; }
.cl-page-header { min-height:220px; }
.cl-auth-status { font-size:.875rem; }
.cl-search-results { position:absolute; top:100%; left:0; right:0; background:#fff; z-index:1050; box-shadow:0 .5rem 1.25rem rgba(0,0,0,.15); max-height:420px; overflow:auto; }
.cl-search-item { display:flex; align-items:center; gap:.75rem; padding:.75rem; border-bottom:1px solid #eee; color:#212529; }
.cl-search-item img { width:54px; height:54px; object-fit:contain; }
.cl-search-item:hover { background:#f8f9fa; text-decoration:none; }
.cl-home-hero .carousel-item img { height:410px; object-fit:cover; }
.cl-home-hero .carousel-caption { background:rgba(0,0,0,.33); padding:1rem 1.25rem; }
.cl-category-card img { height:220px; object-fit:contain; }
.cl-brand-strip { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; justify-content:center; }
.cl-brand-pill { border:1px solid #e1e5ea; background:#fff; padding:.6rem 1rem; border-radius:999px; }
.cl-detail-main-image { width:100%; max-height:520px; object-fit:contain; background:#fff; }
.cl-detail-thumb { width:76px; height:76px; object-fit:contain; border:1px solid #ddd; cursor:pointer; }
.cl-cart-image { width:82px; height:82px; object-fit:contain; }
.cl-qty { width:92px; }
.cl-order-card { border:1px solid var(--cl-border); border-radius:.35rem; padding:1rem; margin-bottom:1rem; }
.capital-admin-shell { background:#f5f7fa; }
.capital-admin-card { background:#fff; border:1px solid #e7ebef; border-radius:.4rem; box-shadow:0 .15rem .45rem rgba(0,0,0,.04); }
.capital-admin-table-wrap { overflow:auto; }
.capital-admin-table-wrap table { min-width:900px; }
.capital-admin-sticky { position:sticky; top:1rem; }
.cl-admin-nav { gap:.35rem; }
.cl-admin-nav .nav-link { cursor:pointer; }
.cl-admin-pane { display:none; }
.cl-admin-pane.active { display:block; }
.cl-kpi { border-left:4px solid var(--primary); }
.cl-status-dot { width:.6rem; height:.6rem; border-radius:50%; display:inline-block; margin-right:.35rem; background:#6c757d; }
.cl-status-dot.ok { background:#198754; }
.cl-status-dot.warn { background:#ffc107; }
.cl-status-dot.bad { background:#dc3545; }
.cl-form-note { font-size:.82rem; color:#6c757d; }
.cl-contact-card { height:100%; }
.cl-review-stars { color:#f4b400; }
.cl-skeleton { background:linear-gradient(90deg,#f1f1f1 25%,#f8f8f8 37%,#f1f1f1 63%); background-size:400% 100%; animation:cl-skeleton 1.2s ease-in-out infinite; }
@keyframes cl-skeleton { 0% { background-position:100% 50%; } 100% { background-position:0 50%; } }
@media (max-width:991.98px){ .capital-admin-sticky{position:static;} .cl-home-hero .carousel-item img{height:300px;} }

/* Modern Capital Links administration */
.cl-admin-app { min-height:100vh; display:flex; background:#f4f6f9; }
.cl-admin-sidebar { width:270px; background:#18202a; color:#fff; display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; z-index:1040; box-shadow:3px 0 18px rgba(0,0,0,.12); }
.cl-admin-brand { display:flex; gap:.8rem; align-items:center; color:#fff; padding:1.25rem; border-bottom:1px solid rgba(255,255,255,.08); font-size:1.05rem; }
.cl-admin-brand:hover { color:#fff; text-decoration:none; }
.cl-admin-brand small { color:#a9b4c2; font-size:.75rem; }
.cl-admin-logo { width:42px; height:42px; border-radius:.55rem; display:grid; place-items:center; background:var(--primary); color:#fff; font-weight:700; }
.cl-admin-menu { padding:.9rem; overflow:auto; flex:1; }
.cl-admin-menu button { display:flex; width:100%; align-items:center; gap:.8rem; color:#c9d1db; background:transparent; border:0; border-radius:.4rem; padding:.75rem .9rem; margin:.15rem 0; text-align:left; }
.cl-admin-menu button i { width:22px; text-align:center; }
.cl-admin-menu button:hover, .cl-admin-menu button.active { color:#fff; background:rgba(255,255,255,.1); }
.cl-admin-sidebar-footer { padding:1rem; border-top:1px solid rgba(255,255,255,.08); }
.cl-admin-main { margin-left:270px; width:calc(100% - 270px); min-height:100vh; }
.cl-admin-topbar { height:68px; background:#fff; border-bottom:1px solid #e4e8ed; display:flex; align-items:center; justify-content:space-between; padding:0 1.4rem; position:sticky; top:0; z-index:1020; }
.cl-admin-content { padding:1.5rem; }
.cl-admin-content h2 { font-weight:600; }
.cl-admin-content .form-control { min-height:38px; }
.btn-xs { padding:.12rem .35rem; font-size:.72rem; line-height:1.4; border-radius:.2rem; }
.capital-admin-table-wrap table td { vertical-align:middle; }
.capital-admin-table-wrap details summary { cursor:pointer; color:var(--primary); }
@media (max-width:991.98px) {
  .cl-admin-sidebar { transform:translateX(-100%); transition:transform .2s ease; }
  .cl-admin-sidebar.open { transform:translateX(0); }
  .cl-admin-main { margin-left:0; width:100%; }
  .cl-admin-content { padding:1rem; }
}

/* Interaction integrity fixes */
.cl-cart-action { transition:background-color .18s ease,color .18s ease,transform .18s ease; }
.cl-cart-action.cl-cart-selected { padding:.2rem .45rem !important; border-radius:.25rem; }
.cl-product-card:has(.cl-cart-selected) { box-shadow:0 0 0 2px rgba(212,165,116,.28),0 .4rem 1rem rgba(0,0,0,.08); }
.cl-category-column { position:relative; z-index:1030; }
.cl-category-panel { position:absolute; top:64px; left:15px; right:15px; z-index:1035; display:none; box-shadow:0 .7rem 1.5rem rgba(0,0,0,.15); }
.cl-category-panel.show { display:block; }
.cl-category-scroll { max-height:410px; overflow-y:auto; }
.cl-nav-category-item { position:relative; border-bottom:1px solid #edf0f2; }
.cl-nav-category-main { min-height:46px; padding:.72rem 1rem; display:flex; align-items:center; color:#343a40; }
.cl-nav-category-main:hover { text-decoration:none; background:#f8f9fa; color:var(--primary); }
.cl-nav-subcategories { display:none; position:absolute; left:100%; top:0; width:245px; max-height:360px; overflow:auto; background:#fff; border:1px solid #e5e8eb; box-shadow:.4rem .6rem 1rem rgba(0,0,0,.12); }
.cl-nav-category-item:hover > .cl-nav-subcategories { display:block; }
.cl-nav-subcategories a { display:block; padding:.62rem .85rem; color:#343a40; border-bottom:1px solid #f1f2f3; }
.cl-nav-subcategories a:hover { background:#f8f9fa; color:var(--primary); text-decoration:none; }
.cl-home-hero { overflow:hidden; min-height:390px; }
.cl-home-hero .carousel-inner,.cl-home-hero .carousel-item { height:410px; }
.cl-carousel-button { width:45px;height:45px;display:grid;place-items:center; }
.cl-service-dialog { max-width:520px; }
#cl-service-request-modal .form-control-sm { min-height:38px; }
@media (max-width:991.98px){
  .cl-home-hero,.cl-home-hero .carousel-inner,.cl-home-hero .carousel-item { min-height:300px;height:300px; }
  .cl-nav-subcategories { position:static;width:100%;box-shadow:none;border-width:1px 0 0;display:block; }
}

/* Capital Links 2026 classic technology palette + Leftie-style Tom Select controls */
:root {
  --cl-primary: #1f5f8b;
  --cl-primary-dark: #17496a;
  --cl-primary-soft: #edf5fb;
  --cl-ink: #1f2d3d;
  --cl-slate: #526477;
  --cl-border: #dce6ee;
  --cl-surface: #ffffff;
  --primary: var(--cl-primary);
  --secondary: #eef3f7;
}
body { color:var(--cl-ink); background:#fff; }
a { color:var(--cl-primary); }
a:hover, a:focus { color:var(--cl-primary-dark); }
.text-primary { color:var(--cl-primary) !important; }
a.text-primary:hover, a.text-primary:focus { color:var(--cl-primary-dark) !important; }
.bg-primary { background-color:var(--cl-primary) !important; }
.border-primary { border-color:var(--cl-primary) !important; }
.btn-primary {
  color:#fff;
  background-color:var(--cl-primary);
  border-color:var(--cl-primary);
  box-shadow:none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color:#fff;
  background-color:var(--cl-primary-dark);
  border-color:var(--cl-primary-dark);
}
.btn-primary.disabled, .btn-primary:disabled { background-color:var(--cl-primary); border-color:var(--cl-primary); }
.btn-outline-primary { color:var(--cl-primary); border-color:var(--cl-primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  color:#fff;
  background-color:var(--cl-primary);
  border-color:var(--cl-primary);
}
.badge-primary { color:#fff; background-color:var(--cl-primary); }
.page-link { color:var(--cl-primary); }
.page-item.active .page-link { background-color:var(--cl-primary); border-color:var(--cl-primary); }
.form-control:focus, .custom-select:focus {
  border-color:#85afd0;
  box-shadow:0 0 0 .2rem rgba(31,95,139,.14);
}
.custom-control-input:checked ~ .custom-control-label::before {
  border-color:var(--cl-primary);
  background-color:var(--cl-primary);
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color:var(--cl-primary); }
.cl-brand-pill {
  border-color:var(--cl-border);
  box-shadow:0 .12rem .35rem rgba(30,58,80,.06);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.cl-brand-pill:hover { border-color:#a9c5da; transform:translateY(-1px); box-shadow:0 .3rem .8rem rgba(30,58,80,.1); text-decoration:none; }
.cl-product-card:has(.cl-cart-selected) { box-shadow:0 0 0 2px rgba(31,95,139,.2),0 .4rem 1rem rgba(0,0,0,.08); }

/* Shop filter presentation follows the Leftie Tom Select interaction without importing its catalog taxonomy. */
.filter-render-group { margin-bottom:.85rem; }
.filter-render-tab {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.7rem 1rem;
  border:1px solid #d7e4ee !important;
  border-radius:2rem !important;
  background:var(--cl-primary-soft) !important;
  color:#2c4051 !important;
  font-weight:600;
  text-align:left;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
.filter-render-tab:hover,
.filter-render-tab[aria-expanded="true"] {
  background:var(--cl-primary) !important;
  border-color:var(--cl-primary) !important;
  color:#fff !important;
}
.filter-render-tab:focus { outline:0; box-shadow:0 0 0 .2rem rgba(31,95,139,.13); }
.cl-filter-body {
  margin-top:.45rem;
  padding:.7rem;
  border:1px solid var(--cl-border);
  border-radius:1rem;
  background:#fff;
}
.cl-filter-select-wrap { position:relative; }
.clear-select-btn {
  position:absolute;
  top:.42rem;
  right:.42rem;
  z-index:12;
  min-width:28px;
  height:28px;
  padding:0 .45rem;
  display:grid;
  place-items:center;
  border:0;
  border-radius:1rem;
  background:#fff;
  color:#708090;
  cursor:pointer;
  font-size:.86rem;
  line-height:1;
  box-shadow:0 1px 4px rgba(30,58,80,.12);
}
.clear-select-btn:hover { color:var(--cl-primary-dark); background:#f8fbfd; }
.filter-render-group .ts-wrapper,
#cl-service-request-modal .ts-wrapper { width:100%; }
.filter-render-group .ts-control,
#cl-service-request-modal .ts-control {
  min-height:44px;
  padding:.48rem 2.7rem .48rem .9rem;
  border:1px solid #cfdbe4;
  border-radius:2rem !important;
  background:#fff;
  box-shadow:none !important;
  cursor:text;
}
#cl-service-request-modal .ts-control { padding-right:.9rem; border-radius:.65rem !important; }
.filter-render-group .ts-wrapper.focus .ts-control,
#cl-service-request-modal .ts-wrapper.focus .ts-control {
  border-color:#85afd0;
  box-shadow:0 0 0 .2rem rgba(31,95,139,.11) !important;
}
.filter-render-group .ts-dropdown,
#cl-service-request-modal .ts-dropdown {
  margin-top:.35rem;
  overflow:hidden;
  border:1px solid #d9e3eb;
  border-radius:1rem !important;
  background:#fff;
  box-shadow:0 .65rem 1.5rem rgba(30,58,80,.14);
}
.filter-render-group .ts-dropdown .active,
#cl-service-request-modal .ts-dropdown .active { background:var(--cl-primary-soft); color:var(--cl-ink); }
.filter-render-group .ts-wrapper.multi .ts-control > div,
#cl-service-request-modal .ts-wrapper.multi .ts-control > div {
  margin:.12rem .28rem .12rem 0;
  padding:.24rem .5rem;
  border:1px solid #bfd5e6;
  border-radius:1rem;
  background:var(--cl-primary-soft);
  color:#27465e;
}
.filter-render-group .ts-wrapper.plugin-remove_button .item .remove,
#cl-service-request-modal .ts-wrapper.plugin-remove_button .item .remove {
  border-left:1px solid #bfd5e6;
  color:#536f83;
}
.cl-native-multiselect { min-height:120px; border-radius:.75rem; }
.cl-service-dialog { max-width:680px; }
#cl-service-request-modal .modal-content { border-radius:.8rem; overflow:visible; }
#cl-service-request-modal .modal-header { border-bottom-color:#e6edf3; }
#cl-service-request-modal .modal-footer { border-top-color:#e6edf3; }

@media (max-width:575.98px) {
  .filter-render-tab { padding:.62rem .85rem; }
  .cl-service-dialog { max-width:calc(100% - 1rem); margin:.5rem auto; }
}
.btn-link { color:var(--cl-primary); }
.btn-link:hover, .btn-link:focus { color:var(--cl-primary-dark); }
.dropdown-item.active, .dropdown-item:active,
.list-group-item.active { color:#fff; background-color:var(--cl-primary); border-color:var(--cl-primary); }
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color:var(--cl-primary); }
.product-item .btn:hover { color:var(--cl-primary) !important; }
.progress-bar { background-color:var(--cl-primary); }

/* Capital Links official brand lockup + responsive polish */
.cl-brand-lockup { display:inline-flex; align-items:center; gap:.75rem; min-width:250px; }
.cl-brand-mark { width:54px; height:54px; flex:0 0 54px; border-radius:15px; display:grid; place-items:center; color:#fff; font-size:2rem; line-height:1; font-weight:800; letter-spacing:-.08em; background:linear-gradient(135deg,#0b3b82 0%,#1987e8 100%); box-shadow:0 .45rem 1.1rem rgba(21,94,239,.18); border:1px solid rgba(255,255,255,.7); }
.cl-brand-copy { display:flex; flex-direction:column; min-width:0; }
.cl-brand-copy strong { color:#102a43; font-size:1.55rem; line-height:1.05; font-weight:800; letter-spacing:-.025em; white-space:nowrap; }
.cl-brand-copy small { margin-top:.25rem; color:#52677c; font-size:.63rem; font-weight:700; letter-spacing:.095em; text-transform:uppercase; white-space:nowrap; }
.cl-brand-mark-sm { width:35px; height:35px; flex-basis:35px; border-radius:10px; font-size:1.2rem; margin-right:.55rem; }
.cl-mobile-brand strong { color:#102a43; font-size:1.05rem; font-weight:800; }

@media (max-width: 767.98px) {
  .cl-page-shell { overflow-x:hidden; }
  .px-xl-5 { padding-left:15px; padding-right:15px; }
  #global-search-form .form-control { min-width:0; }
  .cl-search-results { left:0; right:0; width:auto; max-width:calc(100vw - 30px); }
  .cl-product-card .card-footer { gap:.35rem; flex-wrap:wrap; }
  .cl-product-card .card-footer .btn { min-height:34px; display:inline-flex; align-items:center; }
  .cl-detail-main-image { max-height:420px; object-fit:contain; }
  .cl-filter-body { padding:.6rem !important; }
  .filter-render-tab { min-height:44px; }
  .navbar-collapse { padding:.6rem 0; }
  .navbar-nav .nav-link { padding:.72rem .35rem; }
}
@media (max-width: 420px) {
  .cl-mobile-brand strong { font-size:.95rem; }
  .navbar-toggler { padding:.22rem .45rem; }
  .cl-product-card .card-footer { justify-content:flex-start !important; }
}

/* Branded first-paint loading veil.
   Keeps the SEO prerender in the DOM for crawlers while preventing visitors from
   seeing the temporary prerender/fallback layout before the live page mounts. */
.cl-seo-fallback,
.cl-seo-prerender {
  position:relative;
}
.cl-seo-fallback::before,
.cl-seo-prerender::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:2147483000;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 46%,rgba(31,95,139,.11) 0 74px,transparent 75px),
    radial-gradient(circle at 50% 46%,rgba(31,95,139,.055) 0 126px,transparent 127px),
    linear-gradient(145deg,#f9fcff 0%,#ffffff 48%,#f3f8fc 100%);
  animation:cl-boot-safety-fade .35s ease 7s forwards;
}
.cl-seo-fallback::after,
.cl-seo-prerender::after {
  content:"C";
  position:fixed;
  left:50%;
  top:46%;
  z-index:2147483001;
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  transform:translate(-50%,-50%);
  border-radius:24px;
  color:#fff;
  font-family:Poppins,Arial,sans-serif;
  font-size:2.65rem;
  line-height:1;
  font-weight:800;
  letter-spacing:-.08em;
  text-indent:-.08em;
  background:linear-gradient(135deg,#0b3b82 0%,#1987e8 100%);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:
    0 18px 48px rgba(12,62,113,.22),
    0 0 0 0 rgba(31,95,139,.22);
  animation:cl-brand-first-paint 1.35s cubic-bezier(.4,0,.2,1) infinite,
            cl-boot-safety-fade .35s ease 7s forwards;
  pointer-events:none;
}

/* Existing JS loading states use the same visual language instead of flashing
   plain spinner/text between the prerender and the fully hydrated page. */
.cl-loading {
  min-height:240px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.85rem;
  color:#526477;
  font-weight:600;
  letter-spacing:.01em;
  text-align:center;
}
.cl-loading .spinner-border {
  width:58px;
  height:58px;
  margin:0 !important;
  border-width:3px;
  color:var(--cl-primary,#1f5f8b);
  border-right-color:rgba(31,95,139,.16);
  border-bottom-color:rgba(31,95,139,.16);
  filter:drop-shadow(0 .45rem .8rem rgba(31,95,139,.14));
}
.cl-loading::before {
  content:"Capital Links";
  color:#173a57;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

@keyframes cl-brand-first-paint {
  0%,100% {
    transform:translate(-50%,-50%) scale(1);
    box-shadow:0 18px 48px rgba(12,62,113,.22),0 0 0 0 rgba(31,95,139,.20);
  }
  50% {
    transform:translate(-50%,-50%) scale(1.055);
    box-shadow:0 22px 56px rgba(12,62,113,.26),0 0 0 18px rgba(31,95,139,0);
  }
}
@keyframes cl-boot-safety-fade {
  to { opacity:0; visibility:hidden; }
}
@media (prefers-reduced-motion:reduce) {
  .cl-seo-fallback::after,
  .cl-seo-prerender::after { animation:cl-boot-safety-fade .35s ease 7s forwards; }
  .cl-loading .spinner-border { animation-duration:1.4s; }
}

/* Capital Links modal presentation — visual only; no modal behavior or form content changes. */
#cl-service-request-modal,
#auth-modal,
#product-editor-modal {
  --cl-modal-radius: 1.35rem;
  --cl-modal-shadow: 0 1.5rem 4rem rgba(17, 42, 67, .24);
  --cl-modal-field: #f8fbfd;
}

#cl-service-request-modal .modal-content,
#auth-modal .modal-content,
#product-editor-modal .modal-content {
  border: 1px solid rgba(124, 154, 177, .18) !important;
  border-radius: var(--cl-modal-radius) !important;
  background: #fff;
  box-shadow: var(--cl-modal-shadow) !important;
}

#cl-service-request-modal .modal-header,
#auth-modal .modal-header,
#product-editor-modal .modal-header {
  position: relative;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 0;
  border-radius: var(--cl-modal-radius) var(--cl-modal-radius) 0 0;
  color: #fff;
  background: linear-gradient(135deg, #123f61 0%, var(--cl-primary) 58%, #2b78a8 100%);
}

#cl-service-request-modal .modal-header::after,
#auth-modal .modal-header::after,
#product-editor-modal .modal-header::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.16);
}

#cl-service-request-modal .modal-title,
#auth-modal .modal-title,
#product-editor-modal .modal-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: -.015em;
}

#cl-service-request-modal .modal-header .text-muted,
#auth-modal .modal-header .text-muted,
#product-editor-modal .modal-header .text-muted {
  color: rgba(255,255,255,.78) !important;
}

#cl-service-request-modal .modal-header .close,
#auth-modal .modal-header .close,
#product-editor-modal .modal-header .close {
  width: 2.25rem;
  height: 2.25rem;
  margin: -.15rem -.2rem -.15rem .85rem;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  opacity: 1;
  text-shadow: none;
  font-size: 1.45rem;
  line-height: 1;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}

#cl-service-request-modal .modal-header .close:hover,
#cl-service-request-modal .modal-header .close:focus,
#auth-modal .modal-header .close:hover,
#auth-modal .modal-header .close:focus,
#product-editor-modal .modal-header .close:hover,
#product-editor-modal .modal-header .close:focus {
  color: #fff;
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  transform: rotate(4deg);
  outline: 0;
}

#cl-service-request-modal .modal-body,
#auth-modal .modal-body,
#product-editor-modal .modal-body {
  padding: 1.25rem;
  background: #fff;
}

#cl-service-request-modal label,
#auth-modal label,
#product-editor-modal label {
  margin-bottom: .4rem;
  color: #263f52;
  font-size: .84rem;
  font-weight: 650;
}

#cl-service-request-modal .form-control,
#auth-modal .form-control,
#product-editor-modal .form-control,
#product-editor-modal .custom-select {
  min-height: 44px;
  border: 1px solid #d7e3ec;
  border-radius: .75rem;
  background: var(--cl-modal-field);
  color: var(--cl-ink);
  box-shadow: none;
}

#cl-service-request-modal textarea.form-control,
#product-editor-modal textarea.form-control {
  min-height: 108px;
  resize: vertical;
}

#cl-service-request-modal .form-control:focus,
#auth-modal .form-control:focus,
#product-editor-modal .form-control:focus,
#product-editor-modal .custom-select:focus {
  border-color: #78a8ca;
  background: #fff;
  box-shadow: 0 0 0 .2rem rgba(31,95,139,.11);
}

#cl-service-request-modal .modal-footer,
#product-editor-modal .modal-footer {
  padding: .9rem 1.25rem 1.15rem;
  border-top: 1px solid #e8eff4;
  border-radius: 0 0 var(--cl-modal-radius) var(--cl-modal-radius);
  background: #f8fbfd;
}

#cl-service-request-modal .modal-footer .btn,
#product-editor-modal .modal-footer .btn,
#auth-modal .btn-block {
  min-height: 42px;
  border-radius: .72rem;
  font-weight: 650;
}

#auth-modal .modal-dialog {
  max-width: 470px;
}

#auth-modal .modal-body {
  padding: 1.35rem;
  border-radius: 0 0 var(--cl-modal-radius) var(--cl-modal-radius);
}

#auth-modal .nav-tabs {
  gap: .35rem;
  padding: .3rem;
  border: 0;
  border-radius: .9rem;
  background: #eef5fa;
}

#auth-modal .nav-tabs .nav-item {
  flex: 1 1 0;
}

#auth-modal .nav-tabs .nav-link {
  width: 100%;
  padding: .65rem .8rem;
  border: 0;
  border-radius: .65rem;
  color: #526b7e;
  font-weight: 650;
  text-align: center;
}

#auth-modal .nav-tabs .nav-link.active {
  color: var(--cl-primary-dark);
  background: #fff;
  box-shadow: 0 .2rem .7rem rgba(31,95,139,.1);
}

#product-editor-modal .modal-dialog {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#product-editor-modal .modal-content {
  overflow: hidden;
}

#product-editor-modal .modal-body {
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}

#cl-service-request-modal .ts-control {
  min-height: 46px;
  border-color: #d7e3ec;
  background: var(--cl-modal-field);
}

#cl-service-request-modal .ts-dropdown {
  border-radius: .85rem !important;
  box-shadow: 0 1rem 2.4rem rgba(17,42,67,.18);
}

#cl-service-request-modal .ts-dropdown-content {
  max-height: 255px;
  padding: .35rem;
}

#cl-service-request-modal .ts-dropdown .optgroup-header {
  padding: .55rem .7rem .35rem;
  color: #416077;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#cl-service-request-modal .ts-dropdown .option {
  margin: .08rem 0;
  padding: .58rem .7rem;
  border-radius: .55rem;
}

#cl-service-request-modal .form-text {
  margin-top: .38rem;
  color: #718597 !important;
}

.modal-backdrop.show {
  opacity: .58;
}

@media (max-width: 575.98px) {
  #cl-service-request-modal .modal-dialog,
  #auth-modal .modal-dialog,
  #product-editor-modal .modal-dialog {
    width: auto;
    max-width: none;
    margin: .55rem;
  }

  #cl-service-request-modal .modal-header,
  #auth-modal .modal-header,
  #product-editor-modal .modal-header {
    padding: .9rem 1rem;
  }

  #cl-service-request-modal .modal-body,
  #auth-modal .modal-body,
  #product-editor-modal .modal-body {
    padding: 1rem;
  }

  #cl-service-request-modal .modal-footer,
  #product-editor-modal .modal-footer {
    padding: .8rem 1rem 1rem;
  }

  #cl-service-request-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  #cl-service-request-modal .modal-footer > * {
    margin: 0;
    width: 100%;
  }
}
