﻿@charset "utf-8";

/*
 * Modern cart presentation.
 * Scoped to the existing cart markup so server-control IDs, classes and scripts stay unchanged.
 */

.ContentBox {
    background: #f4f7f9;
}

.ContentBox > .container.DivCompleteStyle {
    width: 100%;
    max-width: 1180px;
    margin: 32px auto 46px;
    padding: 0 20px;
    background: transparent;
}

.ContentBox .DivCompleteStyle .DivCompleteStyle {
    padding: 0;
    background: transparent;
}

#pCart {
    direction: rtl;
    color: #263238;
    font-size: 15px;
    line-height: 1.9;
}

#pCart::before {
    content: "تکمیل سفارش";
    display: block;
    margin-bottom: 18px;
    color: #17252a;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.5;
}

#pCart .sCart1,
#pCart [id$="LowPrice"],
#pCart [id$="TopText"],
#pCart [id$="LowFactors"] {
    position: relative;
    margin: 0 0 18px;
    padding: 14px 48px 14px 18px;
    border: 1px solid #ccebee;
    border-radius: 12px;
    background: #f1fbfc;
    color: #315f64;
    line-height: 1.9;
}

#pCart .sCart1:empty,
#pCart [id$="LowPrice"]:empty,
#pCart [id$="TopText"]:empty,
#pCart [id$="LowFactors"]:empty {
    display: none;
}

#pCart .sCart1::before,
#pCart [id$="LowPrice"]::before,
#pCart [id$="TopText"]::before,
#pCart [id$="LowFactors"]::before {
    content: "i";
    position: absolute;
    top: 15px;
    right: 17px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #109296;
    color: #fff;
    font: 700 14px/22px Arial, sans-serif;
    text-align: center;
}

#pCart [id$="WrongCode"] {
    display: block;
    margin: 0 0 16px;
    padding: 11px 15px;
    border: 1px solid #ffd6d6;
    border-radius: 10px;
    background: #fff5f5;
    color: #c62828 !important;
}

#pCart > br,
#pCart .sCart2 > br {
    display: none;
}

#pCart .sCart2,
#pCart .sCart5 {
    position: relative;
    margin: 0 0 24px;
    padding: 74px 26px 26px;
    overflow: hidden;
    border: 1px solid #e2e9ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(36, 61, 72, .07);
}

#pCart .sCart2 {
    border-bottom: 1px solid #e2e9ed;
}

#pCart .sCart5 {
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e9ed;
    font-size: 15px;
}

#pCart .sCart2::before,
#pCart .sCart5::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 54px;
    padding: 12px 25px;
    border-bottom: 1px solid #e8eef1;
    background: linear-gradient(90deg, #f7fbfc 0%, #fff 70%);
    color: #1d3c40;
    font-size: 19px;
    font-weight: 700;
    line-height: 30px;
}

#pCart .sCart2::before { content: "محصولات سبد خرید"; }
#pCart .sCart5::before { content: "اطلاعات سفارش و ارسال"; }

#pCart table[id$="gvItems"],
#pCart table[id$="gvItemsOrder"] {
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0 12px;
    background: transparent !important;
}

#pCart table[id$="gvItems"] > tbody > tr > th,
#pCart table[id$="gvItemsOrder"] > tbody > tr > th {
    display: none;
}

#pCart table[id$="gvItems"] > tbody > tr > td,
#pCart table[id$="gvItemsOrder"] > tbody > tr > td {
    padding: 8px !important;
    overflow: hidden;
    border: 1px solid #e3ebee;
    border-radius: 14px;
    background: #fbfcfd !important;
    box-shadow: 0 3px 12px rgba(39, 65, 75, .04);
}

#pCart table[id$="gvItems"] .row,
#pCart table[id$="gvItemsOrder"] .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

#pCart table[id$="gvItems"] .row > div,
#pCart table[id$="gvItemsOrder"] .row > div {
    min-height: 64px;
    padding: 11px 14px;
    border-left: 1px solid #edf1f3;
    color: #53646b;
}

