/* 
	--theme-primary: #314e92;
	--theme-dark: #2f3261;
 */

.bill-page {
	padding: 20px 0;
	background-color: #f1f3f6;
	font-size: 14px;
}

.bill-page p {
	font-size: inherit;
}

.bill-view {
	padding: 30px 20px;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
}

.bill-head {
	display: flex;
	margin-bottom: 20px;
	align-items: center;
}

.bill-title {
	font-size: 22px;
	font-weight: 500;
	margin-right: auto;
	/* padding: 10px 0; */
	/* border: 2px dashed #04c804; */
	/* color: #000; */
	line-height: 1;
	color: #04c804;
}

.bill-download-btn {
	display: block;
	padding: 5px 0;
	/* background-color: var(--theme-primary); */
	/* border: 2px solid #000; */
	color: var(--theme-primary);
	font-weight: 500;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: ease-in-out 0.25s;
	transition-property: color, background-color;
}

.bill-download-icon {
	vertical-align: middle;
	display: inline-block;
}

.bill-download-icon span {
	display: inline-block;
	vertical-align: middle;
}

/* .bill-download-btn:hover {
	background-color: #fff;
	color: var(--theme-primary);
} */

.bill-content {
	border: 1px solid #dadada;
	padding: 20px;
	line-height: 1.6;
	/* max-width: 1100px; */
	margin: auto;
}

.bill-details {
	display: flex;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
}

.bill-details-side {
	width: 50%;
	margin-left: auto;
}

.bill-details-head {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	justify-content: space-between;
}

.bill-side-title {
	font-size: 16px;
	font-weight: 600;
}

.bill-details-side table td,
.bill-details-side table th {
	padding: 5px;
}

.bill-logo-img {
	height: 40px;
	display: block;
}

.seller-details {
	margin-top: 15px;
}

table {
	text-align: left;
	width: 100%;
	border-collapse: collapse;
}

.bill-products-details table th,
.bill-products-details table td,
.table-bordered td,
.table-bordered th {
	border: 1px solid #dadada;
	padding: 5px;
}

.product-list-row .product-name {
	color: var(--theme-primary);
	display: block;
}

.bill-products-details {
	display: block;
	margin-bottom: 0;
	border-bottom: 0;
}

.bill-products-details td {
	text-align: center;
}

table th {
	font-weight: 600;
}

.bill-details-side th {
	vertical-align: top;
}

.bill-th {
	background-color: #eaeaea;
	text-align: center;
}

.total-amount-side {
	/* margin-top: 20px; */
	/* margin-bottom: 20px; */
}

td.amt-cell {
	text-align: right;
}

.bill-foot-table {
	padding-bottom: 15px;
}

.bill-foot-table p {
	text-align: right;
	color: #999;
}

article {
	background: white;
	display: block;
	margin: 0 auto;
}

article[size="A4"] {
	width: 21cm;
	/* height: 29.7cm; */
}

article[size="A4"][layout="landscape"] {
	width: 29.7cm;
	/* height: 21cm; */
}

article[size="A3"] {
	width: 29.7cm;
	/* height: 42cm; */
}

article[size="A3"][layout="landscape"] {
	width: 42cm;
	/* height: 29.7cm; */
}

article[size="A5"] {
	width: 14.8cm;
	/* height: 21cm; */
}

article[size="A5"][layout="landscape"] {
	width: 21cm;
	/* height: 14.8cm; */
}

.cashback-popup {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	z-index: 20;
	pointer-events: none;
	opacity: 0;
	transition: ease 0.3s opacity;
	display: none;
}

.cashback-popup.active {
	display: block;
}

.cashback-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-color: rgba(0, 0, 0, 0.4);
}

.cashback-card {
	display: block;
	width: 240px;
	margin-left: auto;
	border: 1px solid #eaeaea;
	box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	background-color: #fff;
	margin-bottom: 20px;
	padding: 15px;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -20%) scale(0.8);
	transition: ease 0.25s transform;
}

.cashback-img {
	margin-bottom: 10px;
}

.cashback-img img {
	display: block;
	width: 85%;
	margin: auto;
}

.cashback-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 5px;
}

.cashback-amount {
	font-weight: 600;
	font-size: 18px;
	margin-bottom: 5px;
	color: #04c804;
}

