/**
 * GK Videótár – Előfizetésváltás stílus
 * Verzió: 1.0.2
 *
 * v1.0.2 — Elementor Pro Pénztár widget: egyoszlopos elrendezés váltásnál,
 *          az oldal Elementor "Pénztár" címsora elrejtve (pénztár és
 *          visszaigazolás).
 * v1.0.1 — Pénztár váltás módban: oldalcím elrejtve, egyoszlopos keskeny
 *          elrendezés, expressz fizetés és "(Upgrade)" címke elrejtve.
 *          Visszaigazolás: csak a saját doboz látszik. Hibaüzenet stílus.
 *
 * Brand színek (a lemondási folyamattal egyezően):
 *  - Lila: #7945E9 (hover: #6837D6)
 *  - Háttér: #F2F0F6
 *  - Szöveg: #2C2C2A
 *
 * Gombok: <a> elemek (a Hello Elementor felülírja a <button> stílusát).
 */

/* ============================================================
   OLDAL
   ============================================================ */

.gk-switch-page {
	background: #F2F0F6;
	min-height: 70vh;
	padding: 32px 16px 48px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gk-switch-container {
	max-width: 480px;
	margin: 0 auto;
	background: #FFFFFF;
	border-radius: 12px;
	padding: 28px 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	color: #2C2C2A;
	box-sizing: border-box;
}

.gk-switch-container *,
.gk-switch-summary *,
.gk-switch-done * {
	box-sizing: border-box;
}

.gk-switch-title {
	font-size: 22px;
	font-weight: 600;
	color: #2C2C2A;
	margin: 0 0 12px;
	line-height: 1.3;
}

.gk-switch-intro {
	font-size: 15px;
	line-height: 1.6;
	color: #444441;
	margin: 0 0 20px;
}

.gk-switch-label {
	font-size: 14px;
	font-weight: 600;
	color: #444441;
	margin: 0 0 10px;
}

/* ============================================================
   CSOMAGKÁRTYÁK
   ============================================================ */

.gk-switch-current {
	background: #F2F0F6;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 24px;
}

.gk-switch-badge {
	display: inline-block;
	background: #FFFFFF;
	color: #7945E9;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	margin: 0 0 8px;
}

.gk-switch-options {
	margin: 0 0 20px;
}

.gk-switch-option {
	border: 1px solid #D6C5F7;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 0 12px;
	background: #FFFFFF;
}

.gk-switch-option-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.gk-switch-plan-name {
	font-size: 17px;
	font-weight: 600;
	color: #2C2C2A;
	line-height: 1.3;
}

.gk-switch-plan-price {
	font-size: 15px;
	font-weight: 600;
	color: #7945E9;
	line-height: 1.4;
}

.gk-switch-plan-meta {
	font-size: 14px;
	color: #444441;
	line-height: 1.5;
	margin: 4px 0 0;
}

.gk-switch-hint {
	font-size: 13px;
	color: #888780;
	line-height: 1.5;
	margin: 6px 0 14px;
}

.gk-switch-option .gk-switch-btn {
	margin-bottom: 0 !important;
}

/* ============================================================
   TÁJÉKOZTATÓ DOBOZ
   ============================================================ */

.gk-switch-info {
	background: #F8F5FE;
	border-left: 3px solid #7945E9;
	border-radius: 0 10px 10px 0;
	padding: 14px 16px;
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #444441;
}

.gk-switch-info > strong {
	display: block;
	color: #2C2C2A;
	font-weight: 600;
	margin: 0 0 6px;
}

.gk-switch-info p {
	margin: 0 0 8px;
}

.gk-switch-info p:last-child {
	margin-bottom: 0;
}

.gk-switch-info ul {
	margin: 0 0 8px;
	padding: 0 0 0 18px;
}

.gk-switch-info li {
	margin: 0 0 4px;
}

.gk-switch-info li strong {
	color: #2C2C2A;
	font-weight: 600;
}

/* ============================================================
   GOMBOK
   ============================================================ */

a.gk-switch-btn {
	display: block !important;
	width: 100% !important;
	padding: 14px 16px !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-align: center !important;
	text-decoration: none !important;
	font-family: inherit !important;
	line-height: 1.4 !important;
	margin: 0 0 12px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

a.gk-switch-btn-primary,
a.gk-switch-btn-primary:link,
a.gk-switch-btn-primary:visited {
	background: #7945E9 !important;
	background-color: #7945E9 !important;
	border: 1px solid #7945E9 !important;
	color: #FFFFFF !important;
}

a.gk-switch-btn-primary:hover,
a.gk-switch-btn-primary:focus,
a.gk-switch-btn-primary:active {
	background: #6837D6 !important;
	background-color: #6837D6 !important;
	border-color: #6837D6 !important;
	color: #FFFFFF !important;
}

a.gk-switch-btn-secondary,
a.gk-switch-btn-secondary:link,
a.gk-switch-btn-secondary:visited {
	background: transparent !important;
	background-color: transparent !important;
	border: 1px solid #7945E9 !important;
	color: #7945E9 !important;
	font-weight: 500 !important;
}

a.gk-switch-btn-secondary:hover,
a.gk-switch-btn-secondary:focus,
a.gk-switch-btn-secondary:active {
	background: rgba(121, 69, 233, 0.08) !important;
	background-color: rgba(121, 69, 233, 0.08) !important;
	color: #7945E9 !important;
}

/* ============================================================
   PÉNZTÁR – ÖSSZEGZŐ DOBOZ
   ============================================================ */

.gk-switch-summary,
.gk-switch-done {
	background: #FFFFFF;
	border: 1px solid #D6C5F7;
	border-radius: 12px;
	padding: 20px 22px;
	margin: 0 0 24px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #2C2C2A;
}

.gk-switch-summary-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	line-height: 1.3;
}

.gk-switch-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid #EEEAF6;
	font-size: 14px;
	line-height: 1.45;
}