#pCart table[id$="gvItems"] .row > div:first-child,
#pCart table[id$="gvItemsOrder"] .row > div:first-child {
    color: #20343b;
    font-weight: 700;
}

#pCart table[id$="gvItems"] .row > div:nth-child(2),
#pCart table[id$="gvItems"] .row > div:nth-child(5),
#pCart table[id$="gvItemsOrder"] .row > div:nth-child(2),
#pCart table[id$="gvItemsOrder"] .row > div:nth-child(5) {
    color: #1d5f64;
}

#pCart table[id$="gvItems"] .row > div:last-child,
#pCart table[id$="gvItemsOrder"] .row > div:last-child {
    border-left: 0;
}

#pCart .sCart4_6,
#pCart .sCart4_61 {
    width: 62px;
    height: 40px;
    padding: 7px 8px;
    border: 1px solid #cfdcdf;
    border-radius: 9px;
    background: #fff;
    color: #20343b;
    font-size: 15px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#pCart .sCart4_6:focus,
#pCart .sCart4_61:focus,
#pCart .FaTextBoxFull:focus,
#pCart .EnTextBoxFull:focus,
#pCart textarea:focus,
#pCart select:focus {
    border-color: #109296;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 146, 150, .13);
}

#pCart .sCart4_8 {
    display: none;
}

#pCart .sCart4_9,
#pCart .sCart4_11,
#pCart .SubmitCenter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

#pCart .sCart4_9 {
    border: 1px solid #ffd8d8;
    background: #fff5f5;
    color: #c23b3b;
}

#pCart .sCart4_9::before {
    content: "×";
    margin-left: 7px;
    font: 700 20px/1 Arial, sans-serif;
}

#pCart .sCart4_9:hover,
#pCart .sCart4_9:focus {
    border-color: #efb8b8;
    background: #ffeaea;
    color: #a52222;
}

#pCart .sCart4_11,
#pCart .SubmitCenter {
    border: 1px solid #cce5e7;
    background: #edf9fa;
    color: #0b797d;
}

#pCart .sCart4_11::before {
    content: "↻";
    margin-left: 8px;
    font: 700 19px/1 Arial, sans-serif;
}

#pCart .sCart4_11:hover,
#pCart .sCart4_11:focus,
#pCart .SubmitCenter:hover,
#pCart .SubmitCenter:focus {
    border-color: #9bcfd2;
    background: #dff5f6;
    color: #075f62;
}

#pCart .sCart4_12 {
    display: block;
    margin: 24px 0 10px;
    color: #20343b;
    font-size: 17px;
}

#pCart .sCart4_13 {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b777b, #109296);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 146, 150, .18);
}

#pCart .sCart4_13 > .container,
#pCart .sCart4_13 [id$="SubmitOrders"] {
    width: 100%;
    padding: 0;
}

#pCart .sCart4_13 [id$="SubmitOrders"]::before,
#pCart .sCart4_13 [id$="SubmitOrders"]::after {
    display: table;
    clear: both;
    content: "";
}

#pCart .sCart4_13 [id$="SubmitOrders"] > div {
    min-height: 72px;
    padding: 20px 22px !important;
    border-left: 1px solid rgba(255, 255, 255, .17);
    color: #eafafa;
    text-align: center;
}

#pCart .sCart4_13 [id$="SubmitOrders"] > div:last-child {
    border-left: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

#pCart .sCart4_13 [id$="TotalPrice"],
#pCart .sCart4_13 [id$="TotalPriceP"] {
    display: inline-block;
    margin: 0 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

#pCart .sCart4_13 [id$="PermanentOrders"] {
    width: 100%;
    padding: 14px;
    border: 0;
    color: #fff;
}

#pCart .sCart4_13 [id$="PermanentOrders"] td {
    padding: 8px 12px !important;
    border: 0;
    color: #fff;
}

