/* ==========================================================================
   Bulk Quote Request — frontend styles
   Rules use !important on color/background/border properties because many
   WordPress themes ship global form-field styles (input[type=text], select,
   textarea, button) that otherwise override this stylesheet depending on
   load order and specificity. This keeps the form's dark theme intact
   regardless of the active theme.
   ========================================================================== */

.bqr-wrap {
	--bqr-bg: #1a1a1a;
	--bqr-panel: #222222;
	--bqr-panel-alt: #1a1a1a;
	--bqr-border: #3c3c43;
	--bqr-text: #f2f2f4;
	--bqr-muted: #a3a3ac;
	--bqr-placeholder: #75757e;
	--bqr-accent: #f97316;
	--bqr-accent-dim: rgba(249, 115, 22, 0.12);
	--bqr-accent-border: rgba(249, 115, 22, 0.4);
	--bqr-accent-glow: rgba(249, 115, 22, 0.07);
	--bqr-green: #4cd97b;
	--bqr-radius: 10px;

	background: var(--bqr-bg) !important;
	color: var(--bqr-text) !important;
	padding: 28px;
	border-radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 980px;
	margin: 0 auto;
	line-height: 1.5;
}

.bqr-wrap *,
.bqr-wrap *::before,
.bqr-wrap *::after {
	box-sizing: border-box;
}

.bqr-wrap h2,
.bqr-wrap h3,
.bqr-wrap p,
.bqr-wrap span,
.bqr-wrap label,
.bqr-wrap div {
	color: var(--bqr-text);
}

.bqr-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}
.bqr-grid-2 {
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
	.bqr-grid-2 {
		grid-template-columns: 1fr;
	}
}

.bqr-field {
	margin-bottom: 18px;
}
.bqr-field-half {
	max-width: 320px;
}

.bqr-field > label,
.bqr-order-items h3 {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--bqr-accent) !important;
	margin-bottom: 6px;
}
.bqr-order-items h3 {
	font-size: 15px;
	color: var(--bqr-text) !important;
	margin: 0;
}

.bqr-req {
	color: var(--bqr-accent) !important;
}

/* ---- Form fields: force visible text/background regardless of theme ---- */
.bqr-wrap input[type="text"],
.bqr-wrap input[type="email"],
.bqr-wrap input[type="number"],
.bqr-wrap input[type="tel"],
.bqr-wrap textarea,
.bqr-wrap select {
	width: 100% !important;
	background-color: var(--bqr-panel) !important;
	border: 1px solid var(--bqr-border) !important;
	color: var(--bqr-text) !important;
	-webkit-text-fill-color: var(--bqr-text) !important;
	caret-color: var(--bqr-text) !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	outline: none !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	height: auto !important;
	transition: border-color 0.15s ease;
}

/* Custom select arrow so the native one (often dark-on-dark) doesn't disappear */
.bqr-wrap select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a3a3ac' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	padding-right: 32px !important;
}
.bqr-wrap select:disabled,
.bqr-wrap input:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed;
}
.bqr-wrap select option {
	background-color: var(--bqr-panel) !important;
	color: var(--bqr-text) !important;
}

.bqr-wrap input::placeholder,
.bqr-wrap textarea::placeholder {
	color: var(--bqr-placeholder) !important;
	opacity: 1 !important;
}

.bqr-wrap input:focus,
.bqr-wrap textarea:focus,
.bqr-wrap select:focus {
	border-color: var(--bqr-accent) !important;
}

/* Autofill (Chrome) keeps the dark background instead of flashing white */
.bqr-wrap input:-webkit-autofill,
.bqr-wrap input:-webkit-autofill:hover,
.bqr-wrap input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--bqr-panel) inset !important;
	-webkit-text-fill-color: var(--bqr-text) !important;
	caret-color: var(--bqr-text) !important;
}

.bqr-wrap textarea {
	resize: vertical;
	font-family: inherit !important;
}

.bqr-muted {
	color: var(--bqr-muted) !important;
}
.bqr-small {
	font-size: 12px;
	line-height: 1.5;
}

.bqr-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 14px;
	gap: 10px;
}

/* ---- Buttons ---- */
.bqr-wrap button,
.bqr-wrap .bqr-btn {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	border-radius: 8px;
	padding: 9px 16px;
	border: 1px solid transparent;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}
.bqr-wrap button:hover,
.bqr-wrap .bqr-btn:hover {
	opacity: 0.9;
}
.bqr-btn-outline {
	background: var(--bqr-accent-dim) !important;
	border-color: var(--bqr-accent-border) !important;
	color: var(--bqr-accent) !important;
}
.bqr-btn-primary {
	background: var(--bqr-accent) !important;
	color: #fff !important;
	font-size: 15px;
	padding: 13px 20px;
}
.bqr-btn-block {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.bqr-submit-icon {
	transform: rotate(20deg);
	display: inline-block;
}

/* ---- Order items table ---- */
.bqr-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--bqr-border);
	border-radius: var(--bqr-radius);
	background: var(--bqr-panel-alt) !important;
}

