/*
 * STL Selector
 */

/* .stl-selector,
.stl-combination-selector,
.stl-color-selector {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
} */

.stl-selector-label {
    display: block;
    position: relative;
    margin-bottom: 6px;
}

.stl-selector-notice {
    display: block;
    margin-bottom: 6px;
    color: #b32d2e;
}

.stl-selector-options,
.stl-color-options {
    display: grid;
    grid-gap: 15px 8px;
    grid-template-columns: repeat(4, 1fr);
}

.stl-selector-option-wrapper,
.stl-color-option-wrapper {
    cursor: pointer;
    text-align: center;
}

.stl-selector-option-wrapper[data-stock="0"],
.stl-color-option-wrapper[data-stock="0"] {
    cursor: not-allowed;
    opacity: .5;
}

.stl-selector-option-empty .stl-selector-option {
    background-color: #fff;
    line-height: 1;
}

.stl-selector-option,
.stl-color-option {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 102px;
    margin-bottom: 10px;
    border: 2px solid #f7f7f7;
    font-weight: 400;
    font-size: 18px;
}

.stl-selector-options .stl-selector-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stl-selector-option-wrapper.active .stl-selector-option,
.stl-color-option-wrapper.active .stl-color-option {
    border-color: #cd797f;
}

.stl-selector-option-wrapper.active .stl-selector-option::after,
.stl-color-option-wrapper.active .stl-color-option::after {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    position: absolute;
    left: -1px;
    bottom: -1px;
    background-color: #cd797f;
    background-image: url( '../../assets/media/check.svg' );
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.stl-selector-option-wrapper.disabled,
.stl-color-option-wrapper.disabled {
    opacity: .5;
    cursor: not-allowed;
}

.stl-selector-tooltip {
    position: relative;
    top: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 3px;
    border-radius: 50%;
    background-color: #446e40;
    color: #fff;
    font-size: 14px;
    cursor: help;
}

.stl-selector-tooltip-content {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 0;
    transform: translateX(-50%);
    max-width: 220px;
    padding: 10px 20px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 1;
}

.stl-selector-tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 51%;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.9);
    transform: rotate(45deg);
}

.stl-selector-tooltip:hover + .stl-selector-tooltip-content {
    display: block;
}

