/* Theme-compatibility overrides kept strictly inside plugin components. */
.bwwr-root .bwwr-form-actions .bwwr-prev[hidden],
.bwwr-root .bwwr-form-actions .bwwr-next[hidden],
.bwwr-root .bwwr-form-actions .bwwr-submit[hidden] {
	display: none !important;
}

.bwwr-order-actions .bwwr-order-action {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center !important;
	gap: 20px !important;
	margin: 0 0 12px !important;
	padding: 16px 18px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px;
	background: #f8fafc;
}

.bwwr-order-actions .bwwr-order-product {
	min-width: 0;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.bwwr-order-actions .bwwr-order-request-button {
	margin: 0 !important;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.bwwr-order-actions .bwwr-order-action {
		grid-template-columns: 1fr;
		align-items: stretch !important;
		gap: 12px !important;
	}

	.bwwr-order-actions .bwwr-order-request-button {
		width: 100%;
		white-space: normal;
		text-align: center;
	}
}

.bwwr-root .bwwr-files {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.bwwr-root .bwwr-files h4 {
	grid-column: 1 / -1;
	margin: 0 0 2px;
}

.bwwr-root .bwwr-attachment-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	padding: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
	overflow: hidden;
	text-decoration: none;
}

.bwwr-root .bwwr-attachment-card img {
	display: block;
	width: 100%;
	height: 120px;
	margin: 0;
	border: 0;
	border-radius: 7px;
	object-fit: cover;
}

.bwwr-root .bwwr-attachment-card.is-pdf {
	min-height: 72px;
	padding: 14px;
	color: var(--bwwr-primary);
	font-weight: 700;
	text-align: center;
}
