/*
Theme Name: Astra Child
Theme URI: xxx
Template: astra
Author: xxxxxx
Description: xxx
Version: xxx
Updated: xxx

*/



/* 
* Lucas code: kod na formularz do usuwania konta ktory wyswietla sie w moje konto woocommerce. 
Robi shortcode ktory umieszcze na https://alhit.pl/account-delete/ ; short code to [account_delete_form]
z chat gpt 2024.09.04; https://chatgpt.com/c/1bcc5efd-c061-47ba-90d4-25a92c0bc548
*/

/* Stylizacja kontenera i wyśrodkowanie */
.account-delete-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Ustawienie na początek, by margines górny był efektywny */
    margin-top: 100px; /* Dostosuj wysokość do swojego headera */
    padding: 20px;
    box-sizing: border-box;
}

.account-delete-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Stylizacja tabeli */
.account-delete-form table {
    width: 100%;
    border-collapse: collapse;
}

.account-delete-form td {
    padding: 10px;
    border: 1px solid #ddd;
}

    .account-delete-form td:first-child {
        width: 50px; /* Ustawienie szerokości komórki z checkboxami */
        text-align: center;
    }

/* Stylizacja przycisku */
.account-delete-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}

    .account-delete-form button:hover {
        background-color: #d62828;
    }




/* 
* Lucas code: chat gpt oraz deepseek. 2025.02.05. Dodaje przyciski pod produktami które korzystają z kodu od vc lovers,
czyli kodu który dorabia u vendora pola Minimalna ilość zamówienia oraz Ilość w paczce
*/

/* Ukrywanie przycisków "+" i "-" (qib-button) dla Grupy 1, 2 i 3 */
.hide-qty-increment .qib-button {
    display: none !important;
}

/* Ukrywanie pola ilości (qty) oraz przycisku "Dodaj do koszyka" tylko dla Grupy 1, 2 i 3 */
.hide-qty-increment .quantity,
.hide-qty-increment .add_to_cart_button {
    display: none !important;
}

/* Stylizacja kontenera licznika ilości */
.custom-quantity-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-top: 10px;
    margin-bottom: 8px !important; /* Dodana przerwa 10px pod licznikiem ilości */
}

/* Styl dla przycisków + i - */
.custom-qty-button {
    width: 40px !important;
    height: 40px !important;
    background: #FFA500 !important;
    color: white !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0px !important;
    transition: 0.2s ease-in-out !important;
    border: 1px solid #DA7F1A !important; /* ramka */
}

    .custom-qty-button:hover {
        background: #F38226 !important;
    }

/* Styl dla pola ilości */
.custom-qty-input {
    width: 50px !important;
    height: 40px !important;
    text-align: center !important;
    font-size: 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    border: 1px solid #DA7F1A !important; /* ramka pola ilości */
}

    /* Usunięcie strzałek z pól input typu number */
    .custom-qty-input::-webkit-outer-spin-button,
    .custom-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.custom-qty-input {
    -moz-appearance: textfield; /* Usunięcie strzałek w Firefox */
}

.custom-add-to-cart-button {
    display: inline-block;
    background-color: #e87121 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    font-size: .94117647058824rem !important;
    line-height: 1em !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s linear !important;
}

    .custom-add-to-cart-button:hover {
        background-color: #d45f1d !important;
        transform: scale(1.05) !important;
    }

    .custom-add-to-cart-button:active {
        transform: scale(0.95) !important;
    }

    .custom-add-to-cart-button.loading {
        background-color: #FFA500 !important;
        opacity: 0.6 !important;
    }

    .custom-add-to-cart-button.wc-click-effect {
        transform: scale(0.95);
    }

