/* 防伪查询：无背景、标签换行、移动端适配 */
.leaysoo-fw-query {
  --leaysoo-fw-control-height: 44px;
  --leaysoo-fw-radius: 8px;
  font-family: 'Microsoft Yahei', 'Source Han Sans', 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #656565;
  background: transparent;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.leaysoo-fw-form {
  margin: 0;
}

.leaysoo-fw-field {
  margin-bottom: 20px;
}

.leaysoo-fw-field:last-child {
  margin-bottom: 0;
}

.leaysoo-fw-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.leaysoo-fw-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.leaysoo-fw-input {
  flex: 1;
  min-width: 0;
  height: var(--leaysoo-fw-control-height);
  min-height: var(--leaysoo-fw-control-height);
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: var(--leaysoo-fw-radius);
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}

.leaysoo-fw-input::placeholder {
  color: #999;
}

.leaysoo-fw-input:focus {
  outline: none;
  border-color: #999;
}

.leaysoo-fw-btn {
  flex-shrink: 0;
  min-width: 72px;
  height: var(--leaysoo-fw-control-height);
  min-height: var(--leaysoo-fw-control-height);
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: var(--leaysoo-fw-radius);
  background: #f5f5f5;
  color: #656565;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
}

.leaysoo-fw-btn:hover {
  background: #ebebeb;
}

.leaysoo-fw-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.leaysoo-fw-tip {
  margin: 8px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.leaysoo-fw-result {
  min-height: 112px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: var(--leaysoo-fw-radius);
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  box-sizing: border-box;
}

.leaysoo-fw-result.is-loading {
  color: #999;
}

.leaysoo-fw-result.is-error {
  color: #c0392b;
}

/* 覆盖万网模板中防伪查询区域的固定定位，模块相对标题居中 */
#smv_con_63_7 {
  position: relative !important;
  left: 0 !important;
  top: 30px !important;
  width: 100% !important;
  max-width: 520px;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#smv_con_63_7 .yibuFrameContent {
  overflow: visible !important;
}

.con_63_7 .w-code {
  width: 100% !important;
  max-width: 520px;
  height: auto !important;
  min-height: 0 !important;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .leaysoo-fw-query {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  #smv_con_63_7 {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .leaysoo-fw-input-row {
    flex-direction: column;
    gap: 10px;
  }

  #leaysoo-fw-code,
  #leaysoo-fw-submit,
  .leaysoo-fw-input,
  .leaysoo-fw-btn {
    width: 100%;
    height: var(--leaysoo-fw-control-height) !important;
    min-height: var(--leaysoo-fw-control-height) !important;
    line-height: var(--leaysoo-fw-control-height) !important;
    font-size: 16px !important;
    border-radius: var(--leaysoo-fw-radius) !important;
    box-sizing: border-box;
  }

  #leaysoo-fw-code,
  .leaysoo-fw-input {
    padding: 0 12px;
    -webkit-appearance: none;
    appearance: none;
  }

  #leaysoo-fw-submit,
  .leaysoo-fw-btn {
    min-width: 0;
    padding: 0 16px;
  }

  .leaysoo-fw-result {
    border-radius: var(--leaysoo-fw-radius) !important;
  }
}
