* {
	box-sizing: border-box;
}

body.hcqm-quote-page {
	margin: 0;
	background: #f5f7fa;
	color: #182230;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	display: flex;
    justify-content: center;
    padding: 20px;
}

.hcqm-quote-wrapper {
	max-width: 1100px;
	/*padding: 50px auto;*/
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(16, 24, 40, 0.08);
	width:100%;
}

.hcqm-quote-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 35px 45px;
	background: #000;
	color: #fff;
}

.hcqm-business {
	display: flex;
	align-items: center;
	gap: 18px;
}

.hcqm-logo img {
	max-width: 350px;
	max-height: 100px;
}

.hcqm-business h1 {
	margin: 0;
	font-size: 25px;
}

.hcqm-business p {
	margin: 5px 0 0;
	opacity: 0.8;
}

.hcqm-quote-heading {
	text-align: right;
}

.hcqm-quote-heading span {
	display: block;
	font-size: 12px;
	letter-spacing: 2px;
	opacity: 0.7;
}

.hcqm-quote-heading strong {
	display: block;
	margin-top: 5px;
	font-size: 22px;
}

.hcqm-quote-status {
	padding: 20px 45px 0;
}

.hcqm-status-badge {
	display: inline-block;
	padding: 7px 13px;
	border-radius: 30px;
	background: #eef4fb;
	color: #24527c;
	font-size: 13px;
	font-weight: 600;
}

.hcqm-customer-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	padding: 30px 45px;
	border-bottom: 1px solid #eaecf0;
}

.hcqm-customer-section h3 {
	margin: 0 0 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #667085;
}

.hcqm-customer-section p {
	margin: 4px 0;
	color: #475467;
}

.hcqm-products-section {
	padding: 40px 45px 20px;
}

.hcqm-section-heading {
	margin-bottom: 25px;
}

.hcqm-section-heading h2 {
	margin: 0 0 6px;
	font-size: 22px;
}

.hcqm-section-heading p {
	margin: 0;
	color: #667085;
}

.hcqm-product {
	display: grid;
	grid-template-columns: 90% 1fr 150px;
	gap: 25px;
	padding: 25px 0;
	border-top: 1px solid #eaecf0;
}

.hcqm-product-image img {
	width: 150px;
	height: 120px;
	object-fit: cover;
	border-radius: 9px;
	border: 1px solid #eaecf0;
}

.hcqm-no-image {
	width: 150px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: #f2f4f7;
	color: #98a2b3;
	font-size: 13px;
}

.hcqm-product-info h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.hcqm-description {
	color: #667085;
	line-height: 1.6;
	margin: 0 0 18px;
}

.hcqm-product-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.hcqm-spec span {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #98a2b3;
}

.hcqm-spec strong {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: #344054;
}

.hcqm-product-pricing {
	text-align: right;
}

.hcqm-product-pricing span {
	display: block;
	margin-bottom: 8px;
	color: #667085;
	font-size: 13px;
}

.hcqm-product-pricing strong {
	font-size: 18px;
}

.hcqm-total-section {
	padding: 15px 45px 40px;
}

.hcqm-totals {
	max-width: 430px;
	margin-left: auto;
}

.hcqm-totals > div {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	color: #475467;
}

.hcqm-totals .hcqm-discount {
	color: #b42318;
}

.hcqm-totals .hcqm-total {
	margin-top: 10px;
	padding-top: 18px;
	border-top: 2px solid #182230;
	color: #182230;
	font-size: 18px;
}

.hcqm-totals .hcqm-total strong {
	font-size: 25px;
}

.hcqm-notes {
	margin: 0 45px 25px;
	padding: 25px;
	background: #f8fafc;
	border-radius: 10px;
}

.hcqm-notes h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.hcqm-notes div {
	color: #475467;
	line-height: 1.7;
}

.hcqm-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 35px 45px 45px;
	border-top: 1px solid #eaecf0;
}

.hcqm-button {
	border: 0;
	border-radius: 7px;
	padding: 13px 23px;
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
}

.hcqm-approve, .hcqm-pay-now {
	background: #000;
	color: #fff;
}

.hcqm-changes {
	background: #eef4fb;
	color: #0d2747;
}

.hcqm-decline {
	background: #fff;
	border: 1px solid #d0d5dd;
	color: #344054;
}

.hcqm-footer {
	padding: 25px;
	text-align: center;
	background: #f8fafc;
	color: #667085;
	font-size: 13px;
}

@media (max-width: 768px) {

	.hcqm-quote-wrapper {
		/*margin: 15px;*/
	}

	.hcqm-quote-header {
		padding: 25px;
		flex-direction: column;
		align-items: flex-start;
		gap: 25px;
	}

	.hcqm-quote-heading {
		text-align: left;
	}

	.hcqm-customer-section {
		grid-template-columns: 1fr;
		padding: 25px;
	}

	.hcqm-products-section {
		padding: 30px 25px 15px;
	}

	.hcqm-product {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.hcqm-product-image img,
	.hcqm-no-image {
		width: 100%;
		height: 200px;
	}

	.hcqm-product-pricing {
		text-align: left;
	}

	.hcqm-total-section {
		padding: 15px 25px 30px;
	}

	.hcqm-notes {
		margin-left: 25px;
		margin-right: 25px;
	}

	.hcqm-actions {
		padding: 25px;
		flex-direction: column;
	}

	.hcqm-button {
		width: 100%;
	}

}


.hcqm-response-message {
	display: none;
	margin: 0 45px 30px;
	padding: 15px 18px;
	border-radius: 8px;
	font-weight: 500;
}

.hcqm-response-message.success {
	display: block;
	background: #ecfdf3;
	color: #027a48;
}

.hcqm-response-message.error {
	display: block;
	background: #fef3f2;
	color: #b42318;
}

.hcqm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 24, 40, 0.55);
}

