@charset "UTF-8";
/**
 * _base.scss
 * 
 * 1/ biến màu săc
 * 2/ biến kích thước font chữ
 * 3/ Cấu hình border
 * 4/ Mixin
 * 5/ Responsive
*/
@media (min-width: 768px) {
  .nav-dropdown-has-border header#header .nav-dropdown ul.sub-menu {
    border-style: solid;
    border-width: 2px;
  }

  header#header .nav-dropdown {
    display: block;
    padding: 20px 0;
  }

  header#header .nav-dropdown ul.sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 250px;
    padding: 0;
    display: none !important;
  }

  header#header .nav-dropdown ul.sub-menu a {
    white-space: normal;
    margin: 0;
    padding: 10px 15px;
    border: 0;
    font-weight: 400;
  }

  header#header .nav-dropdown li {
    border-right: 0;
    white-space: normal;
    width: 100%;
    display: block;
    position: relative;
  }

  header#header .nav-dropdown li:hover>ul.sub-menu {
    display: block !important;
  }

  header#header .nav-dropdown li.menu-item-has-children>a {
    font-weight: 400;
    text-transform: none;
  }
}

.entry-content ul li ul {
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.blog-wrapper.blog-archive {
  padding-top: 0;
}

.select-resize-ghost,
.select2-container .select2-choice,
.select2-container .select2-selection,
input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
  box-shadow: none !important;
}

.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__input {
  margin-bottom: 0;
}

.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button {
  font-size: 0;
  height: unset;
  min-height: unset;
  padding: 0 10px;
}

.wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button::before {
  content: "\eb1c";
  font-family: "matbaows-icons";
  font-size: 1rem;
  color: inherit;
}

.widget_price_filter .price_slider_wrapper .ui-slider.price_slider .ui-slider-handle {
  background-color: var(--fs-color-primary);
}

.widget_price_filter .price_slider_wrapper .ui-slider.price_slider .ui-slider-range {
  background-color: var(--fs-color-secondary);
}

.widget_price_filter .price_slider_wrapper .price_slider_amount .button {
  background-color: var(--fs-color-primary);
}

.wpcf7-form .wpcf7-form-control-wrap input {
  margin-bottom: 0;
}

.wpcf7-form .wpcf7-form-control-wrap textarea {
  margin-bottom: 0;
}

.wpcf7-form .form-dk {
  display: flex;
  width: 100%;
}

.wpcf7-form .form-dk .wpcf7-spinner {
  display: none;
}

.wpcf7-form .form-dk .wpcf7-submit {
  margin-right: 0;
}

.box-contact p i {
  color: var(--fs-color-primary);
  width: 23px;
  text-align: center;
}

#related_posts {
  border-top: 4px double #e8e8e8;
  padding-top: 10px;
}

#related_posts .col {
  float: left;
  margin-left: 0;
  list-style: none;
}

#related_posts li:nth-child(1) {
  padding-left: 0 !important;
}

#related_posts li:nth-child(2) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#related_posts li:nth-child(3) {
  padding-right: 0 !important;
}

#related_posts .relatedthumb img {
  height: 100%;
}

.mbws-related-posts-title {
  margin-top: 30px;
}

.relatedcontent h3 {
  font-size: 1rem;
  margin-top: 7px;
}

.header .stuck>div:not(.hide-for-sticky) {
  background-color: var(--color-sticky-header-bgr);
}

.header .stuck>div:not(.hide-for-sticky) .nav li.menu-item a {
  color: var(--color-sticky-header-nav);
}

.header .stuck>div:not(.hide-for-sticky) .nav li.menu-item a:hover {
  color: var(--color-sticky-header-nav-hover);
}

#header .nav-icon .menu-title {
  color: var(--fs-color-primary);
}

@media (max-width: 768px) {
  body .mbws_toolbar ul>li>a {
    padding: 10px 0 !important;
  }

  body .mbws_toolbar ul>li>a div {
    display: block !important;
    width: 32px;
    height: 32px;
  }

  body .mbws_toolbar ul>li>a img {
    width: 100% !important;
    height: auto !important;
  }

  body .mbws_toolbar ul>li>a span {
    position: static;
    display: block !important;
    line-height: 1;
    padding: unset;
    height: auto;
  }

  body .mbws_toolbar ul>li>a span::after {
    display: nome;
  }
}

/* Custom Accordion Styling */
.accordion {
  margin-bottom: 20px;
}

