:root {
    --successColor: #1fa716;
    --errorColor: #ff3f3f;
    --mapButton: var(--primaryColor, #1f6aee);
    --btnTextColor: #fff;
}

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    outline: 0;
}

a {
    text-decoration: none;
}

a,
button {
    cursor: pointer;
    color: inherit;
}

.btn {
    background-color: var(--mapButton);
    color: var(--btnTextColor);
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: #00000060;
    z-index: 10000;
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .45s ease;
}

.main-content {
    -webkit-tap-highlight-color: transparent;
    color: initial;
    direction: rtl;
}

.set-location {
    position: relative;
}

.set-location.disabled {
    display: none;
}

:where(.address-box, .send-method, .payments) .loading {
    text-align: center;
}

:where(.address-box, .send-method, .payments) .loading p {
    font-size: 14px;
    font-weight: 700;
}

.choose-on-map {
    margin-top: 1rem;
}

.map-popup {
    display: initial !important;
    position: fixed;
    width: 70%;
    top: 10%;
    bottom: 10%;
    left: 50%;
    right: auto;
    z-index: 15000;
    background-color: #fff;
    border-radius: 25px;
    padding: 12px;
    box-shadow: 1px 1px 15px -2px #5f5f5f;
    transition: .45s ease;
}

#map {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 13px;
}

.leaflet-container {
    font-family: inherit !important;
}

.leaflet-container .leaflet-control-attribution {
    display: none !important;
}

.leaflet-grab {
    cursor: -webkit-default;
    cursor: -moz-default;
    cursor: default;
}

.leaflet-popup-content {
    user-select: none;
}

.find-place,
.map-popup .accept {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 1.5rem;
    z-index: 15500;
    padding: 9px 11px;
}

.map-popup .accept img.loader {
    width: 25px !important;
    height: 25px !important;
}

.find-place {
    right: 1.5rem;
}

.map-popup .accept {
    left: 1.5rem;
}

.map-popup .accept:disabled {
    background-color: #6c6c6c;
    cursor: no-drop;
}

.information,
.new-address,
.postal-code {
    position: absolute;
    background-color: #fff;
    font-size: 13px;
    line-height: 20px;
    padding: 15px;
    border-radius: 9px;
    z-index: 1000;
    box-shadow: 0 0 5px #ccc;
}

.information,
.new-address {
    display: flex;
    align-items: center;
}

.new-address {
    justify-content: flex-start;
    top: 25px;
    left: 8%;
    right: 8%;
}

.information {
    bottom: 22px;
    left: 35%;
    right: 19%;
}

.postal-code {
    bottom: 22px;
    right: 67%;
    left: 13%;
}

:is(.new-address, .information, .postal-code) input[type=text] {
    padding: 0;
    max-width: none;
    background: 0 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    vertical-align: middle;
    font-size: 13px;
    transition: none;
}

.input-wrapper {
    display: flex;
    align-items: center;
    width: 50%;
}

:is(.information, .postal-code) input[type=text] {
    width: 100%;
    text-align: center;
}

#fullname {
    padding-left: 9px;
}

#selectAddress {
    flex: 1;
    padding-inline: 7px;
}

.new-address select {
    max-width: 7rem;
    width: auto;
    height: auto;
    color: #818181;
    cursor: pointer;
    background: 0 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    transition: none;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.select-wrapper {
    display: flex;
    align-items: center;
}

.select-wrapper:nth-child(3) {
    flex-grow: 1;
}

:is(.select-wrapper, .input-wrapper):not(:last-child)::after {
    content: "\007C";
    display: inline-block;
    transform: scaleY(2.2) scaleX(.2);
    color: #000;
    margin-left: 10px;
    padding-right: 7px;
    vertical-align: middle;
}

.input-wrapper:first-child::after {
    margin: 0;
}

.new-address select option {
    color: #353535;
}

.address-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 0;
    width: 25px;
    height: 25px;
    border: 0;
    outline: 0;
    font-size: 28px;
    color: #353535;
}

.map-result p {
    position: absolute;
    width: 90%;
    text-align: center;
    left: 50%;
    top: 60%;
    transform: translateX(-50%);
    font-size: 15px;
    color: var(--successColor);
    user-select: none;
}

.map-popup :where(.find-place, .accept)::after {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 7px;
}

.find-place::after {
    background: url(/DeliveryService/img/my-location.png) center no-repeat;
    background-size: contain;
}

.map-popup .accept::after {
    background: url(/DeliveryService/img/accept.png) center no-repeat;
    background-size: contain;
}

