/* V783: full-cover featured image, visible primary action, refresh badges, full history details. */

/* Featured popup: show the whole cover image without cropping. */
#featuredPopupV782 .featured-box-v782{
  grid-template-rows:auto minmax(0,1fr)!important;
  width:min(500px,100%)!important;
  max-height:min(92dvh,820px)!important;
}
#featuredPopupV782 .featured-image-v782{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:48dvh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#f8fafc!important;
}
#featuredPopupV782 .featured-image-v782 img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  max-height:48dvh!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
}
#featuredPopupV782 .featured-body-v782{
  min-height:0!important;
  overflow:auto!important;
}

/* Stop legacy/global button styles making the add-to-cart text invisible. */
#featuredPopupV782 #featuredAddV782.featured-primary-v782,
#featuredPopupV782 #featuredRedeemV782.featured-primary-v782{
  background:linear-gradient(135deg,#2478e8,#3b91f7)!important;
  background-color:#2478e8!important;
  color:#fff!important;
  border:1px solid transparent!important;
  box-shadow:0 7px 18px rgba(36,120,232,.20)!important;
  opacity:1!important;
  -webkit-text-fill-color:#fff!important;
}
#featuredPopupV782 #featuredAddV782.featured-primary-v782:disabled,
#featuredPopupV782 #featuredRedeemV782.featured-primary-v782:disabled{
  background:#cbd5e1!important;
  color:#64748b!important;
  -webkit-text-fill-color:#64748b!important;
  box-shadow:none!important;
}

/* Refresh state in the featured rail. */
.promotion-rail-v782 .featured-refresh-note-v783{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:20px;
  padding:3px 8px;
  border-radius:999px;
  background:#eef6ff;
  color:#2563eb;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.featured-card-v782{position:relative}
.featured-change-badge-v783{
  position:absolute;
  top:5px;
  right:5px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 6px;
  border-radius:999px;
  font-size:8px;
  font-weight:950;
  box-shadow:0 3px 10px rgba(15,23,42,.10);
}
.featured-change-badge-v783.is-new-v783{background:#dcfce7;color:#15803d}
.featured-change-badge-v783.is-updated-v783{background:#fff7ed;color:#c2410c}

/* V783: history is always expanded; remove the old detail-collapse UI. */
body.webshop-v759 #orders .history-more-v758,
body.webshop-v759 #orders .history-more-v756{display:none!important}
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>.row:nth-of-type(n+3),
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>.history-detail-v430,
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>.notice,
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>div[style*="margin-top"],
body.webshop-v759 #orders .history-collapsible-v756.collapsed-v756>.history-detail-v430{
  display:revert!important;
}

@media(max-width:760px){
  #featuredPopupV782 .featured-box-v782{
    width:100%!important;
    max-height:92dvh!important;
    border-radius:22px 22px 0 0!important;
  }
  #featuredPopupV782 .featured-image-v782,
  #featuredPopupV782 .featured-image-v782 img{
    max-height:46dvh!important;
  }
  #featuredPopupV782 .featured-shop-actions-v782{
    grid-template-columns:42px 36px 42px minmax(0,1fr)!important;
  }
  #featuredPopupV782 #featuredAddV782{
    min-width:0!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .promotion-rail-v782 .featured-refresh-note-v783{font-size:8px;padding:2px 6px}
}

/* V785: a featured Reward is redeem-only; never expose cart quantity/add controls. */
#featuredPopupV782.is-reward-featured-v785 #featuredShopActionsV782,
#featuredPopupV782 #featuredShopActionsV782[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
#featuredPopupV782.is-reward-featured-v785 #featuredRedeemV782{display:block!important;width:100%!important}
