/*
Theme Name: Hello Biz Child
Template: hello-biz
Description: A child theme for Hello Biz.
Author: Manu Reggi
Version: 1.3
*/

.single_add_to_cart_button.is-loading {
    animation: add-to-cart-pulse 2s ease-in-out infinite;
}

.wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.wc-proceed-to-checkout a.checkout-button.is-updating {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    transition: opacity 0.2s;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    justify-content: flex-end;
    flex-grow: 1;
    padding-top: 32px;
    border-top: 1px dashed #C4C4C4;
}

@keyframes cart-totals-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

@keyframes add-to-cart-pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0.2; }
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals.is-updating {
    animation: cart-totals-pulse 1s ease-in-out infinite;
    pointer-events: none;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals h2 {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals .cart-totals {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    justify-content: flex-end;
    font-family: "Bricolage Grotesque";
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -3%;
    font-weight: 500;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals .cart-totals .totals {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #565656;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals .cart-totals .totals .cart_totals-label {
    flex-grow: 1;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals .cart-totals .totals .cart_totals-value {
    color: #111111;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals .cart-totals .cart-total {
    color: #111111;
    font-weight: 600;
}

.custom-cart-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0;
    margin: 0;
    font-family: "Bricolage Grotesque";
    letter-spacing: -3%;
}

.custom-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.custom-cart-item__image-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    border: 5px solid var(--item-border-color, #000);
    overflow: hidden;
}

.custom-cart-item__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-cart-item__info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    flex-grow: 1;
    align-self: stretch;
}

.custom-cart-item__top, .custom-cart-item__bottom {
    display: flex;
    justify-content: space-between;
}

.custom-cart-item__top {
    align-items: flex-start;
    gap: 16px;
}

.custom-cart-item__bottom {
    align-items: center;
    justify-content: space-between;
}

.custom-cart-item__name {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    grid-column-gap: 24px;
    grid-row-gap: 4px;
    flex-grow: 1;
    align-self: stretch;
}

.custom-cart-item__name .cart-item__name, .custom-cart-item__price {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
    color: #111111;
}

.custom-cart-item_name .cart-item__name {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 2;
}

.custom-cart-item__price {
    white-space: nowrap;
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 2;
}

.custom-cart-item__name .variation {
    font-weight: 500;
    font-size: 1rem;
    color: #565656;
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 1;
    grid-column-end: 2;
}

@media screen and (min-width: 768px) {
	.custom-cart-item_name {
        grid-template-columns: auto max-content;
    }

	.custom-cart-item_name .cart-item__name {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .custom-cart-item__price {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
    }
    
    .custom-cart-item__name .variation {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    }
}

/*.elementor-widget-woocommerce-cart .woocommerce .custom-cart-item__quantity .quantity */

.custom-qty__native {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #7e7e7e;
    border-radius: 999px;
    overflow: hidden;
}

button.custom-qty__btn, button.custom-qty__btn:focus {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #7e7e7e;
    user-select: none;
}

button.custom-qty__btn:hover, button.custom-qty__btn:active {
    color: #000000;
    background: transparent;
    border: none;
}

input[type=text].custom-qty__display {
    width: 2rem;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    padding: 0;
    margin: 0;
    color: #7e7e7e;
}

.elementor-widget-woocommerce-cart .woocommerce .custom-cart-item__remove .remove {
    font-size: 1rem;
    font-weight: 500;
    color: #565656 !important;
    text-decoration: underline;
}

.elementor-widget-woocommerce-cart .woocommerce .custom-cart-item__remove .remove:hover {
    color: var(--wc-red) !important;
}

.custom-cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
}

.custom-cart-empty-state__icon svg {
    width: 80px;
    height: 80px;
}

.custom-cart-empty-state__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.custom-cart-empty-state__subtitle {
    font-size: 1rem;
    color: #565656;
    margin: 0;
}