input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}
body{
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

*, *:after, *:before{

    padding:0;
    margin:0;
    box-sizing: border-box;

}
.cart-collaterals{
    padding:20px;
    width:25% !important;

}
.cart_totals{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    float:unset !important;
    width:100% !important;
}
.cart_totals h2{
    text-align:center;
}
.cart_totals tbody {
    width: 100%;
}

.shop_table{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: 20px;

}

#add_payment_method .cart-collaterals .cart_totals tr td, #add_payment_method .cart-collaterals .cart_totals tr th, .woocommerce-cart .cart-collaterals .cart_totals tr td, .woocommerce-cart .cart-collaterals .cart_totals tr th, .woocommerce-checkout .cart-collaterals .cart_totals tr td, .woocommerce-checkout .cart-collaterals .cart_totals tr th{
    border:none;
}
#add_payment_method table.cart img, .woocommerce-cart table.cart img, .woocommerce-checkout table.cart img {
    width: 90px;
    height: 90px;
    box-shadow: none;
}
.woocommerce-notices-wrapper{

    position:absolute;
    left:0;
}

body.e-wc-message-notice .woocommerce-message, body.e-wc-message-notice .wc-block-components-notice-banner.is-success {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    background-color: var(--e-global-color-9abe996);
    color:white;
    border-style: none;
}
.woocommerce-message *{
    font-family: 'peyda', Sans-serif;
}
.product-remove a{
    font-size: 30px;
    color:grey;
}
.woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals{
    border-radius: 20px;
    margin-top:83px;
    background-color:white;
    width:30% !important;
}

.woocommerce-cart-form{
    width:70% !important;
}



.shop_table tr{
    display:flex;
    justify-content:space-around;
    padding-block:20px;
    border-bottom:1px solid #ededed;
}
.product-quantity input{
    width:30px;
}
#add_payment_method .wc-proceed-to-checkout a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce-checkout .wc-proceed-to-checkout a.checkout-button{
    display: flex;
    text-align: center;
    margin-bottom: 1em;
    font-size: 1.25em;
    padding: 15px;
    color: white;
    background-color: #6C3317;
    justify-content: center;
    border-radius: 10px;

}
#add_payment_method table.cart input, .woocommerce-cart table.cart input, .woocommerce-checkout table.cart input{
    text-align:center;
    padding:5px;
    border-radius:10px;
    border:1px solid #6C3317;
    outline:none;
}
.woocommerce #content table.cart td.actions, .woocommerce table.cart td.actions, .woocommerce-page #content table.cart td.actions, .woocommerce-page table.cart td.actions {
    width: 100%;
    text-align: left;
}
#add_payment_method .wc-proceed-to-checkout, .woocommerce-cart .wc-proceed-to-checkout, .woocommerce-checkout .wc-proceed-to-checkout{
    padding:unset;
}
#add_payment_method table.cart td.actions .coupon .input-text, .woocommerce-cart table.cart td.actions .coupon .input-text, .woocommerce-checkout table.cart td.actions .coupon .input-text{
    padding-block:12px;
    width:150px;
}
.all-selected-products .button{
    margin-bottom: 1em;
    font-size: 1em;
    padding: 8px;
    color: white;
    background-color: #6C3317;

    border-radius: 10px;
    cursor:pointer;
}
.no-order-styles {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.no-order-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
}
.no-order-img {
    width: 25%;
    height: 25%;
    margin-bottom: 25px;
    margin-top: 60px;
}
.no-order-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 75px;
    color: #646464;
}
.no-order-btn {
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    padding-block: 12px;
    padding-inline: 58px;
    text-decoration: none;
    color: #ffffff;
    background-color: #6C3317;
    border-radius: 12px;
    margin-bottom: 56px;
}

/* بزرگترین پدر */
.select-product-container {
    margin-inline: 70px;
    padding-inline: 24px;


}

/* هدر */
.card-page-header {
    position: relative;
    max-width: 856px;
    width: 100%;
    margin-inline: auto;
    margin-bottom: 91px;
    text-align: center;
    grid-column: span 2;
}
.card-page-header::after {
    content: "";
    width: 98%;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 1em + 8px + 5px));
    /* border-top: 2px dashed #6C3317; */
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23333' stroke-width='1' stroke-dasharray='5%2c 5' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    z-index: -2;
}
.card-page-header::before {
    content: "";
    width: 98%;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #f4f4f4;
    transform: translate(-50%, calc(-50% - 1em + 8px + 10px));
    z-index: -1;
}
.card-header-title {
    max-width: 1124px;
    margin-inline: auto;

    padding-inline: 24px;
    font-size: 26px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 65px;
}
.card-page-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-signle-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #646464;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}
.card-single-title {
    line-height: 1;
}
.card-single-svg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
}
.active-status .card-single-svg {
    background-color: #A90E064D;
}
.active-status .card-single-svg path {
    stroke: #6C3317;
}