#pCart .sCart7,
#pCart [id$="UserInfoTable"],
#pCart [id$="LogedIndTable"] {
    width: 100% !important;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

#pCart .sCart7 > tbody > tr > td,
#pCart [id$="UserInfoTable"] > tbody > tr > td {
    padding: 8px 12px !important;
    vertical-align: middle;
}

#pCart .sCart8 {
    width: 190px;
    color: #43565d;
    font-weight: 600;
    text-align: right;
}

#pCart .FaTextBoxFull,
#pCart .EnTextBoxFull,
#pCart textarea,
#pCart select {
    width: 100% !important;
    max-width: 720px;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 13px;
    border: 1px solid #d6e0e4;
    border-radius: 10px;
    background: #f9fbfc;
    color: #26383f;
    font-family: Yekan, Tahoma, sans-serif;
    font-size: 15px;
    text-align: right;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#pCart .EnTextBoxFull {
    direction: ltr;
    text-align: left;
}

#pCart textarea {
    min-height: 96px;
    resize: vertical;
}

#pCart .FaTextBoxFull:hover,
#pCart .EnTextBoxFull:hover,
#pCart textarea:hover,
#pCart select:hover {
    border-color: #aebfc4;
    background: #fff;
}

#pCart .validatorItem,
#pCart [id*="Validator"] {
    margin-right: 7px;
    color: #c62828 !important;
    font-size: 13px;
}

#pCart [id$="LogedIndTable"] td {
    padding: 0 12px 12px !important;
}

#pCart .SubmitCenter {
    margin: 0;
}

#pCart .tbErsalCss {
    width: 100% !important;
    max-width: 720px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    line-height: 1.8;
    box-shadow: none !important;
}

#pCart .tbErsalCss tbody {
    display: block;
}

#pCart .tbErsalCss tr {
    display: block;
    margin: 0 0 10px;
    border: 1px solid #e0e8eb;
    border-radius: 10px;
    background: #fafcfd;
    box-shadow: none;
}

#pCart .tbErsalCss tr:last-child {
    margin-bottom: 0;
}

#pCart .tbErsalCss td {
    position: relative;
    display: block;
    min-height: 64px;
    padding: 14px 16px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#pCart .tbErsalCss input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0 0 0 8px;
    accent-color: #109296;
    vertical-align: middle;
}

#pCart .tbErsalCss label {
    margin: 0 !important;
    color: #253a41;
    font-weight: 600;
}

#pCart .tbErsalCss tr td::after {
    top: 14px;
    right: 150px;
    width: calc(100% - 165px);
    color: #6b7b81 !important;
    font-family: Yekan, Tahoma, sans-serif;
    font-size: 13px;
    line-height: 25px;
}

#pCart .sUserInfo3 {
    width: 190px;
    margin: 8px 0 0 !important;
    padding: 0 12px;
    float: right;
    color: #43565d;
    font-weight: 600;
    text-align: right;
}

#pCart .captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    min-height: 62px;
    margin: 0 202px 18px 0;
}

#pCart .captcha .image-container,
#pCart .captcha .control-container {
    margin: 0;
    float: none;
}

#pCart .captcha .image {
    height: 46px !important;
    margin: 0 !important;
    border: 1px solid #d8e2e5;
    border-radius: 9px;
}

#pCart .captcha .txtCaptcha {
    width: 150px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 6px 10px;
    border: 1px solid #d6e0e4;
    border-radius: 9px;
    background: #f9fbfc;
    font-size: 20px !important;
    text-align: center;
}

#pCart .Submit {
    min-width: 185px;
    min-height: 48px;
    margin: 8px 0 0 10px;
    padding: 10px 20px;
    border: 1px solid #109296;
    border-radius: 11px;
    background: #109296;
    color: #fff;
    font-family: Yekan, Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(16, 146, 150, .18);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#pCart [id$="bPermanentSubmit"] {
    border-color: #cfdadd;
    background: #fff;
    color: #52636a;
    box-shadow: none;
}