.bqr-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 860px;
	background: transparent !important;
}

.bqr-table thead th {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: var(--bqr-accent) !important;
	padding: 12px 10px;
	border-bottom: 1px solid var(--bqr-border);
	white-space: nowrap;
	background: transparent !important;
}

.bqr-table tbody td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--bqr-border);
	font-size: 13px;
	vertical-align: middle;
	background: transparent !important;
}
.bqr-table tbody tr:last-child td {
	border-bottom: none;
}

.bqr-table select,
.bqr-table input[type="number"] {
	min-width: 100px;
	padding: 7px 8px !important;
	font-size: 13px !important;
}

.bqr-col-num {
	width: 30px;
}
.bqr-row-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bqr-accent) !important;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
}

/* ---- Custom dropdown (product thumbnail / colour swatch) ---- */
.bqr-cs-wrap {
	position: relative;
	min-width: 140px;
	user-select: none;
}
.bqr-cs-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	background: var(--bqr-panel) !important;
	border: 1px solid var(--bqr-border) !important;
	border-radius: 8px !important;
	padding: 6px 10px 6px 8px !important;
	cursor: pointer;
	min-height: 36px;
	color: var(--bqr-text) !important;
}
.bqr-cs-disabled .bqr-cs-btn {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}
.bqr-cs-thumb {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--bqr-border);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bqr-cs-thumb img {
	width: 24px;
	height: 24px;
	object-fit: cover;
	display: block;
}
.bqr-cs-no-img {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--bqr-border);
}
.bqr-cs-dot {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-sizing: border-box;
}
.bqr-cs-label {
	flex: 1;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--bqr-text) !important;
}
.bqr-cs-caret {
	flex-shrink: 0;
	color: var(--bqr-muted);
}
.bqr-cs-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1000;
	background: var(--bqr-panel) !important;
	border: 1px solid var(--bqr-border) !important;
	border-radius: 10px;
	min-width: 180px;
	max-height: 240px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0,0,0,0.4);
	padding: 4px;
}
.bqr-cs-menu-hidden {
	display: none !important;
}
.bqr-cs-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 7px;
	cursor: pointer;
	font-size: 13px;
	color: var(--bqr-text) !important;
}
.bqr-cs-option:hover {
	background: var(--bqr-accent-dim) !important;
	color: var(--bqr-accent) !important;
}
.bqr-cs-option .bqr-cs-opt-img {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	background: var(--bqr-border);
}
.bqr-cs-option .bqr-cs-no-img {
	display: inline-block;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	background: var(--bqr-border);
	flex-shrink: 0;
}
.bqr-cs-option .bqr-cs-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex-shrink: 0;
}
.bqr-cs-opt-text {
	flex: 1;
}
.bqr-cs-placeholder {
	color: var(--bqr-muted) !important;
}
/* Scrollbar inside dropdown */
.bqr-cs-menu::-webkit-scrollbar { width: 5px; }
.bqr-cs-menu::-webkit-scrollbar-track { background: transparent; }
.bqr-cs-menu::-webkit-scrollbar-thumb { background: var(--bqr-border); border-radius: 3px; }

.bqr-unit-price,
.bqr-line-total {
	white-space: nowrap;
	color: var(--bqr-muted) !important;
	font-weight: 600;
}
.bqr-line-total {
	color: var(--bqr-text) !important;
}

/* ---- Qty stepper ---- */
.bqr-qty-stepper {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--bqr-border) !important;
	border-radius: 8px !important;
	overflow: hidden;
	width: 110px;
	background: var(--bqr-panel) !important;
}
.bqr-qty-stepper input.bqr-qty-input {
	border: none !important;
	border-left: 1px solid var(--bqr-border) !important;
	border-right: 1px solid var(--bqr-border) !important;
	border-radius: 0 !important;
	text-align: center;
	width: 44px !important;
	min-width: 44px !important;
	padding: 7px 4px !important;
	-moz-appearance: textfield;
}
.bqr-qty-stepper input.bqr-qty-input::-webkit-outer-spin-button,
.bqr-qty-stepper input.bqr-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.bqr-qty-btn {
	flex: 0 0 28px;
	background: var(--bqr-panel) !important;
	border: none !important;
	color: var(--bqr-text) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bqr-qty-btn:hover {
	background: var(--bqr-accent-dim) !important;
	color: var(--bqr-accent) !important;
}
.bqr-qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ---- Remove row button ---- */
.bqr-row-remove {
	background: transparent !important;
	border: none !important;
	color: var(--bqr-muted) !important;
	cursor: pointer;
	padding: 6px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}
.bqr-row-remove svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	display: block;
}
.bqr-row-remove:hover {
	color: #fff !important;
	background: #e2452a !important;
}

.bqr-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
}
.bqr-summary-left {
	display: flex;
	flex-direction: column;
	color: var(--bqr-muted) !important;
}
.bqr-discount-hint {
	font-size: 12px;
	color: var(--bqr-muted) !important;
}
.bqr-discount-hint.is-active {
	color: var(--bqr-green) !important;
}
.bqr-summary-right {
	color: var(--bqr-text) !important;
}
.bqr-summary-right strong {
	color: var(--bqr-accent) !important;
	font-size: 16px;
	margin-left: 4px;
}

