/* VNLIKE | External URL buttons per product, premium highlight version */
#productModal .modalbox{max-height:min(94vh,940px);overflow-y:auto;overscroll-behavior:contain}
.vnl-link-editor{margin:15px 0 2px;padding:15px;border:1px solid rgba(124,143,255,.20);border-radius:14px;background:rgba(110,120,255,.035)}
.vnl-link-editor-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.vnl-link-editor-title strong{font-size:12px;color:#f1f4ff}
.vnl-link-editor-hint{margin:6px 0 10px;color:#95a3c1;font-size:10px;line-height:1.55}
.vnl-product-link-row{display:grid;grid-template-columns:minmax(125px,.85fr) minmax(170px,1.55fr) 34px;gap:7px;align-items:center;margin:7px 0}
.vnl-product-link-row .input{width:100%;min-width:0;height:39px!important;font-size:11px!important;padding:0 10px!important}
.vnl-link-remove{height:36px;width:34px;border:1px solid rgba(255,116,137,.26);background:rgba(255,97,119,.075);border-radius:10px;color:#ff9aa8;font-size:21px;cursor:pointer}
.vnl-link-remove:hover{background:rgba(255,97,119,.16);border-color:rgba(255,116,137,.56)}
.vnl-link-add{display:inline-flex;align-items:center;gap:7px;justify-content:center;height:33px;padding:0 11px;border:1px dashed rgba(133,147,255,.42);border-radius:9px;background:rgba(106,112,255,.09);color:#b9c5ff;font-weight:850;font-size:10px;cursor:pointer}
.vnl-link-add:hover{background:rgba(106,112,255,.17)}
#vnlLinkEditorMessage{font-size:10px;color:#91a4ce;min-height:13px;margin-top:8px;line-height:1.4}
#vnlLinkEditorMessage.vnl-error{color:#ff919f}

.vnl-shop-product-links{margin:14px 0 18px}
.vnl-shop-product-links[hidden]{display:none!important}
.vnl-shop-link-heading{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:900;letter-spacing:.14em;color:#b8c4ef;margin:0 0 11px}
.vnl-shop-link-heading::before{content:'';width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#8ea3ff,#d4b2ff);box-shadow:0 0 0 4px rgba(131,144,255,.10),0 0 14px rgba(155,124,255,.28)}
.vnl-shop-link-actions{display:flex;flex-wrap:wrap;gap:10px}
.vnl-shop-link-button{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:42px;max-width:100%;display:inline-flex;align-items:center;justify-content:center;gap:0;
  padding:10px 16px;border-radius:13px;
  border:1px solid rgba(144,164,255,.46);
  background:linear-gradient(135deg,rgba(64,83,165,.64),rgba(30,37,90,.82) 54%,rgba(98,58,170,.58));
  box-shadow:0 10px 24px rgba(12,16,42,.26), inset 0 1px 0 rgba(255,255,255,.11), 0 0 0 1px rgba(255,255,255,.02);
  color:#f7f9ff;text-decoration:none!important;
  font-size:11px;font-weight:900;line-height:1.35;letter-spacing:.01em;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}
.vnl-shop-link-button::before{
  content:'';position:absolute;inset:1px;border-radius:12px;pointer-events:none;z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.03) 34%,rgba(255,255,255,0));
}
.vnl-shop-link-button::after{
  content:'';position:absolute;left:-55%;top:0;width:42%;height:100%;pointer-events:none;z-index:-1;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.18),rgba(255,255,255,0));
  transform:skewX(-28deg);
  animation:vnlLinkSweep 3.8s ease-in-out infinite;
}
.vnl-shop-link-button span:first-child{overflow-wrap:anywhere;display:block;min-width:0}
.vnl-shop-link-button > span:last-child:not(:first-child){display:none!important}
.vnl-shop-link-button:hover{
  transform:translateY(-2px) scale(1.015);
  border-color:rgba(193,203,255,.88);
  box-shadow:0 14px 28px rgba(14,18,44,.34), 0 0 0 1px rgba(184,196,255,.08), 0 0 18px rgba(140,118,255,.24);
  filter:brightness(1.06);
}
.vnl-shop-link-button:active{transform:translateY(0) scale(.995)}
.vnl-shop-link-button:focus-visible{outline:2px solid #c6b7ff;outline-offset:3px}

@keyframes vnlLinkSweep{0%,18%{transform:translateX(0) skewX(-28deg);opacity:0}24%{opacity:1}40%{transform:translateX(305%) skewX(-28deg);opacity:.85}100%{transform:translateX(305%) skewX(-28deg);opacity:0}}

@media(max-width:600px){
  .vnl-link-editor{padding:11px}
  .vnl-product-link-row{grid-template-columns:minmax(0,1fr) 34px;gap:7px}
  .vnl-link-label{grid-column:1}
  .vnl-link-url{grid-column:1;grid-row:2}
  .vnl-link-remove{grid-column:2;grid-row:1/3;align-self:stretch;height:auto}
  .vnl-shop-link-actions{gap:9px}
  .vnl-shop-link-button{font-size:10px;padding:9px 14px;min-height:40px;border-radius:12px}
}
@media(prefers-reduced-motion:reduce){
  .vnl-shop-link-button,.vnl-shop-link-button:hover{transition:none!important;transform:none!important}
  .vnl-shop-link-button::after{animation:none!important;display:none}
}

/* V16: only a six-dot drag handle. No visible indices or arrow buttons.
   Enlarged desktop modal and two-line responsive editor prevent clipping. */
#productModal .modalbox{
  width:min(760px,100%)!important;
  max-width:760px!important;
  max-height:min(94dvh,940px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  box-sizing:border-box!important;
}
#productModal .vnl-link-editor,
#productModal #vnlProductLinkRows{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
#productModal .vnl-link-editor{padding:16px;overflow:hidden}
#productModal .vnl-product-link-row{
  display:grid!important;
  grid-template-columns:38px minmax(0,.9fr) minmax(0,1.65fr) 38px!important;
  gap:8px!important;
  align-items:center;
  width:100%;max-width:100%;min-width:0;
  box-sizing:border-box;
  margin:8px 0;
}
#productModal .vnl-product-link-row > .input{
  min-width:0!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;overflow:hidden;text-overflow:ellipsis;
  height:40px!important;font-size:12px!important;
}
#productModal .vnl-link-drag-handle{
  display:grid;place-items:center;width:38px;height:40px;padding:0;
  flex:none;box-sizing:border-box;
  border:1px solid rgba(132,154,240,.37);border-radius:10px;
  background:rgba(109,132,233,.13);color:#c6d8ff;
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
}
#productModal .vnl-link-drag-handle:hover{background:rgba(109,132,233,.24);border-color:rgba(163,182,255,.65)}
#productModal .vnl-link-drag-handle:active{cursor:grabbing}
#productModal .vnl-link-drag-handle svg{display:block;pointer-events:none}
#productModal .vnl-link-drag-handle:focus-visible{outline:2px solid #99adff;outline-offset:2px}
#productModal .vnl-link-remove{
  width:38px!important;height:40px!important;padding:0!important;
  display:grid!important;place-items:center!important;
  box-sizing:border-box!important;font-family:Arial,sans-serif;
  font-size:22px!important;line-height:1!important;
}
#productModal .vnl-product-link-row.vnl-link-dragging{
  border-radius:10px;background:rgba(114,129,255,.11);
  box-shadow:inset 0 0 0 1px rgba(155,167,255,.28);
}
#productModal .vnl-link-is-dragging{user-select:none;-webkit-user-select:none}
@media(max-width:700px){
  #productModal .modalbox{width:100%!important;max-width:100%!important;padding:18px!important}
  #productModal .vnl-link-editor{padding:11px!important}
  #productModal .vnl-product-link-row{
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    gap:7px!important;
    padding:8px;
    border:1px solid rgba(131,147,210,.18);
    border-radius:12px;
    background:rgba(80,98,154,.045);
  }
  #productModal .vnl-link-drag-handle{grid-column:1;grid-row:1}
  #productModal .vnl-link-remove{grid-column:3;grid-row:1}
  #productModal .vnl-link-label{grid-column:1/-1;grid-row:2}
  #productModal .vnl-link-url{grid-column:1/-1;grid-row:3}
}


/* Sold-out package marker: draw the cross as an exact-centred SVG, not a misaligned glyph. */
#upgradeModal #upgradePackages .package-choice.package-zero-stock::after{
  content:""!important;display:grid!important;place-items:center!important;
  box-sizing:border-box!important;width:18px!important;height:18px!important;
  position:absolute!important;top:12px!important;right:12px!important;
  border-radius:50%!important;border:1px solid rgba(255,111,127,.43)!important;
  background-color:rgba(255,75,86,.10)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 4.2L11.8 11.8M11.8 4.2L4.2 11.8' stroke='%23ff9ba7' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")!important;
  background-position:center!important;background-repeat:no-repeat!important;background-size:11px 11px!important;
  font-size:0!important;line-height:0!important;padding:0!important;
}
