/* Evertech brand layer over Twenty-One (Bootstrap 4). Loaded after the parent's CSS by includes/head.tpl.
   Tokens come from ../evertechit.com/styles/globals.css: re-check there before changing a value. */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Rubik and Karla have no Taka sign */
@font-face {
  font-family: "Taka";
  src: url("../fonts/taka-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+09F3;
}

@font-face {
  font-family: "Taka";
  src: url("../fonts/taka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+09F3;
}

/* Only the letters of "বাংলা" in the top bar; other Bengali falls back to the system font */
@font-face {
  font-family: "Evertech Bengali";
  src: url("../fonts/noto-bengali-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0982, U+09AC, U+09B2, U+09BE;
}

:root {
  --evt-navy: #15095e;
  --evt-royal: #1045db;
  /* Decorative, or links on navy: white on primary is 3.63:1 */
  --evt-primary: #3482ff;
  --evt-button: #1868dd;
  --evt-alt: #2e6fef;
  --evt-ink: #1e1e1e;
  /* Brand muted #70799F is 4.08:1 on surface; this shade passes AA */
  --evt-muted: #676f92;
  --evt-surface: #f8fafe;
  --evt-line: #d7d7d7;
  /* Bootstrap's green is 3.13:1 with white text; this one passes AA */
  --evt-success: #1a7f3c;
  --evt-font-heading: "Rubik", "Taka", "Evertech Bengali", system-ui, sans-serif;
  --evt-font-body: "Karla", "Taka", "Evertech Bengali", system-ui, sans-serif;
  --evt-gradient: linear-gradient(-45deg, var(--evt-royal), var(--evt-navy));
}

/* Base */

body,
.primary-bg-color {
  background-color: var(--evt-surface);
  color: var(--evt-ink);
  font-family: var(--evt-font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--evt-navy);
  font-family: var(--evt-font-heading);
}

a {
  color: var(--evt-button);
}

a:hover {
  color: var(--evt-navy);
}

:focus-visible {
  outline: 2px solid var(--evt-button);
  outline-offset: 3px;
}

/* On navy the blue ring disappears */
.evt-on-dark :focus-visible,
footer.footer :focus-visible {
  outline-color: #fff;
}

::selection {
  background-color: var(--evt-primary);
  color: #fff;
}

.text-muted {
  color: var(--evt-muted) !important;
}

.evt-skip-link {
  position: absolute;
  top: 0;
  left: 8px;
  z-index: 1080;
  padding: 8px 16px;
  background-color: #fff;
  transform: translateY(-120%);
}

.evt-skip-link:focus {
  transform: translateY(8px);
}

/* Buttons */

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--evt-button);
  border-color: var(--evt-button);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--evt-navy);
  border-color: var(--evt-navy);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--evt-button);
  color: var(--evt-button);
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background-color: var(--evt-button);
  border-color: var(--evt-button);
  color: #fff;
}

.btn-success,
.btn-success:disabled,
.btn-success.disabled {
  background-color: var(--evt-button);
  border-color: var(--evt-button);
  color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:not(:disabled):not(.disabled):active {
  background-color: var(--evt-navy);
  border-color: var(--evt-navy);
  color: #fff;
}

/* The parent's teal isn't a brand colour */
.btn-info,
.btn-info:disabled {
  background-color: #fff;
  border-color: var(--evt-button);
  color: var(--evt-button);
}

.btn-info:hover,
.btn-info:focus,
.btn-info:not(:disabled):not(.disabled):active {
  background-color: var(--evt-button);
  border-color: var(--evt-button);
  color: #fff;
}

.btn-primary:focus,
.btn-outline-primary:focus,
.btn-success:focus {
  box-shadow: none;
}

.btn-link {
  color: var(--evt-button);
}

/* Pill buttons, as on evertechit.com. Buttons joined to a field or to each other keep square inner edges. */
.btn-primary,
.btn-outline-primary,
.btn-success,
.btn-default,
.btn-info {
  border-radius: 999px;
  font-weight: 600;
}

.input-group .btn,
.btn-group > .btn {
  border-radius: 0.25rem;
}

/* Forms, cards, small components */

.form-control:focus {
  border-color: var(--evt-button);
  box-shadow: 0 0 0 2px rgba(24, 104, 221, 0.25);
}

.card {
  border-color: var(--evt-line);
  border-radius: 16px;
}

.card-header:first-child {
  border-radius: 15px 15px 0 0;
}

.card-footer:last-child {
  border-radius: 0 0 15px 15px;
}

.badge-info {
  background-color: var(--evt-button);
  color: #fff;
}

.page-item.active .page-link {
  background-color: var(--evt-button);
  border-color: var(--evt-button);
}

.page-link {
  color: var(--evt-button);
}

/* Below name and phone fields on registration and checkout */
.evt-field-hint {
  margin-bottom: 16px;
  color: var(--evt-muted);
  font-size: 14px;
}

/* Brand bar (top of every page except checkout) */

.evt-brandbar {
  background-color: var(--evt-navy);
  color: #fff;
  font-size: 14px;
}

.evt-brandbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.header .evt-brandbar a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #fff;
}

