/* Buy Now â€” fixed 200Ã—56 control; never an <img>, so theme img rules cannot blow it up */
a.buy-now-img,
a.buy-now-img:link,
a.buy-now-img:visited,
a.buy-now-img:hover,
a.buy-now-img:focus,
a.buy-now-img:active {
    display: inline-block !important;
    width: 200px !important;
    height: 56px !important;
    max-width: 200px !important;
    max-height: 56px !important;
    min-width: 200px !important;
    min-height: 56px !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 200px 56px !important;
    /* fallback if inline style missing */
    background-image: url("../images/BuyNow.png?v=20260727b") !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    line-height: 56px !important;
    font-size: 0 !important;
    color: transparent !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    flex: 0 0 200px !important;
    float: none !important;
    position: relative !important;
    z-index: 2;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
}

/* If any leftover <img> sneaks in, force it tiny/hidden */
a.buy-now-img img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =============================================================================
   Compact Buy Now / checkout buttons — content-sized, never full row width
   ============================================================================= */
a.buyit,
a.rktbutton,
a.rkt-buy-btn,
a.flexible-btn[href*="rkttek.com"],
a.btn-hover[href*="rkttek.com"],
a[href*="rkttek.com"].btn,
a[href*="rkttek.com"].btn-theme,
a[href*="rkttek.com"].btn-template,
a[href*="rkttek.com"].btn-rocket,
a[href*="rkttek.com"].btn-sm,
a[href*="rkttek.com"].btn-solid,
.actions-primary a[href*="rkttek.com"],
.actions-primary a[title="Buy It!"],
.actions-primary a[title*="Instant"],
.product-buttons a[href*="rkttek.com"],
.rkt-buy-wrap a,
.rkt-buy-wrap a.btn,
.hot-product2 .actions-primary a[href*="rkttek.com"],
#list-view .actions-primary a[href*="rkttek.com"],
.ps-btn[href*="rkttek.com"],
a.ps-btn[href*="rkttek.com"],
.btn.wide[href*="rkttek.com"],
a.btn-template.wide[href*="rkttek.com"] {
    display: inline-block !important;
    width: auto !important;
    max-width: 11rem !important; /* ~1/4–1/5 of typical product column */
    min-width: 0 !important;
    height: auto !important;
    line-height: 1.25 !important;
    padding: 0.4rem 0.85rem !important;
    margin: 0.35rem 0 0.25rem 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
    float: none !important;
    flex: 0 0 auto !important;
}

/* Wrapper should not stretch the button */
.rkt-buy-wrap,
.pro-actions,
.actions-primary,
.product-buttons {
    width: auto !important;
    max-width: 100%;
    display: block;
    text-align: left;
}

.actions-primary a[href*="rkttek.com"] + a,
.product-buttons a[href*="rkttek.com"] + a {
    display: inline-block !important;
    width: auto !important;
    margin-left: 0.35rem;
}

/* Theme "wide" / full-width utilities on buy links only */
a[href*="rkttek.com"].w-100,
a[href*="rkttek.com"].btn-block,
a[href*="rkttek.com"].wide {
    width: auto !important;
    max-width: 11rem !important;
    display: inline-block !important;
}

/* Image buy buttons (ToolBox etc.) — keep modest size */
img.buy-button,
a.buttonlink img.buy-button {
    width: auto !important;
    max-width: 7.5rem !important;
    height: auto !important;
    display: inline-block !important;
}
a.buttonlink {
    display: inline-block !important;
    width: auto !important;
}

/* ToyTime composite image control — already fixed size; keep compact */
a.buy-now-img {
    max-width: 200px !important;
    width: 200px !important;
}
