/* 
    Sidecart CSS
*/

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

.flex-c {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-m {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media(min-width: 768px) {
    .sidecart {
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%;
        max-width: 450px;
        transition: 0.35s;
        z-index: 99999999;
        background: white;
        box-shadow: -4px 0px 20px rgb(0 0 0 / 15%);
        padding: 50px 0px;
        padding-bottom: 20px;
        overflow: scroll;
        opacity: 0;
        transform: translate(500px);
    }
}

.space-between {
    width: 100%;
    justify-content: space-between;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between,
.space-between {
    justify-content: space-between;
}

.justify-evenly {
    justify-content: space-evenly;
}

@media(max-width: 767px) {
    .flex-m {
        flex-direction: column;
    }

    .sidecart {
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 99999999;
        background: white;
        box-shadow: -4px 0px 20px rgb(0 0 0 / 15%);
        padding: 30px 0px;
        padding-bottom: 20px;
        max-width: 400px;
        transition: 0.2s;
        width: 100%;
        overflow: scroll;
        opacity: 0;
        transform: translate(500px);
    }

    .sidecart-total {
        margin: auto 0 0 0 !important;
        width: calc(100% - 32px) !important;
    }
}

.sidecart-close {
    position: absolute;
    top: 24px;
    right: 20px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
}

.sidecart-content {
    padding: 30px;
    margin-bottom: 20px;
    height: fit-content;
    width: 100%;
}

.sidecart-content>div:not(:last-child) {
    margin-bottom: 40px;
}

.sidecart .your-cart {
    color: #005BAA;
    font-size: 32px;
    line-height: 1.3em;
    font-weight: 600;
}

.sidecart .remove {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px !important;
    z-index: 999;
    cursor: pointer;
}

.sidecart-product {
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 20px;
    row-gap: 20px;
}

.sidecart-product-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.sidecart input::-webkit-outer-spin-button,
.sidecart input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sidecart .fa-minus,
.sidecart .fa-plus {
    color: #245FA6;
    cursor: pointer;
}

.sidecart input[type=number] {
    -moz-appearance: textfield;
}

.sidecart-quantity>div:first-child {
    font-size: 12px;
    color: #6D6E71;
}

.sidecart-quantity input {
    padding: 0;
    width: 50px;
    text-align: center;
    border: none !important;
    outline: none;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 19px;
}

.sidecart-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 50px 30px;
    row-gap: 40px;
}

.sidecart-footer>div>div {
    word-spacing: 100vw;
    text-align: center;
    color: #6D6E71;
}

.sidecart-total {
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #EAEAEA;
    margin: 0 20px;
    padding: 25px 20px 20px;
    width: calc(100% - 40px);
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 999;
}

.sidecart-checkout {
    background: linear-gradient(180deg, #3677C5 0%, #225CA3 100%);
    border-radius: 30px;
    width: 100%;
    padding: 14px 0;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0px 1.7px 1px rgba(0, 0, 0, 0.2);
}

.sidecart-checkout::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: url("https://cc-market.com/wp-content/uploads/2023/05/verified.svg") center center / contain no-repeat;
}

.sidecart-checkout img {
    width: 18px !important;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.img-wrap {
    position: relative;
}

.img-wrap:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #020D26;
    opacity: 0.04;
    z-index: 99;
    width: 100%;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.noscroll::-webkit-scrollbar {
    display: none;
}

.noscroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#sidecart_wrapper {
    position: relative;
}

#sidecart_wrapper.active>.sidecart {
    transform: translate(0);
    opacity: 1;
}

#sidecart_wrapper.loading .sidecart {
    overflow: hidden;
}

#sidecart_wrapper .sidecart::before {
    opacity: 0;
    content: "";
    position: fixed;
    display: block;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: 0.3s;
    pointer-events: none;
}

#sidecart_wrapper .sidecart::after {
    opacity: 0;
    z-index: 2000;
    transition: 0.3s;
    pointer-events: none;
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: fixed;
    transform: translate(-50%, -50%);
    top: 50%;
}

#sidecart.loading::before {
    opacity: 1;
    pointer-events: all;
}

#sidecart.loading::after {
    opacity: 1;
    pointer-events: all;
}

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

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

.sidecart-total .without-vat {
    font-size: 14px;
    line-height: 1.3em;
    font-weight: 400;
    color: #6A7889;
}

.sidecart-total .coupon-code {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #EAEAEA;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #EAEAEA;
}

.sidecart-total .coupon-code .error-message {
    width: 100%;
    color: #a70000;
    margin-top: 10px;
}

.sidecart-total .coupon-code-wrapper {
    width: 100%;
    gap: 8px;
}

.sidecart-total .coupon-code button {
    width: fit-content;
    height: 50px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1em;
    font-weight: 600;
    border: 1px solid #245FA6;
    color: #245FA6;
    background: white;
    border-radius: 5px;
    transition: 0.2s;
}

.sidecart-total .coupon-code button:hover {
    border: 1px solid #245FA6;
    color: white;
    background: #245FA6;
}

.sidecart-total .coupon-code input {
    width: 100%;
    background: #F1F6FA;
    font-size: 16px;
    border-radius: 5px !important;
    outline: none !important;
    border: 0 !important;
    height: 50px;
    padding: 0 12px;
}

.sidecart-total .coupon-code input::placeholder {
    color: #6A7889;
    font-size: 16px;
    opacity: 1;
}

.sidecart-total .coupon-code input:-ms-input-placeholder {
    color: #6A7889;
    font-size: 16px;
}

.sidecart-total .coupon-code input::-ms-input-placeholder {
    color: #6A7889;
    font-size: 16px;
}

.sidecart .vat-incl {
    font-size: 12px;
    line-height: 1.3em;
    font-weight: 400;
    color: #6A7889;
}

.sidecart-total.inactive .sidecart-checkout {
    background: #D8DADD;
    box-shadow: none;
    color: #94979A;
    border: 0;
}

.sidecart-total .sidecart-checkout:disabled,
.sidecart-total .sidecart-checkout[disabled] {
    background: #FF6600;
    color: white;
    box-shadow: none;
    border: 0;
}

.sidecart-total.inactive>a {
    pointer-events: none;
}

.sidecart-total.inactive .sidecart-checkout::before {
    background: url("https://cc-market.com/wp-content/uploads/2023/05/verified-inactive.svg") center center / contain no-repeat;
}

.sidecart-total .sidecart-checkout:disabled::before,
.sidecart-total .sidecart-checkout[disabled]::before {
    background: url("/wp-content/uploads/2023/12/Warning.svg") center center / contain no-repeat;
}

.sidecart-total a.disabled {
    pointer-events: none;
    cursor: default;
}

.product-template-default .entry-content .woocommerce-notices-wrapper {
    display: none;
}