/* Joomla glue: the add-to-cart box the plugin prints. The cart UI is in shared/smartcart-ui.css. */

/* Neutral on purpose: no dependency on Bootstrap or on the template. */

.smartcart-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 1rem 0;
    padding: .75rem 1rem;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .5rem;
}
/* Compact: just the template's own button, like a plain "Buy" link. */
.smartcart-box--compact { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; }
.smartcart-box--compact .smartcart-variant { width: 100%; margin-bottom: .5rem; }
.smartcart-price { font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.smartcart-box .smartcart-variant,
.smartcart-box .smartcart-quantity { width: auto; }
.smartcart-box .smartcart-quantity { max-width: 5rem; }

/* Shown for a few seconds when the customer comes back from PayPal. */
.smartcart-notice {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    max-width: calc(100vw - 2rem);
    padding: .75rem 1.25rem;
    border-radius: .5rem;
    background: #1f3a2e;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}
