@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Wholesale Form Styles */
#ewq-wrapper,
#ewq-wrapper *,
.ewq-modal-backdrop,
.ewq-modal-card,
.ewq-modal-card * {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

#ewq-wrapper {
  color: #1e293b;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

#ewq-wrapper .ewq-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 35px;
}

#ewq-wrapper .ewq-header-icon {
  width: 70px;
  height: 70px;
  background: #6EBE44;
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#ewq-wrapper .ewq-header-title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 28px;
  font-weight: 600 !important;
  color: #0f172a;
  margin: 0 0 6px 0;
}

#ewq-wrapper .ewq-header-sub {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

#ewq-wrapper .ewq-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

#ewq-wrapper .ewq-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

#ewq-wrapper .ewq-step-num {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  width: 38px;
  height: 38px;
  background: #f0fdf4;
  color: #6EBE44;
  font-weight: 700 !important;
  font-size: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ewq-wrapper .ewq-section-title {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 20px;
  font-weight: 600 !important;
  color: #0f172a;
  margin: 0 0 4px 0;
}

#ewq-wrapper .ewq-section-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Category Filter Tabs */
#ewq-wrapper .ewq-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#ewq-wrapper .ewq-cat-tab {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

#ewq-wrapper .ewq-cat-tab:hover,
#ewq-wrapper .ewq-cat-tab.active {
  background: #6EBE44;
  border-color: #6EBE44;
  color: #ffffff;
}

#ewq-wrapper .ewq-cat-count {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
}

#ewq-wrapper .ewq-cat-tab.active .ewq-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Search Bar */
#ewq-wrapper .ewq-search-bar {
  position: relative;
  margin-bottom: 25px;
}

#ewq-wrapper .ewq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

#ewq-wrapper .ewq-search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
}

#ewq-wrapper .ewq-search-input:focus {
  outline: none;
  border-color: #6EBE44;
  box-shadow: 0 0 0 3px rgba(110, 190, 68, 0.15);
}

/* Products Grid */
#ewq-wrapper .ewq-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

#ewq-wrapper .ewq-product-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

#ewq-wrapper .ewq-product-card.hidden {
  display: none !important;
}

#ewq-wrapper .ewq-product-card:hover {
  border-color: #6EBE44;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

#ewq-wrapper .ewq-product-card.selected {
  border-color: #6EBE44;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px #6EBE44;
}

#ewq-wrapper .ewq-card-img {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

#ewq-wrapper .ewq-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#ewq-wrapper .ewq-product-card:hover .ewq-card-img img {
  transform: scale(1.05);
}

/* View Details Hover Overlay Button */
#ewq-wrapper .ewq-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 5;
}

#ewq-wrapper .ewq-product-card:hover .ewq-card-overlay {
  opacity: 1;
}

#ewq-wrapper .ewq-view-details-btn {
  background: #6EBE44;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  pointer-events: auto;
}

#ewq-wrapper .ewq-view-details-btn:hover {
  background: #469330;
  transform: scale(1.05);
}

/* CHECKMARK BADGE FIX: Hide badge by default on unselected cards */
#ewq-wrapper .ewq-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: #6EBE44;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  z-index: 6;
  pointer-events: none;
}

/* ONLY show checkmark badge when product is selected */
#ewq-wrapper .ewq-product-card.selected .ewq-card-check {
  opacity: 1;
  transform: scale(1);
}

#ewq-wrapper .ewq-card-body {
  padding: 14px;
  flex: 1;
}

#ewq-wrapper .ewq-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.35;
}

#ewq-wrapper .ewq-card-cat {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 2px 0;
}

#ewq-wrapper .ewq-card-sku {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

/* Selected Products Table */
#ewq-wrapper .ewq-selected-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

#ewq-wrapper .ewq-selected-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#ewq-wrapper .ewq-selected-table {
  width: 100%;
  border-collapse: collapse;
}

#ewq-wrapper .ewq-selected-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
}

#ewq-wrapper .ewq-selected-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

#ewq-wrapper .ewq-qty-input {
  width: 80px;
  padding: 6px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

#ewq-wrapper .ewq-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

#ewq-wrapper .ewq-remove-btn:hover {
  background: #fee2e2;
}