.stl-selector-option-label {
    display: block;
    margin-bottom: 6px;
    color: black;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.stl-selector-option-wrapper.active .stl-selector-option-label {
    font-weight: 700;
    color: #cd797f;
}

.stl-base .sold-out,
.stl-addons .sold-out {
    font-size: 12px;
}

.stl-selector-option-price {
    display: block;
    color: #446e40;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.stl-selector-option-price .woocommerce-Price-amount.amount {
    font-size: 14px !important;
}

@media ( max-width: 767px ) {
    .stl-selector-tooltip-content {
        transform: translateX(0);
    }

    .stl-selector-tooltip-content::after {
        opacity: 0;
    }
}

@media ( max-width: 576px ) {
    .stl-selector-options, .stl-color-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*
 * Shop page
 */
.archive.woocommerce ul.products li.product-type-shop-the-look .rey-loopPrice {
    display: none; 
}

.archive.woocommerce ul.products li.product-type-shop-the-look .woocommerce-loop-product__title {
    margin-bottom: 24px !important;
}

.archive.woocommerce ul.products li.product.rey-wc-skin--basic.is-animated .rey-productFooter-item {
    overflow: unset;
}

.archive.woocommerce ul.products li.product.rey-wc-skin--basic.is-animated .rey-productFooter-item .rey-productFooter-inner {
    transform: translateY(0);
}

.archive.woocommerce ul.products li.product.rey-wc-skin--basic.is-animated .rey-productLoop-footer>.price:not(:only-child) {
    position: relative;
    top: 0;
    margin-bottom: 12px;
    padding-top: 12px;
    transform: translateY(0);
}

.archive.woocommerce ul.products li.product.rey-wc-skin--basic.is-animated:hover .rey-productLoop-footer .woocommerce-Price-amount {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/*
 * Product page
 */
.single-product .product-type-shop-the-look.rey-swatches.--tabs-noTitles {
    display: none;
}

.stl-price {
    margin-top: 40px;
    margin-bottom: 30px;
}

.stl-price .amount {
    font-size: 32px;
    font-weight: 700;
}

/*
 * Cart
 */
.cart_item.stl_cart_item {
    background-color: #f8f8f8;
}

.stl_cart_item .woocommerce-cart-form__cart-name {
    position: relative;
    padding-left: 60px !important;
}

.stl_cart_item .woocommerce-cart-form__cart-name::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 23px;
    height: 20px;
    width: 20px; 
    background-size: contain;
    background-image: url( '../../assets/media/turn-left.svg' );
}

@media ( max-width: 768px ) {
    .woocommerce table.shop_table .stl_cart_item .product-price,
    .woocommerce table.shop_table .stl_cart_item .product-quantity,
    .woocommerce table.shop_table .stl_cart_item .product-subtotal {
        display: none;
    }
}

/*
 * Mini cart
 */
.woocommerce-mini-cart .cart_item.stl_cart_item {
    /* display: none; */
}

/* 
 * Order received
 */
.order_details .woocommerce-table__line-item.stl-item {
    position: relative;
    background-color: #eee;
}

.order_details .woocommerce-table__line-item.stl-item .product-name {
    padding-left: 55px;
}

.order_details .woocommerce-table__line-item.stl-item .product-name::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    height: 20px;
    width: 20px;
    background-size: contain;
    background-image: url( '../../assets/media/turn-left.svg' );
}

/*
 * Product images
 */
.product-type-shop-the-look .woocommerce-product-gallery__wrapper {
    flex-direction: row-reverse !important;
}

.woocommerce div.product.product-type-shop-the-look .woocommerce-product-gallery .woocommerce-product-gallery__thumbs {
    width: auto !important;
    align-items: flex-start;
    margin-right: 16px;
}

.product-type-shop-the-look .woocommerce-product-gallery__wrapper .splide__list {
    flex-direction: column;
}

.product-type-shop-the-look .woocommerce-product-gallery__wrapper .splide__list img {
    margin-bottom: 20px;
}

/*
 * STL Selector (new)
 */
.stl-field {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stl-field-options {
    display: grid;
    grid-gap: 16px 8px;
    grid-template-columns: repeat(5, 1fr);
}

.stl-field-option {
    cursor: pointer;
}

.stl-field-option[data-stock="0"] {
    cursor: not-allowed;
    opacity: .5;
}

.stl-field-head {
    /* display: flex; */
    /* align-items: center; */
    position: relative;
    margin-bottom: 12px;
}

.stl-field-notice {
    color: #b32d2e;
    font-size: 16px;
}

.stl-field-option-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
    border: 2px solid #fff;
    background-color: #fff;
    font-weight: 400;
    aspect-ratio: 1 / 1;
}

.stl-field-tip {
    position: relative;
    top: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 3px;
    border-radius: 50%;
    background-color: #446e40;
    color: #fff;
    font-size: 14px;
    cursor: help;
}

.stl-field-tooltip {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 0;
    max-width: 220px;
    padding: 10px 20px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    z-index: 1;
}

.stl-field-tip:hover + .stl-field-tooltip {
    display: block;
}

.stl-field-option-label {
    display: block;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
}

.stl-field-option-price {
    display: block;
    color: #446e40;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.stl-selector .sold-out {
    display: block;
    font-size: 12px;
    text-align: center;
}

.stl-field-option.active .stl-field-option-image {
    border-color: #cd797f;
}

.stl-field-option.active .stl-field-option-image::after {
    content: '\f00c';
    position: absolute;
    left: -1px;
    bottom: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: #cd797f;
    font-family: 'FontAwesome 5 Pro';
    font-size: 14px;
    color: #fff;
}

.stl-field-option.active .stl-field-option-label {
    font-weight: 700;
    color: #cd797f;
}

