.cart-page {
    display: grid;
    grid-template-columns: 804px auto;
    column-gap: 12px;
}

.cart-page__body {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

.cart-page__product {
    background: #f2f2f2;
    border-radius: 12px;
    padding: 12px;

    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1fr) 36px;
    column-gap: 24px;
}

.cart-page__product .image {
    width: 124px;
    height: 124px;
    aspect-ratio: 1;

    border-radius: 8px;
    background-color: #fff;

    display: flex;
}

.cart-page__product .image img {
    width: auto;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.cart-page__product .name a {
    font-weight: 500;
    font-size: 16px;

    text-decoration: none;
}

.cart-page__product .name a:hover, .cart-page__product .name a:focus, .cart-page__product .name a:active {
    text-decoration: underline;
}

.cart-page__product .name .size {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.6;
}

.cart-page__product .price-count {
    white-space: nowrap;
}

.cart-page__product .price-count .price {
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.cart-page__product .price-count .cost {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.6;

    margin-top: 8px;
}

.cart-page__product .price-count .count {
    margin-top: 20px;

    background: #e9e9e9;
    border-radius: 4px;
    width: 86px;
    height: 28px;

    display: grid;
    grid-template-columns: 28px auto 28px;
}

.cart-page__product .price-count .count input {
    width: 100%;
    height: 28px;
    border: 0;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;

    background-color: transparent;
    text-align: center;
}

.cart-page__product .price-count .count button {
    border: 0;
    padding: 0;
    cursor: pointer;

    text-indent: -999px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: center;
    border: 0 none;
    background-color: transparent;
}

.cart-page__product .price-count .count button.decrement {
  background-image: url(../icons/minus-fill.svg);
}

.cart-page__product .price-count .count button.increment {
  background-image: url(../icons/plus-fill.svg);
}

.cart-page__product .close button {
    width: 36px;
    height: 36px;
    border: 0 none;
    background-color: transparent;
    background-image: url(../icons/icon-cart-remove.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.cart-page__column {
	position: relative;
}

.cart-page__order-details {
    max-width: 360px;
    background: #f2f2f2;
    border-radius: 12px;
    padding: 24px;

    margin-left: auto;
    
	position: sticky;
	top: 0;
	right: 0;
}

.cart-page__order-details > p {
    margin-top: 0;
}

.cart-page__order-details > ul {
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;

    display: flex;
    flex-direction: column;
    row-gap: 16px;

    font-size: 14px;
}

.cart-page__order-details > ul li {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.cart-page__order-details > ul li::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 3px;
    right: 0;
    border-top: 2px dotted #C7C7C7;
}

.cart-page__order-details > ul li span {
    display: block;
    background-color: #f2f2f2;
    position: relative;
    z-index: 2;
}

.cart-page__order-details > ul li span.key {
    padding-right: 10px;
}

.cart-page__order-details > ul li span.value {
    padding-left: 10px;
}

.cart-page__order-details > ul li.total {
    font-size: 16px;
    font-weight: bold;
}

.cart-page__order-details > button, .cart-page__order-details > a.button {
    cursor: pointer;
    width: 100%;
    height: 60px;

    background: #911504;
    font-size: 16px;
    color: #fff;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    
    border: 0 none;
    padding: 0;
    
    text-decoration: none;
}

.cart-page__order-details > button:hover, .cart-page__order-details > button:focus,
.cart-page__order-details > a.button:hover, .cart-page__order-details > a.button:focus {
    opacity: 0.7;
}

.cart-page__product.removing {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-empty-message {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}


#cart-order-form .order-form-group {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 6px;
}

#cart-order-form input:not([type="checkbox"]), #cart-order-form textarea {
    width: 100%;
    background: #f2f2f2;
    border-radius: 6px;
    padding: 16px 24px;
    font-size: 16px;
    border: 0 none;
}

#cart-order-form input.error, #cart-order-form textarea.error {
	background: #f2c1c1;
}

#cart-order-form input[type="checkbox"].error {
	outline: 5px solid #911504;
  	outline-offset: 2px;
}

#cart-order-form input::placeholder, #cart-order-form textarea::placeholder {
    opacity: 0.7;
}

#cart-order-form textarea {
    resize: none;
    min-height: 100px;
}

#cart-order-form .form-item-confirm {
	margin-top: 26px;
}

.w-100 {
    width: 100%;
}

.w-50 {
    width: calc(50% - 3px);
}

.order-form-group {
    margin: 0;
    padding: 0;
    border: 0 none;
}

#cart-order-form input[type=submit] {
    width: 100%;
    height: 60px;

    margin-top: 26px;

    background: #911504;
    border-radius: 4px;
    border: 0 none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-order-form input[type=submit]:hover {
    opacity: 0.7;
}


@media (max-width: 1250px) {
    .cart-page {
        grid-template-columns: auto 300px;
    }

    .cart-page__product {
        grid-template-columns: 124px minmax(0, 1fr) minmax(0, 0.4fr) 36px;
    }
}

@media (max-width: 991px) {
	.cart-page {
        grid-template-columns: auto;
        row-gap: 24px;
    }

    .cart-page__order-details {
        margin: 0;
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .cart-page__product {
        display: flex;
        flex-wrap: wrap;
        row-gap: 24px;
    }

    .cart-page__product .name {
        width: calc(100% - 24px - 36px);
        order: 1;
    }

    .cart-page__product .close {
        order: 2;
    }

    .cart-page__product .image {
        order: 3;
    }

    .cart-page__product .price-count {
        order: 4;
    }

/* 
    .cart-page__product .image {
        order: 1;
    }

    .cart-page__product .name {
        width: calc(100% - 124px - 24px - 36px - 24px);
        order: 2;
    }

    .cart-page__product .close {
        order: 3;
    }

    .cart-page__product .price-count {
        order: 4;
        width: 100%;
    } */

	#cart-order-form .form-item-confirm {
		font-size: 14px;
	}
	
	.w-50 {
	    width: 100%;
	}
}