/* Partner recommendations, independent of the installed catalogue and settings. */
.v3 .affiliate-strip {
  display: grid;
  gap: 10px;
  margin: 0 0 21px;
  scroll-margin-top: 62px;
  padding: 16px;
  border: 1px solid #dce1ea;
  border-radius: 6px;
  background: #f2f5fa;
  color: var(--editorial-ink);
}
.affiliate-ranking-head,.affiliate-strip-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.affiliate-ranking-head { justify-content: space-between; gap: 8px 20px; }
.affiliate-strip-copy .i { width: 24px; height: 24px; color: #314876; }
.affiliate-strip-copy h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -.02em; }
.affiliate-top-count { font-size: .74em; font-weight: 750; padding: 4px 8px; background: #dce5f2; color: #284464; border-radius: 3px; }
.affiliate-ranking {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.affiliate-rank-item { min-width: 0; }
.affiliate-rank-item.affiliate-rank-featured { grid-column: span 3; }
.affiliate-rank-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 58px;
  background: #fff;
  color: #233550;
  padding: 9px 11px;
  border: 1px solid #d8e0ec;
  border-radius: 4px;
  text-decoration: none;
}
.affiliate-rank-link:hover { border-color: #7d95bd; background: #f9fbff; }
.affiliate-rank-featured .affiliate-rank-link {
  min-height: 80px;
  padding: 13px 18px;
  color: #fff;
}
.affiliate-rank-hostinger .affiliate-rank-link { background: #6336d5; border-color: #6336d5; }
.affiliate-rank-bandwagonhost .affiliate-rank-link { background: #18334f; border-color: #18334f; }
.affiliate-rank-hostinger .affiliate-rank-link:hover { background: #4d24b5; color: #fff; }
.affiliate-rank-bandwagonhost .affiliate-rank-link:hover { background: #284e72; color: #fff; }
.affiliate-rank-number {
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  background: #e9eef6;
  color: #345071;
  border-radius: 4px;
  font-size: .83em;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}
.affiliate-rank-featured .affiliate-rank-number { width: 37px; height: 37px; font-size: 1.05em; background: #ffffff29; color: #fff; }
.affiliate-rank-name { display: grid; flex: 1; min-width: 0; gap: 4px; }
.affiliate-rank-name strong { font-size: .94em; line-height: 1.22; overflow-wrap: anywhere; font-weight: 730; }
.affiliate-rank-name small { font-size: .72em; line-height: 1.25; color: #65758d; overflow-wrap: anywhere; }
.affiliate-rank-featured .affiliate-rank-name strong { font-size: clamp(19px,2.1vw,25px); }
.affiliate-rank-featured .affiliate-rank-name small { color: #fff; opacity: .87; font-size: .84em; }
.affiliate-rank-link > .i,.affiliate-rank-visit .i { width: 16px; height: 16px; flex: none; }
.affiliate-rank-visit {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #ffffff60;
  border-radius: 4px;
  background: #ffffff16;
  color: #fff;
  font-weight: 690;
  font-size: .86em;
}
.affiliate-rank-name .affiliate-rank-deal { color: #305b98; font-weight: 720; font-size: .78em; }
.affiliate-card-cta .i { width: 17px; height: 17px; flex: none; }
.affiliate-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid #cdd9e9;
  border-radius: 4px;
  background: #fff;
  font-size: .91em;
  color: #334968;
  font-weight: 650;
}
.affiliate-all:hover { text-decoration: underline; }
.affiliate-all .i { width: 14px; height: 14px; flex: none; }
.affiliate-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.affiliate-dialog-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: #19283f;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.affiliate-dialog-head p {
  margin: 7px 0 0;
  color: #52617a;
  font-size: .93em;
  line-height: 1.5;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 9px;
}
.affiliate-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  padding: 12px 14px;
  min-height: 102px;
  border: 1px solid #dce2ea;
  border-radius: 5px;
  background: #fff;
  color: #22324c;
  text-decoration: none;
  line-height: 1.3;
}
.affiliate-card:hover { border-color: #526d97; background: #f3f6fa; }
.affiliate-card-head { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.affiliate-card-rank { display: grid; place-items: center; width: 25px; height: 25px; font-size: .83em; font-weight: 720; background: #e7edf6; color: #304767; border-radius: 4px; }
.affiliate-card-kind { color: #5c6c81; font-size: .76em; font-weight: 620; }
.affiliate-card strong { font-size: 1.12em; overflow-wrap: anywhere; font-weight: 750; }
.affiliate-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: .91em;
  font-weight: 690;
  min-height: 41px;
  padding: 7px 9px;
  border: 1px solid #d3dfed;
  border-radius: 4px;
  color: #294c7a;
  background: #f1f5fa;
}
.affiliate-card.affiliate-featured { grid-column: span 3; min-height: 125px; padding: 15px 19px; }
.affiliate-card.affiliate-hostinger { background: #f1ebfe; border-color: #cbbcf5; color: #472395; }
.affiliate-card.affiliate-bandwagonhost { background: #e9f1fa; border-color: #b7cee7; color: #203c59; }
.affiliate-card.affiliate-featured:hover { box-shadow: 0 0 0 2px #768db5; }
.affiliate-featured strong { font-size: clamp(18px, 2vw, 24px); }
.affiliate-pick { margin-inline-start: auto; border-radius: 3px; padding: 3px 6px; font-weight: 700; font-size: .7em; background: #fff; color: #354b73; }
.v3 .affiliate-plan-action { min-height: 49px; padding: 12px 20px; font-size: 1em; white-space: normal; text-align: center; line-height: 1.35; }
.v3 .card-foot .affiliate-plan-action { min-height: 42px; padding: 8px 12px; border: 1px solid #c5d3e6; border-radius: 4px; background: #edf3fa; font-weight: 680; font-size: .88em; width: 100%; justify-content: space-between; }
.affiliate-plan-action .i { width: 15px; height: 15px; flex: none; }
.affiliate-float {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 14;
  width: 294px;
  max-width: calc(100vw - 24px);
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 30px #172a4e2e;
  overflow: hidden;
}
.affiliate-float:not([open]) { width: fit-content; max-width: calc(100vw - 24px); }
.affiliate-float-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
  background: #18334f;
  color: #fff;
  font-size: .96em;
}
.affiliate-float-toggle::-webkit-details-marker { display: none; }
.affiliate-float-toggle .i { width: 19px; height: 19px; flex: none; }
.affiliate-float-toggle strong { margin-inline-end: auto; line-height: 1.3; }
.affiliate-float-count { display: inline-grid; place-content: center; min-width: 25px; height: 24px; padding: 3px 5px; border-radius: 4px; background: #ffffff24; font-size: .78em; font-weight: 740; }
.affiliate-float[open] .affiliate-float-chevron { transform: rotate(180deg); }
.affiliate-float-list {
  display: grid;
  gap: 5px;
  list-style: none;
  padding: 7px;
  margin: 0;
  max-height: min(73vh, 754px);
  max-height: min(73dvh, 754px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.affiliate-float-list li { min-width: 0; }
.affiliate-float-link {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 5px 7px;
  border: 1px solid #dbe2ec;
  border-radius: 5px;
  background: #fff;
  color: #263a55;
  text-decoration: none;
}
.affiliate-float-link:hover { background: #f1f5fa; border-color: #91a9c8; color: #263a55; }
.affiliate-float-rank {
  display: grid;
  place-content: center;
  height: 24px;
  border-radius: 4px;
  background: #e6edf6;
  color: #405d7c;
  font-size: .75em;
  font-weight: 700;
}
.affiliate-float-name { min-width: 0; overflow-wrap: anywhere; font-weight: 730; font-size: .84em; line-height: 1.25; }
.affiliate-float-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 112px;
  padding: 6px 6px;
  min-height: 34px;
  border-radius: 4px;
  background: #eaf1fa;
  color: #214e91;
  font-weight: 730;
  font-size: .74em;
  line-height: 1.25;
  text-align: center;
}
.affiliate-float-cta .i { width: 13px; height: 13px; flex: none; }
.affiliate-float-featured { min-height: 55px; }
.affiliate-float-hostinger { background: #6336d5; border-color: #6336d5; color: #fff; }
.affiliate-float-bandwagonhost { background: #18334f; border-color: #18334f; color: #fff; }
.affiliate-float-hostinger:hover { background: #4d24b5; border-color: #4d24b5; color: #fff; }
.affiliate-float-bandwagonhost:hover { background: #284e72; border-color: #284e72; color: #fff; }
.affiliate-float-featured .affiliate-float-rank { background: #ffffff29; color: #fff; }
.affiliate-float-featured .affiliate-float-cta { background: #fff; color: #263a55; }
.affiliate-float-featured .affiliate-float-name { font-size: .88em; }
.affiliate-float-toggle:focus-visible { outline: 2px solid #96b7ff; outline-offset: -3px; }
.affiliate-dialog {
  width: min(790px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 26px);
  max-height: calc(100dvh - 26px);
  margin: auto;
  padding: clamp(12px,3vw,25px);
  border: 1px solid #dde4ee;
  border-radius: 9px;
  background: #fff;
  overflow: auto;
  scrollbar-gutter: stable;
}
.affiliate-dialog::backdrop { background: #172238a3; }
.affiliate-dialog .affiliate-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.affiliate-dialog .affiliate-featured { grid-column: span 2; min-height: 124px; }
.affiliate-dialog .affiliate-dialog-head { position: sticky; top: -1px; z-index: 1; background: #fff; padding-bottom: 8px; }
.affiliate-dialog .affiliate-close { flex: none; border: 1px solid #d5dce5; border-radius: 4px; color: #35485f; }
.affiliate-dialog .affiliate-card { min-height: 94px; }
.affiliate-dialog .affiliate-card.affiliate-featured { min-height: 116px; }
.affiliate-strip a:focus-visible,.affiliate-float a:focus-visible,.affiliate-dialog a:focus-visible,.affiliate-dialog button:focus-visible { outline: 2px solid #284beb; outline-offset: 2px; }
@media(max-width: 1050px) {
  .affiliate-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .affiliate-card.affiliate-featured { grid-column: span 2; }
  .affiliate-ranking { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .affiliate-rank-item.affiliate-rank-featured { grid-column: span 2; }
}
@media(max-width: 760px) {
  .v3 .affiliate-strip { margin-bottom: 12px; padding: 9px; gap: 7px; }
  .affiliate-ranking-head { gap: 6px; }
  .affiliate-strip-copy { gap: 5px; }
  .affiliate-strip-copy h2 { font-size: 18px; }
  .affiliate-strip-copy .i { width: 18px; height: 18px; }
  .affiliate-top-count { font-size: .65em; padding: 4px; }
  .affiliate-all { min-height: 36px; font-size: .83em; padding: 5px 8px; }
  .affiliate-ranking { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .affiliate-rank-item.affiliate-rank-featured { grid-column: span 3; }
  .affiliate-rank-link { min-height: 51px; gap: 4px; padding: 7px 5px; }
  .affiliate-rank-name strong { font-size: .84em; }
  .affiliate-rank-name small { display: none; }
  .affiliate-rank-name .affiliate-rank-deal { display: block; font-size: .68em; line-height: 1.2; }
  .affiliate-rank-link > .i { display: none; }
  .affiliate-rank-number { width: 21px; height: 23px; font-size: .75em; }
  .affiliate-rank-featured .affiliate-rank-link { min-height: 62px; padding: 8px 10px; gap: 8px; }
  .affiliate-rank-featured .affiliate-rank-number { width: 31px; height: 31px; }
  .affiliate-rank-featured .affiliate-rank-name strong { font-size: 17px; }
  .affiliate-rank-featured .affiliate-rank-name small { display: block; font-size: .74em; }
  .affiliate-rank-visit { min-height: 39px; padding: 6px 8px; font-size: .74em; gap: 5px; }
  .affiliate-grid,.affiliate-dialog .affiliate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .affiliate-card.affiliate-featured,.affiliate-dialog .affiliate-featured { grid-column: span 1; padding: 10px; }
  .affiliate-card,.affiliate-dialog .affiliate-card { padding: 9px; min-height: 84px; }
  .affiliate-card strong { font-size: .98em; }
  .affiliate-featured strong { font-size: 1.14em; }
  .affiliate-float { bottom: calc(60px + env(safe-area-inset-bottom)); right: 9px; width: min(304px, calc(100vw - 18px)); }
  .affiliate-float:not([open]) { width: fit-content; max-width: calc(100vw - 18px); border-radius: 7px; }
  .affiliate-float-list { max-height: min(62vh, 520px); max-height: min(62dvh, 520px); }
  .affiliate-float-toggle { min-height: 46px; padding: 9px 11px; }
  .affiliate-float-link { min-height: 48px; }
  .affiliate-float-featured { min-height: 53px; }
  .affiliate-dialog { max-height: calc(100dvh - 24px); }
}
@media(max-width: 360px) {
  .affiliate-rank-visit { padding: 6px; }
  .affiliate-rank-featured .affiliate-rank-name strong { font-size: 16px; }
}
/* Keep the expanded desktop panel outside the usable reading area. */
@media(min-width: 1200px) {
  body.v3:has(#affiliate-float[open]) .shell { padding-inline-end: 309px; }
}
@media(min-width: 1200px) and (max-width: 1350px) {
  body.v3:has(#affiliate-float[open]) .affiliate-ranking { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.v3:has(#affiliate-float[open]) .affiliate-rank-item.affiliate-rank-featured { grid-column: span 2; }
}
/* The first two active entries are emphasized regardless of their brand identifiers. */
.affiliate-rank-featured .affiliate-rank-link { background: #244767; border-color: #244767; }
.affiliate-rank-featured .affiliate-rank-link:hover { background: #315b84; color: #fff; }
.affiliate-rank-hostinger .affiliate-rank-link { background: #6336d5; border-color: #6336d5; }
.affiliate-rank-hostinger .affiliate-rank-link:hover { background: #4d24b5; }
.affiliate-rank-bandwagonhost .affiliate-rank-link { background: #18334f; border-color: #18334f; }
.affiliate-rank-bandwagonhost .affiliate-rank-link:hover { background: #284e72; }
.affiliate-float-featured:not(.affiliate-float-hostinger):not(.affiliate-float-bandwagonhost) { background: #244767; color: white; border-color: #244767; }
.affiliate-rank-name .affiliate-rank-offer,
.affiliate-card-offer,
.affiliate-float-offer { color: #11653e; font-weight: 740; overflow-wrap: anywhere; }
.affiliate-rank-featured .affiliate-rank-offer,
.affiliate-float-featured .affiliate-float-offer { color: #fff; }
.affiliate-float-offer { display: block; font-size: .85em; margin-top: 3px; }
.affiliate-card-offer { font-size: .82em; }
@media(max-width: 760px) {
  .affiliate-rank-name .affiliate-rank-offer { display: block; font-size: .7em; }
  .v3-mobile-rail:not(:has([data-affiliate-open])) { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
