/* ===== box-sizing global pour éviter les décalages ===== */
*,
*:before,
*:after {
    box-sizing: border-box;
}


/* ===== wrapper et overlay ===== */
.coming-soon-wrapper {
  position: relative;
  display: inline-block;
  cursor: not-allowed;
  padding: 0;
}

/* disable element */

.coming-soon-disabled {
  pointer-events: none;
  opacity: 0.7;
}

/* overlay */

.coming-soon-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  /* background: rgba(0, 0, 0, 0.6); */
  border-radius: 20px;

  opacity: 0;
  transition: 0.2s ease;

  z-index: 10;
}

/* bubble */

.coming-soon-text {
  background: #9c1b5a;
  color: white;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 500;

  box-shadow: 0 0 20px #9c1b5a;
}

/* hover */

.coming-soon-wrapper:hover .coming-soon-overlay {
  opacity: 1;
  cursor: pointer;
}

/* ========================= */
/* inline coming soon (links/text) */
/* ========================= */

.coming-soon-inline-wrapper {
  position: relative;
  display: inline-block;
  cursor: not-allowed;
}

.coming-soon-inline-disabled {
  pointer-events: none;
  color: #a8a8a8;
  opacity: 0.8;
}

/* tooltip */

.coming-soon-inline-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);

  background: #9c1b5a;
  color: white;

  padding: 6px 12px;
  border-radius: 10px;

  font-size: 12px;
  white-space: nowrap;

  opacity: 0;
  transition: 0.2s ease;

  z-index: 20;

  box-shadow: 0 0 15px #9c1b5a;
}
/* arrow */

.coming-soon-inline-tooltip::after {
  content: "";

  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);

  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #9c1b5a transparent;
}

/* .coming-soon-inline-wrapper:hover .coming-soon-inline-tooltip {
  opacity: 1;
  bottom: -24px;
  cursor: pointer;
} */

/* Target submenu items with empty or # links */
.sub-menu .menu-item a[href="#"],
.sub-menu .menu-item a:not([href]) {
  pointer-events: none; /* disable click */
  color: #999 !important; /* greyed out */
  position: relative; /* for tooltip */
}

/* tooltip "Coming Soon" */
.sub-menu .menu-item a[href="#"]::after,
.sub-menu .menu-item a:not([href])::after {
  content: "Coming Soon";
  position: absolute;
  right: -110%; /* appear to the right */
  top: 50%;
  transform: translateY(-50%);
  background: #9c1b5a;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  z-index: 100;
}

/* show tooltip on hover */
.sub-menu .menu-item a[href="#"]:hover::after,
.sub-menu .menu-item a:not([href]):hover::after {
  opacity: 1;
}