.hcqm-modal[hidden] {
	display: none;
}

.hcqm-modal-content {
	position: relative;
	width: 100%;
	max-width: 550px;
	padding: 30px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(16, 24, 40, 0.2);
}

.hcqm-modal-content h2 {
	margin: 0 0 8px;
}

.hcqm-modal-content p {
	margin: 0 0 20px;
	color: #667085;
}

.hcqm-modal-content textarea {
	width: 100%;
	min-height: 140px;
	padding: 12px;
	border: 1px solid #d0d5dd;
	border-radius: 7px;
	resize: vertical;
	margin-bottom: 18px;
}

.hcqm-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	cursor: pointer;
	color: #667085;
}
.hcqm-payment-summary {
	margin: 25px 45px 30px;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #eaecf0;
	border-radius: 10px;
}

.hcqm-payment-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 8px 0;
	color: #475467;
}

.hcqm-payment-row strong {
	color: #101828;
}

.hcqm-due-now {
	margin-top: 8px;
	padding-top: 14px;
	/*border-top: 1px solid #d0d5dd;*/
	font-size: 18px;
}

.hcqm-due-now strong {
	font-size: 20px;
}

@media (max-width: 600px) {
	.hcqm-payment-summary {
		margin: 20px;
	}

	.hcqm-payment-row {
		align-items: flex-start;
	}
}

.hcqm-payment-history {
	margin-top: 35px;
}

.hcqm-payment-history h3 {
	margin-bottom: 15px;
}

.hcqm-payment-history-table {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.hcqm-payment-row {
	display: grid;
	grid-template-columns:
		1.2fr
		1.2fr
		1.5fr
		1fr
		1fr;

	gap: 15px;
	align-items: center;

	padding: 14px 16px;

	border-bottom: 1px solid #e5e7eb;
}

.hcqm-payment-row:last-child {
	border-bottom: 0;
}

.hcqm-payment-header {
	background: #f7f7f7;
	font-weight: 600;
}

.hcqm-payment-status {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 20px;
	background: #e8f7ee;
	color: #16733a;
	font-size: 13px;
	font-weight: 600;
}

.hcqm-payment-transaction {
	padding: 10px 16px;
	background: #fafafa;
	border-bottom: 1px solid #e5e7eb;
	font-size: 13px;
	color: #666;
}

@media (max-width: 700px) {

	.hcqm-payment-row {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.hcqm-payment-header {
		display: none;
	}

	.hcqm-payment-row > div:nth-child(1)::before {
		content: "Payment";
		display: block;
		font-size: 12px;
		color: #777;
		margin-bottom: 3px;
	}

	.hcqm-payment-row > div:nth-child(2)::before {
		content: "Date";
		display: block;
		font-size: 12px;
		color: #777;
		margin-bottom: 3px;
	}

	.hcqm-payment-row > div:nth-child(3)::before {
		content: "Method";
		display: block;
		font-size: 12px;
		color: #777;
		margin-bottom: 3px;
	}

	.hcqm-payment-row > div:nth-child(4)::before {
		content: "Amount";
		display: block;
		font-size: 12px;
		color: #777;
		margin-bottom: 3px;
	}

	.hcqm-payment-row > div:nth-child(5)::before {
		content: "Status";
		display: block;
		font-size: 12px;
		color: #777;
		margin-bottom: 3px;
	}
}
.hcqm-invoice-pdf-btn {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 18px;
	margin-bottom: 12px;
	text-align: center;
	text-decoration: none;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-weight: 600;
}

.hcqm-invoice-pdf-btn:hover {
	text-decoration: none;
	opacity: .9;
}

.hcqm-paid-full {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 18px;
	text-align: center;
	border-radius: 6px;
	font-weight: 600;
}

.hcqm-invoice-payment-methods {
	margin-bottom: 20px;
	padding: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fafafa;
}

.hcqm-invoice-payment-methods strong {
	display: block;
	margin-bottom: 10px;
}

.hcqm-payment-method-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hcqm-payment-method {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background: #fff;
	font-size: 13px;
}
/* Product images on the invoice page */
.hcqm-invoice-item {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: start;
}

.hcqm-invoice-image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 100px));
    gap: 8px;
    align-content: start;
}

.hcqm-invoice-item img.hcqm-invoice-gallery-image {
    display: block;
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eaecf0;
}

@media (max-width: 700px) {
    .hcqm-invoice-item {
        grid-template-columns: 1fr;
    }

    .hcqm-invoice-image-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 320px;
    }

    .hcqm-invoice-item img.hcqm-invoice-gallery-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
/* Product image gallery on the quote page */
.hcqm-product-image-gallery {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    margin-bottom:20px;
}

.hcqm-product-image-gallery img.hcqm-product-gallery-image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .hcqm-product-image-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hcqm-product-image-gallery img.hcqm-product-gallery-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}