.fr-family-selector {
  margin: 0 0 1.75rem;
  padding-top: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fr-family-selector *,
.fr-family-selector *::before,
.fr-family-selector *::after {
  box-sizing: border-box;
}

.fr-family-selector__label {
  font-weight: 600;
  font-size: 18px;
  color: #111;
  margin-bottom: 0.75rem;
  display: block;
}

/* ==================== BUTTONS ==================== */
.fr-family-selector__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.fr-family-selector__button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* Shine effect on hover */
.fr-family-selector__button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(0, 0, 0, 0.04) 35%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.04) 65%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.fr-family-selector__button:hover,
.fr-family-selector__button:focus {
  border-color: #2ea3f2;
  color: #2ea3f2;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 163, 242, 0.12);
}

.fr-family-selector__button:hover::before,
.fr-family-selector__button:focus::before {
  transform: translateX(130%);
}

.fr-family-selector__button.is-current {
  border: 1.5px solid #2ea3f2;
  color: #2ea3f2;
  font-weight: 600;
  background: rgba(46, 163, 242, 0.05);
  box-shadow: 0 2px 8px rgba(46, 163, 242, 0.15);
}

.fr-family-selector__button:focus-visible {
  outline: 3px solid #2ea3f2;
  outline-offset: 4px;
}

/* ==================== DROPDOWN SELECT ==================== */
.fr-family-selector__select-wrap {
  position: relative;
  max-width: 320px;
}

.fr-family-selector__select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 2.8rem 0.75rem 1.1rem;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 15px;
  appearance: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fr-family-selector__select:hover {
  border-color: #2ea3f2;
}

.fr-family-selector__select:focus {
  border-color: #2ea3f2;
  box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.15);
  outline: none;
}

.fr-family-selector__select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #2ea3f2;
  border-bottom: 2px solid #2ea3f2;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.fr-family-selector__select-wrap.open::after {
  transform: translateY(-50%) rotate(225deg);
}

