.select2-results__options,.select2-selection__rendered {
    font-size: 14px
}

.smart-price-calc {
    width: 100%;
    display: flex;
    --global-color: #911520;
    position: relative;
    background-color: #FFF;
    border-radius: 10px;
    box-sizing: border-box
}

.smart-price-calc::before {
    content: "";
    display: block
}

.smart-price-calc-loading {
    position: relative
}

.smart-price-calc-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle fill="%23911520" stroke="%23911520" stroke-width="4" r="15" cx="40" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.4"></animate></circle><circle fill="%23911520" stroke="%23911520" stroke-width="4" r="15" cx="100" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="-.2"></animate></circle><circle fill="%23911520" stroke="%23911520" stroke-width="4" r="15" cx="160" cy="100"><animate attributeName="opacity" calcMode="spline" dur="2" values="1;0;1;" keySplines=".5 0 .5 1;.5 0 .5 1" repeatCount="indefinite" begin="0"></animate></circle></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 59px;
    z-index: 1
}

.spc-product-img {
    width: 50%
}

.spc-product-img img {
    width: 100%;
    height: 100% !important;
    object-fit: fill;
    border-radius: 0 10px 10px 0;
}

.smart-price-calc-main {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 5;
    padding: 10px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 0px;
    border-radius: 20px;
    border: 1px solid #ffebea;
    box-sizing: border-box;
    font-family: "IranSansX", sans-serif;
}

.smart-price-calc-main h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 40px
}

.smart-price-calc-main::before2 {
    content: "";
    background-color: var(--global-color);
    position: absolute;
    inset: 0;
    border-radius: 10px 0 0 10px;
    opacity: .1;
    z-index: -1
}

.smart-price-calc-products {
    margin-bottom: 18px
}

.spc-product-title {
    color: var(--global-color);
    font-weight: 700
}

.spc-width-height {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-sizing: border-box;
    margin-top: 9px;
    margin-bottom: 10px;
}

.spc-width-height label {
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
    display: block
}

.spc-width-main,.spc-height-main {
    width: 100%
}

.spc-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box
}

.spc-result {
    width: 100%;
    gap: 0px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    align-items: center;
}

.spc-result .spc-product-price {
    width: 100%;
}

.spc-result .spc-fixed-price {
    width: 100%;
}

.spc-result .spc-result-price {
    width: 100%;
    margin-top: 5px;
    font-size: 15px;
    font-weight: bold;
}

.spc-product-info {
    margin-bottom: 59px
}

.spc-product-info span {
    float: right;
    margin: 0 3px
}

.spc-result-price,.spc-fixed-price,.spc-product-price {
    font-size: 14px;
    font-weight: 500
}

.spc-result-price span,.spc-fixed-price span,.spc-product-price span {
    color: var(--global-color)!important;
    margin: 0
}

.spc-consultation-btn {
    width: 100%;
    background-color: var(--global-color);
    color: #FFF;
    padding: 5px 24px;
    font-size: 13px;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.spc-consultation-btn:hover {
    color: #FFF;
    opacity: .9
}

.spc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none
}

.spc-modal-bg {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: .5
}

.spc-modal-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,100%);
    background-color: #FFF;
    width: 700px;
    max-width: 90%;
    min-height: 319px;
    border-radius: 3px;
    padding: 20px;
    animation: moveToCenter .5s ease-out forwards;
    border: 1px solid rgb(217 217 217)
}

.spc-modal-close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 11
}

.spc-modal-content {
    margin-top: 27px
}

.spc-modal-content strong {
    font-size: 15px;
    color: rgb(43 43 43);
    width: 100%;
    display: block
}

.spc-modal-content h3 {
    border-bottom: 1px solid rgb(232 232 232);
    padding-bottom: 19px;
    font-weight: 700
}

.spc-modal-form {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    float: right
}

