/************************************************
            Table Functionality
************************************************/

.rTableCell picture {
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	border: 1px solid var(--line-color);
}
.rTableCell picture img {
	width: 100%;
	object-fit: cover;
}

.rTableCell .product-name {
	width: calc(100% - 90px);
}

.rTableCell .product-name h4 {
	font-size: clamp(16px, 2vw, 18px);
	color: var(--black);
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.rTableCell .product-name p {
	font-size: 14px;
	max-width: 420px;
	color: var(--grey);
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden; 
    text-overflow: ellipsis;
}


.headRow {
	color: var(--grey);
}

.table-price-text {
	color: var(--grey);
	font-size: clamp(14px, 1.5vw, 16px);
}

.header-mobile-text {
	color: var(--black);
	font-size: 14px;
}

.step-edit-cart .rTableRow h4 {
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.step-edit-cart .rTableRow p {
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.step-edit-cart .rTableRow:not(:last-child) {
	border-bottom: 1px solid var(--grey-5);
}

.step-edit-cart h3 {
	text-align: center;
	color: var(--grey);
}


.checkout-btn:disabled {
	background-color: var(--line-color);
	color: var(--grey-2);
	cursor: not-allowed;
}

.checkout-btn:disabled > div i {
	background-color: var(--line-color);
	color: var(--grey-2) !important;
}

@media (min-width: 768px) {
	.rTable {
		display: table;
		width: 100%;
		border-collapse: collapse;
	}

	.rTableRow {
		display: table-row;
	}

	.headRow {
		border-bottom: 1px solid var(--line-color);
	}

	.rTableHeading {
		display: table-header-group;
		background-color: #ddd;
	}

	.rTableCell,
	.rTableHead {
		display: table-cell;
		padding: 10px 10px 16px;
		vertical-align: middle;
	}
	.rTableHead {
		color: var(--grey);
	}
	.rTableCell {
		color: var(--black);
	}

	.rTableCell:nth-of-type(1),
	.rTableHead:nth-of-type(1) {
		width: 50%;
	}

	.rTableHeading {
		display: table-header-group;
		background-color: #ddd;
		font-weight: bold;
	}

	.rTableFoot {
		display: table-footer-group;
		font-weight: bold;
		background-color: #ddd;
	}

	.rTableBody {
		display: table-row-group;
	}

	.purchase-history .rTableCell table {
		font-size: 15px;
	}

	.table-price-text {
		color: var(--black);
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.rTableCell,
	.rTableHead {
		padding: 10px 5px;
	}
}

@media (max-width: 767px) {
	.rTableRow {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
	}

	.rTableRow.headRow {
		display: none !important;
	}

	.rTableCell {
		font-size: 15px;
	}

	.rTableCell {
		flex-basis: auto;
		flex: 0 0 1;
		-ms-flex: auto;
		position: relative;
		box-sizing: border-box;
	}

	.rTableCell:first-child,
	.rTableCell:last-child {
		flex-basis: 100%;
	}

	.rTableCell:last-child {
		text-align: center;
	}

	.resRow {
		padding: 15px;
		border-bottom: 1px solid #dadada;
	}

	.resRow:last-child {
		border-bottom: none;
	}
}

.remove-item {
	background-color: transparent;
	color: var(--grey);
	transition: color .2s ease;
}

.remove-item:hover {
	color: var(--primary);
}

.input-group-text {
	background-color: var(--black);
	color: white;
	border-color: var(--black);
}

/* + [input number] - */
.number-input-container {
	border: 1px solid var(--line-color);
	border-radius: 200px;
	display: flex;
	align-items: center;
	padding: 5px;
	width: fit-content;
	justify-content: center;
}

.number-input-container button {
	color: var(--grey);
	border: none;
	cursor: pointer;
	font-size: 16px;
	background-color: transparent;
	font-weight: 600;
	border: none;
	font-size: 20px;
}

.number-input-container input[type='number'] {
	width: 50px;
	text-align: center;
	margin: 0 10px;
	font-size: 16px;
	border: 1px solid #000;
	border-radius: 5px;
	border: none;
	appearance: textfield;
	-moz-appearance: textfield; /* Firefox */
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0; /* Safari and Chrome */
}

input[type='number']::-moz-inner-spin-button {
	-moz-appearance: none; /* Firefox */
	margin: 0;
}


@media (max-width: 768px) {
	.number-input-container {
		padding: 2px 3px;
	}
	
	.number-input-container input[type='number'] {
		margin: 0;
		width: 30px;
	}
}