/* Contact Fields Grid */
#ewq-wrapper .ewq-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#ewq-wrapper .ewq-field-group {
  display: flex;
  flex-direction: column;
}

#ewq-wrapper .ewq-full-span {
  grid-column: span 2;
}

#ewq-wrapper .ewq-field-group label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

#ewq-wrapper .ewq-req {
  color: #ef4444;
}

#ewq-wrapper .ewq-optional {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
}

#ewq-wrapper .ewq-field-group input,
#ewq-wrapper .ewq-field-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
}

#ewq-wrapper .ewq-field-group input:focus,
#ewq-wrapper .ewq-field-group textarea:focus {
  outline: none;
  border-color: #6EBE44;
  box-shadow: 0 0 0 3px rgba(110, 190, 68, 0.15);
}

/* Submit Section */
#ewq-wrapper .ewq-submit-wrap {
  text-align: center;
  margin-top: 30px;
}

#ewq-wrapper .ewq-submit-btn {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background: #6EBE44;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px -5px rgba(110, 190, 68, 0.4);
}

#ewq-wrapper .ewq-submit-btn:hover {
  background: #469330;
  transform: translateY(-2px);
}

#ewq-wrapper .ewq-privacy-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Popup Modal Styles */
.ewq-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(5px);
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ewq-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  padding: 35px;
  box-sizing: border-box;
}

.ewq-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ewq-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.ewq-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.ewq-modal-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ewq-modal-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ewq-modal-info {
  display: flex;
  flex-direction: column;
}

.ewq-modal-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #6EBE44;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  align-self: flex-start;
  letter-spacing: 0.5px;
}

#ewq-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.ewq-modal-cat {
  font-size: 13px;
  color: #6EBE44;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.ewq-modal-sku {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 20px 0;
}

.ewq-modal-desc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 25px;
}

.ewq-modal-desc-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ewq-modal-desc-box p {
  text-align: left !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-spacing: normal !important;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.ewq-modal-add-btn {
  width: 100%;
  background: #6EBE44;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px -4px rgba(110, 190, 68, 0.4);
}

.ewq-modal-add-btn:hover {
  background: #469330;
  transform: translateY(-2px);
}

/* Optimized Mobile Layout for Wholesale Quote Page (< 768px) */
@media (max-width: 768px) {
  #ewq-wrapper {
    padding: 10px 4px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #ewq-wrapper .ewq-header {
    flex-direction: column !important;
    text-align: center !important;
    padding: 18px 12px !important;
    gap: 12px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
  }

  #ewq-wrapper .ewq-header-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
  }

  #ewq-wrapper .ewq-header-title {
    font-size: 21px !important;
  }

  #ewq-wrapper .ewq-header-sub {
    font-size: 13px !important;
  }

  #ewq-wrapper .ewq-section {
    padding: 16px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  #ewq-wrapper .ewq-section-header {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  #ewq-wrapper .ewq-step-num {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  #ewq-wrapper .ewq-section-title {
    font-size: 17px !important;
  }

  #ewq-wrapper .ewq-section-sub {
    font-size: 12px !important;
  }

  /* Horizontal Touch-Scrollable Category Filter Tabs on Mobile */
  #ewq-wrapper .ewq-cat-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }

  #ewq-wrapper .ewq-cat-tabs::-webkit-scrollbar {
    display: none !important;
  }

  #ewq-wrapper .ewq-cat-tab {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
  }

  /* Wide Un-squished Product Grid on Mobile */
  #ewq-wrapper .ewq-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  #ewq-wrapper .ewq-product-card {
    border-radius: 10px !important;
    border-width: 1.5px !important;
    box-sizing: border-box !important;
  }

  #ewq-wrapper .ewq-card-img {
    height: 145px !important;
  }

  #ewq-wrapper .ewq-card-body {
    padding: 8px 8px 10px 8px !important;
  }

  #ewq-wrapper .ewq-card-name {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
  }

  #ewq-wrapper .ewq-card-cat {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }

  #ewq-wrapper .ewq-card-sku {
    font-size: 10px !important;
  }

  #ewq-wrapper .ewq-view-details-btn {
    padding: 7px 12px !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
  }

  /* Contact & Form Grid */
  #ewq-wrapper .ewq-fields-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #ewq-wrapper .ewq-full-span {
    grid-column: span 1 !important;
  }

  #ewq-wrapper .ewq-submit-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }

  /* Modal Popup Mobile Styling */
  .ewq-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .ewq-modal-card {
    padding: 20px 15px !important;
    border-radius: 16px !important;
  }
}


