/* Add to Quote Button */
.bqs-add-to-quote-wrap { display: inline-block; position: relative; }
.bqs-add-to-quote-btn { position: relative; cursor: pointer; }
.bqs-add-to-quote-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bqs-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0,0,0,0.2);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: bqs-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-left: 6px;
}
@keyframes bqs-spin {
	to { transform: rotate(360deg); }
}
.bqs-btn-response {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.9em;
	vertical-align: middle;
}
.bqs-btn-response.bqs-success { color: #46b450; }
.bqs-btn-response.bqs-error { color: #dc3232; }

/* Quote Count Bubble */
.bqs-quote-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.bqs-count-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	border-radius: 10px;
	background: #333;
	color: #fff;
}

/* Quote List Table */
.bqs-quote-list-wrap { max-width: 900px; }
.bqs-quote-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.bqs-quote-table th,
.bqs-quote-table td { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; text-align: left; vertical-align: middle; }
.bqs-quote-table thead th { font-weight: 600; border-bottom: 2px solid #ccc; }
.bqs-col-image { width: 60px; }
.bqs-col-image img { width: 50px; height: auto; border-radius: 4px; }
.bqs-col-qty { width: 80px; }
.bqs-col-actions { width: 40px; text-align: center; }
.bqs-col-price,
.bqs-col-subtotal { white-space: nowrap; }
.bqs-variation-details { display: block; font-size: 0.85em; color: #666; margin-top: 2px; }
.bqs-qty-input { width: 60px; text-align: center; padding: 4px; }
.bqs-custom-price { width: 80px; padding: 4px; }
.bqs-remove-item {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 4px;
}
.bqs-remove-item:hover { color: #dc3232; }
.bqs-total-label { text-align: right; font-weight: 600; }
.bqs-total-value { font-weight: 600; }

/* Quote Actions */
.bqs-quote-actions { margin-bottom: 30px; display: flex; gap: 10px; }
.bqs-quote-actions .button { cursor: pointer; }

/* Quote Form */
.bqs-quote-form-wrap { margin-top: 30px; max-width: 500px; }
.bqs-quote-form-wrap h3 { margin-bottom: 15px; }
.bqs-form-field { margin-bottom: 12px; }
.bqs-form-field label { display: block; margin-bottom: 4px; font-weight: 500; }
.bqs-form-field input[type="text"],
.bqs-form-field input[type="email"],
.bqs-form-field input[type="tel"],
.bqs-form-field input[type="date"],
.bqs-form-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; }
.bqs-form-field textarea { resize: vertical; min-height: 80px; }
.bqs-form-field .required { color: #dc3232; }
.bqs-checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }

/* Admin Quote Form */
.bqs-admin-quote-form p { margin-bottom: 12px; }
.bqs-admin-quote-form label { display: block; margin-bottom: 4px; font-weight: 500; }
.bqs-admin-quote-form input[type="text"],
.bqs-admin-quote-form input[type="email"],
.bqs-admin-quote-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; }

/* Empty Quote 
.bqs-empty-quote { }*/

/* Slide-in Panel */
.bqs-sidebar-trigger { cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.bqs-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}
.bqs-sidebar-overlay.bqs-active { opacity: 1; visibility: visible; }
.bqs-sidebar-panel {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	max-width: 90vw;
	height: 100%;
	background: #fff;
	z-index: 99999;
	transition: right 0.3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -2px 0 10px rgba(0,0,0,0.15);
}
.bqs-sidebar-panel.bqs-active { right: 0; }
.bqs-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
}
.bqs-sidebar-header h3 { margin: 0; font-size: 1.1em; }
.bqs-sidebar-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 4px;
}
.bqs-sidebar-close:hover { color: #333; }
.bqs-sidebar-description { padding: 12px 20px; color: #555; font-size: 0.9em; border-bottom: 1px solid #f0f0f0; }
.bqs-sidebar-description p:last-child { margin-bottom: 0; }
.bqs-sidebar-content {
	flex: 1;
	overflow-y: auto;
	padding: 15px 20px;
}
.bqs-sidebar-items { list-style: none; margin: 0; padding: 0; }
.bqs-sidebar-item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	align-items: center;
}
.bqs-sidebar-item-image img { width: 50px; height: auto; border-radius: 4px; }
.bqs-sidebar-item-info { flex: 1; }
.bqs-sidebar-item-title { display: block; font-weight: 500; text-decoration: none; color: inherit; font-size: 0.9em; }
.bqs-sidebar-item-details { display: block; font-size: 0.8em; color: #888; }
.bqs-sidebar-item-qty { display: block; font-size: 0.85em; color: #666; margin-top: 2px; }
.bqs-sidebar-footer {
	padding: 15px 20px;
	border-top: 1px solid #e0e0e0;
}
.bqs-sidebar-footer .button { width: 100%; text-align: center; }
.bqs-sidebar-empty { text-align: center; color: #999; padding: 30px 0; }

/* Public Quote View */
.bqs-view-quote-wrap {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}
.bqs-view-quote-wrap h1 {
	font-size: 1.6em;
	margin-bottom: 8px;
}
.bqs-view-quote-customer { font-size: 1.1em; margin-bottom: 4px; }
.bqs-view-quote-meta {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 24px;
}
.bqs-view-quote-expired-label { color: #dc3232; font-weight: 600; }
.bqs-view-quote-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.bqs-view-quote-table thead th {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 2px solid #ccc;
	font-weight: 600;
}
.bqs-view-quote-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}
.bqs-view-quote-table tfoot td {
	padding: 12px;
	border-top: 2px solid #ccc;
	font-weight: 700;
	font-size: 1.1em;
}
.bqs-vq-col-img { width: 220px; }
.bqs-vq-thumb { width: 210px; height: auto; border-radius: 8px; border: 1px solid #e0e0e0; }
.bqs-vq-col-qty { text-align: center; }
.bqs-vq-col-price,
.bqs-vq-col-subtotal { text-align: right; white-space: nowrap; }
.bqs-vq-total-label { text-align: right; }
.bqs-vq-total-value { text-align: right; }
.bqs-vq-details { color: #666; font-size: 0.85em; }
.bqs-view-quote-cta { margin: 24px 0; text-align: center; }
.bqs-view-quote-btn {
	display: inline-block;
	background: #1805db;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	padding: 14px 40px;
	border-radius: 7px;
	text-decoration: none;
	transition: background 0.2s;
}
.bqs-view-quote-btn:hover { background: #1304b0; color: #fff; }
.bqs-view-quote-notice {
	padding: 16px 20px;
	border-radius: 4px;
	margin: 24px 0;
}
.bqs-view-quote-expired {
	background: #fce8e6;
	color: #d93025;
	border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 600px) {
	.bqs-col-image { display: none; }
	.bqs-sidebar-panel { width: 100%; right: -100%; }
	.bqs-vq-col-img { display: none; }
	.bqs-view-quote-table thead { display: none; }
	.bqs-view-quote-table tbody td {
		display: block;
		text-align: right;
		padding: 6px 12px;
		border-bottom: none;
	}
	.bqs-view-quote-table tbody td::before {
		content: attr(data-label);
		float: left;
		font-weight: 600;
	}
	.bqs-view-quote-table tbody tr { border-bottom: 1px solid #e0e0e0; padding: 8px 0; }
}
