/*
Theme Name: BookMyFurnitureOrder Theme
Theme URI: https://prologichosting.com
Version: 1.0.1
Description: bookmyfurnitureorder theme
Author: Prologic Hosting
Author URI: https://prologichosting.com
template: bb-theme
*/

.bmfo-pdf-preview {
	max-width: 900px;
	margin: 0 auto;
	background: #fff;
	color: #222;
	font-size: 14px;
	line-height: 1.4;
}

.bmfo-pdf-job-header {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin: 0;
	color: #000;
	font-size: 10px;
	line-height: 1.1;
}

.bmfo-pdf-job-header th,
.bmfo-pdf-job-header td {
	border: 1px solid #000;
	background: #f4f4f4;
	height: 16px;
	padding: 2px 3px;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-align: left;
}

.bmfo-pdf-job-header th,
.bmfo-pdf-label-inline {
	font-weight: 700;
}

.bmfo-pdf-job-header th {
	overflow: visible;
}

.bmfo-pdf-col-label {
	width: 9%;
}

.bmfo-pdf-col-name {
	width: 23.5%;
}

.bmfo-pdf-col-phone {
	width: 2%;
}

.bmfo-pdf-col-phone-value {
	width: 13.5%;
}

.bmfo-pdf-col-label-wide {
	width: 10%;
}

.bmfo-pdf-col-detail-value {
	width: 12%;
}

.bmfo-pdf-col-small-label {
	width: 20%;
}

.bmfo-pdf-col-small {
	width: 10%;
}

.bmfo-pdf-phone-cell {
	padding: 0;
	text-align: center;
}

.bmfo-pdf-phone-icon {
	display: inline-block;
	width: 12px;
	color: #000;
	font-size: 12px;
	line-height: 12px;
}

.bmfo-pdf-currency-symbol {
	font-size: 70%;
	line-height: 0;
	vertical-align: super;
}

.bmfo-pdf-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	border-bottom: 2px solid #222;
	padding-bottom: 14px;
	margin-bottom: 22px;
}

.bmfo-pdf-preview-header h1 {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
}

.bmfo-pdf-preview-subtitle {
	margin-top: 4px;
	font-size: 15px;
	color: #555;
}

.bmfo-pdf-section {
	margin-bottom: 26px;
}

.bmfo-pdf-section h2 {
	font-size: 18px;
	margin: 0 0 10px;
}

.bmfo-pdf-items-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin: 0;
	color: #000;
	font-size: 10px;
	line-height: 1.15;
}

.bmfo-pdf-items-grid th,
.bmfo-pdf-items-grid td {
	border: 1px solid #000;
	padding: 3px 4px;
	text-align: left;
	vertical-align: top;
}

.bmfo-pdf-items-grid th {
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
	border-bottom: 3px double #000;
}

.bmfo-pdf-items-grid td {
	min-height: 24px;
}

.bmfo-pdf-item-l-col {
	width: 3%;
	text-align: center;
}

.bmfo-pdf-item-qty-col {
	width: 4%;
	text-align: center;
}

.bmfo-pdf-item-image-col {
	width: 9%;
	text-align: center;
}

.bmfo-pdf-item-image-col img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.bmfo-pdf-item-name-col {
	width: 18%;
}

.bmfo-pdf-item-description-col {
	width: 42%;
}

.bmfo-pdf-item-price-col,
.bmfo-pdf-item-total-col {
	width: 12%;
	text-align: right;
}

.bmfo-pdf-info-table,
.bmfo-pdf-items-table {
	width: 100%;
	border-collapse: collapse;
}

.bmfo-pdf-info-table th,
.bmfo-pdf-info-table td,
.bmfo-pdf-items-table th,
.bmfo-pdf-items-table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.bmfo-pdf-info-table th {
	width: 190px;
	background: #f5f5f5;
}

.bmfo-pdf-items-table th {
	background: #f5f5f5;
}

.bmfo-pdf-thumb-col {
	width: 80px;
}

.bmfo-pdf-thumb-col img {
	width: 60px;
	height: 60px;
	object-fit: cover;
}

.bmfo-pdf-item-meta {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

.bmfo-pdf-total-row th {
	background: #f5f5f5;
	text-align: right;
}

@media print {
	.bmfo-pdf-preview {
		max-width: none;
	}

	.site-header,
	.site-footer,
	header,
	footer,
	nav {
		display: none !important;
	}
}

.bmfo-quote-details-form {
	margin: 0 0 28px;
}

.bmfo-quote-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 22px;
}

