/* Expresní nákup na stránce produktu (Zásilkovna + Apple Pay / Google Pay) */

.oq-pe {
	margin: 0 0 22px;
	padding: 18px 18px 14px;
	background: #f6f7fb;
	border: 1px solid #e3e5ee;
	border-radius: 18px;
	min-width: 0;
}

.oq-pe--unavailable {
	display: none;
}

.oq-pe--loading .oq-pe__status,
.oq-pe--loading .oq-pe__divider {
	visibility: hidden;
}

.oq-pe--busy {
	cursor: progress;
}

.oq-pe__head {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5b5f6b;
	text-align: center;
	margin-bottom: 12px;
}

/* buttons inside the block: reset theme/Elementor button styling */
.oq-pe button {
	font-family: inherit;
	line-height: 1.25;
	min-height: 0;
	height: auto;
	box-sizing: border-box;
}

/* step 1: pick a pickup point */
.oq-packeta-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e3e5ee;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(42, 45, 75, 0.08);
	cursor: pointer;
	text-align: center;
	white-space: normal;
	line-height: 1.25;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oq-packeta-cta:hover {
	border-color: #d8232a;
	box-shadow: 0 4px 14px rgba(42, 45, 75, 0.14);
	background: #fff;
}

.oq-packeta-cta__logo,
.oq-pe__logo {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	object-fit: contain;
}

.oq-packeta-cta__text {
	min-width: 0;
	text-align: left;
}

.oq-packeta-cta__text strong {
	display: block;
	font-size: 18px;
	color: #2a2d4b;
}

.oq-packeta-cta__text small {
	display: block;
	font-size: 13px;
	color: #5b5f6b;
	margin-top: 3px;
}

.oq-packeta-cta__arrow {
	font-size: 26px;
	line-height: 1;
	color: #d8232a;
}

.oq-pe__pay {
	font-size: 13px;
	font-weight: 600;
	color: #5b5f6b;
	text-align: center;
	margin: 0 0 8px;
}

/* selected pickup point */
.oq-pe__selected {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #cfe8d6;
	border-radius: 14px;
	min-width: 0;
}

.oq-pe__selected--saving {
	justify-content: center;
	color: #5b5f6b;
	border-color: #e3e5ee;
}

.oq-pe__selected-text {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	line-height: 1.3;
}

.oq-pe__selected-text small {
	display: block;
	font-size: 12px;
	color: #2e8b57;
	font-weight: 600;
}

.oq-pe__selected-text strong {
	display: block;
	font-size: 15px;
	color: #2a2d4b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oq-pe__selected-text em {
	display: block;
	font-style: normal;
	font-size: 13px;
	color: #5b5f6b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oq-pe__change {
	flex: 0 0 auto;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #2a2d4b;
	background: #fff;
	border: 1px solid #e3e5ee;
	border-radius: 999px;
	cursor: pointer;
}

.oq-pe__change:hover {
	border-color: #2a2d4b;
	background: #fff;
	color: #2a2d4b;
}

.oq-pe__error {
	margin: 6px 0 0;
	font-size: 13px;
	color: #d8232a;
	text-align: center;
}

/* Stripe express buttons inside the block */
.oq-pe .wc-stripe-product-checkout-container {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.oq-pe .wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 520px) {
	.oq-pe .wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods {
		grid-template-columns: 1fr 1fr;
	}
}

.oq-pe .wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.oq-pe .wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li:empty,
.oq-pe .wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[style*="display: none"] {
	display: none;
}

.oq-pe .wc-stripe-clear {
	display: none;
}

/* one action at a time: until a pickup point is chosen only the
 * "Koupit expresně" button is shown, the wallet buttons replace it afterwards.
 * Collapsed instead of display:none so Stripe can still render and measure. */
.oq-pe .oq-gated {
	height: 0;
	overflow: hidden;
	visibility: hidden;
}

.oq-pe .oq-express-gate {
	display: none;
}

/* "or" divider before the regular add-to-cart row */
.oq-pe__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a8e9b;
}

.oq-pe__divider::before,
.oq-pe__divider::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	background: #e3e5ee;
}

@media (max-width: 480px) {
	.oq-pe {
		padding: 14px 12px 12px;
		border-radius: 14px;
	}

	.oq-packeta-cta {
		gap: 10px;
		padding: 12px 14px;
	}

	.oq-packeta-cta__text strong {
		font-size: 15px;
	}
}

/* product meta (SKU, categories, tags, brand) moved under the packshot;
 * the left column is the Elementor background-image container */
.elementor-element-13b1214.oq-has-meta {
	justify-content: flex-end;
}

.oq-has-meta .elementor-widget-woocommerce-product-meta {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 28px 22px;
	font-size: 14px;
}

.oq-has-meta .elementor-widget-woocommerce-product-meta .product_meta,
.oq-has-meta .elementor-widget-woocommerce-product-meta .detail-container {
	display: block;
}

@media (max-width: 767px) {
	/* stacked layout: reserve the packshot area above the meta (the
	 * background-only container would otherwise collapse to the meta height) */
	.elementor-217 .elementor-element.elementor-element-13b1214.oq-has-meta {
		padding-top: calc(100% * 850 / 1200) !important;
	}

	.oq-has-meta .elementor-widget-woocommerce-product-meta {
		padding: 12px 20px 18px;
	}
}

/* QR flash-sale visitors: express checkout only, no quantity / add-to-cart
 * (kept when no wallet is available in the browser, otherwise they could
 * not buy at all) */
.oq-pe.oq-pe--flash:not(.oq-pe--unavailable) + form.cart {
	display: none !important;
}

.oq-pe.oq-pe--flash:not(.oq-pe--unavailable) .oq-pe__divider {
	display: none;
}
