/* ==== [SHORTCODE: tva_show_additional_info] ==== */

/* Nút mở bảng thông số */
.tva-single-product__show-btn {
  cursor: pointer;
  width: fit-content;
  background: transparent;
  color: var(--tva-primary-hover);
  border: none;
  border-radius: var(--tva-border-radius);
}
.tva-single-product__show-btn:hover {
  text-decoration: underline;
}

/* Lớp phủ overlay */
.tva-single-product__overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--tva-overlay-bg);
  z-index: var(--tva-z-index-overlay);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

/* Nội dung popup */
.tva-single-product__content {
  position: relative;
  background: #fff;
  width: 60vw;
  max-height: 70vh;
  border-radius: var(--tva-border-radius);
  box-shadow: var(--tva-box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Khi overlay bật */
.tva-single-product__overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tva-single-product__overlay.active .tva-single-product__content {
  opacity: 1;
  transform: translateY(0);
}

/* Thanh tiêu đề + nút đóng */
.tva-single-product__title-bar {
  background-color: #f8f8f8;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tva-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tva-single-product__close-btn {
  background: var(--tva-primary-color);
  color: #fff !important;
  border-radius: var(--tva-border-radius);
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}
.tva-single-product__close-btn:hover {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
}

/* Nội dung cuộn */
.tva-single-product__scroll {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
}

/* ==== [SHORTCODE: tva_call_button] ==== */

/* Nút gọi tư vấn */
.tva-single-product__call-btn {
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  background-color: #ff9900;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px rgba(0, 0, 0, 0.2),
              inset -2px -2px rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.tva-single-product__call-btn.active {
  transform: translate(1px, 1px);
  box-shadow: inset -2px -2px rgba(0, 0, 0, 0.3);
}

/* Icon điện thoại */
.tva-single-product__call-icon {
  display: inline-block;
  animation: float 0.8s alternate infinite;
}

/* Hộp danh sách số điện thoại */
.tva-single-product__phone-wrapper {
  position: absolute;
  left: calc(100% + 5px);
  top: 0;
  background-color: var(--tva-primary-hover);
  border: 1px solid var(--tva-primary-color);
  border-radius: 6px;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
}
.tva-single-product__phone-wrapper.active {
  max-height: 500px;
  opacity: 1;
  padding: 10px;
  z-index: 1;
}

/* Danh sách số */
.tva-single-product__phone-list {
  position: relative;
  padding: 10px;
}
.tva-single-product__phone a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 0;
  font-weight: 500;
}
.tva-single-product__phone a:hover {
  text-decoration: underline;
  color: #fff;
}
.tva-single-product__phone {
  display: flex;
}

/* Mũi tên chỉ */
.tva-single-product__phone-list::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -10px;
  transform: translateX(-100%);
  border-right: 5px solid var(--tva-primary-color);
  border-left: none;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  z-index: 10000;
}

/* ==== [TABS mô tả sản phẩm] ==== */

.tva-spdesc__header {
  padding-left: 20px;
  border-bottom: 4px solid var(--tva-primary-color);
}

.tva-tab__content {
  display: none;
  padding: 20px 10px;
}
.tva-tab__content img {
  display: block;
}
.tva-spdesc__content .tva-tab__content:first-child {
  display: block;
}

.tva-tab__title {
  display: inline-block;
  padding: 12.8px;
  padding-bottom: 8px;
  margin-right: -3.5px;
  margin-bottom: -1px;
  font-weight: normal;
  font-size: 12.8px;
  text-transform: unset;
  cursor: pointer;
  color: var(--tva-text-color);
  background-color: var(--tva-primary-v2);
  border: 1px solid var(--tva-primary-color);
}
.tva-tab__title--active {
  color: white;
  font-weight: bold;
  background-color: var(--tva-primary-color);
}
.tva-tab__title:first-child {
  border-left: 1px solid var(--tva-primary-color);
}
.tva-tab__title:last-child {
  border-right: 1px solid var(--tva-primary-color);
}

.tva-tab__title-child {
  display: inline-block;
  padding: 6.4px;
  padding-bottom: 4px;
  cursor: pointer;
  position: relative;
  border: var(--tva-border-color);
}

/* ==== Responsive ==== */
@media (max-width: 1200px) {
  .tva-single-product__content {
    width: 90%;
  }
}