.tm-header-icons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #235fa5;
  font-family: inherit;
}
.tm-header-icons__item {
  position: relative;
}
.tm-header-icons__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: 28px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
.tm-header-icons__button:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}
.tm-header-icons__fallback-icon,
.tm-header-icons__custom-icon {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.tm-header-icons__fallback-icon {
  fill: none;
}
.tm-header-icons__badge {
  position: absolute;
  top: -3px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #235fa5;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}
.tm-header-icons__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 20px;
  border: 1px solid rgba(35, 95, 165, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(24, 53, 91, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 220ms ease;
}
.tm-header-icons__panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.tm-header-icons__panel strong {
  display: block;
  margin: 0 0 14px;
  color: #235fa5;
  font-size: 16px;
  font-weight: 600;
}
.tm-header-icons__search-form {
  display: flex;
  gap: 8px;
}
.tm-header-icons__search-input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(35, 95, 165, 0.25);
  background: #fff;
  color: inherit;
  font: inherit;
  border-radius: 12px;
}
.tm-header-icons__search-submit {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: #235fa5;
  color: #fff;
  cursor: pointer;
  border-radius: 28px;
}
.tm-header-icons__search-submit svg,
.tm-header-icons__search-preview svg {
  width: 19px;
  height: 19px;
  fill: none;
}
.tm-header-icons__search-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(35, 95, 165, 0.25);
  font-size: 13px;
  border-radius: 12px;
}
.tm-header-icons__cart-content {
  max-height: 360px;
  overflow: auto;
}
.tm-header-icons__cart-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-header-icons__cart-content li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(35, 95, 165, 0.1);
  font-size: 13px;
}
.tm-header-icons__cart-content img {
  width: 45px;
  height: 45px;
  object-fit: cover;
}
.tm-header-icons__cart-content .quantity {
  margin-left: auto;
}
.tm-header-icons__cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.tm-header-icons__cart-actions a {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: #235fa5;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}
.tm-header-icons__cart-empty {
  margin: 0;
  color: #54708d;
  font-size: 13px;
}
@media (max-width: 767px) {
  .tm-header-icons {
    gap: 12px;
  }
  .tm-header-icons__panel {
    right: -8px;
    width: 300px;
  }
}
.tm-header-icons__mobile-toggle,
.tm-header-icons__drawer {
  display: none;
}
@media (max-width: 767px) {
  .tm-header-icons__mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .tm-header-icons__mobile-toggle .tm-header-icons__fallback-icon,
  .tm-header-icons__mobile-toggle .tm-header-icons__custom-icon {
    width: 22px;
    height: 22px;
  }
  .tm-header-icons__drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    display: block;
    width: min(360px, 88vw);
    height: 100dvh;
    padding: 26px 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -18px 0 50px rgba(24, 53, 91, 0.18);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 280ms ease;
  }
  .tm-header-icons__drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .tm-header-icons__drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #235fa5;
    cursor: pointer;
  }
  .tm-header-icons__drawer-close img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
  .tm-header-icons__drawer-close span {
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
  }
  .tm-header-icons__drawer p {
    margin: 30px 0 20px;
    color: #235fa5;
    font-size: 18px;
    font-weight: 600;
  }
  .tm-header-icons__menu-preview {
    color: #54708d;
    font-size: 14px;
    line-height: 1.5;
  }
  .tm-header-icons__drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    background: rgba(15, 30, 48, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 220ms ease,
      visibility 220ms ease;
  }
  .tm-header-icons__drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
.tm-header-icons__mobile-menu {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.tm-header-icons__mobile-menu ul {
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  list-style: none;
}
.tm-header-icons__mobile-menu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(35, 95, 165, 0.1);
}
.tm-header-icons__mobile-menu a {
  display: block;
  padding: 15px 0;
  color: #235fa5;
  font: inherit;
  text-decoration: none;
}
.tm-header-icons__mobile-menu a:hover,
.tm-header-icons__mobile-menu a:focus-visible {
  opacity: 0.68;
}
.tm-header-icons__drawer.is-open .tm-header-icons__mobile-menu {
  animation: tm-header-icons-menu-in 350ms ease both;
}
@keyframes tm-header-icons-menu-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.tm-header-icons-menu-open {
  overflow: hidden;
}
.tm-header-icons__mobile-menu,
.tm-header-icons__mobile-menu ul,
.tm-header-icons__mobile-menu li {
  list-style: none !important;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.tm-header-icons__mobile-menu ul {
  padding-left: 16px;
}
