/*
Theme Name: Bersub
Theme URI: https://riode.org/
Author: D-THEMES
Author URI: https://riode.org/about-me/
Description: Riode Responsive WordPress + eCommerce Theme.
Version: 1.0
Template: riode
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
select {
    background-image: url('/wp-content/themes/bersub/assets/img/select-bg.svg');
}

.single-product p.price {
    margin-top: 1.5rem;
}

.single-product .bersub-specs {
    position: relative;
}

.single-product .bersub-specs:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    height: 100%;
    width: 200vw;
    background: #005db8;
}

.single-product .bersub-specs:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), #005db8);
    z-index: 1;
}

.single-product .bersub-specs-scroller {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-around;
    padding: 20px;
    margin-bottom: 60px;
    background-color: #005db8;
    color: white;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 2;
}

.single-product .bersub-specs .bersub-spec {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    text-align: center;
    margin-right: 20px;
}
.single-product .bersub-specs .bersub-spec:last-child {
    margin-right: 0;
}

.single-product .bersub-specs .bersub-spec .spec-label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
}

.single-product .bersub-specs .bersub-spec .spec-value {
    line-height: 1.2;
}

.single-product .bersub-specs .bersub-spec .spec-label img {
    margin: 0 auto 4px;
    width: 50px;
}

.single-product figure.--is-madeinfrance .product-single-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 120px;
    width: 120px;
    background-image: url('/wp-content/themes/bersub/assets/img/made_in_france-corner.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.single-product .variations tr.list-type {
    display: flex;
    flex-direction: column;
}

.single-product .variations .list-type .label {
    border-bottom-width: 0;
    font-weight: bold;
}

.single-product .variations .reset-variation-cont {
    display: none;
}

.single-product .single_variation_wrap .quantity {
    display: none !important;
}

.wholesale_customer.single-product .single_variation_wrap .quantity {
    display: inline-flex !important;
}

.single-product .product-variations.list-type .image, .product-variations.list-type .color {
    border-radius: 50%;
}

.product-details .product-action, .product-hide-details .product-action {
    display: none;
}

.single-product .single_variation_wrap .woocommerce-variation-description {
    display: none;
}

.single-product .wapf-field-label {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

.single-product .wapf-field-label label > span {
    color: black;
    font-size: 16px;
    font-weight: bold;
}

.single-product .reseller-button  {
    text-transform: initial;
    margin-bottom: 20px;
}

.single-product #quote-anchor {
    margin-bottom: 20px;
}

.single-product .cart-reassurance {
    display: flex;
    align-items: center;
    gap: 20px;
}

.single-product .cart-reassurance div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: black;
}

.single-product .cart-reassurance i {
    color: #005db8;
}

.single-product .wapf-field-input [type="text"],
.single-product .wapf-field-input [type="tel"],
.single-product .wapf-field-input [type="password"],
.single-product .wapf-field-input [type="email"],
.single-product .wapf-field-input textarea {
    display: block;
    width: 100%;
    min-height: 4.5rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid #e1e1e1;
    font-size: font-size( 1.3rem );
    line-height: 1.5;
    font-weight: 400;
    color: #999;
    background-color: transparent;
    box-shadow: none;
    outline: 0;
}

.single-product .wapf-field-input input::placeholder,
.single-product .wapf-field-input textarea::placeholder {
    color: #999;
}

.single-product .wapf-field-input input:focus,
.single-product .wapf-field-input textarea:focus {
    border: 1px solid #222;
}

.single-product p.stock-later {
    display: inline-block;
    color: white;
    background: #57C0FF;
    padding: 5px 15px;
    font-size: 18px;
    margin-bottom: 10px;
}

.single-product p.out-of-stock {
    background: #ff0000;
}

.single-product p.onbackorder {
    display: inline-block;
    color: white;
    background: #FFCC80;
    padding: 5px 15px;
    font-size: 18px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .single-product .bersub-specs {
        margin-left: -20px;
        width: 100vw;
    }

    .single-product .bersub-specs:after {
        width: 40px;
    }

    .single-product .bersub-specs-scroller {
        justify-content: flex-start;
        padding-right: 40px;
        gap: 20px;
    }
}

@media (max-width: 479px) {
    .single-product .bersub-specs {
        margin-left: -15px;
    }
}

.bersub_quote_form {
    display: flex;
    justify-content: center;
}

.bersub_quote_form input,
.bersub_quote_form textarea {
    border: 1px solid #999999 !important;
}

/*
 * Product filters
 */
.sidebar .yith-wcan-filters .yith-wcan-filter {
    border-bottom: 2px solid #EEE;
}

.sidebar .yith-wcan-filters form {
    display: block;
}

.sidebar .yith-wcan-filters h4 {
    font-size: 16px;
}

/*
 * Checkout page
 */  
form .form-row {
    margin-bottom: 20px;
}

/*
 * Cart page
 */
.wc-send-cart {
    margin-top: 15px;
}

.wc-send-cart button {
    width: 100%;
}

/*
 * Login popup
 */
.login-popup .woocommerce-form-login p {
    line-height: 1.5;
    margin-bottom: 10px;
}

.account-dropdown a.login:after {
    content: none;
}

.account-dropdown .menu {
    display: none;
}

/* Guarantee Popup Styles */
.guarantee-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-popup-content {
    background: white;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.guarantee-popup-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guarantee-popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.guarantee-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-popup-close:hover {
    color: #333;
}

.guarantee-popup-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.guarantee-popup-body table {
    width: 100%;
    margin-bottom: 0;
}

.guarantee-popup-body table tr:first-child td{
    background-color: #005db8;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    border: none;
    text-align: center;
}

.guarantee-popup-body table td:first-child, 
.guarantee-popup-body table th:first-child {
    padding-left: 10px;
    font-weight: bold;
}

.guarantee-popup-body img {
    max-width: 100%;
    height: auto;
}

.guarantee-table-link {
    display: block;
    font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .guarantee-popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .guarantee-popup-header {
        padding: 15px;
    }
    
    .guarantee-popup-body {
        padding: 15px;
        max-height: calc(90vh - 70px);
    }
}

