/**
 * Runnerp ? My Account layout.
 * Editorial naslov + bijeli content (Cormorant ? isti kao brendovi / artikli).
 */

/* ??? Content zona ? bijela pozadina ??? */
body.woocommerce-account,
body.runnerp-my-account-page,
body.woocommerce-account #qodef-page-wrapper,
body.runnerp-my-account-page #qodef-page-wrapper,
body.woocommerce-account #qodef-page-outer,
body.runnerp-my-account-page #qodef-page-outer,
body.woocommerce-account #qodef-page-content,
body.runnerp-my-account-page #qodef-page-content,
body.woocommerce-account .qodef-page-content-section,
body.runnerp-my-account-page .qodef-page-content-section,
body.woocommerce-account .qodef-page-content-holder,
body.runnerp-my-account-page .qodef-page-content-holder,
body.woocommerce-account #qodef-page-inner,
body.runnerp-my-account-page #qodef-page-inner,
body.woocommerce-account .runnerp-auth,
body.runnerp-my-account-page .runnerp-auth,
body.woocommerce-account .woocommerce-MyAccount-content,
body.runnerp-my-account-page .woocommerce-MyAccount-content {
	background-color: #fff !important;
}

@keyframes runnerp-account-title-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ??? Page title ??? */
body.woocommerce-account .qodef-page-title.runnerp-account-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-inner,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-inner {
	position: relative;
	height: auto !important;
	min-height: 0 !important;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(255, 252, 250, 0.95) 0%, transparent 62%),
		linear-gradient(180deg, var(--runnerp-beige-50, #FBF7F2) 0%, var(--runnerp-beige-100, #F3EBE3) 100%) !important;
	border-bottom: 1px solid rgba(74, 52, 40, 0.08);
}

body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-inner::before,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.3;
	background-image:
		radial-gradient(circle at 16% 70%, rgba(166, 124, 82, 0.12) 0 1px, transparent 1.5px),
		radial-gradient(circle at 84% 26%, rgba(110, 78, 58, 0.1) 0 1px, transparent 1.5px);
	background-size: 28px 28px, 36px 36px;
	background-position: 0 0, 12px 8px;
}

body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-inner::after,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-inner::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 1;
	width: min(150px, 36vw);
	height: 2px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--runnerp-cta-color, #A67C52) 50%,
		transparent 100%
	);
	opacity: 0.85;
}

body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-content,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-content {
	position: relative;
	z-index: 2;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 52px 24px 48px !important;
	text-align: center !important;
	box-sizing: border-box;
	animation: runnerp-account-title-in 0.7s ease both;
}

body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-content::before,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-content::before {
	content: "Legia Beauty Expert";
	display: block;
	margin: 0 0 12px;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.28em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--runnerp-taupe-500, #A67C52);
}

body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-title.entry-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-title.entry-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title h1.qodef-m-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title h1.qodef-m-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title h2.qodef-m-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title h2.qodef-m-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title h3.qodef-m-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title h3.qodef-m-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title h4.qodef-m-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title h4.qodef-m-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title h5.qodef-m-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title h5.qodef-m-title,
body.woocommerce-account .qodef-page-title.runnerp-account-title h6.qodef-m-title,
body.runnerp-my-account-page .qodef-page-title.runnerp-account-title h6.qodef-m-title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
	font-size: clamp(2.1rem, 4.5vw, 3.2rem) !important;
	font-weight: 600 !important;
	font-style: normal !important;
	letter-spacing: 0.06em !important;
	line-height: 1.1 !important;
	text-transform: uppercase !important;
	color: var(--runnerp-sienna-800, #4A3428) !important;
}

.woocommerce-account #qodef-page-inner,
.runnerp-my-account-page #qodef-page-inner {
	position: relative !important;
	padding: 48px 0 100px !important;
}

/* Password eye ? tema: top calc + translateY(-50%) gura ikonu van centra */
body.woocommerce-account .password-input {
	position: relative;
	display: block;
}

body.woocommerce-account .password-input .input-text,
body.woocommerce-account .password-input input[type="password"],
body.woocommerce-account .password-input input[type="text"] {
	padding-right: 44px;
}

body.woocommerce-account .password-input .show-password-input {
	position: absolute !important;
	top: 50% !important;
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	z-index: 2;
}

body.woocommerce-account .password-input .show-password-input::after,
body.woocommerce-account .password-input .show-password-input::before {
	margin: 0;
}

/* Orders ? nema narud?bi */
.runnerp-orders-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 480px;
	margin: 24px auto 0;
	padding: 48px 32px;
	background: var(--runnerp-card-bg);
	border: 1px solid var(--runnerp-border-color);
	box-sizing: border-box;
}

.runnerp-orders-empty__message {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--runnerp-text-muted);
}

