/* =========================================================
   Global UI spacing scale
   Desktop: 16px | Mobile: 8px
   ========================================================= */
:root {
  --ui-space: 16px;
  --ui-space-half: 8px;
}

@media (max-width: 767px) {
  :root {
    --ui-space: 8px;
    --ui-space-half: 4px;
  }
}

/* Bootstrap row/column gutters (product grids, etc.) */
.row {
  --bs-gutter-x: var(--ui-space);
}

/* Theme gap utilities used between list/grid items */
.x-gap-20,
.x-gap-30,
.x-gap-40 {
  margin-left: calc(var(--ui-space) / -2);
  margin-right: calc(var(--ui-space) / -2);
}

.x-gap-20 > *,
.x-gap-30 > *,
.x-gap-40 > * {
  padding-left: calc(var(--ui-space) / 2);
  padding-right: calc(var(--ui-space) / 2);
}

.y-gap-20,
.y-gap-30,
.y-gap-40 {
  margin-top: calc(var(--ui-space) / -2);
  margin-bottom: calc(var(--ui-space) / -2);
}

.y-gap-20 > *,
.y-gap-30 > *,
.y-gap-40 > * {
  padding-top: calc(var(--ui-space) / 2);
  padding-bottom: calc(var(--ui-space) / 2);
}

/* Card / block padding to border (py-30 px-30 pattern) */
.py-30 {
  padding-top: var(--ui-space) !important;
  padding-bottom: var(--ui-space) !important;
}

.px-30 {
  padding-left: var(--ui-space) !important;
  padding-right: var(--ui-space) !important;
}

.pt-30 {
  padding-top: var(--ui-space) !important;
}

.pb-30 {
  padding-bottom: var(--ui-space) !important;
}

.pl-30 {
  padding-left: var(--ui-space) !important;
}

.pr-30 {
  padding-right: var(--ui-space) !important;
}

/* Title → content spacing used across home sections */
.pt-40 {
  padding-top: var(--ui-space) !important;
}

@media (max-width: 767px) {
  .sm\:pt-20 {
    padding-top: var(--ui-space) !important;
  }
}

/* Section vertical padding (theme default was 120px / 50px) */
.layout-pt-xl {
  padding-top: 20px;
}

.layout-pb-xl {
  padding-bottom: 20px;
}

@media (max-width: 767px) {
  .layout-pt-xl {
    padding-top: 20px;
  }

  .layout-pb-xl {
    padding-bottom: 20px;
  }
}

@media (max-width: 575px) {
  .layout-pt-xl {
    padding-top: 20px;
  }

  .layout-pb-xl {
    padding-bottom: 20px;
  }
}