.wallet-link {
	display: block;
	width: 100%;
	padding: 7px 15px;
	background-color: var(--theme-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	border-radius: 4px;
	box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.close-popup-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: #666;
}

.cashback-popup.open {
	opacity: 1;
	pointer-events: all;
}

.cashback-popup.open .cashback-card {
	transform: translate(-50%, -50%) scale(1);
}

.reward-btn {
	position: relative;
	display: flex;
	align-items: center;
	padding: 5px;
	border: 1px solid #dadada;
	border-radius: 4px;
	margin-top: 5px;
}

.reward-btn-img {
	width: 50px;
	height: 50px;
	border-radius: 50px;
	background-color: #fff;
	/* box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.3); */
	padding: 6px;
	cursor: pointer;
	border: 1px solid #dadada;
}

.reward-btn-text {
	margin-right: 5px;
}

.reward-btn img {
	display: block;
	width: 100%;
}

.reward-btn span {
	/* position: absolute; */
	/* right: 100%; */
	white-space: nowrap;
	display: block;
	font-weight: 600;
	font-size: 15px;
	/* top: 50%; */
	/* transform: translate(-5px, -50%); */
}

.reward-btn .reward-sub-text {
	top: 80%;
	font-size: 12px;
	color: #999;
	font-weight: 500;
}

.combo-item {
	margin-top: 15px;
	display: flex;
}

.combo-details {
	flex: 1 1 40%;
	/* margin-right: 10px; */
	border: 1px solid #dadada;
	border-right: 0;
	padding: 10px;
}

@media print {
	body {
		padding: 0;
		min-width: auto !important;
	}
	.bill-view {
		display: contents;
		color: #000;
		background-color: #fff;
	}
	html,
	body,
	.bill-page,
	.bill-view {
		background-color: #fff;
		background: transparent;
	}

	.container {
		width: 100%;
	}

	#site-header,
	footer,
	.bill-head,
	.header-group,
	.footer-nav,
	.footer-links,
	.reward-btn {
		display: none;
	}

	.copy-footer {
		color: #000;
		border-top: none;
	}

	.total-amount-side {
		padding-bottom: 3cm;
		break-inside: avoid;
	}
}

@media (max-width: 768px) {
	.bill-page {
		font-size: 10px;
		padding: 10px;
	}

	.bill-view {
		padding: 15px 10px;
	}

	article[size] {
		max-width: 100%;
	}

	.bill-content {
		padding: 10px;
	}

	.bill-logo-img {
		margin: auto;
	}

	.bill-side-title {
		font-size: 14px;
		font-weight: 500;
	}

	.bill-details {
		flex-wrap: wrap;
		padding-bottom: 0;
		margin-bottom: 10px;
		color: #000;
		border-bottom: 0;
	}

	.bill-shipping-details {
		margin-bottom: 0;
	}

	.bill-shipping-details .bill-details-side {
		margin-bottom: 10px;
	}

	.bill-products-details {
		/* overflow: auto; */
		margin-bottom: 0;
	}

	.seller-details {
		padding-right: 30px;
		margin-bottom: 10px;
		margin-top: 10px;
	}

	.bill-details-side table td,
	.bill-details-side table th {
		font-weight: 400;
		padding: 2px;
		padding-right: 15px;
	}

	.bill-th {
		white-space: nowrap;
		padding-left: 30px !important;
		padding-right: 30px !important;
	}

	.bill-details-side {
		width: 100%;
		margin-bottom: 0;
		font-size: 12px;
	}

	.bill-head {
		flex-direction: column;
		align-items: center;
		margin-bottom: 10px;
	}

	.bill-title {
		font-size: 12px;
		margin-bottom: 0;
		width: 100%;
		text-align: center;
		padding: 0;
	}

	.bill-download-btn {
		padding: 5px 0;
		font-size: 12px;
	}

	.bill-products-details td {
		white-space: nowrap;
	}

	.cashback-title {
		font-size: 12px;
	}

	.cashback-amount {
		font-size: 13px;
	}

	.wallet-link {
		font-size: 13px;
	}

	.reward-btn-img {
		/* margin-left: 180px; */
		width: 40px;
		height: 40px;
		/* margin-top: 5px; */
	}

	.reward-btn span {
		font-size: 13px;
	}

	.reward-btn .reward-sub-text {
		left: -360%;
	}

	.product-list-title {
		margin-bottom: 5px;
	}

	.product-table-head {
		display: none;
	}

	.product-list-row {
		display: block;
		margin-bottom: 10px;
	}

	.product-list-row td,
	.product-list-row th {
		display: block;
		position: relative;
		text-align: right;
	}

	.bill-products-details table th,
	.bill-products-details table td,
	.table-bordered td,
	.table-bordered th {
		padding: 2px 3px;
	}

	.product-list-row th {
		text-align: left;
	}

	.product-list-row .product-offer {
		font-weight: 400;
	}

	.product-list-row .resp-attr-text {
		padding-left: 40%;
		margin-top: -1px;
	}

	.product-list-row .resp-attr-text::before {
		content: attr(data-title);
		position: absolute;
		top: 0px;
		left: 0px;
		width: 40%;
		padding: 2px 3px;
		text-align: left;
		font-weight: 400;
		border-right: 1px solid #dadada;
	}

	.total-amount-side em {
		color: #666;
		font-weight: 500;
	}

	.total-amount-side th {
		/* width: 50%; */
	}

	.total-amount-side .net-pay {
		font-weight: 600;
	}

	.total-amount-side strong {
		font-weight: 600;
	}

	.total-amount-side .amt-cell {
		padding-right: 2px;
	}
}
