:root {
  --msm-ink: #1f1f1f;
  --msm-muted: #8a8a8a;
  --msm-line: #2f2f2f;
  --msm-bg: #ffffff;
}

.msm-search {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 64px;
  color: var(--msm-ink);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.msm-search-top {
  margin-bottom: 24px;
  position: relative;
}

.msm-search-close {
  position: absolute;
  right: 0;
  top: -6px;
  font-size: 22px;
  text-decoration: none;
  color: var(--msm-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.msm-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--msm-line) !important;
  padding: 6px 0 10px 0;
}

.msm-search-form::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2f2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat center;
  display: inline-block;
  flex: 0 0 auto;
}

.msm-search-input {
  flex: 1 1 auto;
  height: 36px;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 6px;
  font-size: 20px;
  outline: none;
  color: var(--msm-ink);
  background: transparent !important;
}

.msm-search-input::placeholder {
  color: #9c9c9c;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.msm-search-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--msm-ink);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 8px;
}

.msm-search-body {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 36px;
  align-items: start;
}

.msm-search-left {
  display: grid;
  gap: 28px;
}

.msm-search-block {
  padding-top: 4px;
}

.msm-search-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--msm-ink);
}

.msm-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.msm-search-pill {
  border: 0;
  background: transparent;
  color: var(--msm-ink);
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 2px 0;
  cursor: pointer;
}

.msm-search-pill::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 160ms ease;
}

.msm-search-pill:hover::after,
.msm-search-pill:focus::after {
  width: 24px;
}

.msm-search-block[data-block="popular"] .msm-search-pill {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.msm-search-cat {
  display: inline-flex;
  font-size: 13px;
  color: var(--msm-ink);
  text-decoration: none;
  margin-right: 12px;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 2px;
}

.msm-search-cat::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 160ms ease;
}

.msm-search-cat:hover::after {
  width: 24px;
}

.msm-search-results {
  min-height: 320px;
}

.msm-search-status {
  font-size: 12px;
  color: var(--msm-muted);
  margin: 6px 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.msm-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.msm-card {
  text-decoration: none;
  color: var(--msm-ink);
  display: block;
}

.msm-card-media {
  background: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.msm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msm-card-title {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.msm-card-price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.msm-search-empty {
  font-size: 12px;
  color: var(--msm-muted);
}

.msm-search-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--msm-line) !important;
  padding: 6px 0 10px 0;
  text-decoration: none;
  color: var(--msm-ink);
  cursor: pointer;
}

.msm-search-launch-icon {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2f2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat center;
  display: inline-block;
}

.msm-search-launch-text {
  font-size: 18px;
  color: #9c9c9c;
}

.msm-search-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: none !important;
  overflow: auto;
}

.msm-search-overlay.is-open {
  display: block !important;
}

.msm-search-overlay-inner {
  padding: 24px 0 64px;
}

body.msm-search-lock {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .msm-search-body {
    grid-template-columns: 1fr;
  }

  .msm-search-left {
    order: 2;
  }

  .msm-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .msm-search {
    width: min(100%, calc(100% - 32px));
    padding: 24px 0 48px;
  }

  .msm-search-form {
    gap: 8px;
  }

  .msm-search-input {
    font-size: 18px;
  }

  .msm-search-grid {
    grid-template-columns: 1fr;
  }
}
.msm-search-launch {
  overflow: visible;
}

.msm-search-launch-text {
  display: inline-block !important;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
}

@media (max-width: 640px) {
  .msm-search-launch {
    gap: 8px;
  }

  .msm-search-launch-text {
    font-size: 16px;
  }
}