.runnerp-orders-empty__button {
	display: inline-block;
	min-width: 200px;
	margin: 0;
	padding: 14px 32px;
	border: 1px solid var(--runnerp-sienna-800);
	border-radius: 0;
	background: transparent !important;
	color: var(--runnerp-text-color) !important;
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.runnerp-orders-empty__button:hover {
	background: var(--runnerp-cta-hover-color) !important;
	border-color: var(--runnerp-cta-hover-color) !important;
	color: var(--runnerp-cta-text-color) !important;
}

@media only screen and (max-width: 680px) {
	.woocommerce-account #qodef-page-inner,
	.runnerp-my-account-page #qodef-page-inner {
		padding: 28px 0 72px !important;
	}

	body.woocommerce-account .qodef-page-title.runnerp-account-title .qodef-m-content,
	body.runnerp-my-account-page .qodef-page-title.runnerp-account-title .qodef-m-content {
		padding: 40px 20px 36px !important;
	}

	/* Bo?ni meni ? blago manji na mobitelu */
	.woocommerce-account .woocommerce-MyAccount-navigation {
		padding-right: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul li {
		padding: 12px 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		font-size: 17px;
		line-height: 1.2;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		margin-top: 36px;
	}

	.runnerp-orders-empty {
		padding: 36px 20px;
	}

	.runnerp-orders-empty__button {
		width: 100%;
		min-width: 0;
	}
}

/* Orders lista ? kartice (uskla?eno s cart/wishlist i WC responsive) */
@media only screen and (max-width: 768px) {
	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table.shop_table {
		border: none;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table thead {
		display: none;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table,
	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody {
		display: block;
		width: 100%;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody tr {
		display: block;
		padding: 14px 16px;
		margin: 0 0 10px;
		border: 1px solid var(--runnerp-border-color) !important;
		border-top: 1px solid var(--runnerp-border-color) !important;
		background: var(--runnerp-card-bg);
		box-sizing: border-box;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody tr:first-child td:first-child {
		border-top: 0;
	}

	/* WooCommerce responsive skriva th ? broj narud?be ostaje zaglavlje kartice */
	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number {
		display: block !important;
		width: 100% !important;
		padding: 0 0 10px !important;
		margin: 0 0 8px;
		border: 0 !important;
		border-bottom: 1px solid var(--runnerp-border-color) !important;
		text-align: left !important;
		font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif);
		font-size: 16px;
		font-weight: 700;
		text-transform: none;
		letter-spacing: -0.01em;
		color: var(--runnerp-text-color);
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number::before {
		display: none !important;
		content: none !important;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number a {
		color: var(--runnerp-text-color);
		text-decoration: none;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody td {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: baseline;
		gap: 8px 12px;
		width: 100% !important;
		padding: 8px 0 !important;
		border: 0 !important;
		text-align: right !important;
		font-size: 14px;
		line-height: 1.4;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table tbody td::before {
		content: attr(data-title) ": " !important;
		font-weight: 600;
		font-size: 11px;
		line-height: 1.3;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--runnerp-text-muted);
		text-align: left;
		flex: 1 1 auto;
		max-width: 55%;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table__cell-order-actions {
		flex-direction: column;
		align-items: stretch !important;
		text-align: center !important;
		padding-top: 12px !important;
		margin-top: 4px;
		border-top: 1px solid var(--runnerp-border-color);
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table__cell-order-actions::before {
		display: none !important;
		content: none !important;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table__cell-order-actions .button {
		display: block;
		width: 100%;
		margin: 0;
		padding: 12px 16px;
		text-align: center;
		box-sizing: border-box;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-orders-table__cell-order-actions .button + .button {
		margin-top: 8px;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-pagination--without-numbers {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: 16px;
	}

	.runnerp-my-account-page.runnerp-orders-page .woocommerce-pagination--without-numbers .button {
		width: 100%;
		text-align: center;
		margin: 0;
		padding: 12px 16px;
		box-sizing: border-box;
	}
}

/* Forsiraj Cormorant ? pregazi temu na cijelom My Account */
body.woocommerce-account #qodef-page-outer,
body.woocommerce-account #qodef-page-outer :where(
	h1, h2, h3, h4, h5, h6,
	p, a, span, li, label, legend,
	th, td, button, input, textarea, select, time,
	em, strong, small, div
),
body.runnerp-my-account-page #qodef-page-outer,
body.runnerp-my-account-page #qodef-page-outer :where(
	h1, h2, h3, h4, h5, h6,
	p, a, span, li, label, legend,
	th, td, button, input, textarea, select, time,
	em, strong, small, div
) {
	font-family: var(--runnerp-font-ui, "Cormorant Garamond", Georgia, serif) !important;
}