.map-popup .accept.loading::after {
    display: none;
}

.map-popup .close {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    top: 1.5rem;
    right: 1.5rem;
    width: 35px;
    height: 35px;
    background-color: #1c1c1cb8;
    border-radius: 50%;
    z-index: 15500;
}

.map-popup .close::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(/DeliveryService/img/close.png) center no-repeat;
    background-size: contain;
}

.map-popup.no-map {
    width: 25rem;
    padding: 4.3rem 1.3rem;
}

.map-popup.no-map :is(#map, .find-place) {
    display: none;
}

.map-popup.no-map :is(.new-address, .information, .postal-code) {
    position: static;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: unset;
    align-items: start;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.map-popup.no-map :is(.new-address, .information) :is(.select-wrapper, .input-wrapper) {
    width: 100%;
}

.map-popup.no-map .new-address select {
    max-width: none;
    width: 100%;
    display: block;
    align-items: unset;
}

.map-popup.no-map :is(.select-wrapper, .input-wrapper)::after {
    content: none;
}

.map-popup.no-map #selectAddress {
    width: 100%;
}

.map-popup.no-map :is(.address-field, .select-wrapper:nth-of-type(3)) {
    text-align: right;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 7px;
}

.map-popup.no-map .select-wrapper:nth-of-type(3) input {
    padding: 0;
    margin: 0;
}

.map-popup.no-map :is(.address-field:not(#selectAddress), .select-wrapper:nth-of-type(3)) {
    border: 1px solid #d9d9d9;
}

.map-popup.no-map .address-reset {
    width: 20px;
    height: 20px;
}

.map-popup.no-map .close {
    top: 1rem;
    right: 1rem;
}

.modal {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%)scale(98%);
}

:is(.modal, .popup-overlay).active {
    opacity: 1;
    visibility: visible;
}

.modal.active {
    transform: translateX(-50%)scale(100%);
}

.message-popup {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 30rem;
    max-width: 90%;
    min-height: 20rem;
    padding: 20px 20px 73px 20px;
    border-radius: 25px;
    box-shadow: 1px 1px 15px -2px #5f5f5f;
    background-color: #fff;
    z-index: 15500;
    transition: .45s ease;
}

.message-popup.active {
    transform: translate(-50%, -50%) scale(100%);
}

.message-popup .accept {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    border-radius: 12px;
}

.message-popup.error .accept {
    background-color: var(--errorColor);
}

.message-popup.success .accept {
    background-color: var(--successColor);
}

.message-popup figure {
    margin: 5px auto;
}

.message-popup .message {
    text-align: center;
    line-height: 28px;
    margin-top: 15px;
    font-size: 15px;
    color: #1c1c1c;
    user-select: none;
}

.send-method {
    margin: 2rem 0;
    display: none;
}

.price-message {
    align-self: center;
    font-size: 15px;
    font-weight: 700;
}

.payments {
    display: none;
    margin: 2rem 0;
}

.payments.active {
    display: block;
}

:where(.price-message, .price-result) img {
    vertical-align: middle;
    width: 25px !important;
    height: 25px !important;
}

.price-message.success {
    color: var(--successColor);
}

.price-message.error,
.price-result {
    color: var(--errorColor);
}

:is(.set-location, .send-method, .payments, .description)>p {
    margin-bottom: 1.2rem;
    padding-bottom: 1.35rem;
    font-weight: 700;
    border-bottom: 1px dashed #898989;
}

.set-location>p::before {
    width: 40px;
    height: 40px;
    background: url(/DeliveryService/img/select-location.png);
    vertical-align: middle;
}

#tozihat {
    margin: .5rem 0;
    width: 100%;
    height: 10rem;
    border: 1px solid #d1d1d1;
    padding: 20px;
    border-radius: 12px;
    resize: none;
}

.send-method {
    display: none;
}

.send-method.active {
    display: block;
}

.send-method>p::before {
    width: 35px;
    height: 35px;
    background: url(/DeliveryService/img/delivery-icon.png) center no-repeat;
    vertical-align: bottom;
}

.payments>p::before {
    width: 35px;
    height: 35px;
    background: url(/DeliveryService/img/payment.png) center no-repeat;
    vertical-align: middle;
}

:is(.set-location, .send-method, .payments)>p::before {
    content: "";
    display: inline-block;
    margin: 0 9px 0 13px;
    background-size: contain;
}

:where(.address, .method, .paymentMethod) {
    display: flex;
    margin-inline: .5rem;
}