.spc-width-height input {
    margin-top: 0;
    background-color: #ffebea;
    border-radius: 6px!important;
    border: 0!important;
    padding: 5px 12px!important;
    width: 100%;
    box-sizing: border-box
}

.spc-modal-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px
}

.spc-modal-input input {
    border-radius: 8px!important;
    border: 1px solid rgb(239 237 237)!important;
    padding: 10px
}

.spc-modal-input label {
    font-size: 14px;
    color: rgb(92 92 92);
    font-weight: 600;
    margin-bottom: 1px
}

#spc-submit {
    width: 100%;
    background-color: #911520;
    color: #FFF;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 8px!important;
}

@keyframes moveToCenter {
    from {
        transform: translate(-50%,100%);
        opacity: 0
    }

    to {
        transform: translate(-50%,-50%);
        opacity: 1
    }
}

@media (max-width: 1096px) {
    .spc-product-img {
        width:40%
    }

    .smart-price-calc-main {
        width: 60%
    }
}

@media (max-width: 894px) {
    .spc-product-info {
        font-size:.9rem;
        margin-bottom: 30px
    }
}

@media (max-width: 848px) {
    .smart-price-calc {
        flex-direction:column
    }

    .spc-product-img,.smart-price-calc-main {
        width: 100%
    }

    .spc-modal-form {
        width: 100%
    }

    .spc-result .spc-product-price,.spc-fixed-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 15px;
        font-weight: bold;
    }

    .spc-result-price {
        text-align: center
    }

    .spc-consultation-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center
    }
}

.spc-product-img .woocommerce-product-gallery {
    width: 100%!important
}

.selection .select2-selection {
    border: 0!important;
    border-radius: 7px!important;
    overflow: hidden
}

.selection .select2-selection__rendered {
    background-color: #ffebea;
    padding: 6px 6px!important;
    border: 0
}

.selection .select2-selection__arrow {
    width: 23px!important;
    height: 23px!important;
    background-color: #f56d78;
    border-radius: 5px;
    left: 5px!important;
    top: 3px!important
}

.selection .select2-selection__arrow b {
    top: 12px;
    right: 4px!important;
    left: auto!important
}

.select2-container {
    z-index: 9999999999!important;
    width: 100%!important
}

.select2-container .select2-dropdown {
    background-color: #ffebea!important;
    border: 0!important;
    margin-top: 1px!important;
    border-radius: 10px!important;
    overflow: hidden
}

.select2-container .select2-search {
    display: none
}

.select2-container .select2-results {
    scrollbar-color: #f56d78 #fff0;
    scrollbar-width: none
}

.select2-container--default .select2-results__option--selected {
    background-color: #fdbcbc!important
}

.spc-footer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 13px;
    display: flex;
    visibility: hidden;
    opacity: 1;
    font-size: 15px;
}

.spc-footer-modal.active {
    visibility: visible;
    opacity: 1
}

.spc-footer-modal-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000bd
}

.spc-footer-modal-main {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 895px;
}

.smart-price-calc-tabs{
    width: 100%;
}
.smart-price-calc-tabs ul{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0;
}
.smart-price-calc-tabs ul li{
    width: 100%;
    list-style: none;
    color: #911520;
    text-align: center;
    padding: 6px;
    border: 1px solid #911520;
    box-sizing: content-box;
    border-radius: 5px;
    cursor: pointer;
}
.smart-price-calc-tabs ul li.active{
    background: #911520;
    color: #FFF;
}
.smart-price-calc-tabs ul li span{

}
.smart-price-calc-tabs ul li.active span{

}
.smart-price-calc-tabs-contents{
    min-height: calc(100% - 35px);
}
.smart-price-calc-tabs-contents .smart-price-calc-tab-content{
    display: none
}
.smart-price-calc-tabs-contents .smart-price-calc-tab-content.active{
    display: block;
}

#spc-sortable-products {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
}
.spc-sortable-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: move;
    background: #fafafa;
}
.spc-sortable-item:hover {
    background: #f0f0f0;
}