/*
 * PIM Data Sheet Links — sidebar card affordance + external-link interstitial.
 * Self-contained (enqueued only on single-product). The sidebar card itself
 * reuses the theme's .product-sidebar__* classes, so only the external-link
 * cue and the interstitial modal are defined here.
 * Brand: primary red #BC1830.
 */

/* ── External-link cue on PIM data-sheet rows ───────────────────────────── */
.product-sidebar__app--external .product-sidebar__app-title::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.45em;
  vertical-align: -0.02em;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: no-repeat center / contain;
          mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3v2h3.59l-9.3 9.29 1.42 1.42L19 6.41V10h2V3h-7zM19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3v2h3.59l-9.3 9.29 1.42 1.42L19 6.41V10h2V3h-7zM19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7z'/%3E%3C/svg%3E");
}

/* ── Interstitial modal ─────────────────────────────────────────────────── */
.pim-interstitial {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.pim-interstitial.is-open {
  display: flex;
}
.pim-interstitial__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.pim-interstitial__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  color: #333333;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  border-top: 4px solid #BC1830;
  padding: 1.9rem 1.9rem 1.6rem;
  animation: pim-pop 0.16s ease-out;
}
@keyframes pim-pop {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pim-interstitial__dialog { animation: none; }
}
.pim-interstitial__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #999999;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.pim-interstitial__close:hover,
.pim-interstitial__close:focus {
  color: #BC1830;
}
.pim-interstitial__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BC1830;
  margin-bottom: 0.6rem;
}
.pim-interstitial__title {
  margin: 0 0 0.7rem;
  font-size: 1.32rem;
  line-height: 1.25;
  color: #1a1a1a;
}
.pim-interstitial__body {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555555;
}
.pim-interstitial__host {
  display: inline-block;
  font-weight: 700;
  color: #333333;
  word-break: break-all;
}
.pim-interstitial__note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #777777;
}
.pim-interstitial__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: #666666;
  cursor: pointer;
}
.pim-interstitial__remember input {
  margin: 0;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.pim-interstitial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pim-interstitial__btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pim-interstitial__btn--primary {
  background: #BC1830;
  color: #ffffff;
  border-color: #BC1830;
}
.pim-interstitial__btn--primary:hover,
.pim-interstitial__btn--primary:focus {
  background: #9a1327;
  border-color: #9a1327;
  color: #ffffff;
}
.pim-interstitial__btn--ghost {
  background: transparent;
  color: #555555;
  border-color: #cccccc;
}
.pim-interstitial__btn--ghost:hover,
.pim-interstitial__btn--ghost:focus {
  border-color: #999999;
  color: #222222;
}
