/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*
 * Biosprendimai typography fallback.
 * All site typography uses the existing self-hosted Bricks font (ID 5007).
 * Explicit heading/element settings remain in Bricks; icon fonts are not overridden.
 */
body,
body button,
body input,
body select,
body textarea,
body optgroup,
body .woocommerce,
body .woocommerce-page,
body .woocommerce form,
body .woocommerce table,
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
    font-family: "IBMPlexSans", Arial, sans-serif;
}


/* Biosprendimai Mini Cart close button.
 * Bricks creates the real close action via cartDetailsCloseIcon.
 * The native close icon is separate from the product removal action.
 */
#brxe-ilzosr .cart-detail .bricks-mini-cart-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    top: 8px !important;
    right: 9px !important;
    z-index: 5;
    width: 35px;
    height: 35px;
    min-height: 35px;
    padding: 7px !important;
    border: 1px solid #e3dace !important;
    border-radius: 7px;
    background-color: #faf8f5 !important;
    color: #4c4135;
    font-family: "IBMPlexSans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

#brxe-ilzosr .cart-detail .bricks-mini-cart-close > * {
    color: inherit;
    font-size: 17px;
    line-height: 1;
}
#brxe-ilzosr .cart-detail .bricks-mini-cart-close:hover {
    background-color: #f2e9de !important;
    border-color: #a68d71 !important;
}
#brxe-ilzosr .cart-detail .bricks-mini-cart-close:focus-visible {
    outline: 2px solid #a68d71;
    outline-offset: 2px;
}
/* Reserve room for the separate close action above the product list. */
#brxe-ilzosr .cart-detail .widget_shopping_cart_content {
    padding-top: 46px;
}

/* Move only the product-removal control to the LEFT of its image.
 * Reserve room inside the row so it cannot overlap the product thumbnail.
 * Header/cart close icon stays at the top right. */
#brxe-ilzosr .cart-detail li.woocommerce-mini-cart-item,
#brxe-ilzosr .cart-detail li.mini_cart_item {
    padding-inline-start: 27px !important;
    padding-inline-end: 0 !important;
}
#brxe-ilzosr .cart-detail li .remove,
#brxe-ilzosr .cart-detail li .remove_from_cart_button {
    position: absolute !important;
    top: 7px;
    left: 0 !important;
    right: auto !important;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #f5f5f2;
    color: #696b67;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    opacity: 1;
}
#brxe-ilzosr .cart-detail li .remove:hover,
#brxe-ilzosr .cart-detail li .remove:focus-visible {
    color: #7a4b43;
    background: #f4e8e5;
}

/* ESTO calculator inside Bricks single-product templates – 2026-10-12 */
/* Keep the native ESTO markup, price calculation and variation AJAX intact. */
#brxe-est375 .esto-calculator,
#brxe-est398 .esto-calculator,
#brxe-est333 .esto-calculator {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 10px auto 14px !important;
    font-family: "IBMPlexSans", Arial, sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}
#brxe-est375 .esto-calculator__logo,
#brxe-est398 .esto-calculator__logo,
#brxe-est333 .esto-calculator__logo {
    display: inline-block;
    flex: 0 0 auto;
    height: 36px !important;
    width: auto;
    margin: 0 !important;
    vertical-align: middle;
}
#brxe-est375 .esto-calculator__link,
#brxe-est398 .esto-calculator__link,
#brxe-est333 .esto-calculator__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: inherit;
    line-height: inherit;
}
@media (max-width: 640px) {
    #brxe-est375 .esto-calculator,
    #brxe-est398 .esto-calculator,
    #brxe-est333 .esto-calculator {
        font-size: 15px !important;
        gap: 8px;
    }
    #brxe-est375 .esto-calculator__logo,
    #brxe-est398 .esto-calculator__logo,
    #brxe-est333 .esto-calculator__logo {
        height: 32px !important;
    }
}

/* BIOSPRENDIMAI ESTO INLINE DRYER – 2026-10-12
 * Server-side ESTO shortcode. The native Woo price retains its own delivery
 * details; reordered in CSS only, so no JS required for incognito visitors. */
#brxe-pocqmn {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    column-gap: 12px;
    row-gap: 7px;
}
#brxe-pocqmn > #brxe-mnfnza,
#brxe-pocqmn > #brxe-xrutma {
    flex: 0 0 100%;
    width: 100%;
    order: 0;
}
#brxe-pocqmn > #brxe-15542e {
    display: contents !important;
}
#brxe-pocqmn #brxe-15542e p.price {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
}
#brxe-pocqmn > #brxe-est375 {
    order: 2;
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    align-self: baseline;
}
#brxe-pocqmn #brxe-est375 .bio-esto-inline {
    display: inline-flex;
    align-items: baseline;
    padding-left: 12px;
    border-left: 2px solid #b7b9b0;
    color: #596b51;
    font-family: "IBMPlexSans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
#brxe-pocqmn #brxe-15542e .custom-delivery-info {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
}
@media(max-width: 640px) {
    #brxe-pocqmn {
        column-gap: 9px;
        row-gap: 6px;
    }
    #brxe-pocqmn #brxe-est375 .bio-esto-inline {
        padding-left: 10px;
        font-size: 15px;
    }
}

/* SmartPosti paštomatų paieškos laukas – 2026-10-13 */
/* Keičiamas tik SmartPosti dropdown paieškos laukelis, ne pristatymo logika. */
body.woocommerce-checkout .itella-shipping-container .itella-select .search-bar {
    background-color: #fff !important;
    padding: 9px 8px !important;
}

body.woocommerce-checkout .itella-shipping-container .itella-select .search-bar .search-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    padding: 10px 42px 10px 13px !important;
    border: 1px solid #000 !important;
    border-radius: 4px;
    background-color: #fff !important;
    color: #111 !important;
    font-family: "IBMPlexSans", Arial, sans-serif;
    font-size: 16px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .itella-shipping-container .itella-select .search-bar .search-input::placeholder {
    color: #666;
    opacity: 1;
}

body.woocommerce-checkout .itella-shipping-container .itella-select .search-bar img {
    right: 21px !important;
    height: 18px !important;
}

/* BIOSPRENDIMAI ESTO INLINE ACCESSORIES – 2026-10-13
 * Template 3983: price + ESTO on the same line, carrier info below.
 * Keep the original Woo price/shipping markup and the Bricks add-to-cart
 * element in place. Only the ESTO shortcode output changes visually.
 */
#brxe-vgktoh {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    column-gap: 12px;
    row-gap: 7px;
}
#brxe-vgktoh > #brxe-bccmab {
    order: 0;
    flex: 0 0 100%;
    width: 100%;
}
#brxe-vgktoh > #brxe-rpslgw {
    display: contents !important;
}
#brxe-vgktoh #brxe-rpslgw p.price {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
}
#brxe-vgktoh > #brxe-est398 {
    order: 2;
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0;
    align-self: baseline;
    margin: 0 !important;
    padding: 0 !important;
}
#brxe-vgktoh #brxe-est398 .bio-esto-inline {
    display: inline-flex;
    align-items: baseline;
    padding-left: 12px;
    border-left: 2px solid #b7b9b0;
    color: #596b51;
    font-family: "IBMPlexSans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
#brxe-vgktoh #brxe-rpslgw .custom-delivery-info {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
}
#brxe-vgktoh > #brxe-wxhuvt {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
}
@media (max-width: 640px) {
    #brxe-vgktoh {
        column-gap: 9px;
        row-gap: 6px;
    }
    #brxe-vgktoh #brxe-est398 .bio-esto-inline {
        padding-left: 10px;
        font-size: 15px;
    }
}
