:root {
  --cr-primary: #0074d0;
  --cr-danger: #d41257;
  --nav-height: calc(0.5rem + 0.3125rem + 40px + 0.3125rem + 0.5rem);
  --body-height: calc(100vh - var(--nav-height) + 5px);
}

.btn:not(.btn-link),
#navbarTop .nav-link {
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.navbar-light.fixed-top {
  background-color: rgba(255, 255, 255, 0.95);
}
.navbar-brand {
  padding: 5px 0px;
}
.navbar-brand:hover {
  opacity: 0.9;
}

body > main {
  margin-top: var(--nav-height);
  min-height: var(--body-height);
}
.h-50 {
  min-height: calc(var(--body-height) / 2);
}
.h-75 {
  min-height: calc(var(--body-height) / 4 * 3);
}

.form-compact {
  position: relative;
}
.form-compact > label {
  font-size: 0.85em;
  margin-bottom: 0px;
  position: absolute;
  padding-top: 0.25em;
  top: 1px;
  left: 1em;
  right: 1em;
  color: #adb5bd;
  text-transform: uppercase;
  z-index: 9;
  pointer-events: none;
}
.form-compact > label button {
  text-transform: none;
  text-decoration: none;
  pointer-events: all;
}
.form-compact .form-control,
.form-compact .form-select {
  padding-top: 1.5em;
}

.form-group .form-compact {
  position: relative;
  z-index: 1;
}
.form-group .form-compact:focus-within {
  z-index: 2;
}
.form-compact .overlay {
  position: absolute;
  bottom: calc((1em + 0.375em + 1.5rem + 2px - 30px) / 2);
  z-index: 9;
  pointer-events: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

.lh-0-9 {
  line-height: 0.9em;
}

.flag {
  width: 36px;
}
.flag div {
  position: relative;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #adb5bd;
}
.flag span {
  font-size: 64px;
  position: absolute;
  width: 64px;
  height: 64px;
  top: 0px;
  left: -18px;
}

.nav .nav-link.active {
  color: #adb5bd;
}

@media (hover: hover) {
  #dashboard-table tr .btn-call {
    opacity: 0;
    transition: opacity 300ms ease-in-out;
  }
  #dashboard-table tr:hover .btn-call {
    opacity: 1;
  }
}

.rounded-top-start {
  border-top-left-radius: 0.25rem !important;
}
.rounded-top-end {
  border-top-right-radius: 0.25rem !important;
}

.try-it-out {
  margin-bottom: -12px;
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.graph {
  height: 100px;
}
.graph > .spinner-container {
  height: 100%;
}
.graph > div.bg-primary {
  border: 1px solid #0067b5;
}
.graph > div.bg-danger {
  border: 1px solid #a9003c;
}

.mark-as-complete {
  opacity: 0;
  width: 15px;
  margin-left: -15px;
  background-color: aqua;
}
.mark-as-complete + label:before {
  content: "";
  display: inline-block;
  vertical-align: bottom;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 10%;
  border-style: solid;
  border-width: 2px;
  border-color: var(--cr-primary);
  background-color: white;
  /* box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25); */
}
.mark-as-complete:hover + label:before {
  border-color: var(--cr-danger);
}
.mark-as-complete:checked + label:before {
  background-color: var(--cr-primary);
  border-color: var(--cr-primary);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewbox='0 0 16 16'><path d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/></svg>");
}
.mark-as-complete:checked + label {
  color: var(--cr-primary);
}

.initials {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 50%;
  padding: 0px;
  display: inline-block;
  font-weight: normal;
}
.initials-3 {
  font-size: 14px;
}

.submit .spinner {
  width: 16px;
  display: inline-block;
}

#selected-domain-icon {
  position: relative;
  pointer-events: none;
}
#select-website {
  margin-left: -1.75rem !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #80bbe8 !important;
  opacity: 0.5 !important;
}
::-moz-placeholder {
  /* Firefox 19+ */
  color: #80bbe8 !important;
  opacity: 0.5 !important;
}
:-ms-input-placeholder {
  /* IE 10+ */
  color: #80bbe8 !important;
  opacity: 0.5 !important;
}
:-moz-placeholder {
  /* Firefox 18- */
  color: #80bbe8 !important;
  opacity: 0.5 !important;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: transparent !important;
  color: #adb5bd !important;
}

.docs section > h2::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: -1.25rem;
  left: 0;
  z-index: -1;
  content: "";
  /* background-color: red; */
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) calc(100% - 1.5rem), rgba(255, 255, 255, 0.01));
}
.docs section > h2 {
  scroll-margin-top: 3.5rem;
  top: 3.5rem;
}

.docs section h3 {
  scroll-margin-top: 6.5rem;
  top: 6.5rem;
  z-index: 1;
}
.docs .article-body {
  min-height: calc(100vh / 5);
}

@media screen and (min-width: 768px) {
  #intro-body {
    position: relative;
    z-index: 1;
  }
  #intro-image {
    position: relative;
  }
  #intro-image > img {
    position: absolute;
    height: 100%;
    width: auto;
  }
}
@media screen and (max-width: 767px) {
  #intro-image > img {
    width: 100%;
    height: auto;
  }
}

#lightbox .modal-dialog {
  width: max-content;
  max-width: 100%;
  margin: auto;
}

.divider {
  margin: -5px 0 0 0;
  z-index: 1;
  position: relative;
  display: block;
}

.navbar:after {
  content: " ";
  position: absolute;
  bottom: -5px;
  height: 5px;
  width: 100%;
  background-image: url(/images/divider.svg);
  background-repeat: repeat;
}

/* billing page */
.agent-quantity,
button.purchase {
  width: 180px;
}

.cursor-help {
  cursor: help;
}
