/* Physical products overlay. Prefixed "bvkp-" so it never mixes with the digital checkout styles. */

.bvkp-buy {
	display: inline-block;
	background: #f7931a;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}
.bvkp-buy:hover { background: #d97c0e; }

.bvkp-soldout {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 6px;
	background: #eee;
	color: #666;
	font-size: 16px;
	font-weight: 600;
}

.bvkp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 24px 0;
}
body.bvkp-open { overflow: hidden; }

.bvkp-modal {
	background: #fff;
	border-radius: 10px;
	padding: 32px;
	width: 100%;
	max-width: 480px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
	margin: auto;
}
.bvkp-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #666;
	line-height: 1;
}
.bvkp-title { margin: 0 0 12px; font-size: 20px; }

.bvkp-summary {
	margin-bottom: 18px;
	padding: 10px 12px;
	background: #f8f8f8;
	border-radius: 6px;
	font-size: 14px;
}
.bvkp-line { display: flex; justify-content: space-between; padding: 2px 0; }
.bvkp-total-line {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #ddd;
	font-size: 18px;
	font-weight: 700;
	color: #f7931a;
}

.bvkp-field { margin-bottom: 14px; }
.bvkp-field label,
.bvkp-label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 500;
}
.bvkp-field input[type="text"],
.bvkp-field input[type="email"],
.bvkp-field input[type="tel"],
.bvkp-field input[type="search"],
.bvkp-field input[type="url"],
.bvkp-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.bvkp-field input:focus,
.bvkp-field select:focus {
	outline: none;
	border-color: #f7931a;
	box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2);
}
.bvkp-hint { margin: 5px 0 0; font-size: 13px; color: #555; }

/* Box picker */
.bvkp-search-row { display: flex; gap: 8px; }
.bvkp-search-row .bvkp-search { flex: 1; min-width: 0; }
.bvkp-near,
.bvkp-map-toggle,
.bvkp-manual-use {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}
.bvkp-near:disabled { opacity: 0.6; cursor: wait; }
.bvkp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.bvkp-picker-msg { margin: 8px 0 0; font-size: 14px; color: #444; }
.bvkp-results {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
}
.bvkp-results li { margin: 0; padding: 0; }
.bvkp-result {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 10px;
	border: none;
	border-bottom: 1px solid #eee;
	background: #fff;
	cursor: pointer;
}
.bvkp-result:hover,
.bvkp-result:focus { background: #fff6e9; }
.bvkp-result-name { display: block; font-size: 14px; font-weight: 600; }
.bvkp-result-addr { display: block; font-size: 13px; color: #555; }

.bvkp-map {
	height: 280px;
	margin-top: 8px;
	border-radius: 6px;
	border: 1px solid #ccc;
	z-index: 0;
}

.bvkp-manual-toggle {
	display: inline-block;
	text-align: left;
	padding: 0;
	background: none;
	border: none;
	color: #555;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.bvkp-manual { margin-top: 8px; }
.bvkp-manual-feedback { display: block; margin: 4px 0; font-size: 14px; }
.bvkp-ok { color: #2e7d32; }
.bvkp-bad { color: #c62828; }

.bvkp-selected {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 6px;
	font-size: 14px;
}
.bvkp-card-addr { font-size: 14px; color: #444; }
.bvkp-selected a { font-size: 14px; }
.bvkp-change {
	align-self: flex-start;
	margin-top: 4px;
	padding: 0;
	background: none;
	border: none;
	color: #555;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.bvkp-error {
	background: #fdecea;
	border: 1px solid #f44336;
	color: #c62828;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 14px;
	margin-bottom: 14px;
}

.bvkp-payments { display: flex; flex-direction: column; gap: 10px; }
.bvkp-pay {
	width: 100%;
	padding: 13px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
	color: #fff;
}
.bvkp-pay:disabled { opacity: 0.6; cursor: not-allowed; }
.bvkp-pay-stripe { background: #635bff; }
.bvkp-pay-stripe:hover:not(:disabled) { background: #4f46e5; }
.bvkp-pay-opennode { background: #f7931a; }
.bvkp-pay-opennode:hover:not(:disabled) { background: #d97c0e; }

@media (max-width: 480px) {
	.bvkp-modal { margin: 0 12px; padding: 24px 18px; }
}

/* Coupon */
.bvkp-coupon-section { margin-bottom: 14px; }
.bvkp-coupon-toggle {
	background: none;
	border: none;
	padding: 0;
	color: #555;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.bvkp-coupon-toggle::after { content: ' ▾'; display: inline-block; transition: transform 0.15s; }
.bvkp-coupon-toggle.is-open::after { transform: rotate(180deg); }
.bvkp-coupon-box { margin-top: 8px; }
.bvkp-coupon-box input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.bvkp-coupon-feedback { display: block; margin-top: 4px; font-size: 14px; }
.bvkp-checking { color: #555; }
.bvkp-old { opacity: 0.5; font-size: 0.9em; }

/* Quantity stepper */
.bvkp-qty-line { align-items: center; }
.bvkp-qty-line label { margin: 0; font-weight: normal; }
.bvkp-stepper { display: inline-flex; align-items: center; gap: 6px; }
.bvkp-qty-btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.bvkp-qty-btn:hover:not(:disabled) { border-color: #f7931a; color: #f7931a; }
.bvkp-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bvkp-summary .bvkp-qty {
	width: 40px;
	padding: 4px 0;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
}

/* Name and phone side by side; the hint spans the full width below */
.bvkp-row { display: flex; gap: 12px; }
.bvkp-row .bvkp-field { flex: 1; min-width: 0; margin-bottom: 6px; }
.bvkp-row-hint { margin: 0 0 14px; }
@media (max-width: 380px) {
	.bvkp-row { flex-direction: column; gap: 0; }
}
