@import './common.css';

.mv-only {
    display: none;
}

.d-only {
    display: flex;
    flex-direction: column;
}

.align-between {
    display: flex;
    justify-content: space-between;
}

.checkout-warpper,
.order-details-wrapper {
    width: 800px;
}

#cart-order {
    position: relative;
}

.order-details-wrapper .pr-sub-heading {
    font-family: 'Tajawal';
    font-size: var(--size18);
    font-weight: 600;
}

.pinkrays-breadcrumb.no-padding {
    padding-left: 0;
}

.body3 {
    font-family: 'Tajawal-Medium';
    font-size: var(--size14);
    font-weight: 500;
}

.checkout-warpper .sub-title {
    font-family: 'Tajawal-Bold';
}

.body1 {
    font-family: 'Tajawal-Medium';
    margin-bottom: var(--size30);
    line-height: 1;
}

.body1 span:first-child {
    margin-right: 1rem;
}

/*Overview checkout-layout*/
.order-review {
    display: flex;
    width: 100%;
    padding: var(--size20);
    border: 1px solid var(--base);
    margin-bottom: var(--size40);
    flex-wrap: wrap;
    row-gap: 30px;
}

.order-review .cell {
    display: flex;
    flex-direction: column;
    flex: 1;
    row-gap: 5px;
}

.fn-normal {
    font-family: 'Tajawal';
}

.order-review .cell h3 {
    font-family: 'Tajawal-Medium';
    font-size: var(--size14);
    text-transform: capitalize;
}

.order-review .cell span {
    font-family: 'Tajawal-Bold';
    font-size: var(--size13);
}

.bg-transparent {
    color: var(--base);
    border: 2px solid var(--base);
}

.bg-transparent:hover {
    background-color: #20271f !important;
    color: var(--lightBg);
    border: 2px solid #20271f;
}

.order-details-wrapper {
    margin: 0;
    width: 75%;
}

.order-details-wrapper .address-box {
    justify-content: space-between;
    gap: 1.5rem;
}

.shop-total {
    font-size: var(--size16);
    width: 130px;
    font-family: 'Tajawal-Medium';
    text-align: right;
}

.receiver-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pinkray-logo-single {
    display: flex;
    margin: var(--size10) auto;
    justify-content: center;
}

.pinkray-logo-single img,
.pinkray-logo-single svg {
    width: 125px;
}

.form-switch {
    padding-left: 0;
    margin-left: 0;
    display: flex;
    justify-content: space-between;
    max-width: 20rem;
}

.form-switch .form-check-input {
    background-repeat: no-repeat;
    margin-left: 0;
}

.scroll-box,
.scroll-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 0;
}

.scroll-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.scroll-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
}

.scroll-content::-webkit-scrollbar {
    width: 6px;
    background-color: #f5f5f5;
}

.scroll-content::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.cart-slide-modal {
    position: relative;
    z-index: 14;
    display: none;
    font-family: 'Tajawal';
}

.sticky-footer {
    padding: 0 0 var(--size20);
    z-index: 10;
}

.cart-slide-overlay,
.cart-slide-box,
#page-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: var(--secondryBg);
    opacity: 0.7;
    z-index: 12;
    transition: width 0.35s ease-in-out;
    overflow: hidden;
}

#page-overlay {
    display: none;
    opacity: 0.3;
    margin: auto;
    background: url('../img/xloading.gif') no-repeat center center rgba(0, 0, 0, 0.3);
}

.cart-slide-box {
    box-shadow: 0 0 150px #0000001a;
    right: -640px;
    opacity: 1;
    z-index: 13;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: var(--lightBg);
}

.cart-is--open {
    transform: translate(-640px);
}

.show-animation {
    opacity: 0;
    transform: translateY(60px);
}

.cart-is--open .show-animation {
    opacity: 1;
    transform: translateY(0);
}

.animation-delay-2 {
    transition:
        transform 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.22s,
        opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.32s;
}

.cart_contents {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.box-gutter {
    padding: var(--size);
}

.cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding-top: var(--size20);
}

.cart-empty {
    font-size: var(--size16);
}

