#plm-floating-box {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
}

.plm-floating-box-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px; /* Add some space before the button */
}

.plm-floating-box-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff; /* Match your floating box background */
    padding-top: 10px; /* Add some space above the button */
    border-top: 1px solid #ddd; /* Optional: adds a separator line */
}

#plm-add-to-cart-button {
    width: 100%;
    margin-bottom: 0;
}

.woocommerce-tabs,
.wc-tabs-wrapper {
    position: relative;
    z-index: 99999999 !important;
}

#plm-floating-box-header {
    background-color: #f1f1f1;
    padding: 10px;
    cursor: move;
    font-weight: bold;
}

#plm-floating-box-content {
    padding: 15px;
}

#plm-floating-box h3 {
    margin-top: 0;
}

#plm-floating-box p {
    margin-bottom: 10px;
}

#plm-add-to-cart {
    width: 100%;
    margin-top: 10px;
}

.error-highlight {
    border: 2px solid red !important;
}

#plm_price_display {
    margin-top: 10px;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.save-percentage {
    animation: pulse 2s infinite;
    display: inline-block;
}

@media screen and (max-width: 768px) {
    #plm-floating-box {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-height: 80vh;
        overflow-y: auto;
        background-color: #f8f8f8;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        z-index: 1000;
    }

    #plm-toggle-icon {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: #041821;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        font-size: 24px;
        z-index: 1001;
        cursor: pointer;
    }
}

@media screen and (min-width: 769px) {
    #plm-toggle-icon {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: #041821;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        font-size: 24px;
        z-index: 1001;
        cursor: pointer;
    }
}

#plm-quote-box {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

#plm-quote-box .total {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

#plm-quote-box .message {
    font-size: 0.9em;
    color: #666;
}