.custom-add-to-cart-button {
    display: block !important;
    background-color: #e87121 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 12px 20px !important; /* Mniejszy padding, węższy guzik */
    min-width: 120px !important; /* Minimalna szerokość */
    max-width: 80% !important; /* Maksymalna szerokość */
    border-radius: 25px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    margin: 0 auto !important; /* Wyśrodkowanie */
}



    .custom-add-to-cart-button:hover {
        background-color: #d45f1d !important;
        transform: scale(1.05) !important;
    }

    .custom-add-to-cart-button:active {
        transform: scale(0.95) !important;
    }

    /* Animacja i zmiana koloru po dodaniu do koszyka */
    .custom-add-to-cart-button.added {
        background-color: #28a745 !important;
        color: #ffffff !important;
    }

        .custom-add-to-cart-button.added:after {
            font-family: WooCommerce !important;
            content: '\e017';
            margin-left: .53em;
            vertical-align: bottom;
        }

    /* Ikonka potwierdzająca dodanie */
    .custom-add-to-cart-button .added-icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.2L4.8 12l-1.4 1.4 5.6 5.6 10-10L17.6 7z"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        margin-left: 5px;
        vertical-align: middle;
    }
    /* Styl przycisku po kliknięciu */
    .custom-add-to-cart-button.loading {
        background-color: #FFA500 !important;
        opacity: 0.6 !important;
    }

    /* Efekt po dodaniu do koszyka */
    .custom-add-to-cart-button.added {
        background-color: #E87121 !important; /* pomarańczowy jak alhit astra */
        color: #ffffff !important;
        border: none !important;
    }

    /* Efekt kliknięcia */
    .custom-add-to-cart-button.clicked {
        transform: scale(0.9);
        transition: transform 0.2s ease-in-out;
    }


/* 
* Lucas code:
*/
form.search-form {
    display: none !important;
}

/* 
* Lucas code: uswanie u klienta w zamówienia:  faktura
*/
.woocommerce .woocommerce-orders-table__cell-order-actions .button.invoice {
    display: none !important;
}
/*usuwa całą kolumnę "dokument sprzedaży" z moje zamówienia*/
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions + td {
    display: none !important;
}

.woocommerce table.my_account_orders th:last-child,
.woocommerce table.my_account_orders td:last-child {
    display: none !important;
}


/*poniższy kod usuwa w szczegółach danego zmówienia w szczegółach zamówienia*/
/*.woocommerce table.woocommerce-table.woocommerce-table--order-details tfoot tr:last-child {*/
/*display: none !important;*/
/*}*/



/* 
* Lucas code: usuwanie z checkout i koszyka pól kuponów rabatowych, bo kupony dodaje automatycznie moja wtyczka aUmowy i rabaty
*/
/* Ukryj pole kuponu w checkout */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-info {
    display: none !important;
}

/* Ukryj tylko pole kuponu w koszyku WooCommerce */
.woocommerce-cart .coupon input,
.woocommerce-cart .coupon label {
    display: none !important;
}

/* Dla bezpieczeństwa, usuń ewentualne komunikaty info przy kuponach */
.woocommerce-cart .coupon .woocommerce-info {
    display: none !important;
}



/* 
* Lucas code: kod na usunięcie w zakładce kategorie liczby ilości sztuk przy kateogorii, bo wliczało też produkty których stan to 0 szt.
*/
.wc-block-product-categories-list-item-count {
    display: none !important;
}


/* 
* Lucas code: kod na kolowanie przycisków na zielono "dodaj do koszyka" gdy produkt już jest już dodany do koszyka
*/
/* Zielony przycisk jeśli produkt w koszyku */
.add_to_cart_button.alhit-in-cart,
.single_add_to_cart_button.alhit-in-cart,
.custom-add-to-cart-button.alhit-in-cart {
    background-color: #90ee90 !important;
    color: #000000 !important;
    border: 1px solid #4CAF50 !important;
}



/* 
* Lucas code: check box w zamówieniu znika. W functions php jest kod ktory sprawia że zawsze jest anaczony "wysłać na inny adres", bo dane do FV mogą być inne niż adres wysyłki. więc na wszelki robięto domyślnie włączone
*/
#ship-to-different-address-checkbox {
    display: none !important;
}



/* 
* Lucas code:
*/



/* 
* Lucas code:
*/



/* 
* Lucas code:
*/