/* DaivaVarna public marketplace – native Core implementation.
 * Public pages deliberately follow the WoodMart/site palette rather than the
 * green vendor-workspace accent. The legacy DaivaVarna public plugins are
 * integrated here without requiring Dokan or those standalone plugins.
 */
:root{
  --dvmc-public-accent:var(--wd-primary-color,#ff8b5c);
  --dvmc-public-accent-hover:var(--wd-primary-color,#f07d49);
  --dvmc-public-ink:#242424;
  --dvmc-public-text:#777;
  --dvmc-public-line:rgba(0,0,0,.10);
  --dvmc-public-surface:#fff;
}
.dvmc-shop-location-widget *, .dv-vendor-directory *{box-sizing:border-box}

/* Native product location display – public-site palette. */
.dvmc-public-product-location{display:flex;align-items:center;gap:5px;margin:6px 0 3px;color:#8a8a8a;font-size:12px;line-height:1.35}
.dvmc-public-product-location .dashicons{width:14px;height:14px;font-size:14px;color:var(--dvmc-public-accent)}
.dvmc-public-single-location{display:inline-flex;align-items:center;gap:7px;margin:4px 0 13px;padding:7px 11px;border:1px solid rgba(0,0,0,.07);border-radius:9px;background:#fafafa;color:#6f6f6f;font-size:13px}
.dvmc-public-single-location .dashicons{color:var(--dvmc-public-accent)}

/* The native Shop-by-Location block is inserted into the existing WoodMart
 * sidebar before its price widget where possible. */
.dvmc-shop-location-widget{width:100%;margin:0 0 24px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.dvmc-shop-location-widget .dv-geo-ui{padding:22px;border:1px solid rgba(0,0,0,.06);border-radius:14px;background:#fff;box-shadow:0 8px 30px rgba(36,28,20,.045)}
.dvmc-shop-location-widget .dv-geo-message{margin-top:9px;color:#8b8b8b;font-size:12px;line-height:1.45}
.dvmc-shop-location-widget .dv-geo-message.is-error{color:#b34e3d}
.dvmc-shop-location-widget .dv-geo-clear{display:block;margin-top:10px;color:#777;font-size:12px;text-align:center;text-decoration:none}
.dvmc-shop-location-widget .dv-geo-clear:hover{color:var(--dvmc-public-accent)}
.dvmc-shop-location-widget .dv-geo-range-shell{position:relative;width:100%}
.dvmc-shop-location-widget .dv-geo-range-fill{display:none}

/* Keep the native WoodMart/WooCommerce price filter, but visually harmonize
 * it with the location card instead of replacing its pricing logic. */
body.dvmc-native-public-filters .widget_price_filter,
body.dvmc-native-public-filters .wd-widget.widget_price_filter{
  padding:22px!important;border:1px solid rgba(0,0,0,.06)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 30px rgba(36,28,20,.045)!important;
}
body.dvmc-native-public-filters .wp-block-woocommerce-price-filter,
body.dvmc-native-public-filters .wc-block-price-filter{
  padding:22px!important;border:1px solid rgba(0,0,0,.06)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 30px rgba(36,28,20,.045)!important;
}
body.dvmc-native-public-filters .widget_price_filter .widget-title,
body.dvmc-native-public-filters .widget_price_filter .wd-widget-title{margin-bottom:18px!important;color:#242424!important;font-size:20px!important;font-weight:600!important;text-transform:none!important}
body.dvmc-native-public-filters .widget_price_filter .price_slider_wrapper{padding-top:2px}
body.dvmc-native-public-filters .widget_price_filter .ui-slider{height:4px!important;margin:0 3px 25px!important;border:0!important;border-radius:999px!important;background:#dedede!important}
body.dvmc-native-public-filters .widget_price_filter .ui-slider-range{background:var(--dvmc-public-accent)!important}
body.dvmc-native-public-filters .widget_price_filter .ui-slider-handle{top:-6px!important;width:16px!important;height:16px!important;margin-left:-8px!important;border:0!important;border-radius:50%!important;background:var(--dvmc-public-accent)!important;box-shadow:none!important}
body.dvmc-native-public-filters .widget_price_filter .price_slider_amount{display:flex!important;align-items:center!important;gap:12px!important;justify-content:space-between!important;flex-wrap:wrap!important}
body.dvmc-native-public-filters .widget_price_filter .price_label{color:#666!important;font-size:13px!important}
body.dvmc-native-public-filters .widget_price_filter button.button{border-radius:999px!important;background:#f3f3f3!important;color:#222!important;font-size:12px!important;font-weight:600!important;text-transform:none!important;box-shadow:none!important}
body.dvmc-native-public-filters .widget_price_filter button.button:hover{background:var(--dvmc-public-accent)!important;color:#fff!important}

/* Defensive product fallback only appears when the active theme fails to
 * render its normal WooCommerce single-product body. */
.dvmc-public-product-fallback{max-width:1500px;margin:28px auto;padding:0 24px}.dvmc-public-product-fallback>.product{padding:24px;border-radius:18px;background:#fff}

/* Native fallback gallery used only if the Elementor Vendor Showcase target
 * is absent but vendor showcase images are available. */
.dvmc-native-vendor-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:12px 0 26px}
.dvmc-native-vendor-gallery a{display:block;overflow:hidden;border-radius:12px;aspect-ratio:1/1;background:#f5f5f5}
.dvmc-native-vendor-gallery img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:700px){.dvmc-native-vendor-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
/* =========================================================
   START – DAIVAVARNA MARKETPLACE LOCATION
   ========================================================= */

.dv-geo-clean {
    display: block !important;
    width: 100% !important;
}

.dv-geo-clean > *:not(.dv-geo-ui) {
    display: none !important;
}

.dv-geo-clean > .dv-geo-ui {
    display: block !important;
}

.dv-geo-ui {
    width: 100%;
}

.dv-geo-title {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #222;
}

.dv-geo-mode-label {
    margin-bottom: 8px;
    font-size: 13px;
    color: #777;
}

.dv-geo-mode {
    display: flex;
    width: 100%;
    padding: 4px;
    margin-bottom: 8px;
    background: #f3f3f3;
    border-radius: 30px;
}

.dv-geo-mode-btn {
    width: 50%;
    min-height: 38px;
    padding: 8px 10px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 25px !important;
    background: transparent !important;
    color: #555 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.dv-geo-mode-btn.active {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .10) !important;
}

.dv-geo-mode-help {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

.dv-near-me-controls {
    display: none;
}

.dv-near-me-controls.active {
    display: block;
}

.dv-geo-location-status {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
}

.dv-geo-location-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.dv-geo-location-wrap input[type="text"],
.dv-geo-location-wrap input[type="search"] {
    flex: 1;
    width: 100% !important;
    min-width: 0;
    height: 43px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 43px !important;
}

.dv-geo-location-wrap input[type="text"]:focus,
.dv-geo-location-wrap input[type="search"]:focus {
    border-color: var(--dvmc-public-accent) !important;
    outline: none !important;
    box-shadow: none !important;
}

.dv-geo-use-location {
    flex: 0 0 43px;
    width: 43px !important;
    min-width: 43px !important;
    height: 43px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 17px !important;
    line-height: 43px !important;
    text-align: center;
}

.dv-geo-use-location:hover {
    border-color: var(--dvmc-public-accent) !important;
    background: #fff !important;
}

.dv-geo-radius-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.dv-geo-radius-label {
    font-size: 14px;
    color: #666;
}

.dv-geo-radius-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.dv-geo-slider,
.dv-geo-ui input.dv-geo-slider[type="range"],
.dv-geo-clean input.dv-geo-slider[type="range"] {
    --dv-progress: 5%;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    width: 100% !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    margin: 12px 0 6px !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    cursor: pointer;
}

.dv-geo-slider:focus,
.dv-geo-slider:focus-visible,
.dv-geo-ui input.dv-geo-slider[type="range"]:focus,
.dv-geo-ui input.dv-geo-slider[type="range"]:focus-visible {
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

.dv-geo-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 10px;
    background: linear-gradient(to right, var(--dvmc-public-accent) 0%, var(--dvmc-public-accent) var(--dv-progress), #dedede var(--dv-progress), #dedede 100%);
}

.dv-geo-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border: 0;
    border-radius: 50%;
    background: var(--dvmc-public-accent);
    box-shadow: none;
    cursor: pointer;
}

.dv-geo-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 10px;
    background: #dedede;
}

.dv-geo-slider::-moz-range-progress {
    height: 4px;
    border-radius: 10px;
    background: var(--dvmc-public-accent);
}

.dv-geo-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: var(--dvmc-public-accent);
    box-shadow: none;
    cursor: pointer;
}

.dv-geo-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.dv-geo-area-status {
    display: none;
    margin: 8px 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f7f7;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.dv-geo-radius-wrap {
    width: 100%;
}

.dv-geo-apply {
    display: block;
    width: 100% !important;
    margin-top: 18px !important;
    padding: 11px 16px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: #f3f3f3 !important;
    color: #222 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background .2s ease;
}

.dv-geo-apply:hover {
    background: #eaeaea !important;
}

.dv-geo-map {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid #e8e8e8;
}

.dv-geo-map summary {
    position: relative;
    padding: 7px 24px 7px 0;
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.dv-geo-map summary::-webkit-details-marker {
    display: none;
}

.dv-geo-map summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 7px;
    font-size: 15px;
    transition: transform .2s ease;
}

.dv-geo-map[open] summary::after {
    content: "▴";
}

.dv-geo-map-content {
    width: 100%;
    margin-top: 12px;
}

.dv-geo-map-content #dokan-geolocation-locations-map,
.dv-geo-map-content .dokan-geolocation-locations-map,
.dv-geo-map-content [id*="dokan-geolocation"][id*="map"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 280px !important;
    min-height: 280px !important;
    border-radius: 10px;
    overflow: hidden;
}

.dv-geo-map-content .gm-style {
    width: 100% !important;
    height: 100% !important;
}

.dv-map-message {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: #f7f7f7;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
}

.pac-container {
    z-index: 999999 !important;
}

.dv-product-card-location,
.dv-single-product-location {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    color: #777;
    font-weight: 400;
}

.dv-product-card-location {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.dv-location-pin,
.dv-single-location-pin {
    flex-shrink: 0;
    line-height: 1;
}

.dv-location-pin {
    font-size: 11px;
}

.dv-location-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dv-single-product-location {
    margin: 10px 0 14px;
    font-size: 14px;
    line-height: 1.45;
}

/* Dokan product form option */
.dv-no-location-option {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .dv-geo-title {
        font-size: 18px;
    }

    .dv-geo-mode-btn {
        font-size: 12px !important;
    }

    .dv-geo-location-wrap {
        gap: 6px;
    }

    .dv-geo-location-wrap input[type="text"],
    .dv-geo-location-wrap input[type="search"] {
        font-size: 12px !important;
    }

    .dv-geo-map-content #dokan-geolocation-locations-map,
    .dv-geo-map-content .dokan-geolocation-locations-map,
    .dv-geo-map-content [id*="dokan-geolocation"][id*="map"] {
        height: 240px !important;
        min-height: 240px !important;
    }
}

/* =========================================================
   END – DAIVAVARNA MARKETPLACE LOCATION
   ========================================================= */

/* ===== Native Vendor Directory (faithful to v1.7 public design) ===== */
/* =========================================================
   START – DAIVAVARNA VENDORS PAGE / DV VENDOR DIRECTORY
   ========================================================= */

.dv-vendor-directory {
  --dvvd-primary: var(--wd-primary-color, #ff955f);
  width: 100%;
}

/* ---------- FILTER PANEL ---------- */
.dvvd-filters,
.dvvd-filters * {
  box-sizing: border-box;
}

.dvvd-filters {
  position: relative;
  width: 100%;
  margin-bottom: 48px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 7px 26px rgba(0,0,0,.035);
}

.dvvd-search-field > label,
.dvvd-location-field > label {
  display: block;
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.dvvd-search-input-wrap,
.dvvd-location-input-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Keep the main search field exactly inside the filter card on every
   breakpoint. WoodMart/mobile browser input rules can otherwise make a
   100% field behave like 100% + padding. */
.dvvd-search-field {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.dvvd-search-input-wrap {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.dvvd-main-search,
.dvvd-location-search {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 999px !important;
  outline: none !important;
  background: #fff !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 58px !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

.dvvd-main-search:focus,
.dvvd-location-search:focus {
  border-color: var(--dvvd-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dvvd-primary) 14%, transparent) !important;
}

.dvvd-main-search::placeholder,
.dvvd-location-search::placeholder {
  color: rgba(0,0,0,.48);
  opacity: 1;
}

.dvvd-suggestions {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.11);
}

.dvvd-suggestion {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dvvd-suggestion:last-child { border-bottom: 0; }
.dvvd-suggestion:hover { background: rgba(0,0,0,.035); }

.dvvd-suggestion-type {
  flex: 0 0 76px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}

.dvvd-suggestion-label { font-weight: 600; }

/* Location mode switch */
.dvvd-location-tabs {
  display: flex !important;
  width: fit-content;
  max-width: 100%;
  gap: 0;
  margin: 26px 0 24px;
  padding: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.055);
}

.dvvd-location-tab {
  position: static !important;
  display: inline-flex !important;
  min-width: 155px;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 24px !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

.dvvd-location-tab.is-active {
  background: #fff !important;
  box-shadow: 0 3px 11px rgba(0,0,0,.08) !important;
}

/* Location search + distance */
.dvvd-location-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  width: 100%;
  margin: 0 0 26px;
}

.dvvd-location-controls[hidden] { display: none !important; }

.dvvd-location-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.dvvd-location-search {
  padding-right: 20px !important;
}

/* Current-location button – deliberately neutral so it does not compete
   with the orange Apply Filters / Visit Store action buttons. */
.dvvd-current-location {
  position: static !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: max-content;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  transform: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,.11) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
}

.dvvd-current-location svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dvvd-current-location:hover {
  border-color: var(--dvvd-primary) !important;
  background: rgba(0,0,0,.018) !important;
}

.dvvd-current-location.is-loading {
  opacity: .55;
  pointer-events: none;
}

.dvvd-distance-wrap {
  min-width: 0;
  padding-bottom: 3px;
}

.dvvd-distance-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.dvvd-distance-head {
  align-items: baseline;
  margin-bottom: 11px;
  font-size: 16px;
}

.dvvd-distance-value {
  font-size: 14px;
  font-weight: 600;
}

.dvvd-range-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: 24px;
  align-items: center;
}

.dvvd-range-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #e6e6e6;
  pointer-events: none;
}

.dvvd-range-fill {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: 0;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--dvvd-primary);
  pointer-events: none;
  transition: width .04s linear;
}

.dvvd-distance-slider {
  position: relative;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.dv-vendor-directory input[type="range"].dvvd-distance-slider::-webkit-slider-runnable-track {
  height: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dv-vendor-directory input[type="range"].dvvd-distance-slider::-webkit-slider-thumb {
  width: 22px !important;
  height: 22px !important;
  margin-top: -7.5px !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: var(--dvvd-primary) !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.18) !important;
}

.dv-vendor-directory input[type="range"].dvvd-distance-slider::-moz-range-track {
  height: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.dv-vendor-directory input[type="range"].dvvd-distance-slider::-moz-range-progress {
  height: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.dv-vendor-directory input[type="range"].dvvd-distance-slider::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: var(--dvvd-primary) !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.18) !important;
}

.dv-vendor-directory input[type="range"].dvvd-distance-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(255,149,95,.22), 0 2px 7px rgba(0,0,0,.18) !important;
}

/* Keep Apply Filters on its own clean row. */
.dvvd-apply {
  position: static !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 145px;
  margin: 0 !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  clear: both;
}

.dvvd-location-message {
  min-height: 0;
  margin-top: 12px;
  font-size: 13px;
  opacity: .72;
}

.dvvd-location-message:empty { display: none; }

.dvvd-location-message.is-error {
  color: #b42318;
  opacity: 1;
}

/* ---------- RESULTS ---------- */
.dvvd-results-head {
  margin-bottom: 4px;
  font-size: 14px;
  opacity: .68;
}

.dvvd-vendor-card {
  padding: 52px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.dvvd-vendor-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.dvvd-vendor-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.dvvd-vendor-logo {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
}

.dvvd-vendor-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dvvd-vendor-title-wrap { min-width: 0; }

.dvvd-vendor-name {
  margin: 0 0 9px;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-transform: none;
}

.dvvd-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 20px;
  font-size: 13px;
}

.dvvd-rating-row .star-rating { margin: 0; }

.dvvd-rating-text,
.dvvd-no-reviews { opacity: .68; }

.dvvd-distance {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
  opacity: .68;
}

.dvvd-bio {
  max-width: 850px;
  font-size: 16px;
  line-height: 1.75;
}

.dvvd-vendor-info {
  font-size: 14px;
  line-height: 1.65;
}

.dvvd-info-block { margin-bottom: 18px; }

.dvvd-hours-line {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 18px;
}

.dvvd-contact a {
  display: block;
  width: fit-content;
}

.dvvd-store-button-wrap { margin-top: 24px; }

/* Visit Store deliberately uses WoodMart's own button colors and hover. */
.dvvd-visit-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dvvd-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.dvvd-gallery-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dvvd-gallery-count-1 { grid-template-columns: 1fr; }

.dvvd-gallery-item {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0,0,0,.035);
}

.dvvd-gallery-item img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.dvvd-gallery-count-1 .dvvd-gallery-item img {
  height: clamp(300px, 42vw, 540px);
}

.dvvd-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 17px;
}

.dv-vendor-directory.is-loading .dvvd-results {
  opacity: .45;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .dvvd-location-controls,
  .dvvd-vendor-main {
    grid-template-columns: 1fr;
  }

  .dvvd-location-controls { gap: 24px; }
  .dvvd-vendor-main { gap: 34px; }

  .dvvd-vendor-info {
    padding-top: 28px;
    border-top: 1px solid rgba(0,0,0,.08);
  }

  .dvvd-gallery-item img { height: 240px; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
  .dvvd-filters {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .dvvd-search-field,
  .dvvd-search-input-wrap,
  .dvvd-main-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  .dvvd-search-field > label,
  .dvvd-location-field > label {
    font-size: 17px;
  }

  .dvvd-main-search,
  .dvvd-location-search {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    line-height: 54px !important;
  }

  .dvvd-location-tabs {
    width: 100%;
    margin: 20px 0 22px;
  }

  .dvvd-location-tab {
    flex: 1 1 50%;
    min-width: 0;
    padding: 10px 12px !important;
  }

  .dvvd-location-input-row {
    grid-template-columns: 1fr;
  }

  .dvvd-current-location {
    width: 100% !important;
  }

  .dvvd-apply {
    width: 100% !important;
    min-height: 50px;
  }

  .dvvd-vendor-card { padding: 38px 0; }

  .dvvd-vendor-heading {
    align-items: flex-start;
    gap: 15px;
  }

  .dvvd-vendor-logo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .dvvd-vendor-name { font-size: clamp(26px, 7.5vw, 34px); }

  .dvvd-gallery,
  .dvvd-gallery-count-2 {
    grid-template-columns: 1fr;
  }

  .dvvd-gallery-item img,
  .dvvd-gallery-count-1 .dvvd-gallery-item img {
    height: 250px;
  }

  .dvvd-hours-line {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 8px;
  }
}

/* =========================================================
   END – DAIVAVARNA VENDORS PAGE / DV VENDOR DIRECTORY
   ========================================================= */

/* ===== Native Vendor Showcase (faithful to v1.0.6 public design) ===== */
/* =========================================================
   START – DAIVAVARNA VENDOR SHOWCASE PLUGIN
   ========================================================= */

/* Product page: About the Vendor */
.dvf-vendor-top {
    margin-bottom: 18px;
}

.dvf-heading {
    margin: 0 0 24px !important;
    font-size: 30px !important;
    font-weight: 700 !important;
}

.dvf-vendor-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dvf-vendor-logo {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.dvf-vendor-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dvf-vendor-identity-text {
    min-width: 0;
}

.dvf-brand-name {
    margin: 0 0 7px !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

.dvf-brand-name a {
    color: #222 !important;
    text-decoration: none !important;
}

.dvf-brand-name a:hover {
    color: var(--wd-primary-color, #ff8b5c) !important;
}

.dvf-offered-by {
    margin-bottom: 7px;
    color: #888;
    font-size: 15px;
}

.dvf-offered-by a {
    color: #555 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.dvf-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 15px;
}

/* Dynamic Elementor vendor gallery */
#dv-vendor-gallery {
    margin-top: 10px;
    margin-bottom: 6px !important;
}

/* Keep the biography close to the showcase gallery on all screen sizes. */
#dv-vendor-gallery.elementor-widget,
#dv-vendor-gallery .elementor-widget-container {
    margin-bottom: 0 !important;
}

/* Elementor shortcode wrappers can add their own top spacing. */
.elementor-widget-shortcode:has(.dvf-vendor-bottom),
.elementor-widget-shortcode:has(.dvf-vendor-bottom) .elementor-widget-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#dv-vendor-gallery .swiper-slide-inner {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

#dv-vendor-gallery .swiper-slide-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

.dvf-vendor-bottom {
    margin-top: 0 !important;
    margin-bottom: 30px;
}

.dvf-biography {
    color: #666;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.dvf-biography p {
    margin-bottom: 15px;
}

.dvf-store-action {
    margin-top: 14px;
}

/* Let WoodMart control the real button colors/hover. */
.dvf-store-button {
    text-decoration: none !important;
}

/* Click/tap vendor showcase images to view them full-screen. */
#dv-vendor-gallery .dvs-lightbox-trigger {
    cursor: zoom-in !important;
}

html.dvs-lightbox-open,
html.dvs-lightbox-open body {
    overflow: hidden !important;
}

.dvs-vendor-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dvs-vendor-lightbox.is-open {
    display: flex;
}

.dvs-vendor-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
}

.dvs-vendor-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(96vw, 1600px);
    height: min(92vh, 1100px);
    padding: 18px clamp(72px, 6vw, 108px) 30px;
    box-sizing: border-box;
}

.dvs-vendor-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pinch-zoom;
}

/* Close button keeps the clean white circle. */
.dvs-vendor-lightbox-close {
    position: absolute;
    z-index: 3;
    top: 6px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #222 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22) !important;
    font-size: 32px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.dvs-vendor-lightbox-close:hover {
    background: var(--dvmc-public-accent) !important;
    color: #fff !important;
}

/*
 * Previous / Next use a WoodMart-style floating chevron only.
 * No white circle, so they stay clean and correctly shaped on desktop
 * and mobile. The dark drop shadow keeps the white chevron visible over
 * both light and dark photographs.
 */
.dvs-vendor-lightbox-prev,
.dvs-vendor-lightbox-next {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 64px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: translateY(-50%);
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dvs-vendor-lightbox-prev::before,
.dvs-vendor-lightbox-next::before {
    content: '';
    display: block;
    width: 17px;
    height: 17px;
    box-sizing: border-box;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.95))
        drop-shadow(0 0 4px rgba(0, 0, 0, 0.78));
    transition: color 0.18s ease, transform 0.18s ease;
}

.dvs-vendor-lightbox-prev::before {
    transform: rotate(-135deg);
}

.dvs-vendor-lightbox-next::before {
    transform: rotate(45deg);
}

.dvs-vendor-lightbox-prev {
    left: 18px;
}

.dvs-vendor-lightbox-next {
    right: 18px;
}

@media (hover: hover) and (pointer: fine) {
    .dvs-vendor-lightbox-prev:hover,
    .dvs-vendor-lightbox-next:hover {
        color: var(--dvmc-public-accent) !important;
        background: transparent !important;
    }
}

.dvs-vendor-lightbox-prev:active,
.dvs-vendor-lightbox-next:active {
    color: var(--dvmc-public-accent) !important;
    background: transparent !important;
}

.dvs-vendor-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 767px) {
    .dvs-vendor-lightbox {
        display: none;
        align-items: stretch;
        justify-content: stretch;
        padding:
            max(12px, env(safe-area-inset-top))
            12px
            max(14px, env(safe-area-inset-bottom));
    }

    .dvs-vendor-lightbox.is-open {
        display: flex;
    }

    .dvs-vendor-lightbox-dialog {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        padding:
            calc(max(8px, env(safe-area-inset-top)) + 56px)
            52px
            calc(max(20px, env(safe-area-inset-bottom)) + 34px);
        box-sizing: border-box;
    }

    .dvs-vendor-lightbox-image {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 6px;
        touch-action: pinch-zoom;
    }

    .dvs-vendor-lightbox-close {
        position: absolute !important;
        top: calc(max(4px, env(safe-area-inset-top))) !important;
        right: 4px !important;
        width: 44px;
        height: 44px;
        font-size: 30px !important;
        transform: none !important;
    }

    .dvs-vendor-lightbox-prev,
    .dvs-vendor-lightbox-next {
        top: 50% !important;
        bottom: auto !important;
        width: 42px;
        height: 64px;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: translateY(-50%) !important;
    }

    .dvs-vendor-lightbox-prev {
        left: 2px !important;
    }

    .dvs-vendor-lightbox-next {
        right: 2px !important;
    }

    .dvs-vendor-lightbox-prev::before,
    .dvs-vendor-lightbox-next::before {
        width: 16px;
        height: 16px;
        border-width: 3px 3px 0 0;
    }

    .dvs-vendor-lightbox-count {
        left: 50%;
        bottom: calc(max(6px, env(safe-area-inset-bottom))) !important;
        transform: translateX(-50%);
        padding: 7px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Vendor dashboard biography helpers */
.dvs-word-counter {
    margin: 6px 0 0;
    color: #777;
    font-size: 13px;
}

.dvs-long-bio-help {
    margin-top: 8px !important;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .dvf-heading {
        font-size: 24px !important;
    }

    .dvf-vendor-identity {
        align-items: flex-start;
        gap: 12px;
    }

    .dvf-vendor-logo {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .dvf-brand-name {
        font-size: 25px !important;
    }

    .dvf-biography {
        font-size: 15px;
    }
}

/* =========================================================
   END – DAIVAVARNA VENDOR SHOWCASE PLUGIN
   ========================================================= */

/* ===== Core-native integration overrides ===== */
/* WoodMart public theme is the authority for accent colour. */
.dv-vendor-directory{--dvvd-primary:var(--wd-primary-color,#ff8b5c)}
.dvvd-apply,.dvvd-visit-store{--btn-accented-bgcolor:var(--wd-primary-color,#ff8b5c);--btn-accented-bgcolor-hover:var(--wd-primary-color,#ff8b5c)}
.dvvd-distance,.dvvd-location-message:not(.is-error){color:#777}

/* The old v1.7 directory uses spacious full-width rows. Do not let older
 * Core card/grid selectors reintroduce compact 3-column cards. */
.dvvd-results{display:block!important}
.dvvd-vendor-card{width:100%!important;max-width:none!important}

/* Native catalogue location widget inherits the old location UI but should
 * live comfortably in the WoodMart sidebar. */
.dvmc-shop-location-widget .dv-geo-title{font-family:inherit}
.dvmc-shop-location-widget .dv-geo-slider::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--dvmc-public-accent) 0%,var(--dvmc-public-accent) var(--dv-progress),#dedede var(--dv-progress),#dedede 100%)}
.dvmc-shop-location-widget .dv-geo-slider::-webkit-slider-thumb{background:var(--dvmc-public-accent)}
.dvmc-shop-location-widget .dv-geo-slider::-moz-range-progress,.dvmc-shop-location-widget .dv-geo-slider::-moz-range-thumb{background:var(--dvmc-public-accent)}
.dvmc-shop-location-widget .dv-geo-location-wrap input:focus,.dvmc-shop-location-widget .dv-geo-use-location:hover{border-color:var(--dvmc-public-accent)!important}

/* Public product vendor information should never expose shortcode text as a
 * styled artefact. */
.dvf-vendor-top,.dvf-vendor-bottom{max-width:100%}
.dvf-location .dashicons{color:var(--wd-primary-color,#ff8b5c)}

@media(max-width:1024px){
  .dvmc-shop-location-widget .dv-geo-ui,body.dvmc-native-public-filters .widget_price_filter,body.dvmc-native-public-filters .wd-widget.widget_price_filter{padding:18px!important}
}
@media(max-width:767px){
  .dvmc-shop-location-widget .dv-geo-ui{padding:16px}
  .dvmc-public-product-fallback{padding:0 14px}
}


/* v0.25.2 — public geolocation restoration and WoodMart-aligned polish. */
.dvmc-shop-location-widget .dv-geo-title{font-size:20px;font-weight:600;letter-spacing:-.01em}
.dvmc-shop-location-widget .dv-geo-mode{background:#f5f4f2;border:1px solid rgba(0,0,0,.035)}
.dvmc-shop-location-widget .dv-geo-mode-btn.active{color:var(--dvmc-public-accent)!important;box-shadow:0 2px 8px rgba(36,28,20,.08)!important}
.dvmc-shop-location-widget .dv-geo-location-wrap input[type="search"]{border-radius:10px!important;background:#fff!important}
.dvmc-shop-location-widget .dv-geo-use-location{display:inline-flex!important;align-items:center;justify-content:center;border-radius:10px!important;line-height:1!important;transition:border-color .2s ease,background .2s ease,color .2s ease,transform .2s ease}
.dvmc-shop-location-widget .dv-geo-use-location .dashicons{width:18px;height:18px;font-size:18px;line-height:18px}
.dvmc-shop-location-widget .dv-geo-use-location:hover{border-color:var(--dvmc-public-accent)!important;background:var(--dvmc-public-accent)!important;color:#fff!important;transform:translateY(-1px)}
.dvmc-shop-location-widget .dv-geo-slider::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--dvmc-public-accent) 0%,var(--dvmc-public-accent) var(--dv-progress),#dedede var(--dv-progress),#dedede 100%)}
.dvmc-shop-location-widget .dv-geo-slider::-webkit-slider-thumb,
.dvmc-shop-location-widget .dv-geo-slider::-moz-range-thumb,
.dvmc-shop-location-widget .dv-geo-slider::-moz-range-progress{background:var(--dvmc-public-accent)}
.dvmc-shop-location-widget .dv-geo-apply{background:var(--dvmc-public-accent)!important;color:#fff!important;box-shadow:0 7px 18px color-mix(in srgb,var(--dvmc-public-accent) 20%,transparent)!important}
.dvmc-shop-location-widget .dv-geo-apply:hover{background:var(--dvmc-public-accent-hover)!important;color:#fff!important;transform:translateY(-1px)}
body.dvmc-native-public-filters .widget_price_filter button.button{border:1px solid color-mix(in srgb,var(--dvmc-public-accent) 24%,#ddd)!important;background:#fff!important;color:var(--dvmc-public-accent)!important;padding-inline:16px!important}
body.dvmc-native-public-filters .widget_price_filter button.button:hover{border-color:var(--dvmc-public-accent)!important;background:var(--dvmc-public-accent)!important;color:#fff!important}
@supports not (color:color-mix(in srgb,#000 50%,#fff)){
  .dvmc-shop-location-widget .dv-geo-apply{box-shadow:0 7px 18px rgba(0,0,0,.08)!important}
  body.dvmc-native-public-filters .widget_price_filter button.button{border-color:#e5e5e5!important}
}

/* =========================================================
   v0.25.3 – corrected marketplace price + location stack
   Price is intentionally first; full Location follows it.
   ========================================================= */
.dvmc-catalogue-filter-stack{
  display:flex;
  flex-direction:column;
  gap:24px;
  width:100%;
  margin:0 0 24px;
}
.dvmc-catalogue-filter-stack>.widget,
.dvmc-catalogue-filter-stack .dvmc-shop-location-widget,
.dvmc-catalogue-filter-stack .dvmc-shop-price-widget{
  width:100%;
  margin:0!important;
}

/* The standard Woo/WoodMart price widget reads the raw lookup-table values.
 * In a multi-vendor, multi-currency marketplace that can pair a customer's
 * currency symbol with a vendor's unconverted number. Keep the widget
 * configured, but replace its public catalogue UI with the Core-aware filter. */
body.dvmc-native-public-filters .widget_price_filter,
body.dvmc-native-public-filters .wd-widget.widget_price_filter,
body.dvmc-native-public-filters .wp-block-woocommerce-price-filter,
body.dvmc-native-public-filters .wc-block-price-filter,
body.dvmc-native-public-filters [class*="wc-block-price-filter"]{
  display:none!important;
}

.dvmc-shop-price-widget{
  width:100%;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.dvmc-shop-price-widget *{box-sizing:border-box}
.dvmc-shop-price-widget .dvmc-price-ui{
  padding:22px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 30px rgba(36,28,20,.045);
}
.dvmc-shop-price-widget .dvmc-price-title{
  margin:0 0 20px!important;
  color:#242424!important;
  font-family:inherit;
  font-size:20px!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:-.01em;
  text-transform:none!important;
}
.dvmc-price-form{margin:0}
.dvmc-price-range-shell{
  position:relative;
  width:100%;
  height:28px;
  margin:0 0 18px;
}
.dvmc-price-track,
.dvmc-price-range-fill{
  position:absolute;
  top:12px;
  height:4px;
  border-radius:999px;
  pointer-events:none;
}
.dvmc-price-track{left:0;right:0;background:#dedede}
.dvmc-price-range-fill{left:0;width:100%;background:var(--dvmc-public-accent)}
.dvmc-price-range,
.dvmc-shop-price-widget input.dvmc-price-range[type="range"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  position:absolute!important;
  left:0!important;
  top:0!important;
  width:100%!important;
  height:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  pointer-events:none;
}
.dvmc-price-range::-webkit-slider-runnable-track{
  height:4px;
  border:0;
  background:transparent;
}
.dvmc-price-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:17px;
  height:17px;
  margin-top:-6.5px;
  border:0;
  border-radius:50%;
  background:var(--dvmc-public-accent);
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  cursor:pointer;
  pointer-events:auto;
}
.dvmc-price-range::-moz-range-track{
  height:4px;
  border:0;
  background:transparent;
}
.dvmc-price-range::-moz-range-progress{height:4px;background:transparent}
.dvmc-price-range::-moz-range-thumb{
  width:17px;
  height:17px;
  border:0;
  border-radius:50%;
  background:var(--dvmc-public-accent);
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  cursor:pointer;
  pointer-events:auto;
}
.dvmc-price-range:focus-visible::-webkit-slider-thumb{
  outline:2px solid color-mix(in srgb,var(--dvmc-public-accent) 35%,transparent);
  outline-offset:3px;
}
.dvmc-price-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.dvmc-price-label{
  min-width:0;
  color:#777;
  font-size:12px;
  line-height:1.45;
  white-space:nowrap;
}
.dvmc-price-label strong{color:#333;font-weight:600}
.dvmc-price-label .woocommerce-Price-amount{font-size:inherit;color:inherit}
.dvmc-price-submit{
  flex:0 0 auto;
  min-height:36px!important;
  margin:0!important;
  padding:7px 16px!important;
  border:1px solid color-mix(in srgb,var(--dvmc-public-accent) 28%,#ddd)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--dvmc-public-accent)!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-transform:none!important;
  cursor:pointer;
}
.dvmc-price-submit:hover{
  border-color:var(--dvmc-public-accent)!important;
  background:var(--dvmc-public-accent)!important;
  color:#fff!important;
}
.dvmc-price-clear{
  display:block;
  margin-top:10px;
  color:#777;
  font-size:12px;
  text-align:center;
  text-decoration:none;
}
.dvmc-price-clear:hover{color:var(--dvmc-public-accent)}

/* Restore the old Marketplace Location broad-area and vendor-map behavior. */
.dvmc-shop-location-widget .dv-geo-area-status{
  border:1px solid rgba(0,0,0,.05);
  background:#faf9f7;
}
.dvmc-location-map-canvas{
  display:block;
  width:100%;
  height:280px;
  min-height:280px;
  border-radius:10px;
  overflow:hidden;
  background:#f5f4f2;
}
.dvmc-map-popup{min-width:150px;max-width:220px;color:#333;font-size:12px;line-height:1.45}
.dvmc-map-popup strong{display:block;margin-bottom:3px;font-size:13px}
.dvmc-map-popup a{display:inline-block;margin-top:5px;color:var(--dvmc-public-accent);font-weight:600;text-decoration:none}

@supports not (color:color-mix(in srgb,#000 50%,#fff)){
  .dvmc-price-submit{border-color:#ead8cf!important}
  .dvmc-price-range:focus-visible::-webkit-slider-thumb{outline-color:rgba(255,139,92,.25)}
}
@media(max-width:1024px){
  .dvmc-shop-price-widget .dvmc-price-ui{padding:18px}
}
@media(max-width:480px){
  .dvmc-price-footer{align-items:flex-start;flex-direction:column}
  .dvmc-price-submit{width:100%!important}
  .dvmc-price-label{white-space:normal}
  .dvmc-location-map-canvas{height:240px;min-height:240px}
}


/* =========================================================
   v0.25.4 – live public filters + compact vendor directory
   ========================================================= */

/* Correct the distance scale labels: endpoints belong at opposite ends. */
.dv-vendor-directory .dvvd-range-limits{
  display:flex !important;
  width:100% !important;
  margin-top:3px !important;
  align-items:center;
  justify-content:space-between !important;
  gap:16px;
  color:rgba(0,0,0,.5);
  font-size:12px;
  line-height:1.25;
}
.dv-vendor-directory .dvvd-range-limits span:last-child{margin-left:auto;text-align:right}

/* Apply remains available as a fallback, but use the same public-site
   primary button treatment rather than the neutral grey browser/button UI. */
.dv-vendor-directory .dvvd-apply,
.dvmc-catalogue-filter-stack .dvmc-price-submit,
.dvmc-catalogue-filter-stack .dv-geo-apply{
  display:inline-flex !important;
  min-height:44px;
  padding:0 24px !important;
  align-items:center;
  justify-content:center;
  border:0 !important;
  border-radius:var(--btn-accented-brd-radius,999px) !important;
  background-color:var(--btn-accented-bgcolor,var(--wd-primary-color,#ff965f)) !important;
  color:var(--btn-accented-color,#fff) !important;
  box-shadow:none !important;
  font:inherit !important;
  font-weight:600 !important;
  line-height:1 !important;
  text-transform:none !important;
  cursor:pointer;
  transition:filter .18s ease,transform .18s ease,opacity .18s ease !important;
}
.dv-vendor-directory .dvvd-apply:hover,
.dvmc-catalogue-filter-stack .dvmc-price-submit:hover,
.dvmc-catalogue-filter-stack .dv-geo-apply:hover{
  filter:brightness(.96);
  color:var(--btn-accented-color,#fff) !important;
}
.dv-vendor-directory .dvvd-apply:disabled{opacity:.55;cursor:wait}

/* The page now updates from filter changes automatically. Keep the manual
   button, but tighten the large filter panel slightly. */
.dv-vendor-directory .dvvd-filters{
  margin-bottom:30px;
  padding:clamp(22px,2.4vw,32px);
}
.dv-vendor-directory .dvvd-location-controls{margin-bottom:18px}
.dv-vendor-directory .dvvd-location-tabs{margin:22px 0 20px}

/* Compact directory cards. Same information, more vendors visible at once. */
.dv-vendor-directory .dvvd-results{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100%;
  margin-top:16px;
}
.dv-vendor-directory .dvvd-vendor-card{
  display:flex;
  width:100% !important;
  min-width:0;
  max-width:none !important;
  margin:0 !important;
  padding:24px !important;
  flex-direction:column;
  border:1px solid rgba(0,0,0,.085) !important;
  border-radius:18px;
  background:#fff;
  box-shadow:0 7px 24px rgba(0,0,0,.035);
}
.dv-vendor-directory .dvvd-vendor-main{
  display:grid;
  grid-template-columns:1fr !important;
  gap:15px !important;
  align-items:start;
}
.dv-vendor-directory .dvvd-vendor-heading{
  gap:14px;
  margin-bottom:14px;
  align-items:center;
}
.dv-vendor-directory .dvvd-vendor-logo{
  flex:0 0 68px;
  width:68px;
  height:68px;
  border-radius:12px;
}
.dv-vendor-directory .dvvd-vendor-name{
  margin:0 0 5px;
  font-size:clamp(23px,1.8vw,30px);
  line-height:1.08;
  letter-spacing:-.018em;
}
.dv-vendor-directory .dvvd-rating-row{gap:7px;font-size:12px}
.dv-vendor-directory .dvvd-distance{margin-top:3px;font-size:12px}
.dv-vendor-directory .dvvd-bio{
  max-width:none;
  font-size:14px;
  line-height:1.55;
}
.dv-vendor-directory .dvvd-vendor-info{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.075);
  font-size:12.5px;
  line-height:1.5;
}
.dv-vendor-directory .dvvd-info-block{margin:0}
.dv-vendor-directory .dvvd-address,
.dv-vendor-directory .dvvd-hours,
.dv-vendor-directory .dvvd-contact,
.dv-vendor-directory .dvvd-store-button-wrap{grid-column:1/-1}
.dv-vendor-directory .dvvd-hours-line{
  grid-template-columns:minmax(100px,1fr) auto;
  gap:12px;
}
.dv-vendor-directory .dvvd-store-button-wrap{margin-top:2px}
.dv-vendor-directory .dvvd-visit-store{min-height:40px;padding:0 19px}
.dv-vendor-directory .dvvd-gallery,
.dv-vendor-directory .dvvd-gallery-count-2,
.dv-vendor-directory .dvvd-gallery-count-1{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:16px;
}
.dv-vendor-directory .dvvd-gallery-item{border-radius:10px}
.dv-vendor-directory .dvvd-gallery-item img,
.dv-vendor-directory .dvvd-gallery-count-1 .dvvd-gallery-item img{
  width:100%;
  height:110px !important;
  object-fit:cover;
}
.dv-vendor-directory .dvvd-results-head{margin-bottom:0}

/* During automatic changes, communicate activity without jumping the layout. */
.dv-vendor-directory.is-loading .dvvd-results{opacity:.48}
.dvmc-shop-price-widget.is-auto-applying,
.dvmc-shop-location-widget.is-auto-applying{opacity:.78;transition:opacity .18s ease}

@media(max-width:1100px){
  .dv-vendor-directory .dvvd-results{grid-template-columns:1fr !important}
}
@media(max-width:700px){
  .dv-vendor-directory .dvvd-vendor-card{padding:19px !important;border-radius:15px}
  .dv-vendor-directory .dvvd-vendor-info{grid-template-columns:1fr}
  .dv-vendor-directory .dvvd-address,
  .dv-vendor-directory .dvvd-hours,
  .dv-vendor-directory .dvvd-contact,
  .dv-vendor-directory .dvvd-store-button-wrap{grid-column:auto}
  .dv-vendor-directory .dvvd-gallery,
  .dv-vendor-directory .dvvd-gallery-count-2,
  .dv-vendor-directory .dvvd-gallery-count-1{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dv-vendor-directory .dvvd-gallery-item img,
  .dv-vendor-directory .dvvd-gallery-count-1 .dvvd-gallery-item img{height:86px !important}
}

/* v0.25.6: product recovery belongs only to real single-product requests. */
body.dvmc-native-vendors-page .dvmc-public-product-fallback,
body:not(.single-product) .dvmc-public-product-fallback{display:none!important}