.bmfo-quote-info-row {
	min-width: 0;
}

.bmfo-quote-field-notes,
.bmfo-quote-field-name-afrfq_field_91,
.bmfo-quote-field-empty {
	grid-column: 1 / -1;
}

.bmfo-quote-field-name-afrfq_field_94 {
	grid-column: 1;
}

.bmfo-quote-field-expire-date {
	grid-column: 2;
}

.bmfo-quote-expire-date-controls {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	align-items: center;
	width: 100%;
}

.bmfo-quote-expire-date-control,
.bmfo-quote-expire-days-control {
	display: flex;
	gap: 8px;
	align-items: center;
	min-width: 0;
	width: auto;
}

.bmfo-quote-expire-days-control {
	flex: 0 0 auto;
}

.bmfo-quote-expire-date-control {
	flex: 1 1 auto;
	min-width: 260px;
}

.bmfo-quote-expire-date-controls .bmfo-quote-info-label {
	margin-bottom: 0;
	white-space: nowrap;
}

.bmfo-quote-expire-days-control input[type="number"] {
	flex: 0 0 54px;
	width: 54px;
	min-width: 54px;
}

.bmfo-quote-expire-date-control input[type="date"] {
	display: block;
	flex: 1 1 auto;
	width: 100% !important;
	min-width: 180px;
	max-width: none !important;
}

@media (max-width: 700px) {
	.bmfo-quote-expire-date-controls {
		flex-wrap: wrap;
	}

	.bmfo-quote-expire-date-control {
		min-width: 100%;
	}

	.bmfo-quote-expire-date-control input[type="date"] {
		min-width: 0;
	}
}

.bmfo-quote-info-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #222;
}

.bmfo-quote-required {
	color: #b00020;
}

.bmfo-quote-info-value input[type="text"],
.bmfo-quote-info-value input[type="email"],
.bmfo-quote-info-value input[type="number"],
.bmfo-quote-info-value input[type="date"],
.bmfo-quote-info-value input[type="time"],
.bmfo-quote-info-value input[type="datetime-local"],
.bmfo-quote-info-value input[type="file"],
.bmfo-quote-info-value select,
.bmfo-quote-info-value textarea {
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #b8c0c8;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 14px;
	line-height: 1.35;
}

.bmfo-quote-info-value textarea {
	min-height: 96px;
	resize: vertical;
}

.bmfo-quote-details-form.is-locked input,
.bmfo-quote-details-form.is-locked select,
.bmfo-quote-details-form.is-locked textarea {
	opacity: 0.78;
	cursor: default;
}

.bmfo-quote-choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	min-height: 40px;
	align-items: center;
}

.bmfo-quote-choice {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
}

.bmfo-quote-file-link {
	display: inline-block;
	margin-bottom: 8px;
}

.bmfo-quote-form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.bmfo-quote-totals-summary {
	width: min(100%, 440px);
	margin: 18px 0 0 auto;
	text-align: right;
}

.bmfo-quote-total-row {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) minmax(130px, auto);
	align-items: center;
	gap: 16px;
	padding: 6px 0;
}

.bmfo-quote-total-row.is-total {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid #d8dee4;
	font-weight: 700;
}

.bmfo-quote-total-label {
	font-weight: 600;
	color: #222;
	text-align: right;
}

.bmfo-quote-total-value {
	display: flex;
	justify-content: flex-end;
	text-align: right;
}

.bmfo-quote-total-value input[type="number"] {
	width: 130px;
	max-width: 100%;
	min-height: 36px;
	padding: 7px 9px;
	border: 1px solid #b8c0c8;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 14px;
	line-height: 1.35;
	text-align: right;
}

.bmfo-quote-save-button {
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid #1f5d8f;
	border-radius: 4px;
	background: #1f5d8f;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.bmfo-quote-save-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.bmfo-quote-form-message {
	min-height: 22px;
	margin-bottom: 10px;
	font-size: 14px;
}

.bmfo-quote-form-message.is-error {
	color: #b00020;
}

.bmfo-quote-form-message.is-success {
	color: #1f6f43;
}

.bmfo-quote-empty-items {
	margin: 0 0 24px;
}

