@import "./sl-quote-icon.css";

/* General button styles */
.single_add_to_cart_button,
.sl_single_add_to_cart_button {
    color: var(--btn-color-hover, #3E3E3E);
    background-color: var(--btn-bgcolor-hover, #e0e0e0);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px; /* Adjust margin as needed */
    margin-right: 0;
    margin-left: var(--button-spacing, 5px);
    box-sizing: border-box; /* Ensure padding is included in the width */
    min-width: 150px; /* Minimum width for desktop */
    width: auto; /* Default width for desktop */
}

.single_add_to_cart_button:hover,
.sl_single_add_to_cart_button:hover{
    background-color: var(--btn-bgcolor-hover, #e0e0e0);
}

/* Ensure buttons are aligned correctly next to the quantity field */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .sl_single_add_to_cart_button {
    margin-right: 0px;
}

/* Responsive adjustments for general products */
@media (max-width: 768px) {
    .woocommerce div.product form.cart {
        display: flex;
        flex-direction: column;
    }
    .woocommerce div.product form.cart .button,
    .woocommerce div.product form.cart .single_add_to_cart_button,
    .woocommerce div.product form.cart .sl_single_add_to_cart_button {
        width: 80%; /* Full width on mobile */
        margin-right: 0;
        margin-bottom: 10px; /* Add some space between buttons */
    }
}

/* Additional responsive adjustments for variation products */
@media (max-width: 768px) {
    .woocommerce-variation-add-to-cart {
        display: flex;
        flex-direction: column;
    }
    .woocommerce-variation-add-to-cart .button,
    .woocommerce-variation-add-to-cart .single_add_to_cart_button,
    .woocommerce-variation-add-to-cart .sl_single_add_to_cart_button{
        width: 80%; /* Full width on mobile */
        margin-right: 0;
        margin-bottom: 10px; /* Add some space between buttons */
    }
}



/* Add this CSS to your main stylesheet */
@keyframes quote-added {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.quote-added-animation {
    animation: quote-added 1.5s ease-in-out;
}

/* classes for the quote list form */

.d-flex {
        display: flex;
        gap: 8px;
    }

.flex-item {
        flex: 1;
    }

.sl-quote-quantity-input {
    width: 100px !important;    /* Or whatever size you prefer */
    max-width: 120px;
    min-width: 60px;
    text-align: right;
    /* You can also add padding if you like */
}

.sl-quote-quantity-input::-webkit-inner-spin-button,
.sl-quote-quantity-input::-webkit-outer-spin-button {
    opacity: 1 !important;
    pointer-events: auto !important;
}

 .sl_register_buttons {
     margin-top: 20px;
     display: flex;
     align-items: center;
     justify-content: flex-end;
 }
.sl_register_buttons label {
    margin-left: 8px; /* Adjust as necessary */
}
.sl_register_buttons input[type="submit"] {
    margin-left: 16px; /* Adjust as necessary */
}
.disabled-submit {
    background-color: #ccc; /* Disabled button background */
    cursor: not-allowed;
}

/* error message when uploading wrong files in the quote list*/
.sl-error-message {
    color: red;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* Standardmäßig das reCAPTCHA-Badge ausblenden */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Das reCAPTCHA-Badge nur auf der Datenschutzerklärung anzeigen */
.privacy-policy .grecaptcha-badge {
    visibility: visible !important;
}