﻿/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

.product-images {
    max-width: 380px;
    margin-right: 20px;
}

.custom-fields-wrapper {
    display: flex;
}

.custom-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 5%;
}

.custom-field {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-width: 47.5%;
    margin-bottom: 30px
}

.custom-field label {
    margin: 0 !important;
}

.custom-field.acf_hide,
.woocommerce-cart .acf_hide,
.woocommerce-checkout .acf_hide {
    display: none;
}


.custom-field.acf_options {
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ced4da;
}

.custom-field.acf_options label {
    padding: .375em .75em;
    color: #111;
    font-size: 16px;
    font-weight: 400;
}

/* Скрываем элементы custom-field_choices по умолчанию */
.custom-field_choices {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
    opacity: 0;
    margin-top: 0;
}

/* Стили для метки (label) */
.acf_options > label {
    cursor: pointer;
    display: block;
    position: relative;
}

/* Добавляем стрелку для визуального обозначения состояния */
.acf_options > label::after {
    content: "▼";
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease-out;
}

/* Стили для активного состояния */
.options-toggle:checked + .acf_options > label::after {
    transform: rotate(180deg);
}

/* Показываем элементы при активации */
.options-toggle:checked + .acf_options .custom-field_choices {
    max-height: 500px; /* Достаточно большое значение для раскрытия */
    opacity: 1;
    margin: 5px 0;
}

.custom-field_choices {
    display: flex;
    padding-left: 20px;
}

.custom-field_choices label {
    display: block;
    margin-top: 5px;
}

.price,
.quantity,
.single_add_to_cart_button {
    display: none;
}

.product-info .cart {
    flex-direction: column;
    align-items: flex-start;
}

.price-result,
.priceTotal-result {
    padding: 10px 0;
    font-size: 20px;
}

.mockup-upload-container {
    margin-bottom: 20px;
}


.mockup-upload-container {
    margin-bottom: 20px;
}

#mockup-preview-container {
    margin-top: 10px;
}

.mockup-preview {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mockup-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.mockup-filename {
    flex-grow: 1;
}

.remove-mockup {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
}

.mockup-upload-progress-container {
    width: 100%;
    height: 5px;
    background-color: #f0f0f0;
    margin-top: 5px;
}

.mockup-upload-progress {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

/*
cart
*/
.product-name a{
    font-size: 17px;
    font-weight: 600;
}

.product-name dl,
.product-name dt,
.product-name dd{
    font-weight: 300;
    margin: 0;
}

.product-name p{
    margin: 0;
}

/*
checkout
 */
/*.woocommerce-checkout*/




@media (max-width: 767px) {
    .site-branding {
        position: absolute;
        top: 0;
        left: 20px;
        padding: 0;
    }
    .site-logotype {
        max-width:75px !important;
    }
    .header-html-1 {
        position: absolute;
        width: 200px;
        top: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
    .header-html-1 > span {
        font-size:20px !important;
    }
    .header-mobile-items-container {
        position: absolute;
        top: 9px;
        right: 60px;
        margin: auto;
    }
    #site-navigation {
        margin-top: -10px;
    }
    .price,
    .quantity,
    .product-info .cart .single_add_to_cart_button {
        display: none;
    }
    .product-info .cart {
        width: 100%;
    }
    .custom-fields-wrapper {
        width: 100%;
    }
}