/**
 * ACVW base widget styles (shared layout for all five widgets).
 */

.acvw-no-product {
    padding: 14px 18px;
    border: 1px dashed #d3d3d3;
    border-radius: 6px;
    background: #fafafa;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.acvw-notice-close {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    padding: 0 4px;
}

/* Product Image Frame & Scaling Fixes (Touseef Style) */
.acvw-product-image-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.acvw-product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.acvw-product-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Product Title */
.acvw-product-title {
    margin: 0;
}

.acvw-product-title-text {
    display: inline-block;
}

.acvw-product-title-link {
    text-decoration: none;
    color: inherit;
}

/* Product Price */
.acvw-product-price {
    margin: 0;
}

.acvw-product-price del {
    opacity: 0.6;
    text-decoration: line-through;
}

.acvw-product-price ins {
    background: none;
    text-decoration: none;
    font-weight: 600;
}

.acvw-product-price .acvw-price-display {
    display: inline-block;
}

/* Add to Cart Button Icon Fixes */
.acvw-add-to-cart-btn .acvw-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.acvw-add-to-cart-btn .acvw-cart-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* WooCommerce default added_to_cart link hide */
.woocommerce a.added_to_cart,
a.added_to_cart.wc-forward {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* View Cart button transformed state */
.acvw-add-to-cart-btn.acvw-view-cart-btn {
    background-color: #2e7d32 !important;
}
.acvw-add-to-cart-btn.acvw-view-cart-btn:hover {
    background-color: #1b5e20 !important;
}