.cart-container {
	background-color: #ffffff;
	border-radius: 10px;
	padding: 0.5rem 1rem;
}

.cart-title {
	text-transform: uppercase;
}

.cart-table {
	width: 100%;
	border-collapse: unset;
	/* 	border: var(--container-border); */
	/* 	border-radius: var(--container-border-radius); */
}

.cart-table tr {
	border-radius: none;
	border: var(--container-border);
}

.cart-table thead tr {
	border-radius: none;
	border: var(--container-border);
}

.cart-table td {
	padding: 10px 5px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	white-space: nowrap;
}

.cart-table .product-code {
	font-weight: 700;
}

.cart-table .product-desc {
	font-weight: 500;
	text-wrap: wrap;
	text-align: center;
	justify-content: center;
	align-items: center;
}

.qty-input {
	width: 77px;
	height: 24px;
	border: 1px solid rgba(0, 0, 0, 0.5);
	border-radius: 5px;
	padding: 0 5px;
	font-size: 12px;
}

.qty-select {
	width: 78px;
	height: 24px;
	background-color: #f6f6f6;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	padding: 0 5px;
	font-size: 12px;
	color: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}

.status-dot {
	width: 13px;
	height: 13px;
	background-color: #d52e2e;
	border-radius: 50%;
}

.cart-actions {
	display: flex;
	gap: 10px;
}

.action-icon {
	cursor: pointer;
}

.cart-total {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 30px 0;
	gap: 10px;
}

.total-label {
	font-size: 16px;
	font-weight: 500;
}

.total-value {
	font-size: 16px;
	font-weight: 700;
	color: #344ea3;
}

.cart-buttons-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.cart-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
}

.empty-cart-btn {
	height: 3rem;
	width: fit-content;
	padding: 1rem;
	border: 2px solid transparent;
	background-image: linear-gradient(white, white),
		linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.excel-cart-btn {
	width: fit-content;
	height: 3rem;
	padding: 1rem;
	background-color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: 2px solid transparent;
	background-image: linear-gradient(white, white),
		linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	border-radius: 5px;
}

.excel-cart-btn:hover {
	background-color: #f5f5f5;
}

.excel-cart-btn img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	object-fit: contain; /* o 'cover' se vuoi riempire */
}