.bqr-fineprint {
	font-size: 11px;
	color: var(--bqr-muted) !important;
	margin-top: 10px;
}

.bqr-order-items {
	margin-bottom: 22px;
}

.bqr-hidden-file {
	display: none !important;
}

.bqr-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 4px;
	border: 1.5px dashed var(--bqr-border) !important;
	border-radius: var(--bqr-radius);
	padding: 30px 16px;
	cursor: pointer;
	background: var(--bqr-panel-alt) !important;
	transition: border-color 0.15s ease;
}
.bqr-dropzone:hover,
.bqr-dropzone.is-dragover {
	border-color: var(--bqr-accent) !important;
}
.bqr-dropzone-icon {
	font-size: 20px;
	color: var(--bqr-muted) !important;
}
.bqr-dropzone-text {
	font-weight: 600;
	font-size: 14px;
	color: var(--bqr-accent) !important;
}
.bqr-dropzone-sub {
	font-size: 11px;
	color: var(--bqr-muted) !important;
}
.bqr-dropzone-filename {
	font-size: 12px;
	color: var(--bqr-green) !important;
	margin-top: 4px;
}

.bqr-checkbox-card {
	background: var(--bqr-panel-alt) !important;
	border: 1px solid var(--bqr-border) !important;
	border-radius: var(--bqr-radius);
	padding: 16px;
}
.bqr-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
	color: var(--bqr-text) !important;
	cursor: pointer;
}
.bqr-checkbox-label input {
	width: 16px !important;
	height: 16px !important;
	accent-color: var(--bqr-accent);
	flex: 0 0 auto;
}

#bqr-design-brief-wrap {
	margin-top: 14px;
}

.bqr-form-message {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 16px;
}
.bqr-form-message.is-error {
	background: rgba(255, 70, 70, 0.12) !important;
	border: 1px solid rgba(255, 70, 70, 0.4) !important;
	color: #ff8c8c !important;
}
.bqr-form-message.is-success {
	background: rgba(76, 217, 123, 0.12) !important;
	border: 1px solid rgba(76, 217, 123, 0.4) !important;
	color: var(--bqr-green) !important;
}

.bqr-info {
	cursor: help;
	color: var(--bqr-muted) !important;
	font-size: 11px;
}

.bqr-btn-primary:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed;
}

/* ---- Confirmation screen ---- */
#bqr-confirmation {
	animation: bqrFadeIn 0.35s ease;
}
@keyframes bqrFadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}
.bqr-confirm-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: rgba(76, 217, 123, 0.08);
	border: 1px solid rgba(76, 217, 123, 0.3);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}
.bqr-confirm-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(76, 217, 123, 0.15);
	color: var(--bqr-green);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bqr-confirm-header h2 {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--bqr-green) !important;
}
.bqr-confirm-header p {
	margin: 0;
	font-size: 13px;
	color: var(--bqr-muted) !important;
}
.bqr-confirm-section {
	margin-bottom: 22px;
}
.bqr-confirm-section h4 {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bqr-accent) !important;
	margin: 0 0 10px;
}
.bqr-confirm-details {
	background: var(--bqr-panel-alt);
	border: 1px solid var(--bqr-border);
	border-radius: 10px;
	overflow: hidden;
}
.bqr-confirm-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-bottom: 1px solid var(--bqr-border);
	font-size: 13px;
}
.bqr-confirm-row:last-child {
	border-bottom: none;
}
.bqr-confirm-row span {
	color: var(--bqr-muted) !important;
}
.bqr-confirm-row strong {
	color: var(--bqr-text) !important;
}
.bqr-confirm-table {
	min-width: 600px;
}
.bqr-confirm-totals {
	margin-top: 12px;
	border: 1px solid var(--bqr-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--bqr-panel-alt);
}
.bqr-confirm-total-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 13px;
	border-bottom: 1px solid var(--bqr-border);
}
.bqr-confirm-total-row:last-child {
	border-bottom: none;
}
.bqr-confirm-total-row span {
	color: var(--bqr-muted) !important;
}
.bqr-confirm-total-row strong {
	color: var(--bqr-text) !important;
}
.bqr-confirm-grand-total {
	background: var(--bqr-accent-glow);
}
.bqr-confirm-grand-total span {
	color: var(--bqr-text) !important;
	font-weight: 700;
}
.bqr-confirm-grand-total strong {
	color: var(--bqr-accent) !important;
	font-size: 16px;
	font-weight: 700;
}
.bqr-green {
	color: var(--bqr-green) !important;
}
.bqr-confirm-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--bqr-muted) !important;
	background: var(--bqr-panel-alt);
	border: 1px solid var(--bqr-border);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 20px;
}
.bqr-confirm-notice svg {
	flex-shrink: 0;
	stroke: var(--bqr-muted);
}

/* ---- MUST stay last — overrides every component's display rule ---- */
.bqr-hidden {
	display: none !important;
}
