/* =========================================================================
 * LUKO: Account icon (header) + My Account page styling
 * Colors: --luko-orange:#fc5220  --luko-blue:#233c73
 *
 * Specificity strategy: selectors are rooted on body.woocommerce-account
 * because the parent Fabrik/vamtam theme ships its own WooCommerce styles
 * and Elementor Single-Page templates add their own padding. Where we need
 * to beat a "more specific" rule from the parent we use !important — only
 * on layout-critical properties.
 * ========================================================================= */

:root { --luko-orange:#fc5220; --luko-blue:#233c73; }

/* -----------------------------------------------------------------------
 * Header account icon
 * ----------------------------------------------------------------------- */
.luko-account-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--luko-blue);
	background: transparent;
	position: relative;
	transition: color .2s ease, background-color .2s ease, transform .2s ease;
	text-decoration: none !important;
	vertical-align: middle;
}
.luko-account-icon:hover,
.luko-account-icon:focus-visible {
	color: var(--luko-orange);
	background: rgba(252, 82, 32, .08);
}
.luko-account-icon svg { display: block; width: 22px; height: 22px; }
.luko-account-icon .luko-account-dot {
	position: absolute; top: 6px; right: 6px;
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--luko-orange);
	box-shadow: 0 0 0 2px #fff;
}

/* Header column that holds the account / search / menu-toggle widgets —
   keep its items on a single row and reserve minimum width so the extra
   account icon doesn't break the layout. */
.elementor-180 .elementor-element.elementor-element-9e44853.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated {
	align-content: center;
	align-items: center;
	flex-wrap: nowrap !important;
	gap: 5px;
	min-width: 150px;
}
.elementor-column.elementor-col-20.elementor-top-column.elementor-element.elementor-element-9e44853 {
	min-width: 150px !important;
}

/* Narrow desktop (≤1113px): shrink Elementor col-20 columns so the header
   row with the extra account icon still fits without wrapping. */
@media (max-width: 1113px) {
	.elementor-column.elementor-col-20,
	.elementor-column[data-col="20"] {
		width: 13%;
	}
}

/* =======================================================================
 * My Account page — container + layout (Grid instead of floats)
 * ======================================================================= */

/* Elementor Single-Page wrapper sometimes adds tight padding around the
   page content — neutralise it on account page only. */
body.woocommerce-account .elementor-widget-theme-post-content > .elementor-widget-container,
body.woocommerce-account .page-content,
body.woocommerce-account .site-content,
body.woocommerce-account main#main {
	background: #f6f7fb;
}

/* Elementor Theme-Builder "Single Page" template (elementor-4313) wraps
   every page in a decorative hero + a bottom "O nás" call-to-action
   section. Neither is desired on the account page — hide them there. */
body.woocommerce-account .elementor-4313 > section[data-id="54c77d7"],
body.woocommerce-account .elementor-4313 > section[data-id="b178c36"],
body.woocommerce-account .elementor.elementor-4313 > section[data-id="54c77d7"],
body.woocommerce-account .elementor.elementor-4313 > section[data-id="b178c36"] {
	display: none !important;
}

body.woocommerce-account .woocommerce {
	display: block !important;
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 100px 20px !important;
	color: #1c1c1c;
}

/* Center the page header ("Můj účet" / login heading) to match the width
   of the account container below. Scoped to account pages only. */
body.woocommerce-account .meta-header-inside {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Kill the default WC clearfix + floats that the parent theme keeps alive */
body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after { content: none !important; display: none !important; }

/* Logged-in dashboard layout: sidebar + content */
body.woocommerce-account.logged-in .woocommerce {
	display: grid !important;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: start;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid #ececf2;
	border-radius: 12px;
	padding: 28px !important;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
	min-width: 0; /* prevent grid overflow from long tables */
}

/* -----------------------------------------------------------------------
 * Links + headings
 * ----------------------------------------------------------------------- */
body.woocommerce-account .woocommerce a { color: var(--luko-blue); }
body.woocommerce-account .woocommerce a:hover { color: var(--luko-orange); }

body.woocommerce-account .woocommerce h1,
body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce h3,
body.woocommerce-account .woocommerce legend,
body.woocommerce-account .woocommerce-MyAccount-content h1,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	color: var(--luko-blue) !important;
	margin-top: 0;
}

/* -----------------------------------------------------------------------
 * Buttons
 * ----------------------------------------------------------------------- */
body.woocommerce-account .woocommerce .button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input[type="submit"].button,
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-form-login .button,
body.woocommerce-account .woocommerce-form-register .button,
body.woocommerce-account .woocommerce-form-lost-password .button,
body.woocommerce-account .woocommerce-Button {
	background: var(--luko-orange) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 10px 18px !important;
	font-weight: 600 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	cursor: pointer;
	transition: background-color .2s ease, transform .15s ease;
	box-shadow: none !important;
}
body.woocommerce-account .woocommerce .button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input[type="submit"].button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-form-login .button:hover,
body.woocommerce-account .woocommerce-form-register .button:hover,
body.woocommerce-account .woocommerce-Button:hover {
	background: var(--luko-blue) !important;
	color: #fff !important;
}

