#ck-floating-product-box {
    position: relative;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(23,20,19,0.98);
    color: #fff;
    border: 1px solid #ffa200;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    font-family: 'Poppins', sans-serif;
    display: none;
    z-index: 999999;
}
#ck-floating-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #ff3b3b;
    color: #fff;
    border: none;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 2147483647;
    line-height: 34px;
    text-align: center;
}
#ck-floating-close:hover {
    background: #e60000;
}
#ck-floating-product-box.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}
#ck-floating-product-box .ck-product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
#ck-floating-product-box .ck-product-price {
    color: #ffa200;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}
#ck-floating-product-box .ck-add-to-cart {
    background: #ffa200;
    color: #141414;
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#ck-floating-product-box .single_add_to_cart_button {
    background: #ffa200 !important;
    color: #141414 !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: bold !important;
    width: 100% !important;
    padding: 12px !important;
    margin-top: 10px !important;
}
#ck-floating-product-box .quantity input.qty {
    width: 100%;
    max-width: 80px;
    padding: 10px;
    border: 1px solid #ffa200;
    border-radius: 6px;
    background-color: #1f1f1f;
    color: #fff;
    font-size: 14px;
    text-align: center;
    outline: none;
    box-shadow: none;
}

#ck-floating-product-box .quantity input.qty:focus {
    border-color: #ffb933;
}

#ck-floating-product-box .quantity {
    margin-bottom: 10px;
    display: block;
}
#ck-floating-product-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ffa200;
    border-radius: 6px;
    background-color: #1f1f1f;
    color: #fff;
    font-size: 14px;
    outline: none;
    appearance: none; /* ukrywa domyślną strzałkę */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffa200'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

#ck-floating-product-box select:focus {
    border-color: #ffb933;
}

#ck-floating-product-box .reset_variations {
    color: #ffa200;
    font-size: 13px;
    margin-left: 10px;
    text-decoration: none;
}

#ck-floating-product-box .reset_variations:hover {
    text-decoration: underline;
}
#ck-floating-product-box .variations tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* zmień na center, jeśli chcesz wyśrodkować wszystko */
    margin-bottom: 10px;
}

#ck-floating-product-box .variations td.label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}
#ck-floating-tab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffa200;
    color: #141414;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 999999;
}

/* Mobile styl dla boxa */
@media (max-width: 768px) {
    #ck-floating-product-box {
        width: 100%;
        max-width: none;
        bottom: 0;
        z-index: 2147483646;
        left: 0;
        right: 0;
        border-radius: 10px 10px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        display: block !important; /* zawsze widoczny w DOM */
    }
    #ck-floating-product-box.visible {
        display: block;
    }
    #ck-floating-product-box.open {
        transform: translateY(0);
    }
    #ck-floating-tab {
        display: block !important; /* gwarancja wyświetlenia */
    }
    #ck-floating-close {
        top: 15px !important;
        right: 15px !important;
        display: block !important;
        opacity: 1 !important;
    }
}
#ck-floating-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2147483645; /* tuż pod boxem */
    pointer-events: auto;
}
#ck-floating-overlay.active {
    display: block;
}
#ck-floating-tab {
    cursor: pointer;
}

#ck-floating-tab, #ck-floating-close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (min-width: 769px) {
    #ck-floating-close {
        display: none !important;
    }
}