/* مجموع سفارش */
.bill-container {

    border-radius: 20px;
    border: 1px solid var(--Text-300, #d9d9d9);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: var(--Text-400, #909090);
    padding: 33px 40px;
    padding-bottom:10px;
    height: fit-content;
}
.bill-title {
    font-size: 16px;
    font-weight: 600;
}
.bill-price-number {
    font-size: 16px;
    font-weight: 600;
}
.product-price-unit {
    font-size: 14px;
}
.product-total-price-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-weight: 600;
}
.div-5 {
    background-color: #ededed;
    margin-top: 15px;
    height: 1px;
}
.order-off-container {
    display: flex;
    justify-content: space-between;
    margin-top: 23px;
    gap: 20px;
}
.order-off-number-percentage {
    font-size: 14px;
    font-weight: 400;
}
.div-9 {
    background-color: #ededed;
    margin-top: 25px;
    height: 1px;
}
.package-price-container {
    display: flex;
    margin-top: 17px;
    justify-content: space-between;
    gap: 20px;
    font-weight: 600;
}
.shipping-cost-container {
    background-color: #ededed;
    margin-top: 18px;
    height: 1px;
}
.shipping-cost {
    display: flex;
    margin-top: 16px;
    justify-content: space-between;
    gap: 20px;
    font-weight: 600;
}
.div-17 {
    margin-top: 27px;
    border-bottom: 2px dashed #d9d9d9;
}
.bill-total-price-container {
    border-radius: 10px;
    background-color: rgba(184, 237, 212, 0.54);
    display: flex;
    margin-top: 31px;
    justify-content: space-between;
    gap: 20px;
    font-size: 18px;
    color: var(--Text-600, #4c4c4c);
    font-weight: 600;
    padding: 10px 19px;
}
.bill-total-price {
    font-size: 18px;
}
.bill-next-button {
    display: flex;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--Primary-500, #6C3317);
    align-self: center;
    margin-top: 23px;
    color: #fff;
    white-space: nowrap;
    padding: 15px 41px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* محصولات داخل سبد */

.all-selected-products {
    position:relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.selected-product-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    background-color: #fff;
    padding-inline: 16px;
    padding-block: 16px;
}

.selected-product-details-container {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.selected-product-details-container img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
}

.selected-product-details-container span {
    font-size: 16px;
    font-weight: 600;
}

.selected-product-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.selected-product-details span {
    font-size: 16px;
    font-weight: 600;
    color: #4c4c4c;
    text-wrap: nowrap;
}

.selected-product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.selected-product-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    border: 1px solid #6C3317;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.selected-product-action:hover {
    background-color: #6C3317;
}

.selected-product-action:hover path {
    stroke: white;
    fill: white;
}

.selected-product-quantity {
    font-size: 16px;
    font-weight: 600;
}

.selected-product-price-container {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    gap: 44px;
}

.selected-product-off-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 9px;
}
.card-product-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    font-size: 18px;
    font-weight: 600;
}

.selected-product-price-unit {
    font-size: 14px;
}

.selected-product-off {
    background-color: #ffa600;
    border-radius: 4px;
    padding: 2px 12px;
    color: #fff;
}

.selected-product-without-off {
    color: #909090;
    text-decoration: line-through;
}

.remove-prodcut {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.remove-prodcut svg {
    width: 20px;
    height: 20px;
    stroke: #909090;
}

/* ایتم های افزودنی */

.additional-offers-container {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 43px;
    overflow-x: hidden;
}

.ao-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 28px;
}
.ao-categories-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 22px;
    padding-block: 10px;
}
.ao-categories {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding-inline: 5px;
}

.ao-category {
    width: 110px;
    height: 60px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background-color: #fff;
    color: #6C3317;
    border: none;
}

.selected-ao-category {
    height: 50px;
    position: relative;
    background-color: #A90E064D;
    outline: 5px solid #A90E064D;
    transition: all 0.2s;
    background-color: #A90E064D;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23333' stroke-width='2' stroke-dasharray='4%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    border-radius: 8px;
}

.ao-category-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
}

.ao-category-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: #fff;
    border-radius: 12px;
}

.ao-category-item-img {
    padding: 17px 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ao-category-item-img img {
    border-radius: 8px;
    width:100px !important;
    height:100px !important;
}

.ao-category-item-details {
    width: 100%;
    display: flex;

    justify-content: center;
    margin-bottom: 18px;
}

.ao-category-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #4c4c4c;
}

.ao-category-item-size {
    font-size: 14px;
    font-weight: 600;
    color: #909090;
}

.ao-category-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #4c4c4c;
    margin-bottom: 16px;
}

