/**
 * PC Welcome Coupon – frontend stílusok.
 * A színek a téma CSS-változóival felülírhatók.
 */

.pcwc-price {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4em;
	max-width: 100%;
}

/* Kedvezményes ár, áthúzott eredeti ár és jelvény egy sorban, mobilon is (nem törik). */
.pcwc-price__row {
	display: flex;
	flex-wrap: nowrap;
	white-space: nowrap;
	align-items: baseline;
	gap: 0.25em 0.6em;
	max-width: 100%;
}

.pcwc-price__new {
	text-decoration: none;
	background: none;
	font-size: 1rem; /* the archive price size (theme: 16px on every width), everywhere */
	font-weight: 800;
	line-height: 1.1;
	color: var(--pcwc-price-color, var(--purple, inherit));
}

.pcwc-price__old {
	font-size: 0.8rem;
	font-weight: normal;
	color: var(--pcwc-old-price-color, var(--tp-text, inherit));
}

.pcwc-price__note {
	display: block;
	font-size: 0.8125rem;
	font-weight: normal;
	line-height: 1.5;
	color: var(--pcwc-note-color, var(--tp-text, inherit));
}

/* Kuponkód-jelvény (a korábbi .pc-coupon-badge megjelenése). */
.pcwc-badge {
	display: inline-block;
	color: var(--pcwc-badge-color, var(--purpple, inherit));
	font-weight: bold;
	font-size: 1.3em;
	line-height: 1.2;
	border: 2px dashed var(--pcwc-badge-border, #000);
	padding: 0.5em;
	border-radius: 20px;
	background: transparent;
	text-transform: uppercase;
}

/*
 * The badge next to the price (e.g. "-50% első rendelésnél"), PC-1589 (1.0.13): the style of the
 * discount tag of the WowRevenue volume discount offers on the product page
 * (.revx-volume-discount__tag--grid, pc-plugin-campaign-extensions custom-styles.css, measured on
 * staging 2026-11-11: yellow, black text, 11px Geologica Medium, 3px 10px padding, 20px radius,
 * 0.2px letter-spacing), not bold. Same on the product page, the category page and the shop page.
 * Geologica Medium is a separate font family on the site (Use Any Font: geologica-medium, one
 * 400 face), so a bold weight would only be synthesised.
 */
.pcwc-price .pcwc-badge {
	align-self: center;
	max-width: 100%;
	color: var(--pcwc-price-badge-color, var(--black, #3c3c3b));
	background: var(--pcwc-price-badge-bg, var(--yellow, #ffe14f));
	border: 0;
	border-radius: 20px;
	padding: 3px 10px;
	font-family: var(--pcwc-price-badge-font, geologica-medium), helvetica, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.2px;
	/* 1.0.15 (Tamás 2026-11-12: „Végig nagybetűvel”): the badge text is shown in capitals. */
	text-transform: uppercase;
}

@media (max-width: 549px) {
	/* The theme's button font-size (16px) wins over a plain class selector. */
	.woocommerce-checkout .pcwc-offer button.pcwc-offer__button.pcwc-badge {
		font-size: 0.875rem;
		padding-left: 0.5em;
		padding-right: 0.5em;
	}
}

/*
 * Product lists (theme product cards) and the Kóstoló page sticky bar: the discounted price
 * is as large as the other product prices in the archive (theme: 1rem, 16px on every width).
 */
.product-small .pcwc-price__new,
.pc-tp-sticky .pcwc-price__new {
	font-size: 1rem;
}

/*
 * Product page (PC-1589, 1.0.14): the discounted price is 1.4rem, the struck-through full price
 * 1rem, on every width. Only on the single product page (body.single-product), and not in the
 * product cards on it (.product-small, e.g. related products) or in the Kóstoló sticky bar
 * (.pc-tp-sticky, kept narrow, see PC-1360). The .amount span of wc_price() is sized too, so a
 * theme rule on .amount cannot override the inherited size.
 */
body.single-product .pcwc-price:not(.product-small .pcwc-price):not(.pc-tp-sticky .pcwc-price) .pcwc-price__new,
body.single-product .pcwc-price:not(.product-small .pcwc-price):not(.pc-tp-sticky .pcwc-price) .pcwc-price__new .amount {
	font-size: 1.4rem;
}

body.single-product .pcwc-price:not(.product-small .pcwc-price):not(.pc-tp-sticky .pcwc-price) .pcwc-price__old,
body.single-product .pcwc-price:not(.product-small .pcwc-price):not(.pc-tp-sticky .pcwc-price) .pcwc-price__old .amount {
	font-size: 1rem;
}

/*
 * Kóstoló page sticky bar (UX Builder block "TRIAL-PACK - 10 Closing CTA"): the badge takes
 * the place of the block's own "−50% új vásárlóknak" label, above the price, so the price row
 * stays narrow and the CTA button keeps its width. Only when our badge is there: without it
 * (full price, plugin off) the block's label stays.
 */
.pc-tp-sticky .sp:has(.pcwc-badge) > .sticky-offer {
	display: none;
}

.pc-tp-sticky .pcwc-price__row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: baseline;
	gap: 2px 0.5em;
}

/* Same badge style as everywhere else (PC-1589); only its place in the grid differs. */
.pc-tp-sticky .pcwc-price .pcwc-badge {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: start;
}

/* Pénztári ajánlat: ugyanaz a sárga blokk, mint az ár melletti jelvény. */
.pcwc-offer:empty {
	display: none;
}

.pcwc-offer {
	margin: 0 0 1em;
}

.pcwc-offer__button {
	cursor: pointer;
}

.pcwc-offer .pcwc-badge {
	display: block;
	width: 100%;
	color: var(--pcwc-price-badge-color, var(--tp-text, inherit));
	background: var(--pcwc-price-badge-bg, var(--yellow, #ffe14f));
	border: 0;
	border-radius: 10px;
	padding: 0.6em 1em;
	font-size: 1rem;
	font-weight: bold;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
}

.pcwc-offer__button:hover,
.pcwc-offer__button:focus {
	opacity: 0.85;
}

.pcwc-offer__button[disabled] {
	cursor: progress;
	opacity: 0.5;
}

.pcwc-offer__message {
	display: block;
	margin-top: 0.5em;
}

/* Pénztári ajánlat a fizetési módok fölött: a „Kóstoló ajánló” UX block (a stílusa a blockban van). */
.pcwc-offer-slot:empty {
	display: none;
}

.pcwc-offer-slot .pc-trial-offer__btn {
	cursor: pointer;
}

.pcwc-offer-slot .pc-trial-offer__btn[aria-disabled="true"] {
	cursor: progress;
	opacity: 0.5;
}

.pcwc-offer-slot .pcwc-offer__message {
	margin: 0 0 1em;
}

/* Kosár / mini kosár. */
.pcwc-cart-price__new,
.pcwc-cart-subtotal {
	text-decoration: none;
}

.pcwc-cart-note {
	display: block;
	font-size: 0.85em;
}

/* PC-1562: the coupon row of the cart / checkout page, hidden by the pcwc_cart_coupon_row filter. */
tr.cart-discount:has(.pcwc-coupon-row--hidden) {
	display: none;
}