.cart-box {
    font-family: 'Tajawal';
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.order-info {
    display: flex;
    width: 100%;
    gap: 20px;
}

.discount-total {
    display: flex;
    flex-direction: column;
}

.discount-box h3 {
    font-family: 'Tajawal-Bold';
    margin-bottom: var(--size10);
}

.discount-box,
.discount-box fieldset {
    font-family: 'Tajawal';
    position: relative;
    display: flex;
    flex-direction: column;
}

.mb-30 {
    margin-bottom: var(--size30);
}

.box-gutter:last-of-type {
    padding-bottom: 10px;
}

.discount-box fieldset {
    flex-direction: row;
    margin-bottom: var(--size10);
}

.right-nav {
    display: flex;
    justify-content: end;
    align-items: center;
}

.sticky-footer .right-nav {
    margin-top: 1rem;
}

.link {
    font-family: 'Tajawal-Medium';
    color: var(--base);
    text-transform: uppercase;
    text-decoration: none;
    font-size: var(--size16);
}

.link:hover {
    color: var(--base);
    text-decoration: underline;
}

.show-flex {
    display: flex !important;
}

.discount-box input[type='text'] {
    border-radius: 0.5rem;
    width: 14rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 0.1rem solid var(--base);
    padding: 0.5rem;
    font-size: var(--size16);
}

.discount-box input[type='text'].input-error {
    border: 0.01rem solid var(--error);
    color: var(--error);
    font-size: var(--size16);
}

.delete-icon {
    border: 0;
    position: absolute;
    right: 10px;
    background: url('../img/delete.svg') no-repeat;
    width: 18px;
    height: 20px;
    text-indent: -9999px;
    transition: 0.3ms all ease;
    font-size: 0;
    right: 0;
    top: 5px;
}

.cart-table.checkout {
    position: relative;
}
.confirmation {
    font-family: 'Tajawal-Medium';
    text-transform: uppercase;
    display: none;
    padding: 1rem 1rem 0.7rem;
    color: var(--lightBg);
    position: absolute;
    z-index: 6;
    width: 200px;
    background-color: var(--base);
    border-radius: 6px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 6px;
    opacity: 1;
    text-align: center;
    transition: all 0.1ms;
    top: 50%;
}

.delete-icon:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17.756' height='20' viewBox='0 0 17.756 20'%3E%3Cpath id='delete_FILL0_wght200_GRAD0_opsz24' d='M203.317-770.77a1.975,1.975,0,0,1-1.45-.6,1.975,1.975,0,0,1-.6-1.45v-15.707H200v-1.268h5.073v-.976h7.61v.976h5.073v1.268h-1.268v15.707a1.985,1.985,0,0,1-.587,1.462,1.985,1.985,0,0,1-1.462.587Zm11.9-17.756H202.537v15.707a.76.76,0,0,0,.22.561.76.76,0,0,0,.561.22h11.122a.746.746,0,0,0,.537-.244.746.746,0,0,0,.244-.537ZM206.1-774.575h1.268V-785.99H206.1Zm4.293,0h1.268V-785.99H210.39Zm-7.854-13.951v0Z' transform='translate(-200 790.77)' fill='black'/%3E%3C/svg%3E%0A");
}

.flex-contain {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding-right: 1rem;
    font-family: 'Tajawal-Medium';
    font-size: var(--size16);
    color: var(--base);
    width: calc(100% - 50px);
    line-height: 1.3;
}

.cart__title {
    font-family: 'Tajawal-Bold';
    font-size: var(--size24);
    font-style: normal;
    color: var(--base);
    display: block;
    margin-bottom: var(--size20);
}

.cart-table {
    display: flex;
    flex-direction: column;
    border: 0;
    padding-top: 0;
    padding-bottom: var(--size);
}

.cart-table.checkout {
    padding-bottom: 0;
    margin-bottom: 20px;
}

.cart-table > li:first-child {
    padding-top: 0;
}