.accordion-item {
  background: #fff !important;
  border: 1px solid #ececec !important;
  border-radius: 4px !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.accordion-title {
  position: relative !important;
  display: block !important;
  padding: 15px 50px 15px 20px !important;
  /* padding-right is large to prevent text overlap with toggle */
  background: #fff !important;
  border-left: 4px solid transparent !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
  text-decoration: none !important;
  color: #333 !important;
}

.accordion-title span {
  font-size: 16px !important;
  color: #333 !important;
  font-weight: 500 !important;
  display: inline-block !important;
}

.accordion-title.active {
  border-left-color: #e23e1d !important;
  border-color: transparent !important;
}

/* Hide default angle icon inside toggle button */
.accordion-title .toggle i {
  display: none !important;
}

.accordion-title .toggle {
  position: absolute !important;
  right: 20px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Custom Plus / Minus toggles */
.accordion-title .toggle::before {
  content: "+" !important;
  color: #e23e1d !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.accordion-title.active .toggle::before {
  content: "\2212" !important;
  /* Unicode minus sign − */
  font-size: 28px !important;
}

/* Inner content styling */
.accordion-inner {
  padding: 20px 20px 20px 24px !important;
  border-top: 0px solid #ececec !important;
  background: #fff !important;
  color: #444 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Custom Audio Element list layout */
.mbws-audio-element-list {
  margin-bottom: 20px;
}

.mbws-audio-item {
  background: #fff !important;
  border: 1px solid #ececec !important;
  border-radius: 4px !important;
  margin-bottom: 12px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.mbws-audio-body {
  padding: 15px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.custom-audio-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;

  .mbws-audio-body-mobile {
    max-width: 100px;
  }
}

.mbws-audio-title {
  font-size: 18px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

.mbws-audio-title a {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #e23e1d !important;
  /* orange/red */
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Sound wave icon styling using base64 encoded mask */
/* .mbws-audio-item .btn-audio-1 span, */
.mbws-audio-item .btn-audio-2::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url(/wp-content/themes/matbaows/assets/img/icon-speaker.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-bottom: -3px;
  filter: brightness(0) !important;
}

.btn-audio-1,
.btn-audio-2 {
  gap: 4px
}

.btn-audio-2 {
  color: #333 !important;
  text-decoration: none !important;
  font-size: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.btn-audio-2 .dots {
  margin-left: 0 !important;
}

/* Fix WordPress direct video shortcode inside Flatsome video-fit wrapper */
.video-fit .wp-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}

.video-fit .wp-video video,
.video-fit .wp-video .mejs-container,
.video-fit .wp-video .mejs-overlay,
.video-fit .wp-video .mejs-poster {
  width: 100% !important;
  height: 100% !important;
}

/* --- LOGO SCROLL MARQUEE --- */
.logo-scroll-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 0;
  /* Hiệu ứng mờ 2 bên mép để nhìn mượt hơn */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-scroll-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  /* Khoảng cách giữa các logo */
  /* Thời gian 30s có thể điều chỉnh để chạy nhanh hay chậm */
  animation: scroll-marquee 30s linear infinite;
  width: max-content;
}

.logo-scroll-track:hover {
  /* Dừng cuộn khi di chuột vào */
  animation-play-state: paused;
}

/* Sửa lỗi nếu dùng Flatsome Image Element */
.logo-scroll-track>* {
  flex-shrink: 0;
  margin: 0 !important;
  width: auto !important;
  /* Ghi đè flatsome width */
}

.logo-scroll-track img {
  height: var(--logo-height, 9rem) !important;
  /* Chiều cao cố định cho logo */
  width: auto !important;
  object-fit: contain;
  /* Làm xám logo để nhìn đồng bộ, khi hover sẽ hiện màu gốc */
  /* filter: grayscale(100%) opacity(0.5); */
  transition: all 0.3s ease;
}

.logo-scroll-track .ux-logo {
  width: 200px !important;
}

.logo-scroll-track img:hover {
  /* filter: grayscale(0%) opacity(1); */
  transform: scale(1.05);
}

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

  100% {
    /* Cuộn đi đúng 1 nửa chiều dài (chính xác với cấu trúc lặp đôi) */
    transform: translateX(calc(-50% - 2rem));
  }
}

/* Hide mobile-only elements on desktops/tablets */
@media (min-width: 768px) {

  .logo-qc-mobile-wrapper,
  .title-mobile-only-wrapper {
    display: none !important;
  }
}

/* Mobile-only styling to align promo block next to wishlist button */
@media (max-width: 767px) {
  .single-post-wishlist-wrapper {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .logo-qc-mobile-wrapper {
    flex: 1;
    min-width: 0;
  }

  .logo-qc-mobile-wrapper .logo-scroll-container {
    padding: 0 !important;
  }
}

/* Flag Tabs Styling */
.flag-tab-img {
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  opacity: 0.6;
}

.flag-tab-img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Make active tab flag fully opaque */
.active .flag-tab-img,
.active>a .flag-tab-img,
.is-active .flag-tab-img,
.is-active>a .flag-tab-img {
  opacity: 1 !important;
}

/* Hide return to shop button in empty mini cart */
.ux-mini-cart-empty .return-to-shop,
.woocommerce-mini-cart__empty-message+.return-to-shop {
  display: none !important;
}

/* OTP Password Reset Form styling */
.mbws-otp-reset-wrap {
  max-width: 450px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mbws-reset-step {
  display: none;
  transition: opacity 0.3s ease;
}

.mbws-reset-step.active {
  display: block;
}

.mbws-reset-step .step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333333;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.mbws-reset-step .step-subtitle {
  text-align: center;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.mbws-otp-reset-wrap input[type="email"],
.mbws-otp-reset-wrap input[type="text"],
.mbws-otp-reset-wrap input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 0 20px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.mbws-otp-reset-wrap input:focus {
  border-color: #e23e1d !important;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(226, 62, 29, 0.15) !important;
}

.mbws-otp-reset-wrap button[type="submit"],
.mbws-otp-reset-wrap .step-success a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: #e23e1d !important;
  border: none;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-sizing: border-box;
  text-decoration: none;
}

.mbws-otp-reset-wrap button[type="submit"]:hover,
.mbws-otp-reset-wrap .step-success a.button:hover {
  background-color: #c43214 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 62, 29, 0.25);
  color: #fff !important;
}

.mbws-otp-reset-wrap button[type="submit"]:disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Password field with toggle */
.input-field-wrap.password-wrap {
  position: relative;
}

.pw-toggle-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

#mbws-reset-password-form .pw-toggle-icon {

  top: 35% !important;

}

.pw-toggle-icon:hover {
  color: #333;
}

.pw-toggle-icon svg.hidden {
  display: none;
}

/* Message boxes */
.mbws-otp-reset-wrap .message-box {
  display: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.4;
}

.mbws-otp-reset-wrap .error-msg {
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #fbd5d5;
}

.mbws-otp-reset-wrap .success-msg {
  background-color: #edfdfd;
  color: #036b77;
  border: 1px solid #cff8fa;
}

/* Resend Button Wrap */
.resend-wrap {
  margin-top: 1.5rem;
}

#mbws-resend-otp-btn {
  color: #e23e1d;
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

#mbws-resend-otp-btn:hover {
  color: #c43214;
}

#mbws-resend-otp-btn.disabled {
  color: #999;
  text-decoration: none;
  cursor: not-allowed;
}

/* Success Step */
.mbws-reset-step.step-success {
  text-align: center;
}

.mbws-reset-step .success-desc {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.mbws-wl-item.mbws-wl-post-item {
  margin-left: 0;
}

/* Dynamic password toggle styles */
.dynamic-pw-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.um-form input[type="password"].has-pw-toggle,
.um-form input[type="text"].has-pw-toggle,
.input-field-wrap input[type="password"].has-pw-toggle,
.input-field-wrap input[type="text"].has-pw-toggle,
input[type="password"].has-pw-toggle,
input[type="text"].has-pw-toggle {
  padding-right: 48px !important;
}

.hide-text * {
  font-size: 0 !important;
}

.hide-text {
  margin-right: 0 !important;
}

/* Custom Table Popup Styling */
.mbws-table-popup-inner {
  max-width: 100%;
  overflow-x: auto;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 8px;
}

.mbws-table-popup-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #d1d5db;
}

.mbws-table-popup-inner th:first-child,
.mbws-table-popup-inner td:first-child {
  padding-left: 14px !important;
}

.mbws-table-popup-inner th,
.mbws-table-popup-inner td {
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
}

.mbws-table-popup-inner th {
  background-color: #f3f4f6;
  font-weight: 700;
  color: #111827;
}

/* 
.mbws-table-popup-inner tr:nth-child(even) {
  background-color: #f9fafb;
} */

.mbws-table-popup-inner tr:hover {
  background-color: #f1f5f9;
}

@media (max-width: 768px) {
  .mbws_audio-template .page-left-sidebar .large-2.col-first {
    display: none;
  }
}

.custom-col-note {
  max-width: 50px !important;
  flex-basis: 50px !important;

  .col-inner {
    top: 70px;
  }
}

/* Custom styling for Ultimate Member password field icon toggle */
.um-field-password .um-field-icon {
  left: auto !important;
  right: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
}
.um .um-form .um-field-password input.um-iconed {
  padding-left: 15px !important;
  padding-right: 45px !important;
}

/* Mobile-only vertical post item layout inside tab panels */
@media (max-width: 767px) {
  .tab-panels .post-item {
    padding-bottom: 0 !important;
  }

  .tab-panels .post-item .box-blog-post {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    gap: 15px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    height: auto !important;
  }

  .tab-panels .post-item .box-blog-post .box-image {
    width: 80px !important;
    max-width: 80px !important;
    flex: 0 0 80px !important;
  }

  .tab-panels .post-item .box-blog-post .box-image .image-cover {
    padding-top: 100% !important; /* Force 1:1 aspect ratio square */
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .tab-panels .post-item .box-blog-post .box-text {
    padding: 0 !important;
    flex: 1 !important;
    text-align: left !important;
  }

  .tab-panels .post-item .box-blog-post .box-text-inner {
    padding: 0 !important;
  }

  .tab-panels .post-item .box-blog-post .post-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  .tab-panels .post-item .box-blog-post .post-title a {
    color: #333333 !important;
  }

  .tab-panels .post-item .box-blog-post .is-divider {
    display: none !important; /* Hide line divider for a cleaner list view */
  }
}