/*----------ATC BUTTON----------*/

.ti-custom-add-to-cart-button.in-cart {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

.ti-custom-add-to-cart-button .button-text {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 360px) {
    .ti-custom-add-to-cart-button .button-text {
        flex-wrap: wrap;
        line-height: 1.2;
    }
}

.ti-custom-add-to-cart-button .woocommerce-Price-amount {
    margin-left: 5px;
}

.ti-custom-add-to-cart-button.loading {
    opacity: 0.5;
    cursor: not-allowed;
}

.ti-custom-add-to-cart-button i {
    font-size: 17px;
}

/*----------ATC TOAST----------*/

.ti-toast-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 9999;
    width: fit-content;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.ti-toast {
    background-color: var(--ti-ldm-background-color-white-primarydark);
    border: 2px solid var(--ti-border-color-grey);
    color: var(--ti-ldm-text-color-black-white);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 10px;
}

.ti-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.ti-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 18px 32px;
    font-weight: 600;
    font-size: var(--ti-font-size-paragraph);
}

.ti-toast-content i {
    color: var(--ti-ldm-text-color-black-white);
    margin: 2px 10px 0 0;
}

#ti-toast-message {
    flex-grow: 1;
    margin-right: 20px;
}

#ti-atc-toast-close-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ti-ldm-text-color-black-white);
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 18px;
    width: 20px;
    height: 20px;
}

.ti-toast-action {
    border-top: 2px solid var(--ti-border-color-grey);
    padding: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 524px) {
    .ti-toast-content {
        padding: 18px;
    }
}
