/* custom cart drawer css */

*,
:after,
:before {
    box-sizing: border-box;
}

.cart-item-price-class .amount {
    color: #4A4A4A !important;
}

.custom-drawer-footer .amount {
    color: #ffffff !important;
}

/* ----------- */

#custom-cart-drawer-open-close-btn {
    /* MOVED FROM CUSTOM CARD DRAWER CSS  */
    /* background-color: blue; */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 0;
    height: 2.625rem;
    margin-top: 0.125rem;
    pointer-events: none;
}

custom-cart-drawer {
    visibility: hidden;
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    /* display: none; */
    justify-content: flex-end;
    background-color: rgba(18, 18, 18, .5);
    /* Drawer open olduğunda açılan code */
    transition: visibility .2s ease;
}

.custom-drawer-inner {
    height: 100%;
    /* width: 25rem; */
    width: 399px;
    max-width: calc(100vw - 1.875rem);
    /* padding: 0 1.5rem; */
    border: .063rem solid rgba(18, 18, 18, .2);
    border-right: 0;
    overflow: auto;
    display: grid;
    grid-template-rows: auto max-content max-content;
    transform: translate(100%);
    transition: transform .2s ease;
    background-color: white;
}

.custom-drawer-cart-items-parent {
    position: relative;
    max-height: 504px;
}

.custom-drawer-cart-items {
    height: calc(100% - 39px);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.custom-drawer-upsell-items {
    /* background-color: #adcbe3; */
}

.properties-part {
    color: gray;
    font-size: 12px;
    padding-top: .2rem;
}

.properties-part strong {
    color: #565656;
    font-weight: 500;
}

.custom-drawer-upsell-products {
    padding: 0 0.938rem;
    overflow: auto;
    height: 170px;
    margin: .1em 0;
}

.custom-drawer-footer {
    background-color: #e1e1e1;
    padding: 0.938rem;
}

.custom-cart-item {
    width: 100%;
    background-color: white;
    word-break: break-all;
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 0.625rem;
    padding: 0.625rem 0.938rem 0.813rem 0.313rem;
}

.custom-cart-item:not(:last-child) {
    border-bottom: 1px solid #e9e9e9;
}

.custom-drawer-close-btn {
    opacity: 0.8;
    cursor: pointer;
}

.cart-item-remove-btn {
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    justify-content: end;
    /* padding-top: 1.5rem; */
}

.img-part {
    min-width: 93px;
    min-height: 1.8px;
}

.title-part a {
    text-decoration: none;
    color: black;
    white-space: normal !important;
}

.content-part {
    display: grid;
    grid-template-columns: auto 25%;
    gap: 0.25rem;
    font-size: 15px;
}

.title-and-btns {
    font-size: 14px;
    word-break: break-word;
}

.minus-plus-btns {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.625rem;
}

.minus-plus-btns .minus-plus-btn {
    border: none;
    background: none;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
        rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    cursor: pointer;
    padding: 0.563rem;
    width: 1.875rem;
    height: 1.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-cart-items-header {
    position: relative;
    text-align: center;
    padding: 0.25rem 0;
    background-color: white;
    box-shadow: #63636333 0 2px 8px;
    font-weight: 600;
    font-size: 1.063rem;
}

/* scroll bar start */
.custom-drawer-inner ::-webkit-scrollbar {
    width: 7px;
}

/* Track */
.custom-drawer-inner ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.custom-drawer-inner ::-webkit-scrollbar-thumb {
    background: #31deeb;
}

/* Handle on hover */
.custom-drawer-inner ::-webkit-scrollbar-thumb:hover {
    background: #31deeb;
}

.custom-drawer-inner .cart__checkout:not(.btn--static):hover {
    background-color: #31deeb;
}

.custom-drawer-inner label:not(.variant__button-label):not(.text-label) {
    text-transform: none;
    letter-spacing: inherit;
    font-size: inherit;
    margin-bottom: 0px;
}

/* scroll bar end */

/* warranty */
.upsell-product-item-cart {
    display: grid;
    grid-template-columns: 22% auto;
    gap: 0.625rem;
    padding: 0.313rem 0.313rem 0.625rem 0.313rem;
    background-color: #e1e1e1;
}

.upsell-product-item-cart:not(:first-child) {
    border-top: 1px solid #fff;
}

.upsell_product_price_part {
    display: grid;
    grid-template-columns: 75% auto;
    gap: 0.313rem;
}

.upsell_product_price_part a {
    color: black;
}

.upsell_product_variant_part {
    display: grid;
    grid-template-columns: 70% auto;
    gap: 0.313rem;
    align-items: center;
    padding-top: 0.313rem;
}

#upsell_variant_select {
    background-position: top 9px right 8px;
    background-size: 0.625rem;
    background-repeat: no-repeat;
    padding: 0.625rem !important;
    border: none;
    cursor: pointer;
    color: black;
    height: 38px;
    background: white;
    border-radius: 0;
    font-size: 0.85rem;
}

#upsell_variant_select:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.upsell-products {
    height: 220px;
}

