/* Стили для модального окна */
.no-scroll {
    overflow: hidden;
}
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    width: 80%;
    max-width: 90%;
    max-height: 90vh;
    height: 90vh;
    overflow: hidden;
    padding: 15px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pattern-modal-image {
    display: block;
    margin: auto;
    position: absolute;
    cursor: grab;
}

#caption {
    margin: auto;
    display: none;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000000;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}
#zoom-in, #zoom-out {
    position: absolute;
    bottom: 10px;
    background: #8DC337;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 42px;
    text-align: center;
    font-size: 34px;
    cursor: pointer;
}
#zoom-in {
    right: 100px;
}
#zoom-out {
    right: 10px;
}

/* Стили для фона popup окна регистрации */
#popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Стили для содержимого popup окна */
#popup .popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

#popup button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

#popup button:disabled {
    background-color: gray;
    color: black;
}

#popup button:hover {
    background-color: #45a049;
}

#popup button:disabled:hover {
    background-color: gray;
    color: black;
}

#popup p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}
#togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.form-group {
    display: flex;
    flex-direction: row;
    margin: 10px 5px; /* Отступы */
    justify-content: flex-start;
    align-items: center;
}

.form-group label {
    flex: 50%;
}

.form-group .input-container {
    flex: 100%;
    position: relative;
}
#username {
    width: 98%;
}
.form-group input {
    width: 100%;
    padding-right: 0;
}

/* Адаптивные стили */
@media screen and (max-width: 600px) {
    #popup .popup-content {
        width: 90%;
        padding: 15px;
    }

    #popup button {
        font-size: 14px;
        padding: 8px 15px;
    }

    #popup p {
        font-size: 14px;
    }
}

.display_meta th {
    width: 30px;
}

#text-field-container {
    width: 50px;
}

#editing-view-port {
    width: 50px;
}

#iframe-div iframe {
    z-index: 1000;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    box-sizing: border-box;
}
.toast-content {
    margin-right: 40px; /* Отступ для кнопки закрытия */
}
.toast.success {
    background-color: green;
    color: white;
}
.toast.error {
    background-color: red;
    color: white;
}
.toast.warn {
    background-color: yellow;
    color: black;
}
.toast .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.elementor-menu-cart__product-name.product-name a {
    text-decoration: underline;
    /*color: #8DC337;*/
}

.elementor-menu-cart__product-name.product-name a:hover {
    color: #000000;
}
body.no-scroll {
    overflow: hidden;
}

.swiper-zoom-container {
    cursor: grab;
}

.swiper-zoom-container:active {
    cursor: not-allowed;
}
.plus, .minus {
    color: var(--e-global-color-740f57c)!important;
}
.price-other {
    font-size: 16px!important;
}
.custom-other-product-image {
    height: auto!important;
    margin: 10px 0;
    box-shadow: 0px 4px 4px 0px #00000040 !important;
}