/* UDLESS Pricing Pilot v0.2.40
   Desktop master-tab surface parity, tighter package headers and SAFE
   direction-aware Customize transition. No off-screen ghost cards.
   Stage-only visual adjustment. */

/* Inactive master tabs use the EXACT same fill as the inactive Explore
   subcategory pills: their 2px border is tonal, not a second color. */
@container (min-width:761px) {
  .upe.upe-stage-public .upe-parents button:not([aria-pressed="true"]) {
    box-sizing:border-box!important;
    background:#102330!important;
    border:2px solid #102330!important;
    color:#e1e9ee!important;
    box-shadow:none!important;
    filter:none!important;
  }
  .upe.upe-stage-public .upe-parents button:not([aria-pressed="true"]):hover {
    background:#174137!important;
    border-color:#174137!important;
    color:#f5fff9!important;
    box-shadow:none!important;
  }
}
/* The selected tab still has a subtle mint underline, with no inset glow. */
.upe.upe-stage-public .upe-parents button[aria-pressed="true"] {
  box-shadow:none!important;
}
/* Mobile custom service menu and six-button rail are intentionally untouched. */

/* Eliminate the old 34px extra blank zone inside the package-card header.
   Reserve a safe right-hand gap for the fixed 76.51px file-cut corner,
   including the featured Recommended chip at the start of the row. */
.upe.upe-stage-public .upe-card .upe-card-head,
.upe.upe-stage-public .upe-card.upe-svg-card-ready .upe-card-head {
  box-sizing:border-box!important;
  padding-top:16px!important;
  padding-right:clamp(38px,12%,62px)!important;
  padding-bottom:0!important;
  padding-left:0!important;
  margin-top:0!important;
  margin-bottom:10px!important;
  align-content:flex-start!important;
  min-height:0!important;
}
@container (max-width:385px) {
  .upe.upe-stage-public .upe-card .upe-card-head,
  .upe.upe-stage-public .upe-card.upe-svg-card-ready .upe-card-head {
    padding-top:13px!important;
    padding-right:clamp(29px,10%,46px)!important;
    margin-bottom:9px!important;
  }
}

/* Animation stage: stable DOM nodes in the SAME document positions.
   Animate only the selected card's wrapper and actual customizer.
   Never animate the SVG-masked card itself or relocate its siblings. */
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable {
  --upe-card-enter-x:-12px;
  --upe-panel-enter-x:25px;
  --upe-card-exit-x:-8px;
  --upe-panel-exit-x:18px;
  --upe-card-enter-y:0px;
  --upe-panel-enter-y:0px;
  --upe-card-exit-y:0px;
  --upe-panel-exit-y:0px;
  animation:none!important;
  overflow:visible!important;
}
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable.upe-edit-center {
  /* A middle package shifts left as the editor takes the right column. */
  --upe-card-enter-x:17px;
  --upe-panel-enter-x:-21px;
  --upe-card-exit-x:-11px;
  --upe-panel-exit-x:15px;
}
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable.upe-edit-right {
  /* For the rightmost package, the editor opens from the left. */
  --upe-card-enter-x:13px;
  --upe-panel-enter-x:-25px;
  --upe-card-exit-x:9px;
  --upe-panel-exit-x:-18px;
}
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable:not(.upe-editor-is-closing)>.upe-fixed-card {
  animation:upe-v240-card-enter 360ms cubic-bezier(.22,1,.36,1) both!important;
  transform-origin:center center!important;
}
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable:not(.upe-editor-is-closing)>.upe-customizer {
  animation:upe-v240-panel-enter 390ms cubic-bezier(.22,1,.36,1) both!important;
  transform-origin:center center!important;
}
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable.upe-editor-is-closing>.upe-fixed-card {
  animation:upe-v240-card-exit 340ms cubic-bezier(.4,0,.2,1) both!important;
}
.upe.upe-stage-public .upe-edit-layout.upe-editor-stable.upe-editor-is-closing>.upe-customizer {
  animation:upe-v240-panel-exit 340ms cubic-bezier(.4,0,.2,1) both!important;
}
@keyframes upe-v240-card-enter {
  from {opacity:1;transform:translate3d(var(--upe-card-enter-x),var(--upe-card-enter-y),0)}
  to   {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes upe-v240-panel-enter {
  from {opacity:1;transform:translate3d(var(--upe-panel-enter-x),var(--upe-panel-enter-y),0)}
  to   {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes upe-v240-card-exit {
  from {opacity:1;transform:translate3d(0,0,0)}
  to   {opacity:1;transform:translate3d(var(--upe-card-exit-x),var(--upe-card-exit-y),0)}
}
@keyframes upe-v240-panel-exit {
  from {opacity:1;transform:translate3d(0,0,0)}
  to   {opacity:1;transform:translate3d(var(--upe-panel-exit-x),var(--upe-panel-exit-y),0)}
}

/* Narrow containers must not slide horizontally and create a page scrollbar.
   Mobile movement is gentle vertical reveal and exit instead. */
@container (max-width:850px) {
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable {
    --upe-card-enter-x:0px;
    --upe-panel-enter-x:0px;
    --upe-card-exit-x:0px;
    --upe-panel-exit-x:0px;
    --upe-card-enter-y:8px;
    --upe-panel-enter-y:15px;
    --upe-card-exit-y:-3px;
    --upe-panel-exit-y:9px;
  }
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable:not(.upe-editor-is-closing)>.upe-fixed-card {
    animation-duration:260ms!important;
  }
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable:not(.upe-editor-is-closing)>.upe-customizer {
    animation-duration:290ms!important;
  }
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable.upe-editor-is-closing>.upe-fixed-card,
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable.upe-editor-is-closing>.upe-customizer {
    animation-duration:260ms!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable,
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable>.upe-fixed-card,
  .upe.upe-stage-public .upe-edit-layout.upe-editor-stable>.upe-customizer {
    animation:none!important;
    transition:none!important;
    transform:none!important;
    opacity:1!important;
  }
}