/*
Theme Name: Blocksy Child
Template: blocksy
Description: Motyw potomny dla WooCommerce – modyfikacje checkout
Author: Krzysztof K
Version: 1.0
*/

/* ============================= */
/* 1. Ogólne ustawienia styli     */
/* ============================= */

/* Możesz tu dodawać własne style CSS globalne */


/* ============================= */
/* 2. Pola tekstowe WooCommerce   */
/* ============================= */
.woocommerce form.login input.input-text,
.woocommerce form.register input.input-text,
.woocommerce form.checkout input.input-text {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 10px;
}

.woocommerce form.login input.input-text:focus,
.woocommerce form.register input.input-text:focus,
.woocommerce form.checkout input.input-text:focus {
    border-color: #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}


/* ============================= */
/* 3. Checkboxy WooCommerce       */
/* ============================= */
.woocommerce form.login input[type="checkbox"],
.woocommerce form.register input[type="checkbox"],
.woocommerce form.checkout input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

/* Checkbox zaznaczony – zielony ptaszek */
.woocommerce form.login input[type="checkbox"]:checked,
.woocommerce form.register input[type="checkbox"]:checked,
.woocommerce form.checkout input[type="checkbox"]:checked {
    border-color: #28a745;
    background-color: #fff;
}

.woocommerce form.login input[type="checkbox"]:checked::after,
.woocommerce form.register input[type="checkbox"]:checked::after,
.woocommerce form.checkout input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    font-size: 16px;
    color: #28a745;
}


/* ============================= */
/* 4. Przycisk WooCommerce        */
/* ============================= */
.woocommerce form.login button.button,
.woocommerce form.register button.button,
.woocommerce form.checkout button.button {
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.woocommerce form.login button.button:hover,
.woocommerce form.register button.button:hover,
.woocommerce form.checkout button.button:hover {
    background-color: #000;
    color: #fff;
}


/* ============================= */
/* 5. Przycisk "Wróć do sklepu"  */
/* ============================= */
.woocommerce-cart .return-to-shop a.button {
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.woocommerce-cart .return-to-shop a.button:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}


/* ============================= */
/* 6. Animacja czatu WhatsApp      */
/* ============================= */
.whatsapp-float {
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background-color: #25d366;
    padding: 10px 15px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: whatsappPulse 1.5s infinite, whatsappBubbleOpacity 10s infinite;
    animation-timing-function: ease-in-out, ease-in-out;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
    opacity: 1;
    isolation: isolate;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    color: black;
}

.whatsapp-float img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.whatsapp-text {
    white-space: nowrap;
    opacity: 1;
    animation: whatsappBubbleOpacity 4s infinite ease-in-out;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes whatsappBubbleOpacity {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}


/* ============================= */
/* 7. Formularze kontaktowe CF7    */
/* ============================= */
.wpcf7-form p { margin-bottom: 8px !important; }
.wpcf7-form label { display: block; font-weight: 600; margin-bottom: 4px; color: #333; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="file"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 1px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="checkbox"] { margin-right: 8px; vertical-align: middle; }

.wpcf7-form input[type="submit"] {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #000;
    color: #fff;
}

.wpcf7-form a { color: #25d366; text-decoration: underline; }
.accept-privacy { font-weight: normal; color: #444; font-size: 14px; margin-top: 10px; }


/* ============================= */
/* 8. Przycisk w nagłówku          */
/* ============================= */
.logout-btn, .account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease-in-out;
}

.logout-btn { 
    border: none !important; 
    box-shadow: none !important;
    background: transparent !important;
}

.logout-btn img,
.account-btn img {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0;
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logout-btn:hover img,
.account-btn:hover img {
    transform: scale(1.2);
    opacity: 0.85;
}

/* Wersja mobilna */
@media (max-width: 768px) {
    .logout-btn img { width: 22px; height: 22px; }
    .account-btn img { width: 16px; height: 16px; transform: translateY(1px); }
}


/* ============================= */
/* 9. Przycisk Zadzwoń             */
/* ============================= */
.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 2px solid #000;
    border-radius: 4px;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    min-width: 0;
}

.call-btn i { margin-right: 6px; font-size: 16px; transition: transform 0.2s ease-in-out; }

.call-btn:hover { background-color: #000; color: #fff; }
.call-btn:hover i { transform: scale(1.2); }

@media (max-width: 768px) {
    .call-btn { padding: 6px 10px; font-size: 13px; }
    .call-btn i { font-size: 15px; }
}


/* ============================= */
/* 10. Tabele abonament           */
/* ============================= */
.table-responsive { width: 100%; overflow-x: auto; margin: 20px 0; border: 2px solid #ccc; border-radius: 6px; }
.table-responsive table { width: 100%; border-collapse: collapse; min-width: 500px; table-layout: fixed; }

.pricing-table th {
    background: #636a6d;
    color: white;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ccc;
    text-align: center;
    vertical-align: middle;
}

.pricing-table td { text-align: center; vertical-align: middle; padding: 12px; border: 2px solid #ccc; }

.check, .cross {
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 22px; height: 22px; line-height: 22px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

.check { background: #28a745; }
.cross { background: #bbb; }

.highlight { background: #e0f7ea; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); }

@media (max-width: 480px) {
    .pricing-table th, .pricing-table td { padding: 3px; font-size: 13px; }
}


/* ============================= */
/* 11. Checkbox FV w checkout      */
/* ============================= */
.custom-vat-section { margin-top: 20px; }
.invoice-company-field, .invoice-nip-field { margin-left: 20px; margin-top: 8px; }
