/**
 * LuggageRate CJ display ads — mid-content + fixed right rail.
 */

.lr-display-ad {
  --lr-ad-accent: #0f766e;
  box-sizing: border-box;
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.25rem;
  text-align: center;
  clear: both;
}

.lr-display-ad__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.lr-display-ad__link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  text-decoration: none !important;
  border: 0;
  box-shadow: none;
}

.lr-display-ad__link:hover,
.lr-display-ad__link:focus {
  opacity: 0.94;
}

.lr-display-ad img {
  display: block;
  width: auto;
  max-width: min(100%, 300px);
  height: auto;
  margin: 0 auto;
  border: 0;
  vertical-align: middle;
}

/* Mid: sit in reading column without fighting TOC/grid */
.lr-display-ad--mid {
  margin: 1.75rem auto;
  padding: 1rem 0.75rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #fff 60%, #f8fafc 100%);
}

/*
 * Fixed right rail — does NOT use the theme sidebar column.
 * Compact width so it sits in the page margin / lightly overlays edge.
 */
.lr-display-ad-rail {
  display: none;
  box-sizing: border-box;
}

.lr-display-ad-rail .lr-display-ad--sidebar {
  margin: 0;
  padding: 0.45rem 0.4rem 0.55rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.lr-display-ad-rail .lr-display-ad--sidebar img {
  max-width: 100%;
}

@media (min-width: 1280px) {
  .lr-display-ad-rail {
    display: block;
    position: fixed;
    z-index: 35;
    top: 5.75rem;
    right: 0.65rem;
    width: 160px;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    scrollbar-width: thin;
  }
}

/* Wider screens: full 300px creative in the right margin */
@media (min-width: 1580px) {
  .lr-display-ad-rail {
    width: 300px;
    right: max(0.75rem, calc((100vw - 1200px) / 2 - 316px));
  }
}

@media (max-width: 1279px) {
  .lr-display-ad-rail,
  .lr-display-ad--sidebar {
    display: none !important;
  }

  .lr-display-ad--mid {
    margin: 1.25rem 0;
    padding: 0.85rem 0.5rem;
  }
}
