/**
 * KB Call For Price - Frontend Styles
 *
 * @author    Starter
 * @copyright 2024
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/* ============================================
   Call For Price Message Box
   ============================================ */

.kbcfp-call-for-price {
    background-color: #f8f9fa;
    color: #232323;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.kbcfp-message {
    font-size: 16px;
    line-height: 1.5;
}

.kbcfp-message p {
    margin: 0 0 10px;
}

.kbcfp-message p:last-child {
    margin-bottom: 0;
}

.kbcfp-message a {
    color: inherit;
    text-decoration: underline;
}

.kbcfp-message a:hover {
    opacity: 0.8;
}

/* ============================================
   Hide Price Elements
   ============================================ */

/* When kbcfp is active via JavaScript */
body.kbcfp-active .product-price,
body.kbcfp-active .current-price,
body.kbcfp-active .product-prices,
body.kbcfp-active .has-discount,
body.kbcfp-active .regular-price,
body.kbcfp-active .product-discount,
body.kbcfp-active .tax-shipping-delivery-label {
    display: none !important;
}

/* Hide Add to Cart */
body.kbcfp-active .add-to-cart,
body.kbcfp-active .product-add-to-cart .add,
body.kbcfp-active [data-button-action="add-to-cart"],
body.kbcfp-active .product-quantity {
    display: none !important;
}

/* Keep product actions visible (wishlist, compare) */
body.kbcfp-active .product-actions .product-additional-info {
    display: block !important;
}

/* ============================================
   Product Listing (Category Page)
   ============================================ */

.kbcfp-listing-hide .product-price-and-shipping,
.kbcfp-listing-hide .highlighted-informations .price,
.kbcfp-listing-hide .product-miniature .price {
    display: none !important;
}

.kbcfp-listing-message {
    background-color: #f8f9fa;
    color: #232323;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
    .kbcfp-call-for-price {
        padding: 15px;
    }

    .kbcfp-message {
        font-size: 14px;
    }
}

/* ============================================
   Custom Message Styling Support
   ============================================ */

/* Phone icon styling */
.kbcfp-message .kbcfp-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.kbcfp-message .kbcfp-phone i {
    font-size: 20px;
}

/* Contact button styling */
.kbcfp-message .kbcfp-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #232323;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.kbcfp-message .kbcfp-btn:hover {
    background-color: #444444;
    color: #ffffff;
    text-decoration: none;
}

/* Icon support */
.kbcfp-message i.material-icons,
.kbcfp-message i.fa,
.kbcfp-message i.fas,
.kbcfp-message i.far {
    vertical-align: middle;
    margin-right: 5px;
}
