/* Minimal styles; adapt to theme as needed */
.materials-widget {
  margin: 24px 16px; /* add horizontal breathing room */
  --mw-primary: rgba(0, 123, 196, 1);
  --mw-bg: rgba(0, 123, 196, 0.06);
  --mw-border: rgba(0, 123, 196, 0.18);
  --mw-hover: rgba(0, 123, 196, 0.1);
}
.materials-widget .mw-section {
  background: var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  padding: 18px 16px; 
  margin-bottom: 18px;
}
.materials-widget .mw-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.materials-widget .mw-toolbar strong {
  font-size: 18px;
  color: var(--mw-primary);
}
.materials-widget .mw-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.materials-widget input[type="text"],
.materials-widget input[type="email"],
.materials-widget input[type="number"],
.materials-widget input[type="date"],
.materials-widget input[type="tel"] {
  padding: 10px 12px;
  border: 1px solid #d8e1f1;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
}
.materials-widget input:focus {
  outline: none;
  border-color: rgba(0, 123, 196, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 123, 196, 0.15);
}
.materials-widget .mw-actions {
  display: flex;
  gap: 12px;
}
.materials-widget .mw-actions .button-primary {
  background: var(--mw-primary) !important;
  border-color: var(--mw-primary) !important;
  padding: 10px 16px;
  height: auto;
  color: white;
  border-radius: 999px; /* pill button */
}
.materials-widget .mw-actions .button-primary:hover {
  filter: brightness(0.95);
}
/* Suggest dropdown (used by all inputs with data-autocomplete) */
.materials-widget .mw-suggest-list,
.mw-suggest-list {
  background: #fff;
  color: #111;
  border: 1px solid var(--mw-border);
  border-radius: 6px;
}
.mw-hot-page .mw-search {
  display: flex;
  gap: 8px;
}
.mw-hot-page .mw-search input[type="text"] {
  width: 150px;
  padding: 8px 10px;
  border: 1px solid #d8e1f1;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow: auto;
}
.materials-widget .mw-suggest-item,
.mw-suggest-item {
  padding: 8px 12px;
  cursor: pointer;
  color: #111;
}
.materials-widget .mw-suggest-item:hover,
.mw-suggest-item:hover {
  background: var(--mw-hover);
  color: #000;
}
.mw-hot-page .mw-table th,
.mw-hot-page .mw-table td {
  padding: 10px;
  border-top: 1px solid #f0f2f5;
  font-size: 13px;
}
.mw-hot-page .mw-table tbody tr:hover {
  background: #fafcff;
}
.materials-widget .mw-note {
  color: #6b7280;
  font-size: 0.9em;
  margin-top: 8px;
}

/* Product columns */
.mw-hot-page .mw-col-product {
  min-width: 260px;
}
.mw-hot-page .mw-p-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.mw-hot-page .mw-p-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mw-hot-page .mw-p-title {
  font-weight: 600;
}
.mw-hot-page .mw-p-brand {
  font-size: 12px;
  color: #6b7280;
}
.mw-hot-page .mw-col-stock {
  white-space: nowrap;
}
.mw-hot-page .mw-badge {
  display: inline-block;
}
.mw-hot-page .mw-col-product .mw-p-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mw-hot-page .mw-col-product .mw-p-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  display: block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 6px;
}
.mw-hot-page .mw-badge--in {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.mw-hot-page .mw-badge--low {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.mw-hot-page .mw-badge--out {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.mw-hot-page .mw-stock-qty {
  color: #6b7280;
}
.mw-hot-page .mw-col-price {
  font-weight: 600;
  color: #111;
}
.materials-widget .mw-hot {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
/* Allow wider email/phone fields specifically in contact section */
.materials-widget .mw-section.mw-contact input[name="customer_email"] { max-width: 220px; }
.materials-widget .mw-section.mw-contact input[name="customer_phone"] { max-width: 160px; }
.materials-widget .mw-hot a {
  display: block;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  font-size: 12px;
}
.materials-widget .mw-hot a:hover {
  background: var(--mw-hover);
  border-color: rgba(0, 123, 196, 0.35);
}

@media (max-width: 1024px) {
  .materials-widget .mw-hot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .materials-widget .mw-hot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop only: constrain input width */
@media (min-width: 769px) {
  .materials-widget input[type="text"],
  .materials-widget input[type="email"],
  .materials-widget input[type="number"],
  .materials-widget input[type="date"],
  .materials-widget input[type="tel"] {
    max-width: 130px;
  }
}

/* Hot page styles */
.mw-hero-slider {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #f5f7fb;
}
.mw-hero-slider .mw-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.mw-hero-slider .mw-slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
}
.mw-hot-page .mw-hero-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  z-index: 2;
  opacity: 0 !important;
  visibility: hidden !important;
}
.mw-hero-slider .mw-slide-prev,
.mw-hero-slider .mw-slide-next {
  opacity: 0 !important;
  visibility: hidden !important;
}
.mw-hot-page .mw-hero-slider .mw-slide-prev {
  left: 12px;
}
.mw-hot-page .mw-hero-slider .mw-slide-next {
  right: 12px;
}
.mw-hot-page .mw-hot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.mw-hot-page .mw-card {
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  overflow: hidden;
}
.mw-hot-page .mw-card-hd {
  padding: 8px 10px;
  background: var(--mw-bg);
  font-weight: 600;
  font-size: 14px;
}
.mw-hot-page .mw-card-bd {
  padding: 8px;
}
.mw-hot-page .mw-hot-list-2col {
  display: block;                 /* one row */
  overflow-x: auto;               /* allow horizontal scroll */
  overflow-y: hidden;
  padding: 4px 2px 6px;           /* tiny padding for scrollbar clearance */
  margin-top: -6px;               /* slightly tighter */
  -webkit-overflow-scrolling: touch;
}
.mw-hot-page .mw-hot-list-2col a {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 124, 196, 0.205); /* requested blue thin border */
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.15;
  background: #fff;
}
.mw-hot-page .mw-hot-list-2col a:hover {
  background: rgba(0, 123, 196, 0.08);
}
.mw-hot-page .mw-products h2 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.mw-hot-page .mw-products h2 small {
  font-weight: 400;
  color: #6b7280;
  margin-left: 8px;
}
.mw-hot-page .mw-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 10px;
}
.mw-hot-page .mw-filter-row strong {
  flex: 0 0 auto;
  min-width: 54px;
  color: #334155;
  font-weight: 600;
}
.mw-hot-page .mw-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.mw-hot-page .mw-terms .mw-term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--mw-border);
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(17,24,39,0.02);
  font-size: 12px;
  line-height: 1.15;
}
.mw-hot-page .mw-terms .mw-term.active,
.mw-hot-page .mw-terms .mw-term:hover {
  background: var(--mw-hover);
  border-color: rgba(0, 123, 196, 0.35);
}
.mw-hot-page .mw-terms .mw-term.active {
  background: rgba(0, 123, 196, 0.12);
  color: #075985;
}
.mw-hot-page .mw-terms .mw-term.mw-term-all {
  color: #475569;
  border-radius: 6px; /* less round */
  padding: 3px 8px;   /* smaller */
}
.mw-hot-page .mw-cats.has-active .mw-term.mw-term-all { opacity: .7; }

