.az-custom-addtocart {
    width: 100%;
}

.az-custom-addtocart form.cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin: 0;
    width: 100%;
}

.az-custom-addtocart.az-full-width form.cart,
.az-custom-addtocart.az-full-width .woocommerce-variation-add-to-cart {
    width: 100% !important;
    max-width: none !important;
    align-items: stretch !important;
    justify-content: center !important;
}

.az-custom-addtocart .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.az-custom-addtocart.az-full-width form.cart {
    flex-direction: column;
}

.az-custom-addtocart.az-full-width .woocommerce-variation-add-to-cart {
    flex-direction: column;
}

.az-custom-addtocart.az-full-width .single_add_to_cart_button {
    flex: 0 0 100% !important;
    align-self: stretch !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.az-custom-addtocart .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 16px 24px;
    border: 0;
    border-radius: 8px;
    background: #1f1712;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.az-custom-addtocart .single_add_to_cart_button:hover,
.az-custom-addtocart .single_add_to_cart_button:focus {
    background: #3b2a20;
    color: #fff;
}

.az-custom-addtocart .single_add_to_cart_button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.az-custom-addtocart .single_add_to_cart_button.disabled,
.az-custom-addtocart .single_add_to_cart_button:disabled,
.az-custom-addtocart .single_add_to_cart_button.loading {
    cursor: not-allowed;
    opacity: 0.55;
}

.az-custom-addtocart .single_add_to_cart_button.loading {
    pointer-events: none;
}

.az-custom-addtocart .single_add_to_cart_button.loading .az-atc-button-content:after {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    content: "";
    animation: az-atc-spin 700ms linear infinite;
}

.az-custom-addtocart .az-atc-button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    gap: 10px;
    width: 100%;
    text-align: center;
}

.az-custom-addtocart.az-icon-after .az-atc-icon {
    order: 2;
}

.az-custom-addtocart .az-atc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

.az-custom-addtocart .az-atc-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.az-custom-addtocart .az-atc-text {
    min-width: 0;
}

.az-custom-addtocart .quantity {
    margin: 0;
}

.az-custom-addtocart.az-full-width .quantity {
    flex: 0 0 auto;
    align-self: flex-start;
}

.az-custom-addtocart .quantity .qty {
    width: 84px;
    min-height: 56px;
    padding: 0 12px;
    border: 1px solid rgba(31, 23, 18, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #1f1712;
    text-align: center;
}

.az-custom-addtocart.az-hide-quantity .quantity {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.az-custom-addtocart .variations {
    width: 100%;
    margin: 0 0 14px;
    border: 0;
}

.az-custom-addtocart .variations th,
.az-custom-addtocart .variations td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
}

.az-custom-addtocart .variations tr + tr th {
    padding-top: 12px;
}

.az-custom-addtocart .variations label {
    display: block;
    margin: 0 0 6px;
    color: #1f1712;
    font-weight: 700;
}

.az-custom-addtocart .variations select {
    width: 100%;
    min-height: 44px;
}

.az-custom-addtocart .reset_variations {
    display: inline-block;
    margin-top: 8px;
}

.az-custom-addtocart .single_variation_wrap,
.az-custom-addtocart .woocommerce-variation {
    width: 100%;
}

.az-custom-addtocart.az-full-width .single_variation_wrap {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
}

.az-custom-addtocart.az-full-width .quantity + .single_add_to_cart_button {
    width: 100% !important;
}

.az-custom-addtocart.az-full-width.az-hide-quantity .single_add_to_cart_button,
.az-custom-addtocart.az-full-width.az-hide-quantity .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex-basis: 100% !important;
}

.az-custom-addtocart--notice {
    padding: 14px 16px;
    border: 1px solid rgba(31, 23, 18, 0.15);
    border-radius: 8px;
    background: #fff8ed;
    color: #1f1712;
}

@keyframes az-atc-spin {
    to {
        transform: rotate(360deg);
    }
}