.cart-table > li {
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-table > li:last-child {
    border: 0;
}

.sub-total {
    border-bottom: 1px #bcbdbc solid;
    padding-bottom: var(--size10);
    padding-top: var(--size48);
}

.cart-table > li h3 {
    font-family: 'Tajawal-Bold';
    line-height: 1;
    font-size: var(--size16);
    color: var(--base);
}

.cart-table > li figure {
    gap: 10px;
    max-width: 150px;
    max-height: 200px;
    overflow: hidden;
    aspect-ratio: 1;
}

.cart-table > li figure img {
    max-width: 100%;
}

.cart-table > li ul li {
    padding: 0 var(--size14);
}

.cart-table > li ul li:first-child {
    padding-left: 0;
}

.cart-table > li ul li a {
    color: var(--baseFontColor);
    text-decoration: underline !important;
    display: block;
    position: relative;
    font-size: var(--size14);
}

.cart-table > li ul li a:hover {
    text-decoration: none !important;
}

.cart-table > li .close-xs {
    border-radius: 50%;
    display: flex;
    position: absolute;
    background-color: #d7d7d7;
    padding: var(--size);
    top: -5px;
    right: 5px;
}

.definitation_grid {
    font-family: 'Tajawal';
    display: grid;
    grid-template-columns: auto auto;
    text-align: left;
    line-height: normal;
    gap: var(--size10);
    background-color: var(--bgBox);
    padding: var(--size);
}

dd,
dt {
    font-family: 'Tajawal-Medium';
    font-size: var(--size16);
    font-weight: 500;
}

.semi-bold {
    font-family: 'Tajawal-Bold';
    font-size: var(--size16);
    margin-top: var(--size20);
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

/**RTL**/
[dir='rtl'] .cart-slide-box {
    direction: rtl;
}

[dir='rtl'] .cart-table > li figure {
    margin-right: 0;
    margin-left: var(--size20);
}

[dir='rtl'] .cart-slide-box {
    box-shadow: 0 150px 0 #0000001a;
    left: -640px;
    right: inherit;
}

[dir='rtl'] .cart-is--open {
    transform: translate(640px);
}

[dir='rtl'] .align-left {
    text-align: right;
}

[dir='rtl'] .definitation_grid dt {
    text-align: right;
}

[dir='rtl'] .pos-right {
    right: inherit;
    left: 40px;
}

/** media queries **/

@media (min-width: 320px) {
    .checkout.mobile-view .cart-box .order-info {
        align-items: center;
    }

    .checkout.mobile-view .cart-box .mv-only {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .checkout.mobile-view .cart-box .mv-only h3 {
        flex: 0;
    }

    .checkout.mobile-view .cart-box .d-only,
    .checkout.mobile-view .cart-box .delete-icon,
    .checkout.mobile-view .d-no-show {
        display: none;
    }

    .checkout.mobile-view .cart-box .mb-12 {
        margin: 0;
    }

    .pinkray-logo-single img,
    .pinkray-logo-single svg {
        width: 80px;
    }
    .cart-slide-box {
        max-width: 339px;
    }

    .cart__title {
        text-align: center;
        font-size: var(--size20);
    }

    .close-cart {
        position: absolute;
        right: 10px;
        width: 18px;
        height: 25px;
    }

    .flex-contain {
        font-size: var(--size14);
    }

    .link,
    .shop-total {
        font-size: var(--size13);
    }

    .body1 {
        font-size: var(--size14);
        line-height: 24px;
        font-family: 'Tajawal-Medium';
    }

    .discount-box h3 {
        font-size: var(--size18);
    }

    .order-info {
        gap: 10px;
    }

    .cart-box {
        margin-bottom: 20px;
    }

    .cart-table > li figure {
        max-height: 130px;
    }

    .cart-table.checkout > li figure img {
        width: 100px;
    }

    .m-no-show {
        display: none;
        opacity: 0;
    }

    .d-no-show {
        display: block;
        font-size: var(--size14);
        margin-top: 5px;
    }

    .checkout-warpper .definitation_grid {
        margin: 0;
    }

    .definitation_grid {
        margin: 0 -10px;
    }

    .checkout-warpper .discount-box fieldset {
        max-width: 100%;
    }

    .cart-table > li figure {
        max-width: 100px;
    }

    .order-review .cell h3 {
        margin-bottom: 0;
    }

    .order-review .cell {
        flex: 50%;
    }

    .checkout-warpper,
    .order-details-wrapper {
        width: 100%;
        margin: auto;
    }

    .order-details-wrapper {
        margin: 0;
    }

    .address-box {
        margin: var(--size20) 0;
        flex-direction: column-reverse;
    }

    .cart-options li,
    .cart-table > li ul li {
        margin-right: 10px;
        padding: 0;
    }

    .discount-box input[type='text'] {
        width: 100%;
    }

    .form-switch {
        max-width: 100%;
    }

    .right-nav {
        gap: 1rem;
        flex-direction: column-reverse;
    }

    .checkout-warpper .right-nav {
        justify-content: space-between;
        width: 90%;
        margin: auto;
        flex-direction: unset;
    }

    .order-details-wrapper .right-nav {
        justify-content: space-between;
        flex-direction: unset;
    }

    .flex-contain strong {
        margin-left: 10px;
    }

    .m-no-show strong {
        margin-left: 0;
    }
}

@media (min-width: 767.99px) {
    .checkout.mobile-view .cart-box .order-info {
        align-items: inherit;
    }

    .checkout.mobile-view .cart-box .d-only,
    .checkout.mobile-view .cart-box .delete-icon {
        display: flex;
        flex-direction: column;
    }

    .checkout.mobile-view .cart-box .mb-12 {
        margin-bottom: 12px;
    }

    .checkout.mobile-view .cart-box .mv-only {
        display: none;
    }

    .pinkray-logo-single img,
    .pinkray-logo-single svg {
        width: 125px;
    }
    .cart-slide-box {
        max-width: 580px;
    }

    .cart__title {
        text-align: left;
        font-size: var(--size24);
    }

    .flex-contain,
    .body3,
    .shop-total,
    .link,
    p,
    .body1 {
        font-size: var(--size16);
    }

    .discount-total {
        gap: 20px;
        flex-direction: column-reverse;
    }

    .definitation_grid {
        place-items: stretch;
        width: calc(100% - 30px);
        margin: auto;
    }

    .discount-box h3 {
        font-size: var(--size22);
    }

    .checkout-warpper .right-nav {
        width: 100%;
        justify-content: end;
    }

    .discount-box fieldset,
    .checkout-warpper .discount-box fieldset {
        max-width: 25rem;
    }

    .order-info {
        gap: 20px;
    }

    .order-review .cell h3 {
        font-size: var(--size16);
    }

    .m-no-show {
        display: block;
        opacity: 1;
        margin-top: 10px;
    }

    .d-no-show {
        display: none;
    }

    .order-review .cell {
        flex: 1;
    }
    .order-details-wrapper {
        width: 100%;
    }

    .form-switch {
        max-width: 20rem;
    }

    .cart-table > li figure {
        max-width: 150px;
        max-height: 200px;
    }

    .right-nav,
    .address-box,
    .order-review {
        flex-direction: row;
    }

    .order-details-wrapper .right-nav {
        justify-content: end;
    }

    .right-nav {
        gap: 2rem;
    }

    .primary-btn {
        margin: 0;
    }

    .sticky-footer .definitation_grid {
        margin-left: 0;
        margin-right: 0;
    }

    .right-nav .primary-btn {
        margin: 0;
    }
}

@media (min-width: 820px) {
    .cart-box {
        margin-bottom: 30px;
    }
    .cart-table.checkout > li figure img {
        width: 150px;
    }

    .m-no-show strong {
        margin-left: 0;
    }

    .order-details-wrapper .definitation_grid {
        width: calc(100% - 50%);
        margin: 0;
    }
}

@media (min-width: 1100px) {
    .checkout-warpper,
    .order-details-wrapper {
        width: 800px;
    }

    .order-details-wrapper {
        width: calc(100% - 30%);
    }

    .order-details-wrapper .definitation_grid {
        width: calc(100% - 55%);
    }
}
