.bp-pa-stock-summary {
	margin: 18px 0;
}

/* Product page 2-column stock summary */
.bp-pa-product-summary {
	margin: 18px 0;
}

.bp-pa-product-stock-table {
	width: 100%;
	border: 1px solid #e5e5e5;
	border-bottom: none;
	background: #fff;
	font-size: 14px;
}

.bp-pa-product-stock-row {
	display: grid;
	grid-template-columns: 22% 78%;
	border-bottom: 1px solid #e5e5e5;
}

.bp-pa-product-stock-qty,
.bp-pa-product-stock-status {
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #111;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.bp-pa-product-stock-qty {
	border-right: 1px solid #e5e5e5;
	font-weight: 500;
}

.bp-pa-product-stock-full {
	grid-column: 1 / -1;
}

.bp-pa-select-variation-notice {
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	background: #fff;
	font-size: 14px;
	line-height: 1.5;
	color: #111;
}

.bp-pa-empty-summary {
	display: none;
}

/* Popup 3-column grid table */
.bp-pa-grid-wrap {
	width: 100%;
	margin: 10px 0;
}

.bp-pa-grid-table {
	width: 100%;
	border: 1px solid #e5e5e5;
	border-bottom: none;
	background: #fff;
	font-size: 14px;
}

.bp-pa-grid-row {
	display: grid !important;
	grid-template-columns: 20% 40% 40%;
	width: 100%;
	border-bottom: 1px solid #e5e5e5;
}

.bp-pa-grid-cell {
	padding: 10px 12px;
	border-right: 1px solid #e5e5e5;
	font-size: 14px;
	line-height: 1.5;
	color: #111;
	white-space: normal !important;
	word-break: break-word;
	overflow-wrap: anywhere;
	min-width: 0;
}

.bp-pa-grid-cell:last-child {
	border-right: none;
}

.bp-pa-grid-header .bp-pa-grid-cell {
	background: #f7f7f7;
	font-weight: 600;
	font-size: 14px;
}

.bp-pa-qty-cell {
	font-weight: 500;
}

.bp-pa-status-cell,
.bp-pa-eta-cell {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #111 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: anywhere !important;
}

/* Action links */
.bp-pa-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 14px 0 8px;
}

.bp-pa-link {
	display: inline-block;
	padding: 0;
	margin: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: underline;
	color: #0057FF !important;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.bp-pa-link:hover {
	text-decoration: none;
	color: #003DB3 !important;
}

.bp-pa-inline-message {
	margin: 8px 0 18px;
	font-size: 14px;
	line-height: 1.5;
}

.bp-pa-inline-message.is-error {
	color: #b42318;
}

.bp-pa-inline-message.is-success {
	color: #067647;
}

/* Modal and drawer overlay */
.bp-pa-modal-overlay,
.bp-pa-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bp-pa-modal-overlay.is-active,
.bp-pa-drawer-overlay.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Safety: closed overlays must never block product page clicks */
body:not(.bp-pa-lock) .bp-pa-modal-overlay,
body:not(.bp-pa-lock) .bp-pa-drawer-overlay {
	pointer-events: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}

/* Check availability popup */
.bp-pa-modal {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(760px, calc(100% - 30px));
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	padding: 38px 26px 26px;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Bulk quote drawer */
.bp-pa-drawer {
	position: absolute;
	right: 0;
	top: 0;
	width: min(460px, 92vw);
	height: 100%;
	overflow-y: auto;
	background: #fff;
	padding: 38px 28px 28px;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

.bp-pa-drawer-overlay.is-active .bp-pa-drawer {
	transform: translateX(0);
}

/* Close buttons */
.bp-pa-close {
	position: absolute !important;
	right: 14px !important;
	top: 12px !important;
	left: auto !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 28px !important;
	line-height: 32px !important;
	cursor: pointer;
	color: #111 !important;
	text-align: center !important;
	z-index: 5;
}

.bp-pa-modal h3,
.bp-pa-drawer h3 {
	margin: 0 42px 14px 0;
	font-size: 20px;
	line-height: 1.3;
}

.bp-pa-product-name {
	margin: 4px 0 18px;
	font-weight: 600;
	color: #333;
}

.bp-pa-selected-variation-text {
	margin: -8px 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	font-weight: 500;
}

.bp-pa-check-form {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.bp-pa-modal label,
.bp-pa-drawer label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
}

.bp-pa-modal input,
.bp-pa-drawer input,
.bp-pa-drawer textarea {
	width: 100%;
	margin: 0 0 15px;
	padding: 11px 12px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

.bp-pa-modal input[readonly],
.bp-pa-drawer input[readonly] {
	background: #f5f5f5;
	color: #555;
}

.bp-pa-check-submit,
.bp-pa-bulk-submit {
	width: 100%;
	margin-top: 4px;
	color: #fff !important;
	background-color: #0057FF !important;
}
.bp-pa-check-submit:hover,
.bp-pa-bulk-submit:hover {
	background-color: #003DB3 !important;
}

.bp-pa-message {
	margin-top: 12px;
	font-size: 14px;
}

.bp-pa-message.is-error {
	color: #b42318;
}

.bp-pa-message.is-success {
	color: #067647;
}

.bp-pa-result,
.bp-pa-default-result,
.bp-pa-popup-result {
	margin-top: 14px;
}

.bp-pa-default-result {
	margin-bottom: 16px;
}

.bp-pa-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.bp-pa-variation-fields {
	clear: both;
	padding-top: 8px;
}

body.bp-pa-lock {
	overflow: hidden;
}

/* Mobile */
@media (max-width: 767px) {
	.bp-pa-action-row {
		flex-direction: column;
		gap: 8px;
	}

	.bp-pa-modal {
		padding: 38px 16px 20px;
	}

	.bp-pa-drawer {
		width: 94vw;
		padding: 38px 16px 20px;
	}

	.bp-pa-modal h3,
	.bp-pa-drawer h3 {
		margin-right: 42px;
		font-size: 18px;
	}

	/* Product page 2-column table on mobile */
	.bp-pa-product-stock-row {
		grid-template-columns: 30% 70%;
	}

	.bp-pa-product-stock-qty,
	.bp-pa-product-stock-status {
		padding: 9px 10px;
		font-size: 14px;
	}

	/* Popup grid stays 3 columns on mobile with horizontal scroll */
	.bp-pa-grid-wrap {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.bp-pa-grid-table {
		min-width: 680px;
		width: 680px;
	}

	.bp-pa-grid-row {
		grid-template-columns: 120px 280px 280px;
	}

	.bp-pa-grid-header {
		display: grid !important;
	}

	.bp-pa-grid-cell {
		padding: 9px 10px;
		font-size: 14px;
		border-right: 1px solid #e5e5e5;
		border-bottom: none;
		white-space: normal !important;
	}

	.bp-pa-grid-cell:last-child {
		border-right: none;
	}

	.bp-pa-grid-row {
		border-bottom: 1px solid #dcdcdc;
	}

	.bp-pa-grid-row:last-child {
		border-bottom: none;
	}
}