@keyframes hoverner-fadein {
  from { opacity: 0; transform: translateY(100vh); }
  to { opacity: 1; transform: translateY(0); }
}
.hoverner {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  animation: hoverner-fadein 3s;
}
.hoverner[hidden], .hoverner template { display: none !important; }
.hoverner-link { display: flex; justify-content: center; }
.hoverner-link:hover { opacity: .9; }
.hoverner .hoverner-mode-image img { display: block; height: auto; }
.hoverner .hoverner-content-sp.hoverner-mode-image { width: 100%; }
.hoverner .hoverner-mode-html { text-align: left; }
.hoverner .hoverner-close {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  box-shadow: none;
  font: 26px/32px sans-serif;
  text-align: center;
  cursor: pointer;
}
.hoverner .hoverner-close:hover { opacity: .75; }
.hoverner .hoverner-close:focus-visible { outline: 3px solid #007cba; outline-offset: 2px; }
@media screen and (max-width: 480px) {
  .hoverner { left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px); display: flex; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hoverner { animation: none; }
}
.hoverner .hoverner-mode-rap_rakuten {
  text-align: left;
}
.hoverner-rap-card {
  position: relative;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 28px));
  padding: 10px 38px 10px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.hoverner-rap-pr {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  color: #666;
  font: 11px/1.4 sans-serif;
}
.hoverner-rap-product {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.hoverner-rap-image {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.hoverner-rap-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
}
.hoverner-rap-name {
  display: -webkit-box;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.hoverner-rap-price {
  color: #b32d2e;
  font-weight: 700;
  font-size: 13px;
}
.hoverner-rap-button {
  display: inline-block;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 7px;
  background: #bf0000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
}
.hoverner-rap-product:hover .hoverner-rap-button { opacity: .9; }
@media screen and (max-width: 480px) {
  .hoverner-rap-card {
    width: calc(100vw - 16px);
    padding: 8px 38px 8px 8px;
    border-radius: 12px;
  }
  .hoverner-rap-image { width: 66px; height: 66px; }
  .hoverner-rap-name { font-size: 12px; }
  .hoverner-rap-price { font-size: 12px; }
  .hoverner-rap-button { padding: 6px 8px; font-size: 11px; }
}

/* Article-specific approved A8 banner, preserving original dimensions and tracking. */
.hoverner-a8-card{box-sizing:border-box;max-width:calc(100vw - 20px);padding:8px 12px 12px;background:#fff8fb;border:1px solid #e6b7c5;border-radius:12px;box-shadow:0 6px 24px #0002;text-align:center}
.hoverner-a8-label{margin:0 28px 4px;font-size:10px;color:#666}
.hoverner-a8-name{margin:0 28px 8px;color:#55434b;font-size:13px;font-weight:700;max-width:300px}
.hoverner-a8-material{max-width:calc(100vw - 46px);max-height:55vh;overflow:auto;line-height:normal}
.hoverner .hoverner-a8-material a{display:inline-block;max-width:none}
.hoverner .hoverner-a8-material img{display:inline;max-width:none!important;max-height:none!important;border-radius:0;box-shadow:none}
.hoverner .hoverner-a8-material img[width="1"][height="1"]{width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important}
