/*
 * ISC License
 *
 * Copyright (c) 2025 idnovate.com
 * idnovate is a Registered Trademark & Property of idnovate.com, innovación y desarrollo SCP
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 * @author    idnovate
 * @copyright 2025 idnovate.com
 * @license   https://www.isc.org/licenses/ https://opensource.org/licenses/ISC ISC License
 */

/* Bootstrap classes */
.form-control {
    color: black;
}
[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed !important;
}

select:has(option[aria-disabled="true"]:checked) {
  color: rgba(0,0,0,0.5);
}
 select option {
   color: rgba(0,0,0,1);
}

select option[aria-disabled="true"] {
    color: rgba(0,0,0,0.5);
    cursor: not-allowed;
}

.float-xs-left {
    float: left;
}

.variant-links {
    display: none;
}

.addtocartattrproductlist-product-variants .product-variants-item {
    margin: 0.5rem 0;
    display: block;
    text-align: left;
}

.addtocartattrproductlist-product-variants .product-variants-item .control-label {
    margin-bottom: 0.25rem;
    display: inline-block;
}

.addtocartattrproductlist .input-radio {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.addtocartattrproductlist-quantity input.quantity_wanted {
    width: 2rem;
    height: 2.75rem;
    padding: 0.175rem 0.5rem;
    color: #232323;
    background-color: #fff;
    text-align: center;
}

.addtocartattrproductlist-quantity .bootstrap-touchspin .input-group-btn,
.addtocartattrproductlist-quantity .bootstrap-touchspin button.btn-touchspin {
    line-height: 1rem;
}

.addtocartattrproductlist .with-quantity-field .add-to-cart,
.addtocartattrproductlist .customize-product {
    padding: 0.625rem 0.25rem .5rem;
    flex: 1;
    height: 2.75rem;
    line-height: inherit;
    white-space: normal;
}

.addtocartattrproductlist .product-add-to-cart {
    flex: 1;
}

.addtocartattrproductlist .product-quantity {
    display: flex;
    margin-top: 0.5rem;
}

.addtocartattrproductlist .product-quantity .qty {
    margin-right: 0.4rem;
    margin-bottom: 0;
    width: auto;
}

.addtocartattrproductlist .product-quantity .add,
.addtocartattrproductlist .add-to-cart,
.addtocartattrproductlist .customize-product {
    width: 100%;
    margin-bottom: 0;
}

.addtocartattrproductlist .add.with-quantity-field {
    width: 100%;
}

.addtocartattrproductlist label {
    margin-bottom: 0;
    line-height: 1;

}

.addtocartattrproductlist .js-product-quantity {
    flex-shrink: 0;
}

.addtocartattrproductlist .material-icons.shopping-cart {
    margin-right: auto;
    font-size: inherit;
}

.addtocartattrproductlist .radio-label,
.input-radio:checked+span.radio-label {
    padding: 0.25rem 0.625rem;
}

.addtocartattrproductlist .product-variants>.product-variants-item .attribute_group_show {
    width: min-content;
    min-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.addtocartattrproductlist .product-variants>.product-variants-item .input-container {
    margin: 2px;
    line-height: 1;
    position: relative;
}

.addtocartattrproductlist .product-variants>.product-variants-item .color {
    margin: 0;
}

.addtocartattrproductlist .product-variants>.product-variants-item .select {
    width: auto;
}

.addtocartattrproductlist .product-variants>.product-variants-item .image {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.product-variants-item-color .attribute_group {
    overflow: hidden;
    margin: 0;
}

/* Radio buttons */
.addtocartattrproductlist .input-color+span, .input-color+span, .input-radio+span, .input-radio+span {
    border: grey 2px solid;
    display: inline-block;
    /*width: 1.125rem;
    height: 1.125rem;*/
}

.addtocartattrproductlist .input-color:checked+span,
.input-color:hover+span,
.input-radio:checked+span,
.input-radio:hover+span {
    border: #24b9d7 2px solid;
    background-color: rgba(36,185,215,0.5);
}

/*
#cart-subtotal-discount,
.cart-voucher .cart-summary-line .float-xs-right { display: none; }
*/