header.header .evt-brandbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.evt-brandbar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.evt-brandbar-back i,
.evt-brandbar-contact i {
  margin-right: 6px;
}

/* Header */

/* The menu stays in view as on evertechit.com; the 36px brand bar and the 36px client bar scroll away */
header.header {
  position: sticky;
  top: -36px;
  z-index: 1030;
  background-color: #fff;
  box-shadow: 0 6px 24px -12px rgba(21, 9, 94, 0.25);
}

.evt-checkout header.header {
  top: 0;
}

.evt-logged-in header.header {
  top: -72px;
}

.evt-logged-in.evt-checkout header.header {
  top: -36px;
}

header.header .topbar {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0;
  background-color: var(--evt-royal);
  color: #fff;
}

header.header .topbar > .container {
  min-width: 0;
}

header.header .topbar .btn-active-client span {
  display: inline-block;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text {
  color: #fff;
}

header.header .topbar .active-client .btn.btn-active-client span {
  border-bottom-color: #fff;
}

header.header .evt-navbar {
  padding: 8px 0;
}

/* Bootstrap drops the container padding on .navbar-expand-xl below 1200px */
header.header .evt-navbar > .container {
  padding-right: 15px;
  padding-left: 15px;
}

header.header .evt-navbar .navbar-brand {
  padding: 0;
}

header.header .logo-img {
  width: auto;
  height: 48px;
}

.evt-login-pill {
  padding: 8px 18px;
  white-space: nowrap;
}

header.header .navbar a.evt-login-pill,
header.header .navbar a.evt-login-pill:hover {
  color: #fff;
}

header.header .navbar a {
  color: var(--evt-ink);
}

header.header .navbar .navbar-nav a {
  font-size: 16px;
  font-weight: 500;
}

header.header .navbar .navbar-nav > li > a:hover,
header.header .navbar .navbar-nav > li.active > a {
  color: var(--evt-button);
}

header.header .navbar .navbar-nav > li.active > a {
  font-weight: 600;
}

header.header .dropdown-item.active,
header.header .dropdown-item:active {
  background-color: var(--evt-surface);
}

header.header .dropdown-menu li.active > a {
  color: var(--evt-button);
  font-weight: 600;
}

header.header .toolbar .nav-link {
  border-color: var(--evt-line);
  border-radius: 999px;
  color: var(--evt-navy);
}

header.header .toolbar .nav-link:hover {
  color: var(--evt-button);
}

header.header .toolbar .nav-link[aria-current="page"] {
  border-color: var(--evt-button);
  color: var(--evt-button);
}

header.header .main-navbar-wrapper .navbar-collapse {
  padding: 8px 0 0;
}

@media (min-width: 1200px) {
  header.header .main-navbar-wrapper .navbar-collapse {
    padding: 0 16px;
  }

  /* whmcs.js moves items into "More" once #nav reaches 30px, so its height stays under that */
  header.header #nav {
    height: 28px;
    align-items: center;
  }

  /* Hover pill and "you are here" underline, as on evertechit.com. !important beats .pr-4 on the links */
  header.header #nav > li > a,
  header.header .navbar .navbar-nav li[menuitemname="Account"] > a {
    position: relative;
    display: block;
    margin-right: 4px;
    padding: 4px 10px !important;
    border-radius: 999px;
    line-height: 20px;
  }

  header.header #nav > li > a:hover,
  header.header .navbar .navbar-nav li[menuitemname="Account"] > a:hover {
    background-color: rgba(24, 104, 221, 0.08);
  }

  header.header #nav > li.active > a::before,
  header.header .navbar .navbar-nav li[menuitemname="Account"].active > a::before {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
  }

  /* Logo in the middle with the menu either side, as on evertechit.com */
  header.header .main-navbar-wrapper > .container {
    position: relative;
  }

  header.header .main-navbar-wrapper .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  header.header .main-navbar-wrapper .navbar-collapse {
    padding-left: 0;
  }

  header.header .navbar .navbar-nav li[menuitemname="evertech-login"] > a {
    padding: 8px 20px;
    background-color: var(--evt-button);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
  }

  header.header .navbar .navbar-nav li[menuitemname="evertech-login"] > a:hover {
    background-color: var(--evt-navy);
    color: #fff;
  }
}