/* More toggle + hidden items */
.mw-hot-page .mw-terms .mw-term.is-hidden { display: none; }
.mw-hot-page .mw-terms .mw-more {
  padding: 3px 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  line-height: 1.2;
  font-size: 12px;
}
.mw-hot-page .mw-terms .mw-more:hover { background: #eef2f7; }

.mw-hot-page .mw-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}
.mw-hot-page .mw-sorts a {
  margin-right: 8px;
  text-decoration: none;
  color: #111;
}
.mw-hot-page .mw-sorts a.active {
  color: var(--mw-primary);
}
.mw-hot-page .mw-table-wrap {
  background: #fff;
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  overflow: hidden;
}
.mw-hot-page .mw-table {
  width: 100%;
  border-collapse: collapse;
}
.mw-hot-page .mw-table th,
.mw-hot-page .mw-table td {
  padding: 6px;
  border-top: 1px solid #eee;
}
.mw-hot-page .mw-pages {
  text-align: center;
  padding: 16px;
}
.materials-widget .mw-row-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.materials-widget .mw-row-inline .mw-field {
  flex: 1 1 0;
}
.mw-hot-page .materials-widget .mw-row-inline {
  gap: 8px;
}

/* Contact section inside widget */
.mw-hot-page .materials-widget .mw-section.mw-contact {
  grid-column: 1/-1;
}
.mw-hot-page .materials-widget .mw-section.mw-contact .mw-row {
  gap: 10px;
}

@media (max-width: 1024px) {
  .mw-hot-page .mw-hot-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide Woodmart default page title on Hot Materials template */
body.page-template-page-hot-materials .wd-page-title {
  display: none !important;
}

/* Simple modal (unified) */
.mw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-modal {
  background: #fff;
  border-radius: 12px;
  min-width: 320px;
  max-width: 92vw;
  width: 520px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.mw-modal-hd {
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: var(--mw-bg);
}
.mw-modal-bd {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.mw-modal-bd .mw-field {
  margin-bottom: 6px;
}
.mw-modal-bd label {
  display: block;
  color: #6b7280;
  margin-bottom: 4px;
}
.mw-modal-bd input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8e1f1;
  border-radius: 8px;
}
.mw-modal-ft {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}
.mw-hidden {
  display: none !important;
}

/* Hot page inquiry button large style */
.mw-inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  width: 120px;
}
.mw-inquiry-btn .mw-ico {
  font-size: 16px;
}

/* Big, eye-catching inquiry button */
.mw-big-inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 123, 196, 0.25);
}
.mw-big-inquiry-btn .mw-ico {
  font-size: 18px;
  line-height: 1;
}
.mw-big-inquiry-btn:hover {
  transform: translateY(-1px);
}


.wd-toolbar-label-show {
  display: none !important;
}
a[href="https://shop.szteng.com/index.php/cart/"] {
  display: none !important;
}

/* Generic loading state for buttons */
.button.is-loading,
.button.button-primary.is-loading,
.mw-m-submit.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.95;
}
.button.is-loading::before,
.button.button-primary.is-loading::before,
.mw-m-submit.is-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  animation: mwspin 0.8s linear infinite;
  vertical-align: -2px;
}
@keyframes mwspin { to { transform: rotate(360deg); } }

/* Super-sized floating inquiry FAB base visuals (position and size controlled inline by settings) */
#mw-inquiry-fab { z-index: 100010 !important; }
#mw-inquiry-fab .mw-big-inquiry-btn {
  gap: 12px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 123, 196, 0.35), 0 4px 10px rgba(0, 0, 0, 0.08);
}
#mw-inquiry-fab .mw-big-inquiry-btn .mw-ico { line-height: 1; }


.tablefudongxunjia input.regular-text2 {
  max-width: 130px ;
}