/* Bim_ProductPurchase: PDP price/buy row, cart Pay button, My Downloads grid. */

/* checkout.cart.shipping is kept in the cart page's layout (see checkout_cart_index.xml)
   purely for its window.checkoutConfig / mage-url-baseUrl bootstrap script -- its visible
   "Estimate Shipping and Tax" form has no use on a digital-download-only cart. */
#block-shipping {
    display: none !important;
}

.bim-pp-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}
.bim-pp-price .bim-pp-price-strike {
    color: #9a9a9a;
    font-weight: 400;
    font-size: 15px;
    text-decoration: line-through;
}
.bim-pp-free-note {
    display: inline-block;
    margin: 0 0 10px;
    color: #2e7d32;
    font-weight: 700;
}

.bim-pp-result {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
}
.bim-pp-result--success { background: #e8f5e9; color: #2e7d32; }
.bim-pp-result--failed { background: #ffebee; color: #c62828; }

.bim-pp-cart-pay {
    margin-top: 16px;
    text-align: right;
}
.bim-pp-cart-pay .bim-cart-pay-btn {
    min-width: 220px;
}
.bim-pp-cart-pay-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #777;
}

.bim-pp-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.bim-pp-downloads-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.bim-pp-downloads-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
}
.bim-pp-downloads-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bim-pp-downloads-info {
    padding: 12px;
}
.bim-pp-downloads-name {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}
.bim-pp-downloads-sku,
.bim-pp-downloads-date {
    margin: 0 0 4px;
    font-size: 12px;
    color: #777;
}
.bim-pp-downloads-btn {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .bim-pp-cart-pay { text-align: center; }
}