header.header .dropdown-menu {
  padding: 8px;
  border-color: var(--evt-line);
  border-radius: 16px;
  box-shadow: 0 16px 32px -12px rgba(21, 9, 94, 0.3);
}

/* Logged-in clients order from here on every page; opens as a small menu at all widths */
header.header .evt-order .dropdown-menu {
  position: absolute;
  min-width: 220px;
}

header.header .evt-order .dropdown-item {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
}

header.header .evt-order .dropdown-item:hover,
header.header .evt-order .dropdown-item:focus {
  background-color: rgba(24, 104, 221, 0.08);
  color: var(--evt-button);
}

/* Below the desktop header the menu is a sheet above the tab bar */
@media (max-width: 1199.98px) {
  header.header .main-navbar-wrapper .navbar-collapse {
    position: fixed;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 1;
    max-height: 70vh;
    padding: 16px 20px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 32px -16px rgba(21, 9, 94, 0.35);
  }

  header.header .main-navbar-wrapper .navbar-collapse a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  header.header .navbar-collapse .dropdown-menu {
    border: 0;
    box-shadow: none;
  }

  header.header .navbar-collapse .navbar-nav > li > a {
    padding: 0 12px !important;
    border-radius: 12px;
  }

  header.header .navbar-collapse .navbar-nav > li.active > a:not(.dropdown-toggle),
  header.header .navbar-collapse .dropdown-menu li.active > a {
    background-color: rgba(24, 104, 221, 0.08);
    border-radius: 12px;
  }

  /* Logged in, the tab bar already has these, and the groups stay open so More is one tap from any page */
  .evt-logged-in header.header .navbar-nav > li[menuitemname="Home"],
  .evt-logged-in header.header .navbar-nav > li[menuitemname="Services"],
  .evt-logged-in header.header .navbar-nav > li[menuitemname="Domains"],
  .evt-logged-in header.header .navbar-nav > li[menuitemname="Billing"]:not(.dropdown) {
    display: none !important;
  }

  .evt-logged-in header.header .navbar-collapse .dropdown-menu {
    display: block;
    padding: 0 0 8px;
    background: none;
  }

  .evt-logged-in header.header .navbar-collapse .dropdown-toggle {
    min-height: 32px;
    color: var(--evt-muted);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
  }

  .evt-logged-in header.header .navbar-collapse .dropdown-toggle::after {
    display: none;
  }

  .evt-logged-in header.header .navbar-collapse .dropdown-menu li {
    padding: 0;
    background: none;
  }

  .evt-logged-in header.header .navbar-collapse .dropdown-menu a {
    padding: 0 12px !important;
    white-space: normal;
  }
}

.evt-sheet-backdrop {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1025;
  background-color: rgba(21, 9, 94, 0.45);
}

.evt-sheet-open .evt-sheet-backdrop {
  display: block;
}

.evt-tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1031;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--evt-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.evt-tabbar a,
.evt-tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--evt-muted);
  font-size: 11px;
  letter-spacing: 0.025em;
}

.evt-tabbar i {
  font-size: 20px;
}

.evt-tabbar a:hover {
  color: var(--evt-button);
  text-decoration: none;
}

/* A short bar on the top edge marks the current tab; while the sheet is open only More is lit */
.evt-tabbar a[aria-current="page"],
.evt-tabbar button.evt-tab-current,
.evt-tabbar button[aria-expanded="true"] {
  color: var(--evt-button);
  font-weight: 600;
}

.evt-sheet-open .evt-tabbar a[aria-current="page"] {
  color: var(--evt-muted);
  font-weight: 400;
}

.evt-sheet-open .evt-tabbar a[aria-current="page"]::before {
  display: none;
}

.evt-tabbar a[aria-current="page"]::before,
.evt-tabbar button.evt-tab-current::before,
.evt-tabbar button[aria-expanded="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 2px;
  margin-left: -16px;
  background-color: var(--evt-button);
  border-radius: 999px;
}

.evt-secure-label {
  color: var(--evt-navy);
  font-family: var(--evt-font-heading);
  font-weight: 500;
}

.evt-secure-label i {
  margin-right: 8px;
  color: var(--evt-success);
}

.master-breadcrumb {
  background-color: var(--evt-surface);
  border-bottom: 1px solid var(--evt-line);
}

.master-breadcrumb .breadcrumb {
  background-color: transparent;
}