/* -----------------------------------------------------------------------
 * Inputs
 * ----------------------------------------------------------------------- */
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="email"],
body.woocommerce-account .woocommerce input[type="tel"],
body.woocommerce-account .woocommerce input[type="password"],
body.woocommerce-account .woocommerce input[type="number"],
body.woocommerce-account .woocommerce select,
body.woocommerce-account .woocommerce textarea,
body.woocommerce-account .woocommerce .input-text {
	border: 1px solid #d7d9e0 !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	width: 100% !important;
	max-width: 100% !important;
	font-size: 15px !important;
	background: #fff !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
body.woocommerce-account .woocommerce input:focus,
body.woocommerce-account .woocommerce select:focus,
body.woocommerce-account .woocommerce textarea:focus {
	outline: 0 !important;
	border-color: var(--luko-blue) !important;
	box-shadow: 0 0 0 3px rgba(35, 60, 115, .12) !important;
}

body.woocommerce-account .woocommerce label {
	display: block;
	margin: 10px 0 6px;
	font-weight: 500;
	color: #374151;
}

body.woocommerce-account .woocommerce form .form-row {
	margin-bottom: 14px !important;
	padding: 0 !important;
}

/* -----------------------------------------------------------------------
 * Sidebar navigation
 * ----------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 8px !important;
	background: #fff;
	border: 1px solid #ececf2;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: none !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li::before,
body.woocommerce-account .woocommerce-MyAccount-navigation li::marker { content: none !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 10px 12px !important;
	border-radius: 8px;
	color: #1c1c1c !important;
	text-decoration: none !important;
	font-weight: 500;
	transition: background-color .15s ease, color .15s ease;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	flex: 0 0 18px;
	width: 18px; height: 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	opacity: .85;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(35, 60, 115, .06);
	color: var(--luko-blue) !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a {
	background: var(--luko-blue);
	color: #fff !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a::before { filter: invert(1) brightness(2); }

/* Inline SVG icons per endpoint (stroke: #233c73) */
.luko-ma-dashboard        > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12l9-9 9 9'/><path d='M5 10v10h14V10'/></svg>"); }
.luko-ma-orders           > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2l-3 6v13h18V8l-3-6H6z'/><path d='M3 8h18'/><path d='M16 12a4 4 0 0 1-8 0'/></svg>"); }
.luko-ma-downloads        > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12'/><path d='M7 10l5 5 5-5'/><path d='M5 21h14'/></svg>"); }
.luko-ma-edit-address     > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s7-7 7-12a7 7 0 0 0-14 0c0 5 7 12 7 12z'/><circle cx='12' cy='10' r='2.5'/></svg>"); }
.luko-ma-payment-methods  > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='6' width='20' height='13' rx='2'/><path d='M2 10h20'/></svg>"); }
.luko-ma-edit-account     > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-7 8-7s8 3 8 7'/></svg>"); }
.luko-ma-customer-logout  > a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23233c73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 17l5-5-5-5'/><path d='M15 12H3'/><path d='M21 3v18'/></svg>"); }

/* -----------------------------------------------------------------------
 * Orders table
 * ----------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account table.shop_table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: 1px solid #ececf2 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #fff !important;
}
body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account table.shop_table thead th {
	background: #f6f7fb !important;
	color: var(--luko-blue) !important;
	text-align: left !important;
	padding: 12px 14px !important;
	font-weight: 600 !important;
	border: 0 !important;
}
body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account table.shop_table tbody td {
	padding: 12px 14px !important;
	border-top: 1px solid #ececf2 !important;
	vertical-align: middle;
	background: #fff;
}
body.woocommerce-account .woocommerce-orders-table tbody tr:hover,
body.woocommerce-account table.shop_table tbody tr:hover { background: #fafbff; }

body.woocommerce-account .woocommerce-orders-table .woocommerce-button.button.view {
	background: var(--luko-blue) !important;
}
body.woocommerce-account .woocommerce-orders-table .woocommerce-button.button.view:hover {
	background: var(--luko-orange) !important;
}

/* Order detail block */
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #ececf2;
}

/* Addresses page — side-by-side billing / shipping cards */
body.woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses {
	display: grid;
	gap: 40px;
}

/* -----------------------------------------------------------------------
 * Login / Register (not logged in)
 *
 * WC markup (myaccount/form-login.php):
 *   <div class="u-columns col2-set" id="customer_login">
 *     <div class="u-column1 col-1"> <h2>Login</h2>   <form>…</form> </div>
 *     <div class="u-column2 col-2"> <h2>Register</h2><form>…</form> </div>
 *   </div>
 * ----------------------------------------------------------------------- */