/* Wholesale Header Text Color White */
#ewq-wrapper .ewq-header-title,
#ewq-wrapper .ewq-header-sub {
  color: #ffffff !important;
}

/* UNIVERSAL PRIVATE LABEL CONTENT CLEAN LEFT ALIGNMENT (DESKTOP & MOBILE) */
html body .efour-pl-wrapper p,
html body .efour-pl-wrapper .efour-pl-hero-desc,
html body .efour-pl-wrapper .efour-pl-card-desc,
html body .efour-pl-wrapper .efour-pl-banner-desc,
html body .efour-pl-wrapper .efour-pl-process-text,
html body .efour-pl-wrapper .efour-pl-checklist li,
html body .efour-pl-container p,
html body .efour-pl-container .efour-pl-card-desc,
html body .efour-pl-container .efour-pl-hero-desc,
html body .efour-pl-hero-grid p,
html body .efour-pl-card p,
html body .efour-pl-process-card p,
html body .efour-pl-banner p,
html body #main-content .efour-pl-wrapper p,
html body .entry-content .efour-pl-wrapper p,
.efour-pl-hero-desc,
.efour-pl-card-desc,
.efour-pl-process-text,
.efour-pl-banner-desc,
.efour-pl-wrapper p,
.efour-pl-container p {
  text-align: justify !important;
  text-align-last: left !important;
  -webkit-text-align-last: left !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  word-break: normal !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
  line-height: 1.65 !important;
}

/* HIGH SPECIFICITY OVERRIDES FOR PRIVATE LABEL & VENDING BANNER & SUBTITLES */
html body .efour-pl-banner-title,
html body .efour-pl-banner h2,
html body .efour-pl-banner h3,
html body .efour-pl-banner h4 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body .efour-pl-banner-desc {
  color: #e2e8f0 !important;
  text-align: left !important;
  text-justify: none !important;
  word-spacing: normal !important;
}

html body .efour-pl-sec-desc,
html body .efour-pl-hero-desc,
html body .efour-vm-hero-desc,
html body .efour-about-sec-desc {
  color: #475569 !important;
  text-align: center !important;
  text-justify: none !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

html body .efour-pl-card-desc,
html body .efour-vm-card-desc {
  color: #475569 !important;
  text-align: left !important;
  text-justify: none !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

/* ==========================================================================
   UNIFIED ALIGNMENT FIX FOR FORM CONFIRMATION BOXES & SECTION HEADERS
   ========================================================================== */
html body .efour-vm-inquiry-success,
html body .ewq-success-message,
html body .wpforms-confirmation-container,
html body div[class*="success-message"],
html body div[class*="inquiry-success"] {
  text-align: center !important;
  margin: 0 auto 40px auto !important;
  max-width: 700px !important;
  width: 100% !important;
}

html body .efour-vm-inquiry-success h3,
html body .efour-vm-inquiry-success p,
html body .efour-vm-inquiry-success div,
html body .ewq-success-message h3,
html body .ewq-success-message p,
html body .ewq-success-message div,
html body .wpforms-confirmation-container p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-justify: none !important;
  word-spacing: normal !important;
}

/* SECTION TITLES AND SUBTITLES MATCHING CENTER ALIGNMENT */
html body .efour-pl-sec-title,
html body .efour-vm-sec-title,
html body .ewq-sec-title,
html body .efour-pl-sec-desc,
html body .efour-vm-sec-desc,
html body .ewq-sec-desc {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-justify: none !important;
  word-spacing: normal !important;
}

/* UNIVERSAL PRODUCT MODAL DESCRIPTION JUSTIFICATION OVERRIDE */
.efour-vm-modal-desc,
.efour-vm-modal-content p,
.efour-vm-modal-info-col p,
.efour-pl-modal-desc,
.efour-pl-modal-content p,
.efour-pl-modal-info-col p,
.ewq-modal-desc-box p,
.efour-vm-modal-box p,
.efour-pl-modal-box p {
  text-align: left !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}