.upsell-products h3 {
    text-align: center;
    margin: 0 0 1.25rem 0;
    padding: 0.5rem;
    font-weight: 600;
    background-color: #d6d6d6;
    position: relative;
}

.upsell-products .upsell-inner-content {
    max-height: calc(85% - 47px);
    overflow-y: auto;
    padding: 0 1.25rem;
}

.inner-insurance-footer-parent {
    background-color: #d6d6d6;
    padding: 0.938rem;
}

.custom-upsell-add-btn {
    background-color: black;
    color: white;
    border: none;
    height: -webkit-fill-available;
}

/* warranty */

/* insurance */
/* insurance */

.input_wrapper {
    width: 74px;
    height: 36px;
    position: relative;
    cursor: pointer;
}

#insuranceAddToCartBtnOpacityZero {
    position: absolute;
    z-index: 6;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    cursor: pointer;
}

.input_wrapper input[type="checkbox"] {
    width: 70px;
    height: 30px !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #9c9e9f;
    /* border-radius: 5px; */
    position: relative;
    outline: 0;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    border: none;
}

.input_wrapper input[type="checkbox"]:after {
    position: absolute;
    content: "";
    top: 4px;
    left: 7px;
    width: 21px;
    height: 22px;
    background: #ffffff;
    z-index: 2;
    /* border-radius: 2px; */
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
}

.input_wrapper svg {
    position: absolute;
    top: 22%;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    fill: #fff;
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
    z-index: 1;
}

.input_wrapper .is_checked {
    width: 15px;
    left: 22%;
    -webkit-transform: translateX(190%) translateY(-30%) scale(0);
    transform: translateX(190%) translateY(-30%) scale(0);
}

.input_wrapper .is_unchecked {
    width: 12px;
    right: 19%;
    -webkit-transform: translateX(0) translateY(15%) scale(1);
    transform: translateX(0) translateY(15%) scale(1);
}

/* Checked State */
.input_wrapper input[type="checkbox"]:checked {
    background: #31deeb;
}

.input_wrapper input[type="checkbox"]:checked:after {
    left: calc(100% - 30px);
}

.input_wrapper input[type="checkbox"]:checked+.is_checked {
    -webkit-transform: translateX(0) translateY(-3%) scale(1);
    transform: translateX(0) translateY(-3%) scale(1);
}

.input_wrapper input[type="checkbox"]:checked~.is_unchecked {
    -webkit-transform: translateX(-190%) translateY(-30%) scale(0);
    transform: translateX(-190%) translateY(-30%) scale(0);
}

/* Switch 4 Specific Style End */

.shipping-input-part {
    display: grid;
    grid-template-columns: 80% auto;
    gap: 0.313rem;
    padding: 0.313rem 0.75rem 0.313rem 0.313rem;
    background-color: #fff;
    margin-bottom: 0.313rem;
}

.shipping-title {
    font-size: 15px;
    font-weight: 600;
}

.shipping-description {
    font-size: 12.5px;
    padding-top: 0.25rem;
}

.item-info__quantity-wrapper {
    width: 40%;
    max-height: 1.25rem;
}

.item-info__title {
    width: 80%;
}

.item-info__price {
    width: 30%;
}

.item-info__quantity-wrapper input {
    padding: 0.25rem 0;
}

/* insurance */

.custom-drawer-checkout-btn {
    background-color: #000;
    width: 100%;
    padding: 0.625rem;
    text-align: center;
    color: #fff !important;
    display: flex;
    text-decoration: none;
    margin-top: 0.625rem;
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
    height: 56px;
}

.custom-drawer-checkout-btn:hover {
    color: #fc3;
}

.loader-insurance-loader {
    border: 1px solid gray;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: minusPlusrotation 1s linear infinite;
}

.loader {
    width: 23px;
    height: 23px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.minus-plus-loader {
    width: 10px;
    height: 10px;
    border: 1px solid gray;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: minusPlusrotation 1s linear infinite;
}

@keyframes minusPlusrotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.warranty-loader {
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: warrantyRotation 1s linear infinite;
}

@keyframes warrantyRotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ------ drawer responsive------- */
@media screen and (max-width: 768px) {
    .custom-drawer-inner {
        max-width: calc(100vw - 0.938rem);
    }

    .content-part {
        gap: 0.313rem;
    }

    .custom-cart-item {
        gap: 0.313rem;
        grid-template-columns: 23% 77%;
        padding: 0.625rem 0.625rem 0.813rem 0.313rem;
    }

    .img-part {
        min-width: fit-content;
    }

    .custom-drawer-upsell-products {
        padding: 0.625rem;
    }

    .custom-drawer-footer {
        padding: 0.625rem;
    }

    .shipping-input-part {
        grid-template-columns: 75% auto;
    }

    .shipping-title {
        font-size: 14px;
    }

    .title-part {
        font-size: 0.813rem;
    }
}

.drawer-add-to-cart-loader-icon-main {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}







