.vwps-search {
  display: block;
  position: relative;
  width: var(--vwps-width, 1000px);
  max-width: 100%;
  margin: 0 auto;
  font-family: inherit;
  box-sizing: border-box;
}

body .vd-header-search-shortcode form.vwps-search,
body .vwps-search {
  display: block;
  width: var(--vwps-width, 1000px);
  max-width: 100%;
}

.vwps-input-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

body.visible-dartshop .vd-header-search-shortcode form.vwps-search input.vwps-input[type="search"],
body .vwps-search .vwps-input,
.vwps-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 48px 14px 18px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.vwps-input:focus {
  outline: none;
  border-color: rgba(0,0,0,.38);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
}

.vwps-spinner {
  display: none;
  position: absolute;
  top: 50%;
  right: 18px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.65);
  border-radius: 50%;
  animation: vwps-spin .7s linear infinite;
}

.vwps-spinner.is-active {
  display: block;
}

@keyframes vwps-spin {
  to { transform: rotate(360deg); }
}

.vwps-results {
  display: none;
  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  border: 1px solid rgba(0,0,0,.08);
}

.vwps-results.is-open {
  display: block;
}

.vwps-section {
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.vwps-section:last-child {
  border-bottom: 0;
}

.vwps-section-title {
  padding: 12px 14px 6px;
  color: rgba(0,0,0,.62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.vwps-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}

.vwps-category:hover,
.vwps-category:focus {
  background: rgba(0,0,0,.045);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.vwps-category-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vwps-category-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.vwps-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .15s ease;
}

.vwps-result:last-child {
  border-bottom: 0;
}

.vwps-result:hover,
.vwps-result:focus {
  background: rgba(0,0,0,.045);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.vwps-thumb {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
}

.vwps-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vwps-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vwps-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}

.vwps-price {
  font-size: 14px;
  opacity: .82;
}

.vwps-empty {
  padding: 16px;
  font-size: 14px;
  opacity: .8;
}

.vwps-all-results {
  display: block;
  padding: 13px 14px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,.06);
  transition: background .15s ease;
}

.vwps-all-results:hover,
.vwps-all-results:focus {
  background: rgba(0,0,0,.045);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.vwps-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff4f4;
  color: #9b1c1c;
}

@media (max-width: 640px) {
  .vwps-search {
    width: 100%;
  }

  .vwps-input {
    min-height: 48px;
    border-radius: 13px;
  }

  .vwps-results {
    border-radius: 14px;
  }
}
