
.rap-ai-internal-link{margin:1.4em 0;line-height:1.8}.rap-ai-internal-link a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.rap-ai-related-title{margin:1.6em 0;padding:.9em 1.1em;border-left:4px solid var(--rap-accent,#d96c86);background:#fff}.rap-ai-related-title p{margin:.25em 0}.rap-ai-related-title-link a{font-weight:700}
.rap-ai-related-box{margin:1.8em 0;padding:1.15em 1.25em;border:2px solid color-mix(in srgb,var(--rap-accent,#d96c86) 55%,white);border-radius:10px;background:color-mix(in srgb,var(--rap-accent,#d96c86) 7%,white);box-shadow:0 2px 8px rgba(0,0,0,.05)}
.rap-ai-related-label{display:inline-block;margin-bottom:.55em;padding:.2em .65em;border-radius:999px;background:var(--rap-accent,#d96c86);color:#fff;font-size:.82em;font-weight:700}.rap-ai-related-box p{margin:.35em 0}.rap-ai-related-box-title a{font-weight:700;font-size:1.05em}
.rap-ai-related-card{display:flex;gap:1em;margin:1.8em 0;padding:1em;border:1px solid #e0e0e0;border-left:5px solid var(--rap-accent,#d96c86);border-radius:10px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.07)}.rap-ai-related-card-image{flex:0 0 180px;display:block}.rap-ai-related-card-image img{width:100%;height:120px;object-fit:cover;border-radius:7px}.rap-ai-related-card-body{min-width:0;flex:1}.rap-ai-related-card h3{margin:.35em 0 .45em;font-size:1.05em;line-height:1.5}.rap-ai-related-card h3 a{text-decoration:none}.rap-ai-related-intro,.rap-ai-related-desc{margin:.35em 0;color:#555}.rap-ai-related-more{display:inline-block;margin-top:.35em;font-weight:700;color:var(--rap-accent,#d96c86)}
@media(max-width:640px){.rap-ai-related-card{display:block}.rap-ai-related-card-image{margin-bottom:.8em}.rap-ai-related-card-image img{height:auto;max-height:220px}.rap-ai-related-box,.rap-ai-related-card{padding:.9em}}

/* Rakuten affiliate product cards */
.rap-rakuten-products,.rap-rakuten-category-search,.rap-rakuten-site-recommendations{margin:28px 0;padding:20px;border:1px solid #ead7d7;border-radius:12px;background:#fff}.rap-rakuten-intro{margin-top:0}.rap-rakuten-grid{display:grid;gap:16px}.rap-rakuten-card{display:flex;gap:18px;padding:16px;border:1px solid #eee;border-radius:10px;align-items:center}.rap-rakuten-card img{width:128px;height:128px;object-fit:contain}.rap-rakuten-body{flex:1;min-width:0}.rap-rakuten-name{font-weight:700}.rap-rakuten-price{font-size:1.15em;font-weight:700}.rap-rakuten-shop,.rap-rakuten-review,.rap-rakuten-credit{font-size:.88em;color:#666}.rap-rakuten-button{display:inline-block;padding:11px 18px;border-radius:7px;background:#bf0000;color:#fff!important;text-decoration:none!important;font-weight:700}.rap-rakuten-button:hover{opacity:.88}@media(max-width:600px){.rap-rakuten-card{display:block;text-align:center}.rap-rakuten-card img{margin:auto}.rap-rakuten-body{text-align:left}.rap-rakuten-button{display:block;text-align:center}}

/* Lightweight Rakuten links shown immediately after comparison tables */
.rap-rakuten-compare-links{margin:22px 0 30px;padding:16px 18px;border-left:4px solid var(--rap-accent,#d96c86);border-radius:8px;background:color-mix(in srgb,var(--rap-accent,#d96c86) 7%,white)}.rap-rakuten-compare-title{margin:0 0 10px;font-weight:700}.rap-rakuten-compare-item{margin:8px 0;line-height:1.7}.rap-rakuten-compare-item a{font-weight:700;text-decoration:underline;text-underline-offset:3px}.rap-rakuten-compare-note{margin:10px 0 0;font-size:.86em;color:#666}@media(max-width:600px){.rap-rakuten-compare-links{padding:14px}.rap-rakuten-compare-item{line-height:1.65}}
.rap-rakuten-products-compact{margin:22px 0;padding:14px 16px}.rap-rakuten-products-compact .rap-rakuten-compact-text{margin:0 0 10px;font-size:.95em}.rap-rakuten-products-compact .rap-rakuten-credit{margin:9px 0 0}@media(max-width:600px){.rap-rakuten-products-compact{padding:12px}.rap-rakuten-products-compact .rap-rakuten-button{display:block;text-align:center}}

/* Rakuten CTA enhancement v10.0.7 */
.rap-rakuten-products-compact,
.rap-rakuten-site-recommendations{
  border:1px solid #f1d3d8;
  border-radius:12px;
  background:linear-gradient(180deg,#fff8f8 0%,#fff 100%);
  box-shadow:0 4px 14px rgba(191,0,0,.06);
}
.rap-rakuten-cta-eyebrow{
  margin:0 0 10px;
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:#fff0f0;
  color:#b00020;
  font-size:.84em;
  font-weight:700;
  line-height:1.4;
}
.rap-rakuten-products-compact .rap-rakuten-compact-text,
.rap-rakuten-site-recommendations .rap-rakuten-compact-text{
  margin:0 0 12px;
  line-height:1.8;
}
.rap-rakuten-cta-decision{
  border-color:#edc7cd;
  background:linear-gradient(180deg,#fff7f7 0%,#fffefc 100%);
}
.rap-rakuten-button{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#d10000 0%,#ff4747 100%);
  box-shadow:0 8px 18px rgba(191,0,0,.20);
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.rap-rakuten-button:hover{
  opacity:1;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(191,0,0,.26);
}
.rap-rakuten-button::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-120%;
  width:42%;
  height:160%;
  transform:rotate(24deg);
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.16) 25%,rgba(255,255,255,.82) 50%,rgba(255,255,255,.16) 75%,rgba(255,255,255,0) 100%);
  animation:rap-rakuten-shine 2.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes rap-rakuten-shine{
  0%{left:-120%;opacity:0}
  12%{opacity:1}
  40%,100%{left:135%;opacity:0}
}
@media (prefers-reduced-motion: reduce){
  .rap-rakuten-button,
  .rap-rakuten-button:hover{transition:none;transform:none}
  .rap-rakuten-button::after{animation:none}
}

/* Approved affiliate banner: no image resizing, cropping, effects or URL rewriting. */
.rap-banner-card{box-sizing:border-box;max-width:760px;margin:32px auto;padding:24px 12px;border:1px solid;border-radius:16px;text-align:center;box-shadow:0 6px 24px rgba(65,35,45,.07)}
.rap-banner-card .rap-banner-label{margin:0 0 10px;font-size:12px;color:#71656b}
.rap-banner-card h2{margin:0 0 14px;padding:0;border:0;background:none;font-size:1.3em;line-height:1.6}
.rap-banner-description{margin:0 auto 18px;max-width:580px;line-height:1.8}
.rap-banner-material{max-width:100%;overflow-x:auto;padding:4px 0;line-height:normal}
.rap-banner-material a{display:inline-block;max-width:none}
.rap-banner-material img{display:inline;max-width:none!important;max-height:none!important;border-radius:0;box-shadow:none}
.rap-banner-material img[width="1"][height="1"]{width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important}
.rap-banner-note{margin:16px 0 0;font-size:12px;line-height:1.7;color:#71656b}

/* Banner motion decorates the surrounding card and final guide paragraph only. */
.rap-banner-card.rap-banner-motion{animation:rapBannerGlow 2.8s ease-in-out infinite}
.rap-banner-card.rap-banner-motion .rap-banner-description > p:last-child{animation:rapBannerGuide 1.6s ease-in-out infinite}
.rap-banner-card.rap-banner-motion:hover,.rap-banner-card.rap-banner-motion:focus-within,
.rap-banner-card.rap-banner-motion:hover .rap-banner-description > p:last-child,
.rap-banner-card.rap-banner-motion:focus-within .rap-banner-description > p:last-child{animation-play-state:paused}
/* Also overrides a previous Additional CSS animation when the CTA switch is off. */
.rap-banner-card:not(.rap-banner-motion),.rap-banner-card:not(.rap-banner-motion) .rap-banner-description > p:last-child{animation:none}
@keyframes rapBannerGlow{0%,100%{box-shadow:0 4px 14px rgba(205,65,120,.08)}50%{box-shadow:0 6px 26px rgba(205,65,120,.25)}}
@keyframes rapBannerGuide{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@media(prefers-reduced-motion:reduce){.rap-banner-card.rap-banner-motion,.rap-banner-card.rap-banner-motion .rap-banner-description > p:last-child{animation:none}}

/* Editorial speech notes: name and avatar are independently optional. */
.rap-author-note{display:flex;align-items:flex-start;gap:20px;margin:28px 0;clear:both;box-sizing:border-box;text-align:left}
.rap-author-note .rap-author-note-profile{flex:0 0 72px;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.rap-author-note .rap-author-note-avatar{display:block;width:64px;height:64px;object-fit:cover;border-radius:50%;margin:0;padding:0;border:0;box-shadow:none}
.rap-author-note .rap-author-note-name{display:block;max-width:100%;font-size:12px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.rap-author-note .rap-author-note-balloon{position:relative;flex:1 1 0;min-width:0;padding:18px 20px;background:var(--rap-note-bg,#f7f3f5);color:var(--rap-note-ink,#171717);border:1px solid var(--rap-note-border,#c9b5c2);border-radius:14px;box-sizing:border-box;overflow-wrap:anywhere}
.rap-author-note .rap-author-note-balloon::before{content:"";position:absolute;top:22px;left:-9px;width:16px;height:16px;background:var(--rap-note-bg,#f7f3f5);border-left:1px solid var(--rap-note-border,#c9b5c2);border-bottom:1px solid var(--rap-note-border,#c9b5c2);box-sizing:border-box;transform:rotate(45deg)}
/* Hide labels in previously expanded/cached note markup as well. */
.rap-author-note .rap-author-note-label{display:none}
.rap-author-note .rap-author-note-text{position:relative;margin:0;padding:0;font-size:inherit;line-height:1.9;color:inherit}
.rap-author-note.rap-author-note--no-profile{display:block}
.rap-author-note.rap-author-note--no-profile .rap-author-note-balloon::before{display:none}
@media(max-width:480px){.rap-author-note{gap:14px}.rap-author-note .rap-author-note-profile{flex-basis:48px}.rap-author-note .rap-author-note-avatar{width:44px;height:44px}.rap-author-note .rap-author-note-balloon{padding:14px 16px}}

.rap-rakuten-recommendation-header{margin:0 0 12px}
.rap-rakuten-site-recommendations .rap-rakuten-compact-text{overflow-wrap:anywhere}
.rap-rakuten-recommendation-disclosure{display:inline-block;padding:1px 7px;border:1px solid #ead7d7;border-radius:5px;background:#fff4f4;color:#753135;font-size:.8em;vertical-align:baseline}
.rap-rakuten-recommendation-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.rap-rakuten-recommendation-links a{font-size:.9em}
.rap-rakuten-recommendation-links .rap-rakuten-button{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.rap-rakuten-site-recommendations .rap-rakuten-credit{margin:14px 0 0}
@media(max-width:600px){.rap-rakuten-recommendation-links .rap-rakuten-button{width:100%}}

/* Style the area around the official A8 material without changing its HTML. */
.rap-cta-campaign > .rap-banner-label{margin:0 0 8px;color:#666;font-size:12px}
.rap-cta-campaign .rap-cta-a8-material{margin:0 auto 14px;padding:4px 0 9px}
.rap-cta-campaign .rap-a8-text-material > a{box-sizing:border-box;display:inline-block;width:min(100%,520px);padding:16px 20px;border-radius:10px;background:var(--rap-cta-button);color:var(--rap-cta-text)!important;font-weight:800;line-height:1.45;text-decoration:none;overflow-wrap:anywhere;box-shadow:0 5px 0 #0002}
.rap-cta-campaign .rap-a8-text-material > a:hover{filter:brightness(.94)}
.rap-cta-campaign .rap-a8-text-material > a:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.rap-cta-a8-material img[width="1"][height="1"]{width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important}

.rap-a8-manual-post .hoverner .hoverner-a8-card{min-width:min(320px,calc(100vw - 20px));padding:10px 38px 12px 12px;border-color:#ddd;background:#fff;text-align:left}
.rap-a8-manual-post .hoverner .hoverner-a8-label,.rap-a8-manual-post .hoverner .hoverner-a8-name{margin:0 0 6px}
.rap-a8-manual-post .hoverner .hoverner-a8-label{font-size:0}
.rap-a8-manual-post .hoverner .hoverner-a8-label::after{content:"PR";font-size:11px}
.rap-a8-manual-post .hoverner .hoverner-a8-material a:not(:has(img)){max-width:100%;padding:7px 11px;border-radius:7px;background:#bf0000;color:#fff;font-size:13px;font-weight:700;text-decoration:none;overflow-wrap:anywhere}

.rap-banner-card.rap-banner-compact{margin:24px auto;padding:10px 12px;background:#fff!important;border-color:#edd9cb!important;box-shadow:none}
.rap-banner-compact .rap-banner-label{margin:0 0 3px}

/* A media-library thumbnail sits beside the unchanged A8 text creative. */
.rap-a8-manual-post .hoverner .hoverner-a8-card:not(:has(.hoverner-a8-material a img)) {
  display: var(--rap-a8-hoverner-image-display, block);
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
}
.rap-a8-manual-post .hoverner .hoverner-a8-card:not(:has(.hoverner-a8-material a img))::before {
  content: "";
  display: var(--rap-a8-hoverner-image-display, none);
  grid-area: 1 / 1 / 4 / 2;
  align-self: center;
  box-sizing: border-box;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  border: 1px solid #efcede;
  background: #fff5fb var(--rap-a8-hoverner-image, none) center / contain no-repeat;
}
.rap-a8-manual-post .hoverner .hoverner-a8-name { overflow-wrap: anywhere; }
@media (max-width:480px) {
  .rap-a8-manual-post .hoverner .hoverner-a8-card:not(:has(.hoverner-a8-material a img)) { column-gap: 9px; }
  .rap-a8-manual-post .hoverner .hoverner-a8-card:not(:has(.hoverner-a8-material a img))::before {
    width: 68px;
    height: 68px;
  }
}

.rap-banner-card.rap-banner-compact.rap-a8-inline-link-card {
  padding: 4px 0 8px;
  border: 0 !important;
  background: transparent !important;
}
.rap-a8-inline-link-card > .rap-banner-label {
  margin: 3px 0 0;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 1.4;
}
.rap-a8-inline-link-card .rap-a8-inline-note {
  margin: 4px 0 8px;
  color: #45312a;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.55;
}
.rap-a8-inline-link-card > .rap-cta-arrows {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 8px 0 14px;
  color: var(--rap-cta-button, #e86f22);
  font-size: 28px;
  line-height: 1;
  animation: rapCtaArrowBounce 1.5s ease-in-out infinite;
}
@keyframes rapCtaArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.rap-banner-compact .rap-a8-inline-text-material { padding: 3px 0 8px; }
.rap-banner-compact .rap-a8-inline-text-material a {
  box-sizing: border-box;
  width: min(100%, 460px);
  padding: 15px 20px;
  border-radius: 10px;
  background: var(--rap-cta-button, #e86f22);
  box-shadow: 0 3px 0 #0003, 0 6px 12px color-mix(in srgb, var(--rap-cta-button, #e86f22), transparent 82%);
  color: var(--rap-cta-text, #fff) !important;
  font-size: 1.06em;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.rap-banner-compact .rap-a8-inline-text-material a:hover { filter: brightness(1.06); }
.rap-banner-compact .rap-a8-inline-text-material a:focus-visible {
  outline: 2px solid #8f3513;
  outline-offset: 3px;
}

/* Keep the A8 disclosure in the card without adding a row above the heading. */
.rap-cta-a8-campaign { position: relative; }
.rap-cta-a8-campaign > .rap-banner-label {
  position: absolute;
  top: 6px;
  right: 16px;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
.rap-cta-campaign.rap-cta-a8-campaign > .rap-cta-lead {
  margin: 22px auto 0;
  color: #a43760;
  font-weight: 800;
  line-height: 1.55;
}
.rap-cta-campaign.rap-cta-a8-campaign > .rap-cta-arrows { margin: 12px 0 10px; }
.rap-cta-a8-campaign > .rap-a8-text-material {
  margin: 0 auto 10px;
  padding: 2px 0 9px;
  overflow: visible;
}
.rap-cta-a8-campaign > .rap-a8-text-material > a {
  width: min(100%, 530px);
  padding: 18px 24px;
  border-radius: 11px;
  font-size: 1.06em;
  line-height: 1.55;
  box-shadow: 0 5px 0 #0003, 0 10px 20px color-mix(in srgb, var(--rap-cta-button), transparent 74%);
  transition: filter .2s ease, transform .2s ease;
}
.rap-cta-a8-campaign > .rap-a8-text-material > a:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.rap-cta-a8-campaign > .rap-a8-text-material > a:active {
  transform: translateY(2px);
}
@media (max-width: 600px) {
  .rap-cta-a8-campaign > .rap-banner-label { top: 3px; right: 12px; }
  .rap-cta-campaign.rap-cta-a8-campaign > .rap-cta-lead { margin-top: 16px; }
  .rap-cta-a8-campaign > .rap-a8-text-material > a { padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rap-cta-a8-campaign > .rap-a8-text-material > a { transition: none; }
  .rap-cta-a8-campaign > .rap-a8-text-material > a:hover,
  .rap-cta-a8-campaign > .rap-a8-text-material > a:active { transform: none; }
}


/* A short sweep on the button surface leaves the original A8 tags untouched. */
.rap-banner-compact .rap-a8-inline-text-material > a,
.rap-cta-a8-campaign > .rap-a8-text-material > a {
  position: relative;
  overflow: hidden;
}
.rap-banner-compact .rap-a8-inline-text-material > a::after,
.rap-cta-a8-campaign > .rap-a8-text-material > a::after {
  content: "";
  position: absolute;
  top: -55%;
  left: -45%;
  width: 28%;
  height: 210%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, #ffffff75, transparent);
  animation: rapA8ButtonShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rapA8ButtonShine {
  0%, 64% { left: -45%; }
  82%, 100% { left: 125%; }
}
@media (prefers-reduced-motion: reduce) {
  .rap-a8-inline-link-card > .rap-cta-arrows,
  .rap-banner-compact .rap-a8-inline-text-material > a::after,
  .rap-cta-a8-campaign > .rap-a8-text-material > a::after { animation: none; }
}

.rap-review-source-note {
  margin-left: 0.4em;
  color: #666;
  font-size: 0.78em;
  font-weight: normal;
}
.rap-review-source-note > a.rap-review-source {
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
}