:where(.address, .method, .paymentMethod) label {
    margin: 9px 12px;
    font-size: 15px;
    color: #222;
}

:where(.address, .method, .paymentMethod) :where(label, input) {
    cursor: pointer;
}

:where(.address, .method, .paymentMethod) input {
    min-width: 16px;
}

.remove-address {
    align-self: center;
    background: 0 0;
    padding: 0;
    width: 23px;
    height: 23px;
    margin-right: 5px;
}

.remove-address img {
    max-width: none;
    height: auto !important;
    width: 100% !important;
}

.discount-wrapper {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.discount-wrapper span {
    font-size: 15px;
    font-weight: 700;
}

.discount-wrapper .result {
    margin-inline: 15px;
    font-size: 14px;
    line-height: 24px;
    color: var(--successColor);
}

.discount-wrapper .result.error {
    color: var(--errorColor);
}

input.discount-code {
    display: inline-block;
    border: 1px solid #cdcdcd;
    padding: 9px 12px;
    margin-right: 10px;
    border-radius: 9px;
    font-size: 12px;
    width: 15rem;
    height: 38px;
}

.confirm-discount {
    margin-right: 11px;
    font-size: 13px;
    transition: .25s ease;
}

.total-price {
    margin: 1rem 0 0;
    padding-top: 15px;
    line-height: 45px;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px dashed #898989;
}

.total-price .loading {
    margin-top: 1.5rem;
    text-align: center;
}

.price-wrapper p {
    line-height: 35px;
}

.discount-wrapper,
.price-wrapper {
    margin-right: 7px;
    text-align: start;
}

.price-wrapper {
    margin-bottom: 2rem;
}

.total-price p>span {
    color: var(--primaryColor, var(--mapButton));
}

p.pay-discount>span {
    color: var(--successColor);
}

.pay-delivery-price {
    display: none;
}

.pay-delivery-price.active {
    display: block;
}

@media (hover:hover) {
    .message-popup.error .accept:hover {
        background-color: #d83636;
    }

    .message-popup.success .accept:hover {
        background-color: #1c9214;
    }

    :is(.find-place, .map-popup.accept:not(:disabled), .choose-on-map, .confirm-discount):hover {
        background-color: var(--primaryColorHover, #1c5fd3);
    }

    .map-popup .close:hover {
        background-color: #1c1c1cc9;
    }

    .remove-address:hover {
        background: 0 0;
        transform: scale(1.12);
    }
}

@media screen and (max-width:1200px) {
    .map-popup {
        width: 90%;
        top: 5%;
        bottom: 5%;
    }
}

@media screen and (max-width:992px) {
    .new-address {
        top: auto;
        bottom: 86px;
        left: 1.5rem;
        right: 1.5rem;
        padding: 13px;
    }

    .new-address select {
        max-width: 90px;
    }

    .information {
        left: 35%;
        right: 25%;
    }

    .postal-code {
        right: 66%;
        left: 16%;
    }
}

@media screen and (max-width:768px) {
    #selectAddress {
        font-size: 12px;
    }

    .information,
    .new-address,
    .postal-code {
        left: 1.5rem;
        right: 1.5rem;
        padding: 13px;
    }

    .new-address {
        top: auto;
        bottom: 190px;
    }

    .new-address select {
        max-width: 62px;
        font-size: 12px;
    }

    .information {
        bottom: 134px;
    }

    .postal-code {
        bottom: 78px;
    }

    :is(.information, .postal-code) input[type=text] {
        font-size: 12px;
    }
}

@media screen and (max-width:576px) {
    .main-content {
        padding: 1.2rem;
    }

    .map-result p {
        font-size: 14px;
        top: 66%;
    }

    :is(.select-wrapper, .input-wrapper:first-child)::after {
        padding-right: 0;
    }

    .price-message,
    :where(.address, .method, .paymentMethod) label {
        font-size: 14px;
    }

    .map-popup.no-map {
        width: 90%;
    }

    #tozihat {
        height: 8rem;
    }

    .new-address select {
        max-width: 55px;
    }

    #selectAddress {
        width: 95%;
    }

    .address-reset {
        width: 5%;
        font-size: 26px;
    }

    input.discount-code {
        margin-right: 0;
    }

    .discount-wrapper span {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    .discount-wrapper .result {
        flex-basis: 100%;
        margin-top: 15px;
        font-size: 13px;
    }
}

.skucss {
    display: none;
}

@media screen and (max-width: 1024px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .s_table_1 {
        min-width: 600px;
    }

    select[name='sku[]'] {
        padding: 8px;
        height: 40px;
    }
}
