/* ================================================================
   퀵버튼 - 마케터비 테마
================================================================ */

/* 모바일: 하단 고정 바 */
.xet-layout-quickbutton {
  z-index: 88;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 16px rgba(0,0,0,.12);
  transition: var(--transition-all);
}

.xet-layout-quickbutton > ul {
  display: flex;
}

.xet-layout-quickbutton > ul > li {
  flex: 1;
}

.xet-layout-quickbutton > ul > li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 56px;
  padding: 0 4px;
  overflow: hidden;
  background-color: var(--theme-color);
  color: #fff;
  transition: background-color .2s;
}

.xet-layout-quickbutton > ul > li + li > a {
  background-color: var(--theme-color-dark, #a6865a);
}

.xet-layout-quickbutton > ul > li:nth-child(3) > a {
  background-color: #1a1b22;
}

.xet-layout-quickbutton > ul > li a:hover {
  filter: brightness(1.1);
}

.xet-layout-quickbutton > ul > li a > span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.xet-layout-quickbutton > ul > li a > span > i {
  font-size: 1.1rem;
}

.xet-layout-quickbutton > ul > li a > strong {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 데스크탑: 우측 플로팅 */
@media (min-width: 1024px) {
  .xet-layout-quickbutton {
    top: 50%;
    left: auto;
    bottom: auto;
    right: 20px;
    padding: 0;
    transform: translateY(-50%);
    background: none !important;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
  }

  .xet-layout-quickbutton.sub { right: 36px; }
  .xet-layout-quickbutton.is-scroll { transform: translateY(-50%); right: 20px; }

  .xet-layout-quickbutton > ul { display: block; }
  .xet-layout-quickbutton > ul > li { display: block; }

  .xet-layout-quickbutton > ul > li + li {
    margin-top: 1rem;
    border-left: 0;
  }

  .xet-layout-quickbutton > ul > li a {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    overflow: visible;
    padding: 0;
    height: auto;
    border-radius: 3.75rem;
    background: none !important;
  }

  /* 아이콘 원형 버튼 */
  .xet-layout-quickbutton > ul > li a > span {
    flex-shrink: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--theme-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200,169,126,.4);
    transition: background-color .25s, box-shadow .25s, transform .2s;
  }

  .xet-layout-quickbutton > ul > li + li a > span {
    background-color: var(--theme-color-dark, #a6865a);
    box-shadow: 0 4px 16px rgba(166,134,90,.35);
  }

  .xet-layout-quickbutton > ul > li:nth-child(3) a > span {
    background-color: #1a1b22;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
  }

  .xet-layout-quickbutton > ul > li a > span > i {
    font-size: 1.5rem;
    color: #fff;
    transition: transform .2s;
  }

  /* 텍스트 라벨 */
  .xet-layout-quickbutton > ul > li a > strong {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    display: inline-flex;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--theme-color);
    color: #fff;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
  }

  .xet-layout-quickbutton > ul > li + li a > strong {
    background-color: var(--theme-color-dark, #a6865a);
  }

  .xet-layout-quickbutton > ul > li:nth-child(3) a > strong {
    background-color: #1a1b22;
  }

  /* 호버 */
  .xet-layout-quickbutton > ul > li:hover > a > span {
    box-shadow: 0 6px 24px rgba(200,169,126,.5);
    transform: scale(1.05);
  }

  .xet-layout-quickbutton > ul > li:hover > a > span > i {
    transform: scale(1.1);
  }

  .xet-layout-quickbutton > ul > li:hover > a > strong {
    opacity: 1;
    visibility: visible;
    width: auto;
    padding-right: 4.25rem;
    padding-left: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
  }
}

@media (min-width: 1200px) {
  .xet-layout-quickbutton { right: 24px; }
  .xet-layout-quickbutton.sub { right: 40px; }
  .xet-layout-quickbutton.is-scroll { right: 24px; }
}

@media (min-width: 1440px) {
  .xet-layout-quickbutton { right: 30px; }
  .xet-layout-quickbutton.sub { right: 46px; }
  .xet-layout-quickbutton.is-scroll { right: 30px; }
}
