.haptoring-card-trigger,
.haptoring-card-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cbdde9;
  border-radius: 50%;
  color: #10233b;
  background: #eff6fb;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.haptoring-card-trigger:is(:hover, :focus-visible),
.haptoring-card-close:is(:hover, :focus-visible) {
  border-color: #a9d9f4;
  color: #051229;
  background: #a9d9f4;
}

.haptoring-card-trigger svg {
  display: block;
  width: 23px;
  height: 23px;
}

.tj-header-area.header-3 .header_right_info > .haptoring-card-trigger {
  margin-inline-end: 12px;
  padding: 0;
}

.tj-header-area.header-3 .header_right_info > .haptoring-card-trigger::after {
  content: none;
}

.tj-header-area.header-sticky:not(.sticky) .haptoring-card-trigger,
.tj-header-area.header-sticky:not(.sticky) .haptoring-card-mobile-actions .menu_btn {
  visibility: hidden;
}

.haptoring-card-mobile-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.tj-header-area .haptoring-card-mobile-actions .menu_btn {
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #10233b;
}

.tj-header-area .haptoring-card-mobile-actions .menu_btn .line {
  gap: 5px;
  width: 22px;
}

.tj-header-area .haptoring-card-mobile-actions .menu_btn .line span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

@media (min-width: 921px) and (max-width: 1060px) {
  .appointment-header-inner:has(> .haptoring-card-trigger) {
    gap: 12px;
  }

  .appointment-header-inner:has(> .haptoring-card-trigger) .appointment-header-logo {
    flex-basis: 140px;
  }

  .appointment-header-inner:has(> .haptoring-card-trigger) .appointment-header-links {
    gap: 11px;
  }

  .appointment-header-inner:has(> .haptoring-card-trigger) .appointment-header-links a {
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .appointment-header-inner:has(> .haptoring-card-trigger) {
    gap: 8px;
  }

  .appointment-header-inner > .haptoring-card-trigger {
    margin-inline-start: auto;
  }
}

.haptoring-contact-card {
  --card-navy: #0b2239;
  --card-secondary: #466178;
  --card-line: #d6e4ee;
  --card-paper: #f8fcff;
  --card-inset: clamp(20px, 5vw, 32px);
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(100%, 448px);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 0;
  border-inline-start: 1px solid var(--card-line);
  color: var(--card-navy);
  background: var(--card-paper);
  box-shadow: -16px 0 64px rgb(5 18 41 / 22%);
}

.haptoring-contact-card::backdrop {
  background: rgb(5 18 41 / 57%);
}

html.haptoring-card-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .haptoring-contact-card[open] {
    animation: haptoring-card-slide-in 240ms ease-out;
  }

  .haptoring-contact-card[open]::backdrop {
    animation: haptoring-card-fade-in 240ms ease-out;
  }
}

@keyframes haptoring-card-slide-in {
  from { transform: translateX(100%); }
}

@keyframes haptoring-card-fade-in {
  from { opacity: 0; }
}

.haptoring-card-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) var(--card-inset) 14px;
  border-bottom: 1px solid var(--card-line);
  background: var(--card-paper);
}

.haptoring-card-head img {
  display: block;
  width: min(55%, 152px);
  height: auto;
}

.haptoring-card-close {
  background: #fff;
}

.haptoring-card-close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.haptoring-card-content {
  padding: clamp(22px, 5vh, 36px) var(--card-inset) max(var(--card-inset), env(safe-area-inset-bottom));
}

.haptoring-card-content .haptoring-card-kicker {
  margin: 0 0 7px;
  color: #215b80;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.haptoring-card-content h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.85rem, 5vw, 2.28rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.haptoring-card-content .haptoring-card-intro {
  margin: 10px 0 0;
  color: var(--card-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.haptoring-card-details {
  margin: 20px 0;
  padding: 3px 16px;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: #fff;
}

.haptoring-card-details > div {
  display: grid;
  grid-template-columns: minmax(68px, 28%) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}

.haptoring-card-details > div + div {
  border-top: 1px solid #e4edf4;
}

.haptoring-card-details dt {
  color: var(--card-secondary);
  font-size: 0.83rem;
  font-weight: 650;
}

.haptoring-card-details :is(dd, address) {
  margin: 0;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 650;
  font-style: normal;
  overflow-wrap: anywhere;
}

.haptoring-card-details a {
  color: var(--card-navy);
  text-decoration: underline;
  text-decoration-color: #9bbace;
  text-underline-offset: 0.18em;
}

.haptoring-card-details a:hover {
  color: #215b80;
  text-decoration-color: currentColor;
}

.haptoring-card-qr {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 22px);
  margin: 0;
  padding: 12px;
  border: 1px solid #d2e5f1;
  border-radius: 16px;
  background: #ebf6fc;
}

.haptoring-card-qr img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: #fff;
}

.haptoring-card-qr figcaption {
  color: var(--card-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
}

.haptoring-card-qr figcaption strong {
  display: block;
  margin-bottom: 5px;
  color: var(--card-navy);
  font-size: 0.95rem;
}

@media (max-width: 370px) {
  .haptoring-card-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .haptoring-card-qr img {
    width: min(100%, 180px);
  }
}

.haptoring-card-save {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin-top: 14px;
  padding: 9px 15px;
  border: 1px solid var(--card-navy);
  border-radius: 40px;
  color: #fff;
  background: var(--card-navy);
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.haptoring-card-save:hover {
  border-color: #215b80;
  color: #fff;
  background: #215b80;
}

.haptoring-card-save svg {
  width: 18px;
  height: 18px;
}

.haptoring-card-trigger:focus-visible,
.haptoring-contact-card :is(button, a):focus-visible {
  outline: 2px solid #215b80;
  outline-offset: 3px;
}
