/*
Theme Name: flatsome-child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/*************** STICKY SIDE BUTTON ***************/

.button:not(.icon).sticky-side-button {
  	right: 5px; /* Negative Margin Right - Change Accordingly  */
    float: right;
	position: fixed;
	top: calc(50% - 47px);
    z-index:1;
	height: 125px;
	width: 125px;
    cursor: pointer;
    border-radius:0px !important;
    margin:0px;
}

.button:not(.icon).sticky-footer-button {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1;
    border-radius:0px !important;
    margin-bottom: 0em;
}

/*************** POPUP: PERSONAL ***************/

.popup-personal img {
    border-radius:99px; 
    border: 5px solid #fff;
    width:120px;
    height:120px;
}

.popup-personal .col-inner {
     margin-top:-80px;
}

.lightbox-content {
    border-radius:5px; 
}

/* Keep CheckoutWC cart icon count aligned with icon in nav, especially on mobile. */
.cfw-checkoutwc_cart-shortcode,
.cfw-checkoutwc_cart-shortcode .cfw-side-cart-quantity-wrap {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.cfw-checkoutwc_cart-shortcode .cfw-side-cart-quantity-wrap {
    flex-direction: row !important;
    gap: 0.2em;
}

.cfw-checkoutwc_cart-shortcode .cfw-side-cart-quantity {
    display: inline-block !important;
    line-height: 1 !important;
    padding-inline-start: 0.2em !important;
}

/* Keep the zero state hidden; the broader alignment rule above would otherwise show it. */
.cfw-checkoutwc_cart-shortcode .cfw-side-cart-quantity.cfw-hidden {
    display: none !important;
}

/* Flatsome's [data-icon-label]:after badge can show a stale 0 next to CheckoutWC count. */
.cfw-checkoutwc_cart-shortcode[data-icon-label]::after,
.cfw-checkoutwc_cart-shortcode [data-icon-label]::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 849px) {
    .nav-icon .cfw-checkoutwc_cart-shortcode,
    .html_nav_position_text_top .cfw-checkoutwc_cart-shortcode {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle;
    }

    /* Prevent duplicate cart counters on mobile: keep only mobile-nav shortcode. */
    .html_topbar_right .cfw-checkoutwc_cart-shortcode {
        display: none !important;
    }
}

/* CheckoutWC side cart redesign to match the compact mobile drawer shown in the screenshot. */
#cfw-side-cart {
    background: #fff !important;
    max-width: 480px !important;
    width: 100% !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), -18px 0 45px rgba(0, 0, 0, 0.12) !important;
}

/* Higher specificity to beat legacy inline wp-custom-css width rules. */
body #cfw-side-cart {
    width: 100% !important;
    max-width: 480px !important;
}

#cfw-side-cart .cfw-side-cart-contents-header {
    padding-top: 0.9rem;
    padding-bottom: 0.35rem;
    margin-inline: 0 !important;
    position: relative;
    text-align: center;
}

#cfw-side-cart .cfw-side-cart-contents-header .cfw-side-cart-close-btn {
    top: 1rem;
    right: 1rem;
}

#cfw-side-cart .cfw-side-cart-contents-header h2,
#cfw-side-cart .cfw-side-cart-contents-header h1 {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
}

#cfw-side-cart .cfw-side-cart-contents {
    padding: 0 0.95rem 0.95rem;
}

#cfw-side-cart .cfw-side-cart-free-shipping-progress-wrap {
    margin: 0.4rem 0 0.95rem;
    text-align: center;
}

#cfw-side-cart .cfw-side-cart-free-shipping-progress-wrap p {
    color: #1e73be;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.45rem !important;
}

#cfw-side-cart .cfw-side-cart-free-shipping-progress {
    height: 0.45rem;
    border-radius: 999px;
    overflow: hidden;
}

#cfw-side-cart .cfw-side-cart-free-shipping-progress-indicator {
    border-radius: 999px;
}

#cfw-side-cart .cfw-cart-table .cart-item-row td,
#cfw-side-cart .cfw-cart-table .cart-item-row > th {
    padding: 0.75rem 0 !important;
    vertical-align: middle;
}

#cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-image {
    width: 66px;
}

#cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-image img {
    width: 56px !important;
    border-radius: 4px;
    border-color: #e6e6e6;
}

#cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-description {
    padding-inline-start: 0.6rem;
}

#cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-title {
    font-size: 0.95rem;
    line-height: 1.15;
    font-weight: 400;
    color: #444;
}

#cfw-side-cart .cfw-cart-table .cfw-cart-item-subtotal {
    font-size: 0.98rem;
    font-weight: 700;
    color: #333;
    padding-inline-start: 0.5rem;
    white-space: nowrap;
}

#cfw-side-cart .cfw-edit-item-quantity-control-wrap {
    margin-top: 0.38rem;
}

#cfw-side-cart .cfw-quantity-stepper {
    border-radius: 999px;
    border-color: #d9d9d9;
    background: #fff;
    overflow: hidden;
}

#cfw-side-cart .cfw-quantity-stepper .cfw-quantity-stepper-btn-minus,
#cfw-side-cart .cfw-quantity-stepper .cfw-quantity-stepper-btn-plus {
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
}

#cfw-side-cart .cfw-quantity-stepper .cfw-quantity-stepper-value-label {
    min-width: 28px;
    font-size: 0.92rem;
}

#cfw-side-cart .cfw-coupon-wrap {
    margin-top: 0.95rem;
    margin-bottom: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid #d9d9d9;
}

#cfw-side-cart .cfw-promo-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

#cfw-side-cart .cfw-promo-row .form-row {
    flex: 1 1 auto;
    margin: 0 !important;
}

#cfw-side-cart .cfw-promo-row .cfw-secondary-btn {
    width: 140px;
    flex: 0 0 140px;
    border-radius: 4px;
    background: #94a8ff;
    border-color: #94a8ff;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: 46px;
}

#cfw-side-cart .cfw-promo-row input[type="text"] {
    border-radius: 4px !important;
    border-color: #d9d9d9 !important;
    min-height: 46px;
    font-size: 0.95rem;
}

#cfw-side-cart .cfw-side-cart-totals {
    padding-top: 0.25rem;
}

#cfw-side-cart .cfw-side-cart-totals table tr {
    padding: 0.45rem 0;
    font-size: 0.92rem;
}

#cfw-side-cart .cfw-side-cart-totals table tr.order-total {
    border-top: 2px solid #222;
    padding-top: 0.65rem;
    margin-top: 0.35rem;
    align-items: center;
}

#cfw-side-cart .cfw-side-cart-totals table tr.order-total th,
#cfw-side-cart .cfw-side-cart-totals table tr.order-total td {
    font-size: 1rem;
    font-weight: 800;
}

#cfw-side-cart .wc-proceed-to-checkout {
    padding-top: 0.85rem;
}

#cfw-side-cart .wc-proceed-to-checkout .cfw-primary-btn,
#cfw-side-cart .wc-proceed-to-checkout a.button,
#cfw-side-cart .wc-proceed-to-checkout button {
    width: 100%;
    background: #2f35ff !important;
    border-color: #2f35ff !important;
    border-radius: 5px !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.9rem 1rem !important;
}

@media (max-width: 767.98px) {
    #cfw-side-cart {
        max-width: 100% !important;
        width: 100% !important;
    }

    body #cfw-side-cart {
        max-width: 100% !important;
        width: 100% !important;
    }

    #cfw-side-cart .cfw-side-cart-contents {
        padding-inline: 1rem;
    }

    #cfw-side-cart .cfw-cart-table .cart-item-row .cfw-cart-item-title {
        font-size: 0.95rem;
    }

    #cfw-side-cart .cfw-promo-row {
        gap: 0.5rem;
    }

    #cfw-side-cart .cfw-promo-row .cfw-secondary-btn {
        width: 132px;
        flex-basis: 132px;
    }
}

@media (max-width: 849px) {
    body #cfw-side-cart {
        width: 100% !important;
        max-width: 100% !important;
    }
}
