html {
  -webkit-tap-highlight-color: transparent;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
a[class*="btn"],
a.hakaru-wa-open,
a.primary,
a.share-mini-wa {
  -webkit-tap-highlight-color: transparent;
  transition: transform 80ms ease, filter 80ms ease;
}

button:not(:disabled):active,
input[type="button"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
input[type="reset"]:not(:disabled):active,
[role="button"]:active,
a[class*="btn"]:active,
a.hakaru-wa-open:active,
a.primary:active,
a.share-mini-wa:active {
  transform: scale(0.97);
  filter: brightness(0.92);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
[role="button"]:focus-visible,
a[class*="btn"]:focus-visible,
a.hakaru-wa-open:focus-visible,
a.primary:focus-visible,
a.share-mini-wa:focus-visible {
  outline: 2px solid #1657A8;
  outline-offset: 2px;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

button:disabled:active,
input[type="button"]:disabled:active,
input[type="submit"]:disabled:active,
input[type="reset"]:disabled:active {
  transform: none;
  filter: none;
}

.hakaru-wa-copy-btn.is-copied,
.share-mini-btn.is-copied {
  color: #0e7a48;
  border-color: #86efac;
  background: #ecfdf3;
}

.hakaru-copy-flash {
  background: #dcfce7 !important;
}

.verify-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.65rem;
  max-width: 100%;
}

.verify-badge-wrap .badge {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.3;
  height: auto;
  box-sizing: border-box;
}

.verify-long {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2f6f4a;
  line-height: 1.35;
}

.verify-explain {
  position: relative;
}

.verify-explain-link {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  color: #1657A8;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.verify-explain-link:active {
  transform: none;
  filter: none;
}

.verify-explain-backdrop {
  display: none;
}

.verify-explain-pop {
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 0.35rem);
  width: min(420px, calc(100vw - 24px));
  max-width: min(420px, calc(100vw - 24px));
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  padding: 0.85rem 2.15rem 0.85rem 0.85rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.14);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  color: #1a1d21;
}

.verify-explain-pop[hidden] {
  display: none !important;
}

.verify-explain-pop p {
  margin: 0 0 0.65rem;
  font-weight: 400;
}

.verify-explain-pop p:last-child {
  margin-bottom: 0;
}

.verify-explain-pop strong {
  font-weight: 700;
}

.verify-explain-x {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1a1d21;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 599px) {
  .verify-explain-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(16, 24, 40, 0.4);
  }

  .verify-explain-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
    max-width: none;
    max-height: 70vh;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 81;
  }
}

.product-listing-badge .verify-long,
.product-listing-badge .verify-explain {
  display: none;
}
