/* Shared mobile contact dock for the home page and all subpages. */
.mobile-quicklinks,
.sub-mobile-quicklinks {
  align-items: flex-end;
  justify-content: space-between;
  overflow: visible;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .56));
  border: 1px solid rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 18px 44px rgba(35, 42, 51, .20),
    0 4px 12px rgba(35, 42, 51, .10),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .38);
  padding: 9px 10px 8px;
  gap: 4px;
}

.mql-btn,
.sub-mql-btn {
  min-width: 0;
  flex: 1 1 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 2px 1px;
  border: 0;
  border-right: 0 !important;
  border-radius: 14px;
  color: #24262a !important;
  font-family: 'Jost', Arial, sans-serif;
  font-size: .57rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .015em;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, background-color .18s ease;
}

.mql-btn > span:last-child,
.sub-mql-btn > span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mql-app-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  color: #1a1a1a;
  background: linear-gradient(145deg, #f8f8f8 0%, #e5e5e5 100%);
  box-shadow:
    0 6px 11px rgba(38, 43, 51, .20),
    0 2px 4px rgba(38, 43, 51, .12),
    inset 0 1px 1px rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(0, 0, 0, .06);
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease;
}

.mql-app-icon svg {
  width: 15px !important;
  height: 15px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.mql-app-zalo {
  font-family: Arial, sans-serif;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

.mql-app-facebook,
.mql-app-phone {
  background: linear-gradient(145deg, #f8f8f8 0%, #e5e5e5 100%);
}

.mql-app-book {
  background: linear-gradient(145deg, #f8f8f8 0%, #e5e5e5 100%);
  border-color: rgba(0, 0, 0, .18);
}

.mql-app-book img {
  display: block;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.mql-btn:active,
.sub-mql-btn:active {
  background: rgba(255, 255, 255, .40);
  transform: translateY(1px) scale(.97);
}

.mql-btn:active .mql-app-icon,
.sub-mql-btn:active .mql-app-icon {
  color: #fff;
  background: #1a1a1a;
  box-shadow:
    0 2px 4px rgba(38, 43, 51, .16),
    inset 0 2px 3px rgba(0, 0, 0, .20);
  transform: scale(.94);
}

.mql-btn:active .mql-app-book,
.sub-mql-btn:active .mql-app-book {
  background: #e9e9e9;
}

@media (max-width: 768px) {
  .mobile-quicklinks,
  .sub-mobile-quicklinks {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    width: min(calc(100vw - 22px), 390px);
    box-sizing: border-box;
    border-radius: 23px;
    transform: translateX(-50%);
  }
}

@media (max-width: 360px) {
  .mobile-quicklinks,
  .sub-mobile-quicklinks {
    width: calc(100vw - 14px);
    padding-inline: 7px;
  }

  .mql-app-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .mql-btn,
  .sub-mql-btn {
    font-size: .53rem;
  }
}