/* Alternating section backgrounds */
.section-bg-muted {
  background-color: var(--color-light-1, #F5F5F5);
}

.section-bg-oak {
  background-color: #F3EDE6;
}

.section-bg-soft {
  background-color: var(--color-light-3, #FBFBFB);
}

/* Popular uses cards — keep titles clear of the bottom edge on mobile */
.popular-use-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .popular-use-card {
    padding-bottom: 20px !important;
  }

  .popular-use-card__content {
    align-items: flex-end;
    padding-bottom: 12px;
  }

  .popular-use-card__title {
    font-size: 13px;
    line-height: 1.2;
  }
}

/* Why choose cards + nav */
.why-choose-slider {
  padding-left: 0;
  padding-right: 0;
}

.why-choose-card {
  min-height: 300px;
  height: 100%;
}

.why-choose-card .featureCard__image::after {
  background: linear-gradient(180deg, rgba(5, 7, 60, 0.15) 0%, rgba(5, 7, 60, 0.88) 100%);
  opacity: 1;
}

.why-choose-card__content {
  padding: var(--ui-space);
  align-items: flex-end;
}

.why-choose-card__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.why-choose-card__text {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.95;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

@media (max-width: 767px) {
  .why-choose-card {
    min-height: 260px;
  }

  .why-choose-card__title {
    font-size: 18px;
  }

  .why-choose-card__text {
    font-size: 14px;
  }
}

.js-section-slider .swiper-slide:has(.why-choose-card) {
  height: auto;
}

.js-section-slider .swiper-wrapper:has(.why-choose-card) {
  align-items: stretch;
}

.why-choose-nav {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.why-choose-nav__btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background-color: #fff;
  border: 1px solid var(--border, #E7E6E6);
  color: var(--color-dark-1, #05073C);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.why-choose-nav__btn:hover {
  background-color: var(--color-accent-1, #EB662B);
  border-color: var(--color-accent-1, #EB662B);
  color: #fff;
  transform: scale(1.05);
}

.why-choose-nav__btn.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 575px) {
  .why-choose-nav {
    left: 4px;
    right: 4px;
  }

  .why-choose-nav__btn {
    width: 40px;
    height: 40px;
  }
}

/* Categories marquee */
.categories-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.categories-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--ui-space);
  animation: categories-marquee-scroll 40s linear infinite;
  will-change: transform;
}

.categories-marquee:hover .categories-marquee__track {
  animation-play-state: paused;
}

.categories-marquee__item {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid var(--border, #E7E6E6);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.categories-marquee__item:hover {
  border-color: var(--color-accent-1, #EB662B);
  transform: translateY(-2px);
  z-index: 2;
}

.categories-marquee__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-light-1, #F5F5F5);
}

.categories-marquee__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.categories-marquee__item:hover .categories-marquee__image img {
  transform: scale(1.06);
}

.categories-marquee__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 60, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.categories-marquee__item:hover .categories-marquee__overlay {
  opacity: 1;
  pointer-events: auto;
}

.categories-marquee__btn {
  padding: 6px 14px !important;
  font-size: 13px !important;
  line-height: 1.2;
  border-radius: 8px;
  transform: translateY(6px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.categories-marquee__item:hover .categories-marquee__btn {
  transform: translateY(0);
}

.categories-marquee__content {
  padding: 6px var(--ui-space) 8px;
}

.categories-marquee__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.categories-marquee__count {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-light-2, #717171);
}

@keyframes categories-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .categories-marquee__item {
    width: 136px;
    border-radius: 8px;
  }

  .categories-marquee__image {
    aspect-ratio: 16 / 11;
  }

  .categories-marquee__title {
    font-size: 12px;
  }

  .categories-marquee__count {
    font-size: 11px;
  }

  .categories-marquee__btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .categories-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 15px;
    justify-content: center;
  }

  .categories-marquee__track > [aria-hidden="true"] {
    display: none;
  }

  .categories-marquee__overlay {
    opacity: 1;
    pointer-events: auto;
    background: rgba(5, 7, 60, 0.28);
  }

  .categories-marquee__btn {
    transform: none;
  }
}

/* Product card: spacing + tag badge + single-line title */
.tourCard.-type-1 {
  padding: var(--ui-space) !important;
}

.tourCard.-type-1 .tourCard__content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: var(--ui-space-half) !important;
}

.tourCard.-type-1 .tourCard__image {
  overflow: hidden;
  border-radius: 12px;
}

.tourCard.-type-1 .tourCard__image img {
  transition: transform 0.45s ease;
  will-change: transform;
}

.tourCard.-type-1:hover .tourCard__image img {
  transform: scale(1.08);
}

.tourCard.-type-1 .tourCard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 20px);
  padding: 5px 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-dark-1, #05073C);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tourCard.-type-1 .tourCard__title {
  overflow: hidden;
  color: var(--color-dark-1, #05073C);
  transition: color 0.25s ease;
}

.tourCard.-type-1 .tourCard__title span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-image: linear-gradient(
    to right,
    var(--color-accent-1, #EB662B) 0%,
    var(--color-accent-1, #EB662B) 100%
  );
  transition:
    color 0.25s ease,
    background-size 0.25s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.tourCard.-type-1:hover .tourCard__title {
  color: var(--color-accent-1, #EB662B);
}

.tourCard.-type-1 .tourCard__price {
  color: var(--color-accent-1, #EB662B);
}

.tourCard.-type-1 .tourCard__price-old {
  color: var(--color-light-2, #717171);
  font-size: 13px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.tourCard.-type-1 .border-1-top {
  padding-top: var(--ui-space-half) !important;
  margin-top: var(--ui-space-half) !important;
}

/* Home CTA promo — shorter height, stronger text presence */
.cta-promo.cta.-type-2 {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 991px) {
  .cta-promo.cta.-type-2 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .cta-promo.cta.-type-2 {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.cta-promo__title {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.cta-promo__text {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.cta-promo__btn {
  padding: 12px 28px;
  font-size: 14px;
}

.cta-promo__btn:hover {
  background-color: #fff !important;
  border-color: #fff;
  color: var(--color-accent-1, #EB662B) !important;
}

/* Home CTA consult — multi-field form, stronger text presence */
.cta-consult.cta.-type-1 .cta__content {
  padding-top: 20px;
  padding-bottom: 20px;
}

.cta-consult__title,
.cta-consult__text,
.cta-consult__badge {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.cta-consult__title {
  font-size: 56px !important;
  font-weight: 700 !important;
}

.cta-consult__text {
  font-size: 18px !important;
  font-weight: 500 !important;
}

@media (max-width: 767px) {
  .cta-consult__title {
    font-size: 32px !important;
  }

  .cta-consult__text {
    font-size: 15px !important;
  }
}

.cta-consult__form input,
.cta-consult__form textarea {
  width: 100%;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  color: var(--color-dark-1);
  font-size: 14px;
  line-height: 1.4;
}

.cta-consult__form input {
  height: 44px;
  padding: 0 14px;
}

.cta-consult__form textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 14px;
  resize: vertical;
}

.cta-consult__form input::placeholder,
.cta-consult__form textarea::placeholder {
  color: var(--color-dark-1);
  opacity: 0.65;
}

.cta-consult__form .button {
  height: 44px;
  padding-inline: 28px;
}

/* Home blog cards — image left, content right; 3/3/2 grid via Bootstrap cols */
.blogCard.-type-home {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: 100%;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #E7E6E6;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blogCard.-type-home:hover {
  border-color: #d9d7d7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.blogCard.-type-home:hover .blogCard__title {
  color: var(--color-accent-1, #EB662B);
}

.blogCard.-type-home:hover .blogCard__image img {
  transform: scale(1.06);
}

.blogCard.-type-home .blogCard__image {
  position: relative;
  flex: 0 0 110px;
  width: 110px;
  min-height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e8e6e3;
}

.blogCard.-type-home .blogCard__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blogCard.-type-home .blogCard__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.blogCard.-type-home .blogCard__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s ease;
}

.blogCard.-type-home .blogCard__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  margin-bottom: 0;
}

.blogCard.-type-home .blogCard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  line-height: 1.35;
  margin-top: auto;
  padding-top: 8px;
}

.blogCard.-type-home .blogCard__meta-item + .blogCard__meta-item::before,
.blogCard.-type-home .blogCard__meta-item + .blogCard__views::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.45;
  vertical-align: middle;
}

.blogCard.-type-home .blogCard__views {
  gap: 4px;
}

.blogCard.-type-home .blogCard__eye {
  flex-shrink: 0;
  opacity: 0.8;
}

@media (max-width: 991px) {
  .blogCard.-type-home {
    gap: 12px;
  }

  .blogCard.-type-home .blogCard__image {
    flex-basis: 92px;
    width: 92px;
    min-height: 92px;
  }
}

@media (max-width: 575px) {
  .blogCard.-type-home {
    gap: 10px;
  }

  .blogCard.-type-home .blogCard__image {
    flex-basis: 72px;
    width: 72px;
    min-height: 72px;
    border-radius: 8px;
  }

  .blogCard.-type-home .blogCard__title {
    font-size: 13px !important;
    -webkit-line-clamp: 2;
  }

  .blogCard.-type-home .blogCard__desc {
    -webkit-line-clamp: 2;
    font-size: 11px;
  }

  .blogCard.-type-home .blogCard__meta {
    font-size: 10px;
    column-gap: 8px;
  }

  .blogCard.-type-home .blogCard__meta-item + .blogCard__meta-item::before,
  .blogCard.-type-home .blogCard__meta-item + .blogCard__views::before {
    margin-right: 8px;
  }
}

/* Global mobile typography scale-down */
@media (max-width: 767px) {
  :root {
    --text-8: 7px;
    --text-10: 9px;
    --text-13: 11px;
    --text-14: 12px;
    --text-15: 13px;
    --text-16: 14px;
    --text-18: 15px;
    --text-20: 16px;
    --text-24: 18px;
    --text-26: 20px;
    --text-30: 22px;
    --text-40: 26px;
    --text-50: 32px;
    --text-70: 40px;
  }

  body {
    font-size: 14px;
  }

  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }

  .tourCard.-type-1 .tourCard__badge {
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    font-size: 10px;
    border-radius: 6px;
  }
}

@media (max-width: 575px) {
  :root {
    --text-8: 7px;
    --text-10: 8px;
    --text-13: 10px;
    --text-14: 11px;
    --text-15: 12px;
    --text-16: 13px;
    --text-18: 14px;
    --text-20: 15px;
    --text-24: 17px;
    --text-26: 18px;
    --text-30: 20px;
    --text-40: 24px;
    --text-50: 28px;
    --text-70: 34px;
  }

  body {
    font-size: 13px;
  }

  .tourCard.-type-1 .tourCard__location {
    font-size: 11px;
  }

  .tourCard.-type-1 .tourCard__location i {
    font-size: 12px !important;
    margin-right: 3px !important;
  }

  .tourCard.-type-1 .tourCard__title {
    font-size: 13px !important;
    line-height: 1.35;
    margin-top: 4px !important;
  }

  .tourCard.-type-1 .tourCard__rating {
    font-size: 11px;
    margin-top: 4px !important;
  }

  .tourCard.-type-1 .tourCard__rating .text-dark-1 {
    margin-left: 6px !important;
  }

  .tourCard.-type-1 .tourCard__favorite {
    width: 28px;
    height: 28px;
  }

  .tourCard.-type-1 .border-1-top {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
  }

  .tourCard.-type-1 .tourCard__price {
    font-size: 13px !important;
  }

  .tourCard.-type-1 .tourCard__price-old {
    font-size: 11px;
    display: block;
    margin-left: 0 !important;
  }

  .tourCard.-type-1 .tourCard__image.ratio {
    border-radius: 8px;
  }
}

/* Footer spacing + clearer link hover */
.footer.-type-1 .footer__info {
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer.-type-1 .footer__content {
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer.-type-1 .footer__bottom {
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (max-width: 767px) {
  .footer.-type-1 .footer__main {
    padding-top: 20px;
  }

  .footer.-type-1 .footer__info,
  .footer.-type-1 .footer__content {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.footer.-type-1 .footer__content a,
.footer.-type-1 .footer__info a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer.-type-1 .footer__content a:hover,
.footer.-type-1 .footer__info a:hover {
  color: var(--color-accent-1, #EB662B);
  opacity: 1;
}

.footer.-type-1 .footer__content .y-gap-10 > a,
.footer.-type-1 .footer__content .mt-10 > a,
.footer.-type-1 .footer__content a.d-flex,
.footer.-type-1 .footer__content a.d-block {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.footer.-type-1 .footer__content .y-gap-10 > a:hover,
.footer.-type-1 .footer__content a.d-flex:hover,
.footer.-type-1 .footer__content a.d-block:hover {
  transform: translateX(4px);
}

.footer.-type-1 .footer__info a.text-accent-1:hover {
  filter: brightness(0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer.-type-1 .footerSocials__icons > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(235, 102, 43, 0.25);
}

.footer.-type-1 .footer__newsletter input {
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
}

.footer.-type-1 .footer__newsletter button {
  padding: 0 16px;
  font-size: 14px;
}

/* =========================================================
   Floating support (left) + back-to-top polish (right)
   ========================================================= */
.toTopButton {
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.toTopButton.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floatSupport {
  position: fixed;
  left: 30px;
  bottom: 100px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 767px) {
  .floatSupport {
    left: 20px;
    bottom: 20px;
  }
}

.floatSupport__channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.floatSupport.is-open .floatSupport__channels {
  pointer-events: auto;
}

.floatSupport__channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-dark-1, #05073C);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transform: translate3d(0, 14px, 0) scale(0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.32s,
    box-shadow 0.2s ease;
}

.floatSupport.is-open .floatSupport__channel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s,
    box-shadow 0.2s ease;
}

/* Open: bottom → top (near toggle first) */
.floatSupport.is-open .floatSupport__channel:nth-child(1) { transition-delay: 0.18s; }
.floatSupport.is-open .floatSupport__channel:nth-child(2) { transition-delay: 0.12s; }
.floatSupport.is-open .floatSupport__channel:nth-child(3) { transition-delay: 0.06s; }
.floatSupport.is-open .floatSupport__channel:nth-child(4) { transition-delay: 0s; }

/* Close: reverse stagger */
.floatSupport.is-closing .floatSupport__channel:nth-child(1) { transition-delay: 0s; }
.floatSupport.is-closing .floatSupport__channel:nth-child(2) { transition-delay: 0.04s; }
.floatSupport.is-closing .floatSupport__channel:nth-child(3) { transition-delay: 0.08s; }
.floatSupport.is-closing .floatSupport__channel:nth-child(4) { transition-delay: 0.12s; }

.floatSupport.is-open .floatSupport__channel:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transform: translate3d(0, -2px, 0) scale(1);
}

.floatSupport__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #f3f4f6;
}

.floatSupport__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.floatSupport__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding-right: 4px;
  white-space: nowrap;
}

.floatSupport__channel.-zalo .floatSupport__icon {
  background: #E8F1FF;
}

.floatSupport__channel.-facebook .floatSupport__icon {
  background: #E8F1FF;
}

.floatSupport__channel.-messenger .floatSupport__icon {
  background: #F3E8FF;
}

.floatSupport__channel.-phone .floatSupport__icon {
  background: var(--color-accent-1, #EB662B);
}

.floatSupport__channel.-phone .floatSupport__icon img {
  width: 18px;
  height: 18px;
}

.floatSupport__toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent-1, #EB662B);
  color: #fff;
  box-shadow: 0 10px 28px rgba(235, 102, 43, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767px) {
  .floatSupport__toggle {
    width: 54px;
    height: 54px;
  }
}

.floatSupport__toggle:hover {
  background: var(--color-accent-1-dark, #CE5A25);
  transform: translateY(-1px);
}

.floatSupport__toggleIcon {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floatSupport__iconOpen,
.floatSupport__iconClose {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.floatSupport__iconClose {
  width: 20px;
  height: 20px;
}

.floatSupport__iconOpen {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.floatSupport__iconClose {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.floatSupport.is-open .floatSupport__iconOpen {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.floatSupport.is-open .floatSupport__iconClose {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.floatSupport__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(235, 102, 43, 0.55);
  animation: floatSupportPulse 2.2s ease-out infinite;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.floatSupport__ripple--delay {
  animation-delay: 1.1s;
}

.floatSupport.is-open .floatSupport__ripple {
  animation-play-state: paused;
  opacity: 0;
}

@keyframes floatSupportPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.75);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floatSupport__ripple,
  .floatSupport__channel,
  .toTopButton {
    animation: none !important;
    transition: none !important;
  }
}
