/*
Theme Name: Marriage Magic Child
Description: Product purchase controls for the Marriage Magic development site.
Template: hello-elementor
Version: 1.0.0
Text Domain: marriage-magic-child
*/

body.single-product.mm-product-controls {
    --mm-green: #043433;
    --mm-gold: #d8af5f;
    --mm-muted: #7c7c80;
    --mm-outline: #f1f2f4;
}

body.single-product.mm-product-controls form.cart {
    font-family: inherit;
    text-align: center;
}

body.single-product.mm-product-controls form.cart table.variations {
    width: 100%;
    margin: 0 0 48px;
    border: 0;
}

body.single-product.mm-product-controls form.cart .variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 2px;
}

body.single-product.mm-product-controls form.cart .variable-items-wrapper .variable-item.button-variable-item {
    flex: 0 1 auto;
    width: auto !important;
    max-width: 100%;
    min-width: 44px;
    height: auto;
    min-height: 40px;
    margin: 0 !important;
    padding: 2px 20px !important;
    background: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 0 0 2px var(--mm-outline) !important;
    color: var(--mm-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

body.single-product.mm-product-controls form.cart .variable-item.button-variable-item .variable-item-span-button {
    color: var(--mm-muted);
    font: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.single-product.mm-product-controls form.cart .variable-item.button-variable-item.selected,
body.single-product.mm-product-controls form.cart .variable-item.button-variable-item[aria-checked="true"] {
    box-shadow: 0 0 0 2px var(--mm-gold) !important;
}

body.single-product.mm-product-controls form.cart .variable-item.button-variable-item.selected .variable-item-span-button,
body.single-product.mm-product-controls form.cart .variable-item.button-variable-item[aria-checked="true"] .variable-item-span-button {
    color: var(--mm-gold) !important;
}

body.single-product.mm-product-controls form.cart .single_variation {
    margin: 0 0 30px;
    text-align: center;
}

body.single-product.mm-product-controls form.cart .woocommerce-variation-price .price,
body.single-product.mm-product-controls form.cart .woocommerce-variation-price .amount {
    color: var(--mm-green);
    font-size: 40px;
    font-weight: 400;
    line-height: 2;
}

body.single-product.mm-product-controls form.cart .woocommerce-variation-price .amount bdi {
    color: inherit;
    font: inherit;
}

body.single-product.mm-product-controls form.cart .woocommerce-variation-add-to-cart,
body.single-product.mm-product-controls form.cart:not(.variations_form):not(.grouped_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    row-gap: 12px;
}

body.single-product.mm-product-controls form.cart .woocommerce-variation-add-to-cart::before,
body.single-product.mm-product-controls form.cart .woocommerce-variation-add-to-cart::after {
    content: none;
}

body.single-product.mm-product-controls form.cart .quantity {
    display: inline-flex;
    flex: 0 0 100px;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 60px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mm-gold);
    border-radius: 999px;
    box-sizing: border-box;
}

body.single-product.mm-product-controls form.cart .quantity input.qty {
    flex: 1 1 36px;
    width: 36px;
    min-width: 0;
    height: 58px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--mm-gold);
    font: inherit;
    font-size: 16px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

body.single-product.mm-product-controls form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product.mm-product-controls form.cart .quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

body.single-product.mm-product-controls form.cart .quantity .mm-quantity-step {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 0;
    height: 58px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--mm-gold);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.single-product.mm-product-controls form.cart .quantity .mm-quantity-step:disabled {
    opacity: .4;
    cursor: default;
}

body.single-product.mm-product-controls form.cart .quantity.mm-quantity-static .mm-quantity-step {
    display: none;
}

body.single-product.mm-product-controls form.cart .quantity.mm-quantity-hidden {
    display: none;
}

body.single-product.mm-product-controls form.cart .single_add_to_cart_button.button {
    display: inline-flex;
    flex: 0 1 180px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 180px;
    min-width: 0;
    height: 60px;
    margin: 0;
    padding: 0 18px;
    background: var(--mm-green);
    border: 1px solid var(--mm-green);
    border-radius: 999px;
    box-shadow: none;
    color: var(--mm-gold);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    white-space: normal;
    text-transform: none;
}

body.single-product.mm-product-controls form.cart .single_add_to_cart_button.button::before {
    content: "";
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("assets/bag.svg") center / contain no-repeat;
    mask: url("assets/bag.svg") center / contain no-repeat;
}

body.single-product.mm-product-controls form.cart .single_add_to_cart_button.button:hover:not(:disabled) {
    background: #0b4543;
    color: var(--mm-gold);
}

body.single-product.mm-product-controls form.cart .wcboost-wishlist-button.wcboost-wishlist-single-button {
    position: relative;
    display: inline-flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 1px solid var(--mm-gold);
    border-radius: 50%;
    box-shadow: none;
    color: var(--mm-gold);
    font-size: 20px;
    line-height: 1;
}

body.single-product.mm-product-controls form.cart .wcboost-wishlist-button.wcboost-wishlist-single-button:hover {
    background: #fcf8ef;
    color: var(--mm-gold);
}

body.single-product.mm-product-controls form.cart .wcboost-wishlist-button.wcboost-wishlist-single-button .wcboost-wishlist-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    color: inherit;
    line-height: 1;
}

body.single-product.mm-product-controls form.cart .wcboost-wishlist-button.wcboost-wishlist-single-button .wcboost-wishlist-button__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

body.single-product.mm-product-controls form.cart .wcboost-wishlist-button.wcboost-wishlist-single-button .wcboost-wishlist-button__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

body.single-product.mm-product-controls form.cart :is(.variable-item, .mm-quantity-step, input.qty, .single_add_to_cart_button, .wcboost-wishlist-single-button):focus-visible {
    outline: 2px solid var(--mm-green);
    outline-offset: 4px;
}

body.single-product.mm-product-controls form.cart .quantity:focus-within {
    outline: 2px solid var(--mm-green);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    body.single-product.mm-product-controls form.cart .variable-items-wrapper .variable-item.button-variable-item {
        min-height: 44px;
        padding: 2px 14px !important;
    }

    body.single-product.mm-product-controls form.cart table.variations {
        margin-bottom: 32px;
    }

    body.single-product.mm-product-controls form.cart .woocommerce-variation-price .price,
    body.single-product.mm-product-controls form.cart .woocommerce-variation-price .amount {
        font-size: 36px;
    }

    body.single-product.mm-product-controls form.cart .woocommerce-variation-add-to-cart,
    body.single-product.mm-product-controls form.cart:not(.variations_form):not(.grouped_form) {
        column-gap: 8px;
    }

    body.single-product.mm-product-controls form.cart .single_add_to_cart_button.button {
        flex-basis: 156px;
        width: 156px;
        gap: 10px;
        padding: 0 12px;
    }

    body.single-product.mm-product-controls form.cart .wcboost-wishlist-button.wcboost-wishlist-single-button {
        flex-basis: 52px;
        width: 52px;
        min-width: 52px;
        height: 60px;
        border-radius: 999px;
    }
}
