/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
.calc {
    max-width: 1160px;
    margin: 0 auto;
	color: var(--e-global-color-text);
}
.calc-title {
    font-weight: 600;
    font-size: 32px;
    line-height: 133.4%;
    text-align: center;
    letter-spacing: 0.02em;
}
.calc-subtitle {
    font-size: 18px;
    line-height: 185.9%;
    text-align: center;
    letter-spacing: 0.02em;
    margin-top: 10px;
}
.calc-body {
    display: flex;
    align-items: flex-start;
    margin-top: 40px;
    background: #F8F8F8;
    border-radius: 16px;
    padding: 40px 60px;
}
.calc-items {
    margin-right: 60px;
    flex-grow: 1;
}
.calc-add-item-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 322px;
    height: 58px;
    margin: 0 auto;
    background: #DBC08D;
    border-radius: 100px;
    padding: 0 30px;
    font-weight: 700;
    font-size: 16px;
    line-height: 133.4%;
    letter-spacing: 0.025em;
    cursor: pointer;
}
.calc-add-item-btn::after {
    content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 12H20.25' stroke='%2319242F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 3.75V20.25' stroke='%2319242F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    height: 24px;
}
.calc-item {
    position: relative;
    display: flex;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    line-height: 151.4%;
    letter-spacing: 0.02em;
    margin-bottom: 30px;
}
.calc-item-remove-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.39494 7.49965L15.6146 1.27997C15.7551 1.13929 15.834 0.948577 15.834 0.74975C15.8339 0.550923 15.7549 0.360257 15.6143 0.219665C15.4737 0.0790736 15.283 6.2383e-05 15.0842 3.69246e-08C14.8854 -6.23091e-05 14.6947 0.0788296 14.554 0.219333L8.3343 6.43901L2.11462 0.219333C1.97394 0.0788296 1.78323 -6.23091e-05 1.5844 3.69246e-08C1.38557 6.2383e-05 1.19491 0.0790736 1.05432 0.219665C0.913723 0.360257 0.834712 0.550923 0.83465 0.74975C0.834587 0.948577 0.913479 1.13929 1.05398 1.27997L7.27366 7.49965L1.05398 13.7193C0.984269 13.789 0.928957 13.8716 0.891209 13.9627C0.853461 14.0537 0.834015 14.1512 0.833984 14.2498C0.833954 14.3483 0.853337 14.4458 0.891029 14.5369C0.92872 14.6279 0.983979 14.7106 1.05365 14.7803C1.12332 14.85 1.20604 14.9052 1.29707 14.9429C1.38811 14.9806 1.48568 15 1.5842 15C1.68273 14.9999 1.78029 14.9805 1.8713 14.9427C1.96231 14.905 2.04499 14.8497 2.11462 14.78L8.3343 8.56029L14.554 14.78C14.6947 14.9205 14.8854 14.9994 15.0842 14.9993C15.283 14.9992 15.4737 14.9202 15.6143 14.7796C15.7549 14.639 15.8339 14.4484 15.834 14.2496C15.834 14.0507 15.7551 13.86 15.6146 13.7193L9.39494 7.49965Z' fill='%2319242F' fill-opacity='0.25'/%3E%3C/svg%3E");
    cursor: pointer;
}
.calc-item-options {
    flex-grow: 1;
    margin-right: 40px;
}
.calc-item-options-row {
    margin-bottom: 30px;
}
.calc-item-option-label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}
.calc-item-select {
    position: relative;
    border-radius: 16px;
    background: #f8f8f8;
}
.calc-item-select-default {
    justify-content: space-between;
    font-size: 14px;
    color: rgba(25, 36, 47, 0.5);
}
.calc-item-select-option {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    user-select: none;
    cursor: pointer;
}
.calc-item-select-selected {
    position: relative;
    cursor: pointer;
}
.calc-item-select-selected .calc-item-select-option::after {
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 1.36108L8 8.86108L0.5 1.36108' stroke='%2319242F' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 16px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.calc-item-select-list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    border-radius: 16px;
    background: #f8f8f8;
    overflow-x: hidden;
	max-height: 250px;
    overflow-y: auto;
	z-index: 100;
}
.calc-item-select-list.opened {
    display: block;
}
.calc-item-select-list .calc-item-select-option:hover {
    background: #f0f0f0;
}
.calc-item-select-option-img {
    margin-right: 10px;
}
.calc-item-select-option-name {
    flex-grow: 1;
    font-weight: 600;
    font-size: 14px;
}
.calc-item-option-quantity {
    display: flex;
}
.calc-item-option-quantity input {
    border: none;
    border-radius: 16px;
    background-color: #f8f8f8;
    height: 50px;
}
.calc-input-number {
    flex-grow: 1;
    margin: 0 22px;
    font-size: 14px;
    padding: 0 0 0 40px;
    outline: none;
}
.calc-input-number-btn {
    width: 50px;
    font-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
}
.calc-input-number-btn:not(:disabled) {
    cursor: pointer;
}
.calc-input-number-btn:disabled {
    cursor: not-allowed;
}
.calc-input-number-btn.minus {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='2' viewBox='0 0 20 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.75 1H18.25' stroke='%2319242F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}
.calc-input-number-btn.plus {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 12H20.25' stroke='%2319242F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 3.75V20.25' stroke='%2319242F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.calc-input-number-btn.minus:disabled {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='2' viewBox='0 0 20 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.75 1H18.25' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}
.calc-input-number-btn.plus:disabled {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.75 12H20.25' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 3.75V20.25' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.calc-input-number:disabled::placeholder {
    color: #cccccc;
    opacity: 1;
}
.calc-input-number:disabled::-ms-input-placeholder {
    color: #cccccc;
    opacity: 1;
}
.calc-item-option-quantity input::-webkit-outer-spin-button,
.calc-item-option-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.calc-item-option-quantity input[type=number] {
    -moz-appearance: textfield;
	width: initial;
    max-width: initial;
}
.calc-item-price-row:not(:last-child) {
    margin-bottom: 32px;
}
.calc-item-price-row-label {
    font-weight: 500;
    font-size: 12px;
    color: rgba(25, 36, 47, 0.5);
    margin-bottom: 6px;
}
.calc-item-price-row-value {
    font-weight: 700;
    font-size: 20px;
}
.calc-item-price-row-value::after {
	content: " рублей";
}
.calc-summary-wrap {
    position: sticky;
    top: 40px;
    max-width: 340px;
    background: linear-gradient(291.63deg, rgba(255, 255, 255, 0.02) 50%, rgba(25, 36, 47, 0) 50%), #19242F;
    border-radius: 16px;
    padding: 37px 47px 44px 47px;
    color: #ffffff;
}
.calc-summary-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    line-height: 151.4%;
    letter-spacing: 0.04em;
}
.calc-summary-row-title {
    width: 50%;
    font-weight: 500;
    font-size: 12px;
    margin-left: 14px;
}
.calc-summary-row-value {
    font-weight: 700;
    font-size: 24px;
    flex-grow: 1;
    text-align: right;
}
.calc-summary-label {
    margin-top: 58px;
    font-weight: 500;
    font-size: 12px;
}
.calc-summary-value {
    margin-top: 6px;
    font-size: 48px;
    color: var(--e-global-color-accent);
    line-height: 151.4%;
    letter-spacing: 0.04em;
}
.calc-summary-value::after {
    content: " ₽";
}

@media all and (min-width: 1201px) {    
    .calc-item-prices {
        padding-top: 30px;
    }
}
@media all and (min-width: 961px) and (max-width: 1200px) {
    .calc-item {
        display: block;
    }
    .calc-item-options {
        margin-right: 0;
    }
    .calc-item-prices {
        display: flex;
        justify-content: space-between;
    }
}
@media all and (max-width: 960px) {
    .calc-body {
        display: block;
        padding: 40px;
        border-radius: 0;
    }
    .calc-items {
        margin-right: 0;
    }
    .calc-input-number {
        margin: 0 20px;
    }
    .calc-input-number {
        padding-left: 0;
        text-align: center;
    }
    .calc-summary-wrap {
        position: static;
        display: flex;
        justify-content: space-between;
        max-width: initial;
        margin-top: 30px;
    }
    .calc-total-sum {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .calc-summary-label {
        margin-top: 0;
    }
}
@media all and (max-width: 480px) {
    .calc-title, .calc-subtitle {
        padding: 0 30px;
    }
    .calc-body {
        padding-left: 0;
        padding-right: 0;
    }
    .calc-item {
        display: block;
    }
    .calc-item-options {
        margin-right: 0;
    }
    .calc-input-number {
        margin: 0 10px;
    }
    .calc-item-price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .calc-item-price-row-label {
        margin-bottom: 0;
    }
    .calc-summary-wrap {
        display: block;
        margin: 50px 30px 12px 30px;
    }
}