@charset "utf-8";
/* CSS Document */

/* -------- CART -------- */
.cta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.cta-row .button:not(.button-inverse) { margin-left: auto; }
.checkout-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.checkout-header { display: flex; justify-content: space-between; }
.checkout-body { width: 100%; background: var(--bg-color-light); padding: var(--space-3); }

.checkout-steps { display: grid; grid-template-columns: repeat(4, 1fr); width: 80%; gap: var(--space-1); }
.checkout-total { text-align: right; font-size: var(--fs-mini); }
.step { text-decoration: none; color: var(--font-color); font-family: 'Basic-Medium', sans-serif; padding: var(--space-4) var(--space-3); pointer-events: none; cursor: default; }
.step:hover { text-decoration: none !important; }
.step-is-active { background: var(--bg-color-light); }
.step-is-done { pointer-events: auto; cursor: pointer; }
.step-is-done, .step-is-active { color: var(--main-clr);  } 
.checkout-total .sum-price { font-size: 2em; font-family: 'Basic-Medium', sans-serif; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th, .cart-table tbody td { padding: var(--space-3) var(--space-2); }
.cart-table thead th { text-align: left; font-family: 'Basic-Medium', sans-serif; font-weight: normal; }
.cart-table tbody td { border-top: 1px dashed var(--main-clr); vertical-align: middle; }

.cart-table td:nth-child(1), .cart-table th:nth-child(1) { width: 80%; position: sticky; left: 0; background: var(--bg-color-light); }
.cart-table td:nth-child(2), .cart-table th:nth-child(2) { width: 10%; text-align: right; }
.cart-table td:nth-child(3), .cart-table th:nth-child(3) { width: 10%; text-align: right; }

.cell-flex { display: flex; align-items: center; column-gap: var(--space-2); }
.cart-table img:first-child { cursor: pointer; }
.cart-table a { text-decoration: none; }
.cart-table a:hover { text-decoration: underline; }
.cart-product-image { height: 42px; width: auto; }

.btn-ico-back, .btn-ico-forward { display: inline-block; width: 20px; height: 20px; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; transition: background-color 0.4s ease; }
.btn-ico-back { -webkit-mask-image: url("../ico/arrow_back.svg"); mask-image: url("../ico/arrow_back.svg"); background-color: var(--main-clr); margin-right: var(--space-2); }
.btn-ico-forward { -webkit-mask-image: url("../ico/arrow_forward.svg"); mask-image: url("../ico/arrow_forward.svg"); background-color: var(--white); margin-left: var(--space-2); }
.button:hover .btn-ico-back { background-color: var(--font-color); }
.button:hover .btn-ico-forward { background-color: var(--font-color); } 

.grid-summary { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: var(--space-3); }
.grid-summary h6 { font-size: var(--fs-mini); padding: 0; margin-bottom: var(--space-1); margin-top: 0; }
.grid-summary p { margin: 0 0 var(--space-4) 0; padding: 0; font-size: var(--fs-mini); }
.grid-summary .price { font-size: 2.25em; }

.button-checkout { width: 100%; max-width: 360px; text-align: center; justify-content: center; margin-top: var(--space-4); }

/* -------- RADIO -------- */
input[type="radio"] { margin: 0; }
.method-type { display: block; position: relative; margin-bottom: var(--space-1); cursor: pointer; }
.method-type:first-of-type { margin-top: var(--space-3); }
.method-type .checkbox { position: absolute; top: var(--space-3); left: var(--space-3); margin: 0; z-index: 2; }
.method-type-content { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); padding: 14px var(--space-3) var(--space-3) 50px; border: 2px solid var(--bg-color-dark); min-height: 87px; }
.method-type:has(.checkbox:checked) .method-type-content { background: var(--bg-color-dark); }
.method-title, .method-right { font-family: 'Basic-SemiBold', sans-serif; }
.method-info { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-mini); }
.method-info img { height: 28px; width: auto; }

/* -------- EMPTY AND STATUS -------- */
.cart-status { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-5) var(--space-2); }
.cart-status-icon { width: 150px; height: 150px; border-radius: 50%; background: var(--bg-color); display: flex; align-items: center; justify-content: center; }
.cart-status img { width: 82px; height: auto; }
.cart-status h2 { color: var(--font-color); font-size: var(--fs-big); margin: var(--space-4) 0 0 0; }
.cart-status p { font-size: var(--fs-default); max-width: 550px; margin: var(--space-3) 0 var(--space-4) 0; }

/* -------- PAYMENT -------- */
.payment-wrapper { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; }
.payment-wrapper-code img { display: block; width: 180px; height: auto; }
.payment-wrapper-info { display: grid; grid-template-columns: auto 1fr;  column-gap: var(--space-3); row-gap: var(--space-1); } 
.payment-row { display: contents; }
.payment-row-value { font-family: 'Basic-Medium', sans-serif; }

@media (max-width: 980px) { 
	.mobile-checkout-header { display: flex; justify-content: flex-end; gap: var(--space-2); }
	.checkout-title { margin-bottom: var(--space-3); }
	.checkout-title h1 { margin-bottom: 0; }
		
	.circle-step { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }	
	.circle-step--active { background-color: var(--main-clr); }
	.circle-step--done { background-color: var(--main-clr); }
	.circle-step--disabled { background-color: var(--bg-color-light); }
	.circle-step--active, .circle-step--disabled { pointer-events: none; cursor: default; }	
	.step-icon-check, .step-icon-active { width: 30px; height: 30px; display: block; background-color: var(--white); mask-size: contain; mask-position: center; mask-repeat: no-repeat; }
	.step-icon-check { mask-image: url("../ico/check.svg"); }
	.step-icon-active { mask-image: url("../ico/notes.svg"); }
	
	.checkout-steps { grid-template-columns: repeat(1, 1fr); width: 50%; }
	.step { display: none; }
	.step.step-is-active { display: inline-block; }
	
	.table-wrap {  overflow-x: auto; width: 100%; }
	
	.cart-table thead { display: none; }
	.cart-table, .cart-table tbody, .cart-table tr,  .cart-table td { display: block; width: 100% !important; text-align: left !important; }
	.cart-table tr { margin-bottom: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--main-clr); }
	.cart-table tr:first-child { padding-top: 0; border-top: none; }
	.cart-table td { padding: var(--space-2) 0 !important; margin: var(--space-1) 0; border-top: none !important; }
	.cart-table td::before { content: attr(data-label); display: block; font-size: var(--fs-mini); }
	.cart-table td:nth-child(5)::before { font-family: 'Basic-Regular', sans-serif; }
	.cart-table .cell-flex { display: flex; flex-wrap: wrap; align-items: center; }
	.cart-table .cell-flex img:first-child { margin-left: auto; order: 99; }	
    .cart-table .cell-flex a { flex: 1;  min-width: 0; overflow-wrap: anywhere; }
	
	.grid-summary { grid-template-columns: repeat(1, 1fr); gap: 0; }
}

@media (max-width: 768px) { 
	.cta-row { flex-direction: column-reverse; }
	.cta-row .button:not(.button-inverse) { margin-left: 0; }
	
	.payment-wrapper { flex-direction: column; align-items: flex-start; }
	.payment-wrapper-info { grid-template-columns: repeat(1, 1fr); }

}

@media (max-width: 560px) { 
	.method-info { flex-direction: column; align-items: flex-start; }	
	
	.grid-summary .checkbox-text { font-size: var(--fs-mini); }
}