/* ==================== SLANTED STYLE ==================== */
.fr-family-selector[data-style="slanted"] .fr-family-selector__buttons {
  --fr-slant: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
  overflow: visible;
  padding: 4px 0;
  margin-bottom: 1.25rem;
  width: 100%;
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0.9rem 1.35rem;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  background:
    linear-gradient(60deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(-60deg, rgba(255,255,255,0.025) 1px, transparent 1px) 13px 13px / 26px 26px,
    linear-gradient(180deg, #1e2531 0%, #11171f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 6px 16px rgba(0,0,0,0.35);
  clip-path: polygon(
    var(--fr-slant) 0,
    100% 0,
    calc(100% - var(--fr-slant)) 100%,
    0 100%
  );
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.3s ease,
    color 0.3s ease;
  z-index: 1;
}

/* Top neon line */
.fr-family-selector[data-style="slanted"] .fr-family-selector__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, #00a8f6, #7df0ff, #00a8f6, transparent);
  box-shadow:
    0 0 10px rgba(0, 168, 246, 0.85),
    0 0 18px rgba(0, 168, 246, 0.5);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 0.35s ease,
    opacity 0.3s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    height 0.35s ease;
  z-index: 2;
}

/* Gloss sweep */
.fr-family-selector[data-style="slanted"] .fr-family-selector__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,0.12) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  opacity: 0;
  transition:
    opacity 0.45s ease,
    background-position 0.7s ease;
  z-index: 1;
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button:hover,
.fr-family-selector[data-style="slanted"] .fr-family-selector__button:focus {
  z-index: 4;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 10px 20px rgba(0,0,0,0.4),
    0 0 18px rgba(0, 168, 246, 0.28);
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button:hover::before,
.fr-family-selector[data-style="slanted"] .fr-family-selector__button:focus::before {
  opacity: 1;
  transform: scaleX(1);
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button:hover::after,
.fr-family-selector[data-style="slanted"] .fr-family-selector__button:focus::after {
  opacity: 0.8;
  background-position: -200% 0;
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current {
  z-index: 5;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(-60deg, rgba(255,255,255,0.03) 1px, transparent 1px) 13px 13px / 26px 26px,
    linear-gradient(180deg, #2c1f23 0%, #1a1419 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 18px rgba(0,0,0,0.45),
    0 0 24px rgba(252, 15, 23, 0.38);
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current::before {
  background: linear-gradient(90deg, transparent, #FC0F17, #ff6b6b, #FC0F17, transparent);
  box-shadow:
    0 0 12px rgba(252, 15, 23, 0.9),
    0 0 22px rgba(252, 15, 23, 0.55);
  height: 4px;
  opacity: 1;
  transform: scaleX(1);
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current::after {
  opacity: 0.65;
  background-position: -200% 0;
}

.fr-family-selector[data-style="slanted"] .fr-family-selector__button:focus-visible {
  outline: 3px solid rgba(0, 168, 246, 0.55);
  outline-offset: 4px;
}

/* ==================== SLANTED MOBILE ==================== */
@media (max-width: 767px) {
  .fr-family-selector[data-style="slanted"] .fr-family-selector__buttons {
    --fr-slant: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 2px 0 10px;
    margin-right: 0;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0.72rem 0.95rem;
    font-size: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transform: none;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__button:hover,
  .fr-family-selector[data-style="slanted"] .fr-family-selector__button:focus,
  .fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current:hover,
  .fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current:focus {
    transform: none;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__button::before {
    height: 3px;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current::before {
    height: 4px;
  }
}

/* ==================== PRESS3D ==================== */
.fr-family-selector[data-style="press3d"] .fr-family-selector__buttons {
  gap: 0.85rem;
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button {
  position: relative;
  top: 0;
  overflow: hidden;
  border: 1px solid #b9ddf8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  color: #127cc1;
  font-weight: 600;
  box-shadow:
    0 5px 0 #b8d9ef,
    0 10px 18px rgba(46, 163, 242, 0.12);
  transform: translateY(0);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button::before {
  display: none;
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button:hover,
.fr-family-selector[data-style="press3d"] .fr-family-selector__button:focus {
  border-color: #2ea3f2;
  color: #0f6ca8;
  background: linear-gradient(180deg, #ffffff 0%, #ecf8ff 100%);
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 #afd3ec,
    0 12px 22px rgba(46, 163, 242, 0.16);
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #afd3ec,
    0 4px 8px rgba(46, 163, 242, 0.12);
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button.is-current {
  border-color: #2ea3f2;
  background: linear-gradient(180deg, #4db3f5 0%, #2ea3f2 100%);
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 4px 0 #1d8fdd,
    0 10px 18px rgba(46, 163, 242, 0.22);
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button.is-current:hover,
.fr-family-selector[data-style="press3d"] .fr-family-selector__button.is-current:focus {
  transform: translateY(0);
  box-shadow:
    0 4px 0 #1d8fdd,
    0 10px 18px rgba(46, 163, 242, 0.22);
}

.fr-family-selector[data-style="press3d"] .fr-family-selector__button:focus-visible {
  outline: 3px solid rgba(46, 163, 242, 0.28);
  outline-offset: 4px;
}

/* ==================== MOTORSPORT ==================== */
.fr-family-selector[data-style="motorsport"] .fr-family-selector__buttons {
  gap: 1rem;
  flex-wrap: wrap;
  overflow: visible;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button {
  position: relative;
  overflow: hidden;
  min-height: 56px;
  max-width: 100%;
  padding: 0.9rem 1.75rem;
  border: 1px solid rgba(0, 168, 246, 0.15);
  border-radius: 6px;
  white-space: nowrap;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(-60deg, rgba(255,255,255,0.015) 1px, transparent 1px) 14px 14px / 28px 28px,
    linear-gradient(180deg, #1a212b 0%, #0f141c 100%);
  color: #b8c8d9;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 14px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  flex: 0 1 auto;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00a8f6, #7df0ff, #00a8f6, transparent);
  box-shadow: 0 0 6px rgba(0, 168, 246, 0.4);
  opacity: 0.35;
  z-index: 2;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(0,168,246,0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0.4;
  transition: all 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:hover,
.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:focus {
  color: #fff;
  border-color: rgba(0, 168, 246, 0.4);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 12px 26px rgba(0,0,0,0.45),
    0 0 24px rgba(0, 168, 246, 0.35);
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:hover::before,
.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:focus::before {
  background-position: -200% 0;
  opacity: 0.75;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:hover::after,
.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:focus::after {
  opacity: 0.85;
  height: 3px;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button.is-current {
  border-color: #FC0F17;
  color: #fff;
  font-weight: 700;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(-60deg, rgba(255,255,255,0.025) 1px, transparent 1px) 14px 14px / 28px 28px,
    linear-gradient(180deg, #2a1f22 0%, #1a1418 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 10px 24px rgba(0,0,0,0.5),
    0 0 32px rgba(252, 15, 23, 0.55),
    0 0 12px rgba(0, 168, 246, 0.25);
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button.is-current::after {
  background: linear-gradient(90deg, transparent, #FC0F17, #ff6b6b, #FC0F17, transparent);
  box-shadow:
    0 0 14px #FC0F17,
    0 0 28px #FC0F17;
  height: 4px;
  opacity: 1;
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button.is-current:hover,
.fr-family-selector[data-style="motorsport"] .fr-family-selector__button.is-current:focus {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 14px 30px rgba(0,0,0,0.55),
    0 0 40px rgba(252, 15, 23, 0.65);
}

.fr-family-selector[data-style="motorsport"] .fr-family-selector__button:focus-visible {
  outline: 3px solid rgba(0, 168, 246, 0.6);
  outline-offset: 5px;
}

/* ==================== MOBILE ==================== */
@media (max-width: 767px) {
  .fr-family-selector {
    overflow: visible;
  }

  .fr-family-selector__label {
    margin-bottom: 0.6rem;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__buttons {
    --fr-slant: 10px;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 18px 10px 0;
    margin-right: -18px;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__buttons::-webkit-scrollbar {
    display: none;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__button {
    min-width: 112px;
    min-height: 46px;
    padding: 0.72rem 0.95rem;
    font-size: 12px;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
    white-space: nowrap;
    transform: none;
  }

  .fr-family-selector[data-style="slanted"] .fr-family-selector__button:hover,
  .fr-family-selector[data-style="slanted"] .fr-family-selector__button:focus,
  .fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current:hover,
  .fr-family-selector[data-style="slanted"] .fr-family-selector__button.is-current:focus {
    transform: none;
  }

  .fr-family-selector[data-style="motorsport"] .fr-family-selector__buttons {
    gap: 0.75rem;
  }

  .fr-family-selector[data-style="motorsport"] .fr-family-selector__button {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 0.8rem 1rem;
    font-size: 13px;
    white-space: normal;
  }
}

/* ==================== SAFETY ==================== */
.summary.entry-summary,
.woocommerce div.product .summary,
.single-product .entry-summary {
  max-width: 100%;
  overflow-x: hidden;
}

/* ==================== ASSOCIATED PRODUCTS ==================== */
.fr-associated-products-data {
  display: none;
}

.fr-flyline-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
  overflow: visible;
}

.fr-flying-associated-product {
  position: fixed;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  background: #fff;
  pointer-events: none;
  z-index: 1000000;
  will-change: transform, opacity;
}

.fr-cart-bump {
  animation: frCartBump 0.45s ease;
}

@keyframes frCartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.fr-associated-products-notice {
  margin: 0 0 16px;
}

.fr-compatible-with {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #e10600;
  background: #fafafa;
  border-radius: 6px;
}

.fr-compatible-with__title {
  display: block;
  margin-bottom: 0.5rem;
  color: #111;
  font-size: 15px;
}

.fr-compatible-with__list {
  margin: 0;
  padding-left: 1.1rem;
}

.fr-compatible-with__item {
  margin: 0.25rem 0;
}

.fr-compatible-with__item a {
  text-decoration: none;
  font-weight: 600;
}

.fr-compatible-with__item a:hover {
  text-decoration: underline;
}