/*
Theme Name: Beaver Builder Child Theme
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/
/* Fonts */
@font-face {
    font-family: 'Figtree';
    src: url('./fonts/Figtree-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Figtree';
    src: url('./fonts/Figtree-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Global styles */
* {
    font-family: 'Figtree', sans-serif !important;
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

/* Logos */


/* Placeholder & Labels */
input::placeholder,
textarea::placeholder,
label {
    color: #2F57A3 !important;
    opacity: 1 !important;
}

/* Checkboxes */
.fl-terms-checkbox {
    margin-bottom: 50px !important;
}

/* Font Awesome */
.fa, .far, .fas {
    font-family: "Font Awesome 5 Free" !important;
}

/* Inputs & Textareas */
input[type=text],
input[type=password],
input[type=email],
input[type=tel],
input[type=date],
input[type=month],
input[type=week],
input[type=time],
input[type=number],
input[type=search],
input[type=url],
textarea {
    background-color: white;
    border: none !important;
    border-bottom: 2px solid #2F57A3 !important;
    height: 50px;
    margin-bottom: 25px;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

input:focus,
textarea:focus {
    font-weight: bold;
    color: #2F57A3 !important;
    border-bottom: 4px solid #2F57A3 !important;
}

/* WP Admin */
#wpadminbar .ab-icon,
#wpadminbar .ab-item:before,
#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
.wp-admin-bar-arrow {
    font: normal 20px/1 dashicons !important;
}
.fl-button{
    border-radius: 50px!important;
}


/* Buttons */
.wpcf7-submit,
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content .wc-forward,
.button,
.coupon .button,
.wc-block-components-checkout-place-order-button,
.shop_table .button,
.cart_totals .button,
.wc-block-components-totals-coupon__button,
.return-to-shop .button {
    background-color: #2F57A3 !important;
    color: white !important;
    border: none;

    text-transform: uppercase;
    height: 50px;
    width: 100%;
    border-radius: 50px!important;
    display: block;
    text-align: center;
    line-height: 30px !important;
}
.wpcf7-submit {
    background: #eb5914 !important;
    font-size: 1.2em;
}
.wpcf7-submit:hover,
.wpcf7-submit:focus-visible,
.wpcf7-submit:focus,
.wpcf7-submit:active,
.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content .wc-forward:hover,
.wc-block-components-checkout-place-order-button:hover,
.return-to-shop .button:hover,
.button:hover,
.coupon .button:hover,
.woocommerce-mini-cart__buttons .checkout:hover,
.shop_table .button:hover,
.cart_totals .button:hover,
.wc-block-components-totals-coupon__button:hover {
    background-color: #264785 !important;
}

/* WooCommerce customizations */
.woocommerce .addresses .title a,
.woocommerce-page .addresses .title a {
    position: relative;
    float: none !important;
}

.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

.cart-item .qty{
    padding-left: 20px!important;
}
.woocommerce .woocommerce-MyAccount-navigation ul li,
.woocommerce-page .woocommerce-MyAccount-navigation ul li,
.woocommerce-MyAccount-navigation-link--customer-logout {
    border: none !important;
}

.woocommerce .woocommerce-MyAccount-navigation ul li a,
.woocommerce-page .woocommerce-MyAccount-navigation ul li a,
.woocommerce-MyAccount-navigation-link--customer-logout a {
    font-weight: 700;
    color: #2F57A3 !important;
    font-size: 1.2em !important;
}
.wc-block-components-totals-item__label,.wc-block-components-title{
    color: #2F57A3 !important;

}
.mini-cart-right .price-span{
    width: 100%;
    display: block;
}
/* Notices */
.wc-block-checkout__no-payment-methods-notice,
.wc-block-components-notice-banner.is-error > svg,
.woocommerce-message {
    background: #e1581b !important;
    color: white !important;
    border: none !important;
}
.woocommerce-message a{
    margin-top: 15px!important;
}
.wc-block-components-textarea:hover{
    border:none;
    outline: none !important;
    box-shadow: none !important;
}

.wc-block-formatted-money-amount {
    color: #e1581b;
}
.wc-block-components-product-name{
    font-weight: 700!important;
    color: #2F57A3 !important;
    margin-top: 0;
}
.woocommerce-Price-amount bdi,
.woocommerce-Price-amount span,.product-name a, {
    font-weight: 700!important;
    font-size: 2rem !important;
    color: #e1581b;
}
.cart-subtotal .woocommerce-Price-amount bdi,
.cart-subtotal .woocommerce-Price-amount span{
    font-size: 1.5rem!important;
}
.product-subtotal {
    width: 20% !important;
}
.cart-subtotal{
    background: white;
}

/* Product & Cart */
.woocommerce-cart-form__cart-item {
    margin-bottom: 50px !important;
}
.product-name-div {
    display: flex;
    align-items: center;
}
.product-name img {
    float: left;
}
.cart-item-name {
    margin-left: 22px;
    display: inline-block;
    width: calc(100% - 200px);
}
.bold:first-child {
    margin-left: 0;
}
.bold {
    font-weight: bold;
    margin-left: 25px;

}
.variation-line{
    padding: 10px 10px 10px 0;
}
.variation{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#add_payment_method table.cart img,
.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
    width: 100px !important;
    max-width: 150px;
}

/* Miscellaneous */
.load-more {
    text-align: center;
    margin-top: 100px;
}
#load-more-products,
.woocommerce-info {
    background: transparent !important;
    border: none !important;
    color: #2F57A3 !important;
}
.badge-empty {
    display: none !important;
}
.bb-product-filter .product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 3px;
    font-weight: 700;
    color: white;
}

/* Coupon */
.coupon {
    display: none;
    margin-top: 10px;
}
.coupon.active {
    display: block;
}
.coupon-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.wpcf7-form label{
    width: 100%;
}
.coupon-arrow {
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 16px;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    transform: rotate(90deg);
}

.wc-proceed-to-checkout .button{
    line-height: 18px !important;
}
/* Responsive */
@media screen and (max-width: 800px) {
    .b2b-logo .fl-col {
        display: flex;
        width: auto !important;
    }
}
.offcanvas-cart{
    padding-bottom: 150px;
}
/* Cart page block style */
.block-cart .cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block-cart .cart-item {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    align-items: center;
}
.product-thumb{
    padding: 15px;
}
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-wrapper input.qty {
    width: 50px;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #2F57A3;
    background: #2F57A3;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #ff6600;
    border: 1px solid #ff6600;

}

.block-cart .product-thumb img {
    width: 80px;
    height: auto;
    margin-right: 15px;
}

.block-cart .product-info {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
}

.block-cart .product-name {
    flex: 2 1 200px;
    font-weight: bold;
}

.block-cart .product-price,
.block-cart .product-quantity,
.block-cart .product-subtotal {
    flex: 1 1 100px;
}

.block-cart .cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-subtotal-mobile{
    display: none;
}
@media (max-width: 1300px) {
    body.has-blocks .fl-post-content .alignwide {
        margin: 0 !important;
    }
    }
@media (max-width: 920px) {
    .product-price {
        display: none;
    }

    .product-subtotal-pc {
        display: none;
    }

    .product-subtotal-mobile {
        display: block;
    }

    .quantity-wrapper {
        flex-direction: column-reverse;
    }

    .block-cart .cart-item {
        display: flex;
        justify-content: space-between; /* push elements apart */
        align-items: center;
        flex-wrap: nowrap; /* keep items in one row */
    }

    .block-cart .product-info {
        display: flex;
        flex: 1;
        gap: 20px;
        align-items: center;
    }

    .block-cart .product-quantity {
        order: 1; /* push quantity to the right */
        flex: 0 0 auto; /* keep its width */
        margin-left: auto; /* ensure it stays right-aligned */
    }

    .block-cart .product-price,
    .block-cart .product-subtotal {
        flex: 0 0 auto; /* keep prices compact */
    }
}