body.woocommerce-account:not(.logged-in) .woocommerce {
	display: block !important;
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 100px 20px !important;
	color: #1c1c1c;
}

body.woocommerce-account:not(.logged-in) .woocommerce > h2,
body.woocommerce-account:not(.logged-in) #customer_login h2 {
	color: var(--luko-blue) !important;
	margin: 0 0 14px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}

/* Two-column wrapper */
body.woocommerce-account:not(.logged-in) #customer_login,
body.woocommerce-account:not(.logged-in) .u-columns,
body.woocommerce-account:not(.logged-in) .col2-set {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 24px !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.woocommerce-account:not(.logged-in) #customer_login::before,
body.woocommerce-account:not(.logged-in) #customer_login::after,
body.woocommerce-account:not(.logged-in) .u-columns::before,
body.woocommerce-account:not(.logged-in) .u-columns::after,
body.woocommerce-account:not(.logged-in) .col2-set::before,
body.woocommerce-account:not(.logged-in) .col2-set::after { content: none !important; display: none !important; }

body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2,
body.woocommerce-account:not(.logged-in) .col-1,
body.woocommerce-account:not(.logged-in) .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid #ececf2 !important;
	border-radius: 12px !important;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .04) !important;
}

/* Put the padding on the column, the form itself stays flat */
body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2,
body.woocommerce-account:not(.logged-in) .col-1,
body.woocommerce-account:not(.logged-in) .col-2 {
	padding: 28px !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register,
body.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

/* Lost password link row */
body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
	margin-top: 14px !important;
	text-align: left;
}
body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a {
	color: var(--luko-blue) !important;
	text-decoration: underline !important;
	font-size: 14px;
}
body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a:hover {
	color: var(--luko-orange) !important;
}

/* Remember-me row */
body.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0 !important;
	font-weight: 400 !important;
	color: #374151 !important;
}
body.woocommerce-account .woocommerce-form__label-for-checkbox input[type="checkbox"] {
	width: auto !important;
	accent-color: var(--luko-blue);
}

/* Registration "privacy policy" blurb */
body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text {
	font-size: 13px;
	color: #6b7280;
	margin: 10px 0 14px;
	line-height: 1.5;
}
body.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text a {
	color: var(--luko-blue) !important;
}

/* Button rows — full-width submit on login/register */
body.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register .form-row {
	margin-bottom: 14px !important;
}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login button[type="submit"],
body.woocommerce-account:not(.logged-in) .woocommerce-form-register button[type="submit"] {
	width: 100% !important;
	margin-top: 6px !important;
	padding: 12px 18px !important;
	font-size: 15px !important;
}

/* -----------------------------------------------------------------------
 * WC notices
 * ----------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-notice {
	background: #fff7f3 !important;
	color: #1c1c1c !important;
	border-top: 3px solid var(--luko-orange) !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	margin-bottom: 16px !important;
}
body.woocommerce-account .woocommerce-error {
	background: #fff0ec !important;
	border-top: 3px solid var(--luko-orange) !important;
	color: #8b1e06 !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	margin-bottom: 16px !important;
}
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-error::before {
	color: var(--luko-orange) !important;
	position: initial !important;
}

/* -----------------------------------------------------------------------
 * IČO / DIČ fieldset on "Edit account"
 * ----------------------------------------------------------------------- */
body.woocommerce-account .luko-ma-fieldset {
	margin-top: 18px;
	border: 1px solid #ececf2 !important;
	border-radius: 10px;
	padding: 14px 18px;
	background: #fafbff;
}
body.woocommerce-account .luko-ma-fieldset legend {
	color: var(--luko-blue) !important;
	font-weight: 600;
	padding: 0 6px;
}
body.woocommerce-account .luko-ma-fieldset p { margin: 4px 0; }

/* -----------------------------------------------------------------------
 * Responsive
 * ----------------------------------------------------------------------- */
@media (max-width: 900px) {
	body.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 1fr !important;
	}
	body.woocommerce-account:not(.logged-in) #customer_login,
	body.woocommerce-account:not(.logged-in) .u-columns,
	body.woocommerce-account:not(.logged-in) .col2-set {
		grid-template-columns: 1fr !important;
	}
	body.woocommerce-account .woocommerce {
		padding: 24px 14px !important;
		margin: 24px auto 0 !important;
	}

	/* Edit Account form — stack first-name / last-name full-width on mobile */
	body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
	body.woocommerce-account .woocommerce-EditAccountForm .form-row-last,
	body.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
	body.woocommerce-account .woocommerce-EditAccountForm .form-row {
		width: 100% !important;
		float: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
	body.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
	body.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
	body.woocommerce-account .woocommerce-EditAccountForm input[type="password"],
	body.woocommerce-account .woocommerce-EditAccountForm .password-input,
	body.woocommerce-account .woocommerce-EditAccountForm .input-text {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
}