/* Client-area lists scroll inside their card on phones, not the whole page */
.table-container .listtable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.master-breadcrumb .breadcrumb-item.active {
  color: var(--evt-muted);
}

/* Homepage */

.evt-hero {
  position: relative;
  z-index: 1;
  padding: 56px 0 0;
  background-color: var(--evt-navy);
  background-image: url("../img/mark-arcs.svg"), var(--evt-gradient);
  background-repeat: no-repeat;
  background-position: right -160px top -120px, center;
  background-size: 544px, auto;
  color: #fff;
}

/* Floats over the hero's bottom edge; .evt-home-section:first-child makes room below it */
.evt-search-card {
  position: relative;
  top: 56px;
  padding: 20px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(21, 9, 94, 0.35);
  color: var(--evt-ink);
}

.evt-search-card :focus-visible {
  outline-color: var(--evt-button);
}

.evt-search-card .input-group-wrapper {
  margin: 0;
  padding: 0;
}

/* !important and the form's ID: Bootstrap and Twenty-One both square these */
#frmDomainHomepage .evt-search-card .form-control {
  height: 48px;
  padding-left: 20px;
  border-radius: 999px !important;
}

.evt-search-card .input-group-append {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

#frmDomainHomepage .evt-search-card .btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 999px !important;
}

.evt-search-card .row {
  margin-top: 8px;
}

.evt-search-card .btn-success,
.evt-search-card .btn-success:not(:disabled):not(.disabled):active {
  background-color: #fff;
  border-color: var(--evt-line);
  color: var(--evt-navy);
}

.evt-search-card .btn-success:hover,
.evt-search-card .btn-success:focus {
  background-color: #fff;
  border-color: var(--evt-button);
  color: var(--evt-button);
}

.evt-hero .container {
  max-width: 800px;
}

.evt-hero h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: 40px;
}

.evt-tld-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.evt-tld-prices li {
  padding: 6px 14px;
  border: 1px solid var(--evt-line);
  border-radius: 999px;
  color: var(--evt-navy);
}

.evt-tld-prices strong {
  margin-right: 4px;
  font-family: var(--evt-font-heading);
  font-weight: 500;
}

.evt-hero a.evt-hero-link {
  display: block;
  padding: 12px 0 0;
  color: var(--evt-button);
  font-size: 15px;
  text-align: center;
  text-decoration: underline;
}

.evt-hero a.evt-hero-link:hover {
  color: var(--evt-navy);
}

.evt-home-section {
  padding: 32px 0;
}

.evt-home-section:first-child {
  padding-top: 96px;
}

.evt-home-section > h2 {
  margin-bottom: 24px;
}

.evt-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

@media (min-width: 1200px) {
  .evt-plans {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Up to three lines at this width, so prices line up across the cards */
  .evt-plan-tagline {
    min-height: 4.5em;
  }
}

.evt-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background-color: #fff;
  border: 1px solid var(--evt-line);
  border-radius: 16px;
}

.evt-plan-featured {
  border: 2px solid var(--evt-button);
}

.evt-plan-badge {
  position: absolute;
  top: -13px;
  left: 16px;
  margin: 0;
  padding: 2px 10px;
  background-color: var(--evt-button);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.evt-plan h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.evt-plan-tagline {
  margin-bottom: 12px;
  color: var(--evt-muted);
  font-size: 15px;
  line-height: 1.5;
}

.evt-plan-price {
  margin-bottom: 0;
  color: var(--evt-navy);
  font-family: var(--evt-font-heading);
  font-size: 26px;
  font-weight: 600;
}

.evt-plan-price span {
  color: var(--evt-muted);
  font-family: var(--evt-font-body);
  font-size: 15px;
  font-weight: 400;
}

.evt-plan-monthly {
  margin-bottom: 16px;
  color: var(--evt-muted);
  font-size: 15px;
}

.evt-plan ul {
  flex-grow: 1;
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
  line-height: 1.8;
  list-style: none;
}

.evt-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.evt-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 16px;
  background-color: #fff;
  border: 1px solid var(--evt-line);
  border-radius: 16px;
  color: var(--evt-navy);
  font-weight: 600;
}

.evt-actions a:hover {
  border-color: var(--evt-button);
  color: var(--evt-button);
  text-decoration: none;
}

.evt-actions i {
  color: var(--evt-button);
  font-size: 20px;
}

.evt-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 24px 16px;
  background-color: #fff;
  border: 1px solid var(--evt-line);
  border-radius: 16px;
}

.evt-trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  color: var(--evt-navy);
  font-weight: 600;
  list-style: none;
}

/* Client area */