.bmfo-quote-header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	width: 100%;
	gap: 16px;
	margin-bottom: 24px;
}

.bmfo-quote-header h2 {
	grid-column: 1;
	justify-self: start;
	margin: 0;
	white-space: nowrap;
}

.bmfo-quote-header-actions {
	justify-self: end;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.bmfo-quote-pdf-action {
	justify-self: stretch;
	display: flex;
	justify-content: center;
}

.bmfo-quote-header-controls {
	display: grid;
	grid-template-columns: auto minmax(120px, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.bmfo-quote-status-switch,
.bmfo-quote-pagination,
.bmfo-quote-details-status-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.bmfo-quote-status-switch {
	margin: 0 0 18px;
}

.bmfo-quote-status-link,
.bmfo-quote-pagination-link,
.bmfo-header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid #b8c0c8;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.bmfo-pdf-link + .bmfo-pdf-link {
	margin-left: 8px;
}

.bmfo-quote-status-link.is-active {
	border-color: #1f5d8f;
	background: #1f5d8f;
	color: #fff;
}

.bmfo-quote-pagination {
	justify-content: flex-end;
	margin-top: 16px;
}

.bmfo-quote-pagination-current {
	margin-right: auto;
	color: #555;
}

.bmfo-quote-details-status {
	justify-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	text-align: center;
}

.bmfo-quote-details-status-label {
	margin-bottom: 4px;
	font-weight: 600;
	color: #222;
}

.bmfo-quote-details-status-current {
	margin: 0 0 6px;
	color: #333;
	font-size: 14px;
}

.bmfo-quote-status-toggle {
	display: inline-flex;
	padding: 3px;
	border: 1px solid #b8c0c8;
	border-radius: 999px;
	background: #f6f8fa;
	gap: 2px;
}

.bmfo-quote-status-toggle.is-saving {
	opacity: 0.65;
	pointer-events: none;
}

.bmfo-quote-status-toggle.is-locked {
	opacity: 0.85;
}

.bmfo-quote-status-toggle.is-locked .bmfo-quote-status-option {
	cursor: default;
}

.bmfo-quote-status-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 104px;
	min-height: 34px;
	padding: 6px 14px;
	border-radius: 999px;
	color: #222;
	font-weight: 600;
	cursor: pointer;
	transition: background 120ms ease, color 120ms ease;
}

.bmfo-quote-status-option.is-active {
	background: #1f5d8f;
	color: #fff;
}

.bmfo-quote-status-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bmfo-quote-status-input:disabled + span {
	cursor: default;
}

.bmfo-quote-status-notice {
	margin: 0 0 8px;
	color: #1f6f43;
	font-size: 14px;
}

.bmfo-quote-status-notice.is-error {
	color: #b00020;
}

.bmfo-quote-products-table th.bmfo-quote-qty-col,
.bmfo-quote-products-table td.bmfo-quote-qty-col {
	width: 1%;
	padding-left: 6px;
	padding-right: 6px;
	text-align: center;
	white-space: nowrap;
}

.bmfo-quote-trash-form {
	display: inline-flex;
	margin: 0;
}

.bmfo-quote-trash-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #c9a0a0;
	border-radius: 999px;
	background: #fff;
	color: #9b1c1c;
	cursor: pointer;
}

.bmfo-quote-trash-button:hover {
	background: #fff5f5;
	border-color: #9b1c1c;
}

.bmfo-quote-trash-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.bmfo-quote-item-order {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-right: 8px;
	flex: 0 0 auto;
}

.bmfo-quote-item-move {
	width: 24px;
	height: 22px;
	min-width: 24px;
	padding: 0;
	line-height: 1;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #f7f7f7;
	color: #333;
}

.bmfo-quote-item-move:hover {
	background: #e9e9e9;
}

.bmfo-quote-item-move:disabled {
	opacity: 0.5;
	cursor: default;
}

@media (max-width: 700px) {
	.bmfo-quote-info-grid {
		grid-template-columns: 1fr;
	}

	.bmfo-quote-field-name-afrfq_field_94,
	.bmfo-quote-field-expire-date {
		grid-column: auto;
	}

	.bmfo-quote-header {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.bmfo-quote-header-controls {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.bmfo-quote-header h2,
	.bmfo-quote-pdf-action,
	.bmfo-quote-header-actions {
		justify-self: center;
	}
}