.gk-switch-row span {
	color: #444441;
}

.gk-switch-row strong {
	text-align: right;
	font-weight: 600;
	color: #2C2C2A;
}

.gk-switch-row-highlight strong {
	color: #7945E9;
	font-size: 15px;
}

.gk-switch-summary-note {
	font-size: 13px;
	line-height: 1.6;
	color: #444441;
	background: #F8F5FE;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 14px 0 12px;
}

.gk-switch-summary-note strong {
	color: #2C2C2A;
	font-weight: 600;
}

a.gk-switch-cancel-link,
a.gk-switch-cancel-link:visited {
	display: inline-block;
	font-size: 13px;
	color: #7945E9 !important;
	text-decoration: underline !important;
}

/* Oldalcím elrejtése: téma címe, Elementor oldalcím widget, és az oldal
   tartalmában lévő Elementor címsor widget (a fejléc/lábléc sablonokat
   nem érinti, mert azok nem "wp-page" típusúak) */
.gk-switch-checkout .page-header,
.gk-switch-thankyou .page-header,
.gk-switch-checkout .elementor-widget-theme-page-title,
.gk-switch-thankyou .elementor-widget-theme-page-title,
.gk-switch-checkout [data-elementor-type="wp-page"] .elementor-widget-heading,
.gk-switch-thankyou [data-elementor-type="wp-page"] .elementor-widget-heading {
	display: none !important;
}

/* Elementor Pro Pénztár widget: egy oszlop, középre igazítva */
.gk-switch-checkout .e-checkout__container {
	display: block !important;
	grid-template-columns: 1fr !important;
	max-width: 560px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.gk-switch-checkout .e-checkout__column,
.gk-switch-checkout .e-checkout__column-start,
.gk-switch-checkout .e-checkout__column-end {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.gk-switch-checkout.gk-switch-hide-billing .e-checkout__column-start {
	display: none !important;
}

/* Egyoszlopos, keskeny elrendezés (a csomagválasztó oldal szélességéhez igazítva) */
.gk-switch-checkout .gk-switch-summary,
.gk-switch-checkout form.checkout {
	max-width: 560px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.gk-switch-checkout .gk-switch-summary {
	margin-top: 32px;
}

.gk-switch-checkout form.checkout {
	display: block !important;
}

.gk-switch-checkout #customer_details,
.gk-switch-checkout #order_review_heading,
.gk-switch-checkout #order_review {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Kupon elrejtése */
.gk-switch-checkout .woocommerce-form-coupon-toggle,
.gk-switch-checkout form.checkout_coupon {
	display: none !important;
}

/* Számlázási adatok elrejtése (csak ha minden kötelező mező ki van töltve) */
.gk-switch-checkout.gk-switch-hide-billing #customer_details,
.gk-switch-checkout.gk-switch-hide-billing .woocommerce-billing-fields,
.gk-switch-checkout.gk-switch-hide-billing .woocommerce-additional-fields,
.gk-switch-checkout.gk-switch-hide-billing .woocommerce-shipping-fields {
	display: none !important;
}

/* Expressz fizetés (Apple Pay / Google Pay gyorsgombok) elrejtése */
.gk-switch-checkout .wc-stripe-banner-checkout,
.gk-switch-checkout .wc-stripe-checkout-banner,
.gk-switch-checkout .wc-stripe-express-checkout,
.gk-switch-checkout #wc-stripe-express-checkout-element {
	display: none !important;
}

/* "(Upgrade)" / "(Downgrade)" címke (tartalék a PHP szűrő mellé) */
.gk-switch-checkout .subscription-switch-direction {
	display: none !important;
}

/* Hibaüzenet a csomagválasztó oldalon */
.gk-switch-error {
	background: #FEF2F2;
	border: 1px solid #FCA5A5;
	color: #B91C1C;
	padding: 12px 14px;
	border-radius: 8px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
}

/* ============================================================
   VISSZAIGAZOLÁS
   ============================================================ */

.gk-switch-done {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.gk-switch-thankyou .gk-switch-done {
	margin-top: 32px;
}

/* A WooCommerce alap visszaigazoló részei váltásnál nem kellenek */
.gk-switch-thankyou .woocommerce-order > *:not(.gk-switch-done) {
	display: none !important;
}

.gk-switch-done-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #7945E9;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px auto 14px;
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
}

.gk-switch-done-title {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 14px;
}

.gk-switch-done .gk-switch-btn:last-child {
	margin-bottom: 0 !important;
}

/* ============================================================
   RESZPONZÍV
   ============================================================ */

@media (max-width: 480px) {
	.gk-switch-page {
		padding: 20px 12px 32px;
	}

	.gk-switch-container {
		padding: 24px 16px;
		border-radius: 10px;
	}

	.gk-switch-title {
		font-size: 20px;
	}

	.gk-switch-summary,
	.gk-switch-done {
		padding: 16px;
		border-radius: 10px;
	}

	.gk-switch-row {
		flex-direction: column;
		gap: 2px;
	}

	.gk-switch-row strong {
		text-align: left;
	}
}