.list-group-item.active,
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus,
.card-sidebar .list-group-item.active,
.list-group-item-action.active {
  background-color: var(--evt-button);
  border-color: var(--evt-button);
  color: #fff;
}

.tiles .row {
  margin: -6px;
}

.tiles .row > div:nth-child(n) > .tile {
  margin: 6px;
  padding: 16px 20px;
  background-color: #fff;
  border: 1px solid var(--evt-line);
  border-radius: 16px;
}

.tiles .tile:hover {
  background-color: #fff;
  border-color: var(--evt-button);
}

.tiles .tile .stat {
  color: var(--evt-navy);
  font-family: var(--evt-font-heading);
  font-weight: 500;
}

.tiles .tile .title {
  color: var(--evt-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.tiles .tile .highlight {
  display: none;
}

.tiles .tile i,
.tiles .tile:hover i {
  top: 16px;
  right: 20px;
  color: var(--evt-primary);
  font-size: 32px;
  transition: none;
}

.client-home-cards .card,
.card-sidebar {
  border-radius: 16px;
}

/* Parent panels each get their own accent colour; here they all carry the brand blue */
.client-home-cards .card[class*="card-accent-"] {
  border-top: 3px solid var(--evt-button);
}

.client-home-cards .card-header,
.card-sidebar .card-header {
  background-color: #fff;
}

.client-home-cards .card-title,
.card-sidebar .card-title {
  color: var(--evt-navy);
  font-size: 18px;
  font-weight: 500;
}

/* The parent colours these by panel, and some fail contrast with white text */
.client-home-cards .card-header .btn[class*="bg-color-"] {
  background-color: var(--evt-button) !important;
  border-color: var(--evt-button);
  color: #fff;
}

.client-home-cards .card-header .btn[class*="bg-color-"]:hover {
  background-color: var(--evt-navy) !important;
  border-color: var(--evt-navy);
}

.client-home-cards .card-footer:empty {
  display: none;
}

/* Footer */

footer.footer {
  padding: 56px 0 32px;
  background-color: var(--evt-navy);
  background-image: url("../img/mark-arcs.svg");
  background-repeat: no-repeat;
  background-position: right -160px bottom -160px;
  background-size: 544px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

@media (max-width: 1199.98px) {
  body:not(.evt-checkout) footer.footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

footer.footer a {
  color: rgba(255, 255, 255, 0.85);
}

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

footer.footer .evt-footer-title {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer.footer .evt-footer-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 992px) {
  footer.footer .evt-footer-links li a {
    min-height: 32px;
  }
}

/* Help runs across a phone's width, so its links sit in two columns */
@media (max-width: 575.98px) {
  footer.footer .evt-footer-links-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
}

.evt-footer-social {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
}

footer.footer .evt-footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

footer.footer .evt-footer-social a:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--evt-navy);
  text-decoration: none;
}

footer.footer address {
  margin-bottom: 16px;
}

footer.footer address strong {
  display: block;
  color: #fff;
}

.evt-footer-signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.evt-footer-signoff img.evt-footer-logo {
  width: auto;
  height: 64px;
}

.evt-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evt-payments img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.evt-payments-gateway {
  padding: 4px 8px;
  background-color: #fff;
  border-radius: 6px;
}

.evt-trust .evt-payments-gateway {
  border: 1px solid var(--evt-line);
}

.evt-payments-gateway img {
  width: auto;
  height: 28px;
}

.evt-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

.evt-footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evt-footer-legal ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer.footer .copyright {
  margin: 0;
  font-size: 14px;
}

/* Centred until the desktop layout, as on evertechit.com */
@media (max-width: 991.98px) {
  .evt-footer-legal {
    flex-direction: column;
    justify-content: center;
  }

  .evt-footer-legal ul {
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .evt-footer-legal {
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .evt-skip-link {
    transition: transform 0.15s ease-out;
  }
}

.evt-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Collapsed sidebar panels sit above the page content on phones, so they stay small */
@media (max-width: 991.98px) {
  .sidebar .card-sidebar {
    margin-bottom: 8px !important;
  }

  .sidebar .card-sidebar .card-header {
    padding: 8px 16px;
  }

  .sidebar .card-sidebar .card-title {
    font-size: 16px;
  }

  .primary-content {
    margin-top: 8px;
  }
}

/* Phones: the parent's category dropdown never shows the current category, and the first one can't be chosen.
   The Knowledgebase cards and breadcrumb already reach every category. */

@media (max-width: 767.98px) {
  .evt-kb .sidebar > .card.d-md-none {
    display: none !important; /* beats Bootstrap's d-block */
  }
}