.ao-category-item-actions {
    width: 100%;
    padding-inline: 15px;
}

.ao-category-item-add-button {
    width: 100%;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ededed;
    border: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.ao-category-item-add-button svg path {
    stroke: #909090;
}

.ao-category-item-add-button:hover {
    background-color: #6C3317;
}

.ao-category-item-add-button:hover svg path {
    stroke: #fff;
}

.ao-plus-btn,
.ao-minus-btn {
    width: 42px;
    height: 42px;
}

.ao-quantity {
    font-size: 16px;
    font-weight: 600;
}

.ao-category-item-change-amount {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

@media screen and (max-width: 1050px) {
    .woocommerce #content table.cart .product-thumbnail, .woocommerce table.cart .product-thumbnail, .woocommerce-page #content table.cart .product-thumbnail, .woocommerce-page table.cart .product-thumbnail{
        display:flex;
    }

    .product-thumbnail:before{
        display:none !important;
    }
    .woocommerce-cart-form{
        margin-top:50px;
        width: 100% !important;
    }
    .woocommerce-notices-wrapper{
        width:100%;
    }
    .woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{
        width: 100% !important;
        padding: 20px;
        float:unset;
    }
    .all-selected-products{
        flex-wrap:wrap;
    }
    .woocommerce-page .cart-collaterals{
        width: 100% !important;
        margin-top:0
    }
    .select-product-container {
        grid-template-columns: 1fr;
    }
    .card-page-header {
        grid-column: span 1;
    }
    .bill-container {
        grid-row: 4/5;
        margin-top: 34px;
        margin-bottom: 43px;
    }
}

@media screen and (max-width: 900px) {
    .ao-categories {
        width: fit-content;
    }
}

@media screen and (max-width: 768px) {
    .product-remove{
        position:absolute !important;
        top:20px;
        left:20px;
    }
    .selected-product-container{
        position:relative !important;
    }
}
@media screen and (max-width: 685px) {
    .select-product-container{
        margin: 0 auto;
    }
    .ao-category-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .selected-product-details {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .selected-product-details-container img {
        width: 70px;
        height: 70px;
    }
    .selected-product-details span {
        font-size: 14px;
    }
    .selected-product-off-container {
        margin-bottom: 6px;
    }
    .selected-product-details-container {
        width: fit-content;
    }
    .selected-product-price-container {
        width: fit-content;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: flex-end;
        gap: 7px;
    }
}

@media screen and (max-width: 630px) {
    body {
        width: 100vw;
        padding-inline: 0;
    }
    .card-header-title {
        display: none;
    }

    .bill-container {
        border-radius: 0;
    }
    .card-page-header::after,
    .card-page-header::before {
        width: 85%;
    }
}

@media screen and (max-width: 576px) {
    .card-single-svg {
        width: 40px;
        height: 40px;
    }
    .card-single-svg svg {
        width: 24px;
        height: 24px;
    }
    .card-single-title {
        font-size: 14px;
    }
    .card-page-status {
        margin-inline: 22px;
    }
    .card-page-header::after,
    .card-page-header::before {
        width: 70%;
    }
    .selected-product-container {
        padding-block: 12px;
    }
    .ao-category {
        width: 82px;
        height: 46px;
    }
    .selected-ao-category {
        height: 36px;
        background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='10' ry='10' stroke='black' stroke-width='1.5' stroke-dasharray='3%2c 5' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    }
    .card-product-price {
        font-size: 16px;
    }
    .selected-product-price-unit {
        font-size: 12px;
    }
    .selected-product-off {
        padding: 0 6px;
        font-size: 12px;
    }
    .selected-product-without-off {
        font-size: 12px;
    }
    .ao-category-item-img {
        padding: 20px 15px;
    }
    .ao-category-item {
        padding: 10px 10px 16px 10px;
    }
    .order-off-number-percentage {
        font-size: 12px;
        color: #ffa600;
        font-weight: 600;
    }
    .bill-price-number {
        font-size: 14px;
    }
    .ao-category-items {
        gap: 17px;
    }
    .bill-total-price-container {
        font-size: 16px;
        padding: 0;
        background-color: transparent;
    }
    .bill-next-button {
        font-size: 16px;
        margin-top: 9px;
    }
    .selected-product-action {
        width: 32px;
        height: 32px;
    }
    .ao-category-item-add-button {
        height: 32px;
    }
    .ao-category-item-actions {
        padding-inline: 0;
    }
    .remove-prodcut,
    .remove-prodcut svg {
        height: 18px;
        width: 18px;
    }
}
@media screen and (max-width: 400px) {
    .selected-product-container {
        width: 327px;
    }
    .card-page-header,
    .all-selected-products,
    .additional-offers-container {
        padding-inline: 16px;
    }
    .ao-categories {
        gap: 14px;
    }
}

