/* =========================================================
   PROPERA — CART
   ========================================================= */

.propera-cart,
.propera-cart * {
    box-sizing: border-box;
}


.propera-cart {
    padding: 70px 0 90px;

    background: #ffffff;

    color: #063f63;

    font-family: inherit !important;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.propera-cart__container {
    width: min(1280px, calc(100% - 80px));

    margin: 0 auto;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.propera-cart__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    gap: 25px;

    align-items: start;
}


/* =========================================================
   MAIN
   ========================================================= */

.propera-cart__main {
    min-width: 0;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.propera-cart__products {
    padding: 20px 26px 8px;

    border: 1px solid rgba(6, 63, 99, 0.16);

    border-radius: 12px;

    background: #ffffff;
}


/* =========================================================
   HEADER
   ========================================================= */

.propera-cart__products-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        90px
        90px
        90px;

    gap: 20px;

    align-items: center;

    padding: 0 0 18px;

    color: #063f63;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 500;
}


.propera-cart__header-price,
.propera-cart__header-quantity,
.propera-cart__header-subtotal {
    text-align: right;
}


/* =========================================================
   PRODUCT
   ========================================================= */

.propera-cart__item {
    position: relative;

    display: grid;

    grid-template-columns:
        18px
        58px
        minmax(0, 1fr)
        90px
        90px
        90px;

    gap: 14px;

    align-items: center;

    min-height: 100px;

    padding: 18px 0;

    border-top: 1px solid rgba(6, 63, 99, 0.10);
}


.propera-cart__remove {
    align-self: center;
}


.propera-cart__remove .remove {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #063f63 !important;

    font-size: 17px;

    line-height: 1;

    text-decoration: none !important;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.propera-cart__remove .remove:hover {
    color: #063f63 !important;

    opacity: 0.55;

    transform: scale(1.1);
}


/* =========================================================
   IMAGE
   ========================================================= */

.propera-cart__image {
    width: 58px;
    height: 58px;

    overflow: hidden;

    border-radius: 8px;

    background: #f3f6f5;
}


.propera-cart__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.propera-cart__image a {
    display: block;

    width: 100%;
    height: 100%;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.propera-cart__product {
    min-width: 0;
}


.propera-cart__product-name {
    display: inline;

    color: #063f63 !important;

    font-size: 16px;

    line-height: 1.45;

    font-weight: 400;

    text-decoration: none !important;
}


.propera-cart__product-name:hover {
    color: #063f63 !important;
}


/* =========================================================
   PRODUCT META
   ========================================================= */

.propera-cart__product .variation {
    margin: 7px 0 0;

    font-size: 14px;

    line-height: 1.4;

    color: rgba(6, 63, 99, 0.55);
}


.propera-cart__product .variation dt,
.propera-cart__product .variation dd {
    display: inline;

    margin: 0;
}


.propera-cart__product .variation dd {
    margin-left: 4px;
}


/* =========================================================
   PRICE / SUBTOTAL
   ========================================================= */

.propera-cart__price,
.propera-cart__subtotal {
    text-align: right;

    white-space: nowrap;

    color: #063f63;

    font-size: 16px;

    line-height: 1.3;
}


.propera-cart__subtotal {
    font-weight: 500;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.propera-cart__quantity {
    display: flex;

    justify-content: flex-end;

    min-width: 0;
}


.propera-cart__quantity .quantity {
    display: inline-flex;

    margin: 0 !important;
}


.propera-cart__quantity input.qty {
    width: 44px !important;
    min-width: 44px;

    height: 30px;

    padding: 0 5px !important;

    border: 1px solid rgba(6, 63, 99, 0.18) !important;

    border-radius: 3px !important;

    background: #ffffff !important;

    color: #063f63 !important;

    font-family: inherit !important;

    font-size: 14px !important;

    line-height: 30px !important;

    text-align: center;

    box-shadow: none !important;
}


.propera-cart__quantity input.qty:focus {
    outline: none !important;

    border-color: rgba(6, 63, 99, 0.45) !important;

    box-shadow: none !important;
}


/* убираем стрелки Chrome */

.propera-cart__quantity input.qty::-webkit-outer-spin-button,
.propera-cart__quantity input.qty::-webkit-inner-spin-button {
    margin: 0;

    -webkit-appearance: none;
}


.propera-cart__quantity input.qty {
    -moz-appearance: textfield;
}


/* =========================================================
   COUPON
   ========================================================= */

.propera-cart__coupon {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 235px;

    gap: 25px;

    margin-top: 25px;

    padding: 13px;

    border: 1px solid rgba(6, 63, 99, 0.16);

    border-radius: 12px;

    background: #ffffff;
}


.propera-cart__coupon input {
    width: 100%;

    height: 42px;

    padding: 0 14px;

    border: 1px solid #8d2a82 !important;

    border-radius: 13px !important;

    background: #ffffff !important;

    color: #063f63 !important;

    font-family: inherit !important;

    font-size: 16px !important;

    box-shadow: none !important;
}


.propera-cart__coupon input::placeholder {
    color: rgba(6, 63, 99, 0.45);
}


.propera-cart__coupon input:focus {
    outline: none !important;

    box-shadow: none !important;
}


.propera-cart__coupon-button {
    min-height: 42px;

    padding: 0 25px;

    border: 1px solid #8d2a82 !important;

    border-radius: 13px !important;

    background: #8d2a82 !important;

    color: #ffffff !important;

    font-family: inherit !important;

    font-size: 16px !important;

    font-weight: 600 !important;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}


.propera-cart__coupon-button:hover {
    background: #76216c !important;

    border-color: #76216c !important;

    color: #ffffff !important;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.propera-cart__summary {
    padding: 20px 25px 25px;

    border: 1px solid rgba(6, 63, 99, 0.16);

    border-radius: 12px;

    background: #ffffff;
}


.propera-cart__summary-title {
    margin: 0 0 25px !important;

    padding: 0 !important;

    color: #063f63 !important;

    font-size: 17px !important;

    line-height: 1.2 !important;

    font-weight: 700 !important;

    letter-spacing: 0 !important;
}


/* =========================================================
   SUMMARY ROW
   ========================================================= */

.propera-cart__summary-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 0 0 14px;

    color: #063f63;

    font-size: 16px;

    line-height: 1.45;
}


.propera-cart__summary-row > span:first-child {
    color: rgba(6, 63, 99, 0.65);
}


.propera-cart__summary-row > span:last-child {
    text-align: right;

    white-space: nowrap;
}


/* =========================================================
   SHIPPING
   ========================================================= */

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


.propera-cart__shipping > span:last-child {
    max-width: 250px;

    white-space: normal;

    text-align: right;
}


.propera-cart__shipping ul {
    margin: 0;

    padding: 0;

    list-style: none;
}


.propera-cart__shipping li {
    margin: 0 0 5px;
}


.propera-cart__shipping select {
    max-width: 100%;

    padding: 5px 8px;

    border: 1px solid rgba(6, 63, 99, 0.18);

    border-radius: 6px;

    background: #ffffff;

    color: #063f63;

    font-family: inherit;

    font-size: 14px;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.propera-cart__summary-divider {
    height: 1px;

    margin: 3px 0 15px;

    background: rgba(6, 63, 99, 0.15);
}


/* =========================================================
   TOTAL
   ========================================================= */

.propera-cart__summary-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: #063f63;

    font-size: 16px;

    line-height: 1.3;
}


.propera-cart__summary-total > span:last-child {
    white-space: nowrap;
}


.propera-cart__summary-total strong {
    font-weight: 500;
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.propera-cart__checkout {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-top: 28px;

    padding: 0 22px;

    border: 1px solid #063f63;

    border-radius: 100px;

    background: #ffffff;

    color: #063f63 !important;

    font-family: inherit;

    font-size: 16px;

    line-height: 1;

    font-weight: 500;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.propera-cart__checkout:hover {
    background: #063f63;

    border-color: #063f63;

    color: #ffffff !important;
}


/* =========================================================
   WOOCOMMERCE MESSAGES
   ========================================================= */

.propera-cart .woocommerce-notices-wrapper {
    width: min(1280px, calc(100% - 80px));

    margin: 0 auto 20px;
}


.propera-cart .woocommerce-message,
.propera-cart .woocommerce-error,
.propera-cart .woocommerce-info {
    margin: 0 0 20px;

    padding: 14px 18px;

    border-radius: 12px;

    font-size: 13px;
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.propera-cart .cart-empty {
    width: min(700px, calc(100% - 80px));

    margin: 40px auto 20px;

    padding: 50px 30px;

    border: 1px solid rgba(6, 63, 99, 0.14);

    border-radius: 20px;

    background: #f7f9f8;

    color: #063f63;

    text-align: center;
}


.propera-cart .return-to-shop {
    text-align: center;
}


.propera-cart .return-to-shop .button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border-radius: 100px;

    background: #063f63 !important;

    color: #ffffff !important;

    text-decoration: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .propera-cart {
        padding: 55px 0 70px;
    }


    .propera-cart__container {
        width: calc(100% - 48px);
    }


    .propera-cart__layout {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .propera-cart__summary {
        width: 100%;
    }


    .propera-cart__summary {
        max-width: none;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .propera-cart {
        padding: 40px 0 55px;
    }


    .propera-cart__container {
        width: calc(100% - 32px);
    }


    .propera-cart__products {
        padding: 15px 16px 5px;

        border-radius: 14px;
    }


    /* HEADER */

    .propera-cart__products-header {
        display: none;
    }


    /* ITEM */

    .propera-cart__item {
        grid-template-columns:
            18px
            58px
            minmax(0, 1fr);

        gap: 12px;

        align-items: start;

        padding: 18px 0;
    }


    .propera-cart__remove {
        padding-top: 5px;
    }


    .propera-cart__image {
        width: 58px;
        height: 58px;
    }


    .propera-cart__product {
        padding-right: 5px;
    }


    .propera-cart__price,
    .propera-cart__quantity,
    .propera-cart__subtotal {
        display: block;

        text-align: left;
    }


    .propera-cart__price {
        grid-column: 3;

        margin-top: -2px;

        font-size: 12px;
    }


    .propera-cart__quantity {
        grid-column: 3;

        justify-content: flex-start;

        margin-top: 8px;
    }


    .propera-cart__subtotal {
        grid-column: 3;

        margin-top: 8px;

        font-size: 13px;
    }


    .propera-cart__price::before {
        content: "Цена: ";

        color: rgba(6, 63, 99, 0.45);
    }


    .propera-cart__subtotal::before {
        content: "Подытог: ";

        color: rgba(6, 63, 99, 0.45);
    }


    /* COUPON */

    .propera-cart__coupon {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 18px;

        padding: 12px;

        border-radius: 14px;
    }


    .propera-cart__coupon-button {
        width: 100%;
    }


    /* SUMMARY */

    .propera-cart__summary {
        padding: 20px;

        border-radius: 14px;
    }


    .propera-cart__summary-title {
        margin-bottom: 22px !important;
    }


    .propera-cart__summary-row {
        font-size: 13px;
    }


    .propera-cart__shipping > span:last-child {
        max-width: 55%;
    }


    .propera-cart__checkout {
        width: 100%;

        margin-top: 25px;
    }


    /* EMPTY */

    .propera-cart .cart-empty {
        width: calc(100% - 32px);

        padding: 35px 20px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .propera-cart__container {
        width: calc(100% - 24px);
    }


    .propera-cart__products {
        padding-left: 12px;
        padding-right: 12px;
    }


    .propera-cart__item {
        grid-template-columns:
            16px
            52px
            minmax(0, 1fr);

        gap: 9px;
    }


    .propera-cart__image {
        width: 52px;
        height: 52px;
    }


    .propera-cart__product-name {
        font-size: 12px;
    }


    .propera-cart__summary {
        padding: 18px;
    }

}





/* =========================================================
   AJAX CART LOADING
   ========================================================= */

.propera-cart__qty {
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}


.propera-cart__qty.is-loading {
    opacity: 0.45;

    pointer-events: none;
}



/* =========================================================
   PAGE TITLE
   ========================================================= */

.propera-cart__title {
    margin: 0 0 40px;

    font-size: 42px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;

    color: #111111;
}


@media (max-width: 700px) {

    .propera-cart__title {
        margin-bottom: 25px;

        font-size: 32px !important;
    }

}






/* =========================================================
   EMPTY CART
   ========================================================= */

.propera-cart__empty {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}


/* Заголовок */

.propera-cart__empty h1 {
    margin: 0 0 40px !important;

    color: #063f63 !important;

    font-family: 'Nunito', sans-serif !important;
    font-size: 42px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}


/* Кнопка */

.propera-cart__empty .propera-cart__checkout {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin: 0;
    padding: 0 22px;

    border: 1px solid #063f63 !important;
    border-radius: 100px;

    background: #ffffff !important;
    color: #063f63 !important;

    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1;
    font-weight: 500;

    text-decoration: none !important;
}


/* Hover */

.propera-cart__empty .propera-cart__checkout:hover {
    background: #063f63 !important;
    border-color: #063f63 !important;
    color: #ffffff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .propera-cart__empty {
        width: calc(100% - 32px);
    }

    .propera-cart__empty h1 {
        margin-bottom: 25px !important;
        font-size: 32px !important;
    }

}