.checkout-btn {
	height: 3rem;
	width: fit-content;
	padding: 1rem;
	background: linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	border: none;
	border-radius: 5px;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.text-cart {
	font-size: var(--font-size);
	font-weight: 500;
	color: #333333;
	text-align: center;
	font-weight: 500;
	color: #333333;
	text-align: center;
	padding: 0.625rem;
}

.error-text-cart {
	background: #ff4f4f;
}

.stato-text-cart {
	background: #65ff4f;
}

.info-text-cart {
	background: #65ff4f;
}

.warning-text-cart {
	background: #f0ad4e;
}

.vuoto-text-cart {
	background: #65ff4f;
}

.checkout-container {
	display: flex;
	gap: 24px;
}

.checkout-form {
	width: 100%;
	flex: 1;
	background-color: #ffffff;
	border-radius: 10px;
}

.sidebar {
	width: 300px;
}

.checkout-title {
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.checkout-description {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 10px;
	line-height: 1.4;
}

.checkout-note {
	font-size: 14px;
	margin-bottom: 30px;
}

.form-container {
	margin-bottom: 3rem;
}

.form-column {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.form-row {
	display: flex;
	margin: 1rem;
}

.form-group {
	display: flex;
	margin: 0;
	flex: 1;
	align-items: center;
	justify-content: center;
}

.form-label {
	padding: 0.675rem;
	font-size: 0.875rem;
	min-width: 12rem;
	display: flex;
	align-items: center;
	margin: 0;
}

.form-label.wide {
	min-width: 139px;
}

.form-input {
	flex: 1;
	padding: 10px;
	font-size: 12px;
	border: 1px solid #cccccc;
	border-radius: 5px;
	width: auto;
	height: auto;
}

.form-value {
	padding: 10px;
	font-size: 12px;
	min-width: 177px;
	display: flex;
	align-items: center;
	flex: 1;
}

.form-textarea-container {
	position: relative;
	width: 100%;
}

.form-textarea {
	width: 100%;
	height: auto;
	resize: none;
}

.form-textarea-count {
	position: absolute;
	bottom: 0.2rem;
	right: 0.2rem;
}

.shipping-section {
	
}

.shipping-title {
	font-size: 14px;
	margin-bottom: 10px;
}

.address-option {
	display: flex;
	align-items: flex-start;
	margin-bottom: 5px;
}

.radio-container {
	width: 13px;
	height: 13px;
	border: 1px solid #344ea3;
	border-radius: 6px;
	margin-right: 10px;
	margin-top: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.radio-dot {
	width: 7px;
	height: 7px;
	background-color: #344ea3;
	border-radius: 3px;
}

.address-details {
	display: flex;
	flex-direction: column;
}

.address-name {
	font-weight: 700;
	font-size: 14px;
}

.address-line {
	font-size: 14px;
}

.action-buttons {
	display: flex;
	margin-top: 30px;
	justify-content: space-between;
	align-items: center;
}

.checkout-back-btn {
	display: flex;
	align-items: center;
	padding: 9px 12px;
	border-radius: var(--radius-button);
	background-color: var(--background-color);
	cursor: pointer;
	border: 2px solid transparent;
	background-image: linear-gradient(white, white), var(--gradient-primary);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}

.back-btn img {
	margin-right: 10px;
}

.submit-btn {
	height: 3rem;
	width: fit-content;
	padding: 1rem;
	background: linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	border: none;
	border-radius: 5px;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.save-btn {
	height: 3rem;
	width: fit-content;
	padding: 1rem;
	background: linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	border: none;
	border-radius: 5px;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.save-btn img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	object-fit: contain;
}

.submit-btn img {
	margin-left: 10px;
}

.search-section {
	margin-bottom: 20px;
}

.search-input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cccccc;
	border-radius: 10px;
	margin-bottom: 10px;
	font-size: 14px;
}

.search-btn {
	background-color: #344ea3;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 8px 15px;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
	width: 72px;
}

.quick-add {
	margin-top: 30px;
}

.quick-add-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 15px;
}

.code-input, .qty-input {
	border: 1px solid #cccccc;
	border-radius: 5px;
	padding: 5px;
	/* 	margin-bottom: 10px; */
}

.code-input {
	width: 6rem;
}

.qty-input {
	width: 4rem;
	/* 	margin-left: 10px; */
}

.add-btn {
	background-color: #344ea3;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 5px 10px;
	font-size: 10px;
	text-transform: uppercase;
	cursor: pointer;
	margin-left: 10px;
}

.checkout-head-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 17px 20px;
	background: linear-gradient(90deg, #344ea3 0%, #ee2225 100%);
	border: none;
	border-radius: 5px;
	color: #ffffff;
	cursor: pointer;
	font-size: 16px;
	--bs-accordion-active-color: var(--text-color-button, #ffffff);
}

.accordion-button:focus {
	box-shadow: none;
}

.dot-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

@media ( max-width : 1200px) {
	.cart-table tbody {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		border: none;
		grid-gap: 0.5rem 1rem;
	}
	.cart-table thead {
		display: none;
	}
	.cart-table tbody tr {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		padding: 1rem;
		border-radius: var(--border-radius);
		position: relative;
	}
	.cart-table tbody>tr>td[data-label]:not([data-label=""])::before {
		content: attr(data-label);
		font-weight: 600;
		color: #555;
		padding-right: 1rem;
	}
	.cart-table td {
		border-bottom: none;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}
	.dot-container {
		align-items: end;
	}

	/* 	Ultima tr del body ha position in altro a destra rispetto alla tbody */
	.cart-table tbody tr td:last-child {
		position: absolute;
		right: 0px;
		top: 0px;
		padding: 0rem;
	}
}

@media ( max-width : 1200px) {
	.checkout-container {
		flex-direction: column;
	}
	.sidebar {
		width: 100%;
	}
	.form-row {
		flex-direction: column;
		gap: 1rem;
	}
}

@media ( max-width : 768px) {
	.cart-table tbody {
		grid-template-columns: repeat(2, minmax(auto, 1fr));
	}
	.cart-buttons-container {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
	}
	.form-label {
		display: initial;
	}
	.form-value {
		min-width: 0px;
		display: initial;
	}
	.form-group {
		text-align: start;
	}
}

@media (max-width : 560px) {
	.cart-table tbody {
		grid-template-columns: repeat(1, minmax(auto, 1fr));
	}
	.action-buttons {
		flex-direction: column;
		gap: 1rem;
	}
}


@media (max-width : 560px) {
	.action-buttons {
		flex-direction: column;
		gap: 1rem;
	}
}