@charset "utf-8";
/* CSS Document */

.gcm-search-test {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0;
  color: #2f2a23;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  position: relative;
  display: flex;
  align-items: center;
}

.gcm-search-test *,
.gcm-search-test *::before,
.gcm-search-test *::after {
  box-sizing: border-box;
}

.gcm-form {
  display: flex;
  gap: 7px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.gcm-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 34px;
  padding: 3px 15px;
  border: 1px solid #b8ad9c;
  border-radius: 29px;
  font-size: 14px;
  line-height: 1.4;
}

.gcm-button {
  flex: 0 0 auto;
  height: 34px;
  padding: 3px 14px;
  border: 1px solid #276749;
  border-radius: 4px;
  background: #2f855a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}

.gcm-result {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
}

.gcm-result:empty {
  display: none;
}

.gcm-message {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 4px;
  font-weight: 600;
}

.gcm-message-error {
  background: #fff0ed;
  color: #9b2c2c;
}

.gcm-result-section {
  margin-top: 0;
}

.gcm-result-heading {
  margin: 0 0 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid #d9eadf;
  color: #24593d;
  font-size: 17px;
  line-height: 1.35;
  background: #fff;
}

.gcm-result-list {
  display: grid;
  gap: 8px;
}

.gcm-result-card {
  padding: 12px;
  border: 1px solid #e1dacd;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(47, 42, 35, 0.12);
}

.gcm-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.gcm-product-code {
  font-weight: 800;
  color: #1f5137;
}

.gcm-product-category,
.gcm-product-section {
  padding: 1px 6px;
  border-radius: 999px;
  background: #f2eadc;
  color: #5a4730;
  font-size: 12.5px;
}

.gcm-product-section {
  background: #eef4ed;
  color: #31543c;
}

.gcm-section-shincha {
  background: #d84f7a;
  color: #fff;
  font-weight: 800;
}

.gcm-product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.gcm-product-name-link {
  display: block;
  padding: 7px 2px;
  color: #17613f;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gcm-product-name-link:hover,
.gcm-product-name-link:focus {
  background: #edf7f0;
  color: #0f4f32;
  text-decoration: underline;
  outline: none;
}

.gcm-product-button {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 4px;
  background: #2f855a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 520px) {
  .gcm-search-test {
    max-width: none;
    min-height: auto;
    margin: 8px 0 0;
    padding: 0 30px 24px;
    display: block;
  }

  .gcm-form {
    display: grid;
    gap: 6px;
  }

  .gcm-button,
  .gcm-input {
    width: 100%;
  }

  .gcm-result {
    position: static;
    margin-top: 8px;
  }

  .gcm-product-name-link {
    padding: 9px 2px;
  }
}