/*
Theme Name: LockedMeIN Fizetés
Description: Egyszerű, mobilra szabott téma a fizetes.lockedmein.hu oldalhoz. A fizetési űrlapot az lm-fizetes plugin adja.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: lockedmein-fizetes
*/

:root {
	--bg: #140807;
	--surface: #221110;
	--surface-2: #2c1715;
	--line: #4a2a25;
	--text: #fbf3ea;
	--muted: #cdb8a8;
	--accent: #f5a623;
	--accent-strong: #e09900;
	--accent-soft: #f4d28a;
	--on-accent: #1b0000;
	--danger: #ff8a7a;
	--danger-bg: #3a1411;
	--ok: #9be39b;
	--radius: 14px;
	--tap: 56px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "Oswald", "Roboto Condensed", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
}

a { color: var(--accent-soft); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: .01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(28px, 7vw, 40px); }
h2 { font-size: clamp(22px, 5vw, 28px); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --- Fejléc, lábléc ------------------------------------------------------ */

.site-header {
	position: relative;
	background: #1b0000;
	border-bottom: 1px solid var(--line);
	padding: 12px 16px;
	text-align: center;
}

/* Nyelvválasztó */
.lmf-lang {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	display: flex;
	gap: 6px;
}
.lmf-lang a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 44px;
	min-height: 44px;
	padding: 4px;
	border-radius: 10px;
	border: 1.5px solid transparent;
	color: var(--muted);
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	opacity: .6;
	transition: opacity .15s, border-color .15s;
}
.lmf-lang a:hover,
.lmf-lang a:focus-visible { opacity: 1; }
.lmf-lang a.is-active {
	opacity: 1;
	color: var(--accent);
	border-color: var(--accent);
}
.lmf-flag {
	display: block;
	width: 28px;
	height: 19px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
.lmf-flag svg { display: block; width: 100%; height: 100%; }

@media (max-width: 420px) {
	.site-header { text-align: left; }
	.lmf-lang { right: 10px; gap: 4px; }
}
.site-header .custom-logo-link,
.site-header .site-title {
	display: inline-block;
	text-decoration: none;
}
.site-header .custom-logo {
	display: block;
	width: auto;
	height: 84px;
}
.site-header .site-title {
	font-family: var(--font-head);
	font-size: 26px;
	color: var(--accent);
}

.site-main {
	flex: 1;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.site-footer {
	padding: 20px 16px 28px;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	border-top: 1px solid var(--line);
}

/* --- Nyitóoldal: terméklista --------------------------------------------- */

.lmf-title { text-align: center; }
.lmf-lead { text-align: center; color: var(--muted); margin: 0 0 24px; }

.lmf-products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.lmf-products a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 72px;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
	transition: border-color .15s, background .15s;
}
.lmf-products a:hover,
.lmf-products a:focus-visible {
	border-color: var(--accent);
	background: var(--surface-2);
}
.lmf-products .lmf-p-name {
	font-family: var(--font-head);
	font-size: 21px;
}
.lmf-products .lmf-p-price {
	font-weight: 700;
	color: var(--accent);
	white-space: nowrap;
}
.lmf-products .lmf-p-custom .lmf-p-price { color: var(--accent-soft); font-weight: 600; }

/* --- Általános tartalom (pénztár, visszaigazolás) ------------------------ */

.entry-content { overflow-wrap: anywhere; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.entry-content th,
.entry-content td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content address { font-style: normal; color: var(--muted); }

.woocommerce-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
}
.woocommerce-error { background: var(--danger-bg); border-color: var(--danger); color: #fff; }
.woocommerce-notice--success,
.woocommerce-thankyou-order-received {
	font-family: var(--font-head);
	font-size: 22px;
	color: var(--ok);
	text-align: center;
	background: none;
	border: 0;
	padding: 0;
}
ul.woocommerce-order-overview {
	list-style: none;
	padding: 16px;
	margin: 0 0 24px;
	background: var(--surface);
	border-radius: var(--radius);
	display: grid;
	gap: 8px;
}
ul.woocommerce-order-overview li { color: var(--muted); }
ul.woocommerce-order-overview strong { color: var(--text); display: block; }
.woocommerce-customer-details,
.woocommerce-order-details { margin-top: 24px; }

.button,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tap);
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font: 700 18px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
}
.button:hover, button:hover { background: var(--accent-strong); color: var(--on-accent); }

/* order-pay oldal (ha egy fizetés félbemaradt) */
#order_review .shop_table { margin-bottom: 16px; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
#payment ul.payment_methods li { padding: 12px 0; border-bottom: 1px solid var(--line); }
#payment .payment_box { color: var(--muted); font-size: 15px; }
#payment #place_order { width: 100%; }