#pCart .Submit:hover,
#pCart .Submit:focus {
    border-color: #0b7478;
    background: #0b7478;
    outline: 0;
    box-shadow: 0 9px 22px rgba(16, 146, 150, .24);
    transform: translateY(-1px);
}

#pCart [id$="bPermanentSubmit"]:hover,
#pCart [id$="bPermanentSubmit"]:focus {
    border-color: #9fb3b9;
    background: #f5f8f9;
    color: #32474e;
    box-shadow: none;
}

#pCart #spn_Loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 4px;
    color: #52636a;
}

#pEmpty,
#pSucessfull {
    max-width: 820px;
    min-height: 0;
    margin: 36px auto;
    padding: 32px 36px;
    border: 1px solid #dfe8eb;
    border-radius: 18px;
    background: #fff;
    color: #43555c;
    line-height: 2.15;
    box-shadow: 0 10px 32px rgba(36, 61, 72, .08);
}

#pEmpty a,
#pSucessfull a {
    color: #0b8589;
    font-weight: 700;
}

@media (max-width: 991px) {
    .ContentBox > .container.DivCompleteStyle {
        margin-top: 22px;
        padding: 0 15px;
    }

    #pCart table[id$="gvItems"] .row > div,
    #pCart table[id$="gvItemsOrder"] .row > div {
        min-height: 0;
        border-left: 0;
        border-bottom: 1px solid #edf1f3;
    }

    #pCart table[id$="gvItems"] .row > div:last-child,
    #pCart table[id$="gvItemsOrder"] .row > div:last-child {
        border-bottom: 0;
    }

    #pCart .sCart4_13 [id$="SubmitOrders"] > div {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .17);
    }
}

@media (max-width: 767px) {
    .ContentBox > .container.DivCompleteStyle {
        margin: 16px auto 28px;
        padding: 0 10px;
    }

    #pCart {
        font-size: 14px;
    }

    #pCart::before {
        margin: 4px 4px 14px;
        font-size: 24px;
    }

    #pCart .sCart2,
    #pCart .sCart5 {
        padding: 68px 13px 18px;
        border-radius: 14px;
    }

    #pCart .sCart2::before,
    #pCart .sCart5::before {
        padding-right: 17px;
        font-size: 17px;
    }

    #pCart .sCart1,
    #pCart [id$="LowPrice"],
    #pCart [id$="TopText"],
    #pCart [id$="LowFactors"] {
        padding: 12px 42px 12px 13px;
    }

    #pCart table[id$="gvItems"] .row > div,
    #pCart table[id$="gvItemsOrder"] .row > div {
        width: 100%;
        padding: 9px 10px;
    }

    #pCart table[id$="gvItems"] .row > div:nth-child(3),
    #pCart table[id$="gvItems"] .row > div:nth-child(4),
    #pCart table[id$="gvItemsOrder"] .row > div:nth-child(3),
    #pCart table[id$="gvItemsOrder"] .row > div:nth-child(4) {
        width: 50%;
    }

    #pCart .sCart7 > tbody > tr,
    #pCart [id$="UserInfoTable"] > tbody > tr {
        display: block;
        margin-bottom: 11px;
    }

    #pCart .sCart7 > tbody > tr > td,
    #pCart [id$="UserInfoTable"] > tbody > tr > td {
        display: block;
        width: 100%;
        padding: 3px 4px !important;
        text-align: right;
    }

    #pCart .tbErsalCss tr td::after {
        display: none !important;
    }

    #pCart .sUserInfo3 {
        width: 100%;
        margin: 3px 0 7px !important;
        padding: 0 4px;
        float: none;
    }

    #pCart .captcha {
        margin: 0 4px 14px;
    }

    #pCart .Submit {
        width: 100%;
        margin: 7px 0 0;
    }

    #pEmpty,
    #pSucessfull {
        margin: 22px 5px;
        padding: 23px 20px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #pCart *,
    #pCart *::before,
    #pCart *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
