/* ==========================================================================
   AutoParts — coș, checkout, comandă primită (stilul temei SolarTech)
   Încărcat doar pe coș și checkout (inc/checkout.php). Regulile sunt scopate
   sub .ap-wc-page ca să bată CSS-ul implicit al WooCommerce, care rămâne încărcat.

   1. Pagina   2. Câmpuri   3. Checkout: coloane și secțiuni   4. Livrare
   5. Tip client + ANAF   6. Sumar checkout   7. Plată   8. Coș   9. Sumar coș
   10. Coș gol   11. Comandă primită   12. Responsive   13. Contul meu
   ========================================================================== */

/* 1. Pagina ---------------------------------------------------------------- */
.ap-wc-page { padding-top: 22px; padding-bottom: 48px; }
.ap-hidden { display: none !important; }
.ap-free { font-style: normal; color: var(--ap-success); font-weight: 800; }

/* Checkout fără distrageri: fără meniu, fără căutare, fără bara de sus */
.ap-is-checkout .ap-topbar,
.ap-is-checkout .ap-nav,
.ap-is-checkout .ap-header__search { display: none !important; }
/* Pe telefon butonul de meniu doar se ascunde: își păstrează locul, ca logo-ul să rămână centrat */
.ap-is-checkout .ap-header__burger { visibility: hidden; }

/* 2. Câmpuri --------------------------------------------------------------- */
.ap-wc-page form .form-row { margin: 0 0 14px; padding: 0; }
.ap-wc-page form .form-row label { display: block; margin-bottom: 5px; line-height: 1.4; font-size: .86rem; font-weight: 600; }
.ap-wc-page form .form-row .required { color: var(--ap-accent); text-decoration: none; border: 0; }
.ap-wc-page form .form-row .optional { color: var(--ap-ink-muted); font-weight: 400; font-size: .8rem; }
.ap-wc-page form .form-row.woocommerce-invalid input.input-text,
.ap-wc-page form .form-row.woocommerce-invalid select { border-color: var(--ap-accent); }
.ap-wc-page form .form-row .description { display: block; margin-top: 4px; font-size: .78rem; color: var(--ap-ink-muted); }
.ap-wc-page .woocommerce-billing-fields__field-wrapper,
.ap-wc-page .woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	column-gap: 14px;
}
.ap-wc-page form .form-row-wide { flex: 1 1 100%; }
.ap-wc-page form .form-row-first,
.ap-wc-page form .form-row-last { flex: 1 1 calc(50% - 7px); width: auto; min-width: 0; float: none; }
/* Aceleași câmpuri ca în restul temei (main.css): CSS-ul WooCommerce le dădea chenar aproape
   negru, colțuri de 4px și alt spațiu interior, iar Județ / Localitate (Select2) arătau altfel */
.ap-wc-page form .form-row .input-text,
.ap-wc-page form .form-row textarea,
.ap-wc-page form .form-row select {
	min-height: 44px;
	padding: 10px 13px;
	background: #fff;
	border: 1px solid var(--ap-line-strong);
	border-radius: var(--ap-radius);
	color: var(--ap-ink);
	font-family: inherit;
	font-size: .95rem;
	line-height: 1.3;
}
.ap-wc-page form .form-row .input-text:focus,
.ap-wc-page form .form-row textarea:focus,
.ap-wc-page form .form-row select:focus {
	outline: none;
	border-color: var(--ap-accent);
	box-shadow: 0 0 0 3px rgba(var(--ap-accent-rgb), .13);
}
.ap-wc-page form .form-row.woocommerce-invalid .select2-container .select2-selection { border-color: var(--ap-accent); }
.ap-wc-page form .form-row.woocommerce-validated .input-text,
.ap-wc-page form .form-row.woocommerce-validated select,
.ap-wc-page form .form-row.woocommerce-validated .select2-container .select2-selection { border-color: var(--ap-line-strong); }
.ap-wc-page .select2-container { width: 100% !important; }
.ap-wc-page form .select2-container--default .select2-selection--single { height: 44px; border: 1px solid var(--ap-line-strong); border-radius: var(--ap-radius); }
.ap-wc-page form .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 30px 0 13px; line-height: 42px; color: var(--ap-ink); font-size: .95rem; }
.ap-wc-page form .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ap-ink-muted); }
.ap-wc-page form .select2-container--default.select2-container--open .select2-selection--single,
.ap-wc-page form .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--ap-accent); box-shadow: 0 0 0 3px rgba(var(--ap-accent-rgb), .13); }
.ap-wc-page form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 6px; }
.ap-wc-page input[type="checkbox"],
.ap-wc-page input[type="radio"] { accent-color: var(--ap-accent); width: 18px; height: 18px; vertical-align: middle; }

/* 3. Checkout: date în stânga, sumar + plată în dreapta -------------------- */
.ap-wc-page form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	grid-template-rows: auto auto 1fr;
	gap: 0 28px;
	align-items: start;
	counter-reset: ap-step;
}
/* Rândul 1 e pentru erorile de la trimitere (WooCommerce le pune la începutul formularului);
   fără el, grila le așeza sub tot formularul */
.ap-wc-page form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; margin-bottom: 12px; }
.ap-wc-page form.checkout .ap-co-left { grid-column: 1; grid-row: 2 / span 2; min-width: 0; }
.ap-wc-page form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0 0 12px; font-size: 1.1rem; }
.ap-wc-page form.checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: 96px; }

.ap-wc-page #customer_details { width: auto; }
.ap-wc-page #customer_details .col-1,
.ap-wc-page #customer_details .col-2 { width: 100%; float: none; padding: 0; background: none; border: 0; }
.ap-wc-page #customer_details h3 { margin: 0 0 14px; padding: 0; border: 0; font-size: 1.1rem; }
.ap-wc-page .woocommerce-billing-fields,
.ap-co-section {
	margin-bottom: 16px;
	padding: 20px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius-lg);
}
.ap-co-section h3 { margin: 0 0 14px; font-size: 1.1rem; }
.ap-co-note { margin: 0; color: var(--ap-ink-muted); font-size: .9rem; }
.ap-wc-page .woocommerce-additional-fields:not(:has(input, select, textarea)) { display: none; }

/* Secțiuni numerotate: 1. Datele tale  2. Livrare  3. Plată (contor CSS — la produse
   fără livrare secțiunea 2 lipsește și numerotarea se ajustează singură) */
.ap-wc-page .woocommerce-billing-fields > h3,
.ap-co-delivery > h3,
.ap-wc-page #payment::before { counter-increment: ap-step; }
.ap-wc-page .woocommerce-billing-fields > h3::before,
.ap-co-delivery > h3::before,
.ap-wc-page #payment::before {
	content: counter(ap-step);
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--ap-accent);
	color: #fff;
	font-size: .9rem;
	font-weight: 800;
	vertical-align: middle;
}

/* Cuponul: link discret */
.ap-wc-page .woocommerce-form-coupon-toggle .woocommerce-info {
	margin-bottom: 12px !important;
	padding: 0 !important;
	border: 0;
	background: none !important;
	font-size: .9rem;
}
.ap-wc-page form.checkout_coupon {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin: 0 0 16px;
	padding: 12px !important;
}
.ap-wc-page form.checkout_coupon p { margin: 0; flex: 1; width: auto; float: none; }
.ap-wc-page form.checkout_coupon p:last-of-type { flex: 0; }
.ap-wc-page form.checkout_coupon .clear { display: none; }

/* 4. Livrare: unde livrăm + metode ------------------------------------------ */
.ap-co-label { margin: 0 0 8px; font-weight: 700; font-size: .92rem; }
.ap-co-delivery .ap-co-label:not(:first-of-type) { margin-top: 18px; }
.ap-shipto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-shipto__card {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 14px 14px 14px 44px;
	border: 2px solid var(--ap-line);
	border-radius: 10px;
	cursor: pointer;
	font-weight: 500;
}
.ap-shipto__card input { position: absolute; left: 14px; top: 16px; margin: 0; }
.ap-shipto__card b { display: block; font-size: .95rem; }
.ap-shipto__card small { display: block; margin-top: 2px; color: var(--ap-ink-muted); font-size: .8rem; line-height: 1.35; }
.ap-shipto__card.is-on,
.ap-shipto__card:has(input:checked) { border-color: var(--ap-accent); background: rgba(var(--ap-accent-rgb), .04); }
.ap-shipto__card:has(input:focus-visible) { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
.ap-wc-page .shipping_address { margin-top: 12px; padding: 16px; border-radius: 10px; background: var(--ap-surface-alt); }
.ap-co-sublabel { margin: 0 0 10px; font-weight: 700; font-size: .9rem; }
.ap-wc-page .shipping_address .form-row:last-child { margin-bottom: 0; }

.ap-shipmethods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-shipmethods li { position: relative; }
.ap-shipmethods input { position: absolute; left: 16px; top: 50%; margin: -9px 0 0; }
.ap-shipmethods label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 13px 16px 13px 46px;
	border: 2px solid var(--ap-line);
	border-radius: 10px;
	cursor: pointer;
	font-weight: 500;
}
.ap-shipmethods input:checked + label { border-color: var(--ap-accent); background: rgba(var(--ap-accent-rgb), .04); }
.ap-shipmethods__name { display: flex; flex-direction: column; }
.ap-shipmethods__name b { font-size: .95rem; }
.ap-shipmethods__name small { color: var(--ap-success); font-size: .8rem; font-weight: 600; }
.ap-shipmethods__cost { font-weight: 800; white-space: nowrap; }
.ap-shipmethods__cost em { font-style: normal; color: var(--ap-success); }

/* 5. Tip client (PF / PJ) + ANAF --------------------------------------------- */
.ap-wc-page .ap-client-type > label { margin-bottom: 8px; }
.ap-wc-page .ap-client-type .required { display: none; }
.ap-wc-page .ap-client-type .woocommerce-input-wrapper { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-wc-page .ap-client-type input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ap-wc-page .ap-client-type label.radio {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 8px 12px;
	border: 2px solid var(--ap-line);
	border-radius: 10px;
	text-align: center;
	font-size: .92rem;
	font-weight: 700;
	cursor: pointer;
}
.ap-wc-page .ap-client-type input[type="radio"]:checked + label.radio { border-color: var(--ap-accent); background: rgba(var(--ap-accent-rgb), .05); color: var(--ap-accent); }
.ap-wc-page .ap-client-type input[type="radio"]:focus-visible + label.radio { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
.ap-wc-page .ap-pj .optional { display: none; }
.ap-wc-page form.checkout:not(.ap-is-pj) .ap-pj { display: none; }
.ap-wc-page #billing_cui_field .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-wc-page #billing_cui_field input { flex: 1; min-width: 120px; }
.ap-anaf-btn {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ap-accent);
	border-radius: var(--ap-radius);
	background: #fff;
	color: var(--ap-accent);
	font-family: inherit;
	font-weight: 700;
	font-size: .82rem;
	white-space: nowrap;
	cursor: pointer;
}
.ap-anaf-btn:disabled { opacity: .6; cursor: wait; }
.ap-anaf-msg { flex-basis: 100%; font-size: .8rem; color: var(--ap-success); font-weight: 600; }
.ap-anaf-msg.is-error { color: var(--ap-accent); }

/* 6. Sumarul comenzii (checkout) ------------------------------------------- */
.ap-wc-page #order_review {
	padding: 18px;
	background: var(--ap-surface-alt);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius-lg);
}
.ap-wc-page table.woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
	background: none;
	font-size: .9rem;
}
.ap-wc-page table.woocommerce-checkout-review-order-table thead { display: none; }
.ap-wc-page table.woocommerce-checkout-review-order-table th,
.ap-wc-page table.woocommerce-checkout-review-order-table td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid var(--ap-line);
	background: none;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: top;
	font-size: .9rem;
	font-weight: 500;
	color: var(--ap-ink);
}
.ap-wc-page table.woocommerce-checkout-review-order-table td:last-child,
.ap-wc-page table.woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.ap-wc-page table.woocommerce-checkout-review-order-table tfoot th { color: var(--ap-ink-soft); }
.ap-wc-page table.woocommerce-checkout-review-order-table tfoot td { font-weight: 700; }
.ap-wc-page table.woocommerce-checkout-review-order-table td small { display: block; font-size: .75rem; font-weight: 500; color: var(--ap-ink-muted); }
.ap-wc-page table.woocommerce-checkout-review-order-table .product-quantity { color: var(--ap-ink-muted); font-weight: 600; }
.ap-wc-page table.woocommerce-checkout-review-order-table .order-total th,
.ap-wc-page table.woocommerce-checkout-review-order-table .order-total td {
	padding-top: 14px;
	border-bottom: 0;
	color: var(--ap-ink);
	font-size: 1.2rem;
	font-weight: 800;
}
.ap-wc-page table.woocommerce-checkout-review-order-table .order-total small { display: block; font-size: .72rem; font-weight: 400; color: var(--ap-ink-muted); }
.ap-wc-page .woocommerce-checkout-review-order-table .tax_label,
.ap-wc-page .ap-cart .tax_label { display: none; }
.ap-co-item { display: flex; align-items: center; gap: 10px; }
.ap-co-item__img {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: 6px;
}

/* 7. Plată ------------------------------------------------------------------ */
.ap-wc-page #payment {
	position: relative;
	margin-top: 16px;
	padding: 16px;
	background: var(--ap-surface) !important;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius-lg) !important;
}
.ap-wc-page #payment::before { margin-bottom: 14px; }
.ap-wc-page #payment::after { content: "Plată"; position: absolute; top: 18px; left: 56px; font-size: 1.1rem; font-weight: 700; }
.ap-wc-page #payment ul.payment_methods {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	list-style: none;
}
.ap-wc-page #payment ul.payment_methods::before,
.ap-wc-page #payment ul.payment_methods::after { display: none; }
.ap-wc-page #payment ul.payment_methods li {
	position: relative;
	margin: 0;
	padding: 0;
	line-height: 1.4;
	background: #fff;
	border: 2px solid var(--ap-line);
	border-radius: 10px;
}
.ap-wc-page #payment ul.payment_methods li:has(input:checked) { border-color: var(--ap-accent); }
.ap-wc-page #payment ul.payment_methods li > input { position: absolute; left: 14px; top: 15px; margin: 0; }
.ap-wc-page #payment ul.payment_methods li > label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 13px 14px 13px 42px;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
}
.ap-wc-page #payment ul.payment_methods li > label img { max-height: 24px; width: auto; margin: 0 0 0 auto; }
.ap-wc-page #payment div.payment_box {
	margin: 0;
	padding: 0 14px 12px 42px;
	background: none !important;
	font-size: .84rem;
	color: var(--ap-ink-muted);
}
.ap-wc-page #payment div.payment_box::before { display: none !important; }
.ap-wc-page #payment div.payment_box p { margin: 0; }
.ap-wc-page #payment div.form-row { padding: 0; }
/* Eticheta „Rate" la metodele de plată în rate (după id-ul metodei, nu în titlu —
   titlul se salvează pe comandă și ar ajunge cu HTML în email) */
.ap-wc-page .wc_payment_method[class*="payment_method_tbi"] > label::after,
.ap-wc-page .wc_payment_method[class*="payment_method_fusion"] > label::after,
.ap-wc-page .wc_payment_method[class*="installment"] > label::after,
.ap-wc-page .wc_payment_method[class*="payment_method_mokka"] > label::after,
.ap-wc-page .wc_payment_method[class*="payment_method_paypo"] > label::after {
	content: "Rate";
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--ap-warning);
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	text-transform: uppercase;
}
.ap-wc-page .woocommerce-privacy-policy-text { font-size: .76rem; color: var(--ap-ink-muted); }
.ap-wc-page .woocommerce-privacy-policy-text p { margin: 0 0 8px; }
.ap-wc-page .woocommerce-terms-and-conditions-wrapper .form-row { margin: 10px 0; }
.ap-wc-page .woocommerce-form__label-for-checkbox { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
/* #payment în selector: WooCommerce face butonul float: right cu două id-uri, iar lista
   de dedesubt se strângea lângă el până la lățimea zero */
.ap-wc-page #payment #place_order {
	width: 100%;
	min-height: 56px;
	margin-top: 6px;
	font-size: 1.1rem !important;
	float: none;
}
.ap-co-trust { clear: both; display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--ap-ink-muted); }
.ap-co-trust li { display: flex; align-items: center; gap: 7px; }
.ap-co-trust .ap-icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--ap-success); }
.ap-wc-page .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* 8. Coș ------------------------------------------------------------------- */
.ap-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 28px;
	align-items: start;
}
.ap-cart__head h1 {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 14px;
	font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem);
}
.ap-cart__head h1 span { font-size: .95rem; font-weight: 500; color: var(--ap-ink-muted); }
.ap-cart__items { display: grid; gap: 10px; }

.ap-citem {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto 130px;
	grid-template-areas: "img info qty total";
	align-items: center;
	gap: 18px;
	padding: 14px 52px 14px 14px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius-lg);
	transition: border-color .15s ease;
}
.ap-citem:hover { border-color: var(--ap-line-strong); }
.ap-citem__img { grid-area: img; }
.ap-citem__img img { display: block; width: 96px; height: 96px; object-fit: contain; border-radius: var(--ap-radius); background: #fff; }
.ap-citem__info { grid-area: info; min-width: 0; }
.ap-citem__brand {
	display: block;
	margin-bottom: 2px;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ap-ink-muted);
}
.ap-citem__info > a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--ap-ink);
	font-weight: 600;
	line-height: 1.35;
}
.ap-citem__info > a:hover { color: var(--ap-accent); }
.ap-citem__info dl.variation { margin: 4px 0 0; font-size: .8rem; color: var(--ap-ink-muted); }
.ap-citem__info dl.variation dt,
.ap-citem__info dl.variation dd,
.ap-citem__info dl.variation p { display: inline; margin: 0; }
.ap-citem__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .78rem; color: var(--ap-ink-muted); }
.ap-citem__stock.is-in-stock { color: var(--ap-success); font-weight: 600; }
.ap-citem__stock.is-backorder { color: var(--ap-warning); font-weight: 600; }
.ap-citem__unit { margin-top: 4px; font-size: .84rem; color: var(--ap-ink-muted); }
.ap-citem__qty { grid-area: qty; }
.ap-wc-page .ap-citem__qty .quantity input.qty { width: 46px; height: 42px; }
.ap-citem__qty .ap-qty-btn { width: 36px; }
.ap-citem__total { grid-area: total; text-align: right; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.ap-citem__remove { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.ap-wc-page .ap-citem__remove a.remove {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: none;
	color: var(--ap-ink-muted) !important;
	font-size: 1rem;
	text-decoration: none;
}
.ap-wc-page .ap-citem__remove a.remove:hover { background: rgba(var(--ap-accent-rgb), .08) !important; color: var(--ap-accent) !important; }
.ap-wc-page .backorder_notification { margin: 4px 0 0; font-size: .8rem; color: var(--ap-warning); }

.ap-cart__actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 12px; }
/* „Actualizează coșul" rămâne în pagină (îl apasă theme.js), dar nu se vede */
.ap-wc-page .ap-cart__update {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0 !important;
}
.ap-coupon summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .9rem; color: var(--ap-accent); }
.ap-coupon summary::-webkit-details-marker { display: none; }
.ap-coupon summary::before { content: "+ "; }
.ap-coupon[open] summary::before { content: "− "; }
.ap-coupon .coupon { display: flex; gap: 8px; max-width: 360px; margin-top: 8px; }
.ap-coupon .coupon input { min-height: 42px; }
.ap-wc-page .ap-coupon .button.ap-coupon__apply {
	min-height: 42px;
	background: transparent !important;
	color: var(--ap-ink) !important;
	border-color: var(--ap-line-strong);
}
.ap-wc-page .ap-coupon .button.ap-coupon__apply:hover { background: var(--ap-surface-alt) !important; }
.ap-cart__continue { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .9rem; }

.ap-wc-page .cross-sells { margin-top: 40px; }
.ap-wc-page .cross-sells > h2 { margin-bottom: 16px; font-size: 1.3rem; }
.ap-wc-page .blockUI.blockOverlay { border-radius: var(--ap-radius-lg); }

/* 9. Sumarul coșului ------------------------------------------------------- */
.ap-cart__side { position: sticky; top: 130px; }
.ap-wc-page .cart-collaterals { width: auto; float: none; margin: 0; }
.ap-wc-page .cart-collaterals .cart_totals {
	width: auto;
	float: none;
	padding: 20px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 14px;
	box-shadow: var(--ap-shadow-md);
}
.ap-wc-page .cart_totals h2 { margin: 0 0 14px; font-size: 1.15rem; }
.ap-wc-page .cart_totals .ap-freeship { margin-bottom: 12px; }
/* În coloana îngustă textul barei curge normal (flex-ul din woocommerce.css îl rupea pe bucăți) */
.ap-wc-page .ap-freeship__text { display: block; }
.ap-wc-page .ap-freeship__check { display: inline-block; margin-right: 6px; vertical-align: -4px; }
.ap-wc-page .cart_totals table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
	background: none;
	font-size: .92rem;
}
.ap-wc-page .cart_totals table.shop_table th,
.ap-wc-page .cart_totals table.shop_table td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--ap-surface-alt);
	background: none;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: top;
	font-size: .92rem;
	font-weight: 500;
	color: var(--ap-ink-soft);
}
.ap-wc-page .cart_totals table.shop_table td { text-align: right; font-weight: 700; color: var(--ap-ink); }
.ap-wc-page .cart_totals table.shop_table td small { display: block; font-size: .76rem; font-weight: 500; color: var(--ap-ink-muted); }
.ap-wc-page .cart_totals table.shop_table .order-total th,
.ap-wc-page .cart_totals table.shop_table .order-total td {
	padding-top: 14px;
	border: 0;
	color: var(--ap-ink);
	font-size: 1.1rem;
	font-weight: 800;
}
.ap-wc-page .cart_totals table.shop_table .order-total td { font-size: 1.5rem; }
.ap-wc-page .cart_totals .cart-discount td { color: var(--ap-success); }
.ap-cart-vat { margin: 0 0 12px; font-size: .78rem; color: var(--ap-ink-muted); text-align: right; }
.ap-wc-page .wc-proceed-to-checkout { padding: 0; }
.ap-wc-page .wc-proceed-to-checkout a.checkout-button.button {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 0;
	font-size: 1.1rem !important;
}
.ap-cart-trust {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--ap-surface-alt);
	list-style: none;
	font-size: .82rem;
	color: var(--ap-ink-muted);
}
.ap-cart-trust li { display: flex; align-items: center; gap: 8px; }
.ap-cart-trust .ap-icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--ap-success); }
.ap-cart-mobilebar { display: none; }

/* 10. Coș gol --------------------------------------------------------------- */
.ap-wc-page .ap-cart-empty {
	max-width: 560px;
	margin: 20px auto 10px;
	padding: 40px 24px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 16px;
}
.ap-wc-page .ap-cart-empty__icon {
	width: 88px;
	height: 88px;
	background: var(--ap-surface-alt);
	color: var(--ap-accent);
}
.ap-wc-page .ap-cart-empty__icon .ap-icon { width: 40px; height: 40px; }

/* 11. Comandă primită ------------------------------------------------------- */
.ap-thanks__hero {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 22px;
	padding: 24px 26px;
	border-radius: 16px;
	background: linear-gradient(135deg, #eef9f3, #f7fcf9);
	border: 1px solid #cfeadc;
}
.ap-thanks__hero h1 { margin: 0 0 6px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.ap-thanks__hero p { margin: 0; color: var(--ap-ink-soft); }
.ap-thanks__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--ap-success);
	color: #fff;
	box-shadow: 0 8px 24px rgba(18, 132, 74, .3);
}
.ap-thanks__icon .ap-icon { width: 36px; height: 36px; stroke-width: 2.4; }
.ap-thanks__hero.is-failed { background: #fdf0f1; border-color: #f4c7ca; }
.ap-thanks__hero.is-failed .ap-thanks__icon { background: var(--ap-accent); box-shadow: none; }
.ap-thanks__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }

.ap-thanks__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.ap-thanks__card {
	margin-bottom: 18px;
	padding: 20px 22px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 14px;
}
.ap-thanks__card h2 { margin: 0 0 16px; font-size: 1.15rem; }
.ap-thanks__side { position: sticky; top: 130px; }

.ap-thanks-steps { margin: 0; padding: 0; list-style: none; }
.ap-thanks-steps > li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.ap-thanks-steps > li:last-child { padding-bottom: 0; }
.ap-thanks-steps > li:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 34px;
	bottom: 2px;
	width: 2px;
	background: var(--ap-line);
}
.ap-thanks-steps > li > div { flex: 1; min-width: 0; }
.ap-thanks-steps__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ap-surface-alt);
	border: 2px solid var(--ap-line);
	color: var(--ap-ink-muted);
	font-weight: 800;
	font-size: .88rem;
}
.ap-thanks-steps__dot .ap-icon { width: 16px; height: 16px; stroke-width: 2.6; }
.ap-thanks-steps .is-done .ap-thanks-steps__dot { background: var(--ap-success); border-color: var(--ap-success); color: #fff; }
.ap-thanks-steps .is-current .ap-thanks-steps__dot { background: var(--ap-accent); border-color: var(--ap-accent); color: #fff; }
.ap-thanks-steps strong { display: block; margin: 4px 0 2px; font-size: 1rem; }
.ap-thanks-steps p { margin: 0; color: var(--ap-ink-muted); font-size: .92rem; }

/* Datele de plată (transfer bancar) */
.ap-thanks__payment { margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--ap-warning-bg); font-size: .92rem; }
.ap-thanks__payment > p { margin: 0 0 8px; color: var(--ap-ink-soft); }
.ap-thanks__payment .woocommerce-bacs-bank-details { padding: 0; background: none; }
.ap-thanks__payment .wc-bacs-bank-details-heading { display: none; }
.ap-thanks__payment .wc-bacs-bank-details-account-name { margin: 0 0 8px; font-size: .95rem; }
.ap-wc-page .ap-thanks__payment ul.wc-bacs-bank-details { display: grid; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.ap-wc-page .ap-thanks__payment ul.wc-bacs-bank-details::after { display: none; }
.ap-wc-page .ap-thanks__payment ul.wc-bacs-bank-details li { float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; border: 0; font-size: .9rem; color: var(--ap-ink-muted); text-transform: none; }
.ap-wc-page .ap-thanks__payment ul.wc-bacs-bank-details li strong { display: inline; line-height: 1.4; color: var(--ap-ink); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .02em; }
.ap-copy {
	padding: 2px 10px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: 6px;
	font-family: inherit;
	font-size: .75rem;
	font-weight: 700;
	color: var(--ap-accent);
	cursor: pointer;
}
.ap-copy.is-done { color: var(--ap-success); border-color: var(--ap-success); }

.ap-thanks__addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-thanks__addresses h3 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ap-ink-muted); }
.ap-thanks__addresses address { font-style: normal; line-height: 1.55; }
.ap-thanks__contact,
.ap-thanks__company { margin: 6px 0 0; font-size: .88rem; color: var(--ap-ink-muted); }
.ap-thanks__company { margin: 0 0 6px; }
.ap-thanks__contact .ap-icon { width: 14px; height: 14px; vertical-align: -2px; }

.ap-thanks__items { margin: 0 0 8px; padding: 0; list-style: none; }
.ap-thanks__items li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ap-surface-alt); }
.ap-thanks__items img { flex-shrink: 0; width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-thanks__items li > span { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: .9rem; line-height: 1.35; }
.ap-thanks__items li > span a { color: var(--ap-ink); font-weight: 600; }
.ap-thanks__items li > span a:hover { color: var(--ap-accent); }
.ap-thanks__items small { color: var(--ap-ink-muted); }
.ap-thanks__items b { flex-shrink: 0; white-space: nowrap; font-size: .92rem; }

.ap-thanks__totals { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ap-thanks__totals th,
.ap-thanks__totals td { padding: 8px 0; text-align: left; font-weight: 500; vertical-align: top; }
.ap-thanks__totals th { color: var(--ap-ink-muted); }
.ap-thanks__totals td { text-align: right; }
.ap-thanks__totals td small,
.ap-thanks__totals .shipped_via { display: block; font-size: .78rem; color: var(--ap-ink-muted); }
.ap-thanks__totals .order_total th,
.ap-thanks__totals .order_total td {
	padding-top: 12px;
	border-top: 1px solid var(--ap-line);
	color: var(--ap-ink);
	font-size: 1.1rem;
	font-weight: 800;
}
.ap-thanks__note { margin: 12px 0 0; font-size: .88rem; }
.ap-thanks__actions { display: grid; gap: 10px; }
.ap-btn--lg { width: 100%; min-height: 52px; font-size: 1rem; }
.ap-thanks__help { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; font-size: .88rem; color: var(--ap-ink-muted); }
.ap-thanks__help .ap-icon { width: 16px; height: 16px; }

/* 12. Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
	.ap-wc-page form.checkout,
	.ap-cart,
	.ap-thanks__layout { grid-template-columns: minmax(0, 1fr); }
	.ap-wc-page form.checkout .ap-co-left,
	.ap-wc-page form.checkout #order_review_heading,
	.ap-wc-page form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
	.ap-cart__side,
	.ap-thanks__side { position: static; }
}

@media (max-width: 640px) {
	.ap-wc-page { padding-top: 14px; }
	.ap-wc-page form .form-row-first,
	.ap-wc-page form .form-row-last { flex-basis: 100%; }
	.ap-wc-page .woocommerce-billing-fields,
	.ap-co-section,
	.ap-wc-page #payment { padding: 14px; border-radius: 10px !important; }
	.ap-wc-page #payment::after { top: 12px; left: 52px; }
	.ap-shipto { grid-template-columns: minmax(0, 1fr); }
	.ap-wc-page .shipping_address { padding: 12px; }

	.ap-citem {
		grid-template-columns: 76px auto minmax(0, 1fr);
		grid-template-areas: "img info info" "img qty total";
		gap: 10px 12px;
		padding: 12px 44px 12px 12px;
	}
	.ap-citem__img img { width: 76px; height: 76px; }
	.ap-citem__total { align-self: center; }
	.ap-citem__remove { top: 8px; right: 6px; transform: none; }
	.ap-cart__actions { flex-direction: column; }

	/* Totalul și butonul rămân jos pe ecran */
	.ap-wc-page--cart { padding-bottom: 96px; }
	.ap-cart-mobilebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -4px 20px rgba(16, 24, 40, .12);
	}
	.ap-cart-mobilebar div { display: flex; flex-direction: column; line-height: 1.2; }
	.ap-cart-mobilebar small { color: var(--ap-ink-muted); font-size: .75rem; }
	.ap-cart-mobilebar strong { font-size: 1.15rem; }
	.ap-cart-mobilebar .ap-btn { min-height: 48px; }

	.ap-thanks__hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
	.ap-thanks__icon { width: 54px; height: 54px; }
	.ap-thanks__card { padding: 16px; }
	.ap-thanks__addresses { grid-template-columns: minmax(0, 1fr); }
}

/* 13. Contul meu (stilul temei SolarTech) ---------------------------------- */
.ap-wc-title { margin: 0 0 18px; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.ap-btn--sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.ap-btn--wa { background: #1fa855; color: #fff; }
.ap-btn--wa:hover { background: #178a45; color: #fff; }
.ap-btn--wa .ap-icon { width: 18px; height: 18px; }
.ap-btn--danger { color: var(--ap-accent) !important; }
.ap-btn--danger:hover { border-color: var(--ap-accent); }

.ap-wc-page--account .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.ap-wc-page--account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* Pseudo-elementele clearfix din CSS-ul WooCommerce ar deveni celule în grilă și ar muta meniul */
.ap-wc-page--account .woocommerce::before,
.ap-wc-page--account .woocommerce::after { display: none; }
.woocommerce-account:not(.logged-in) .ap-wc-page--account .woocommerce { display: block; }
.ap-wc-page--account .woocommerce-MyAccount-navigation,
.ap-wc-page--account .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
.ap-wc-page--account .woocommerce-MyAccount-content { padding: 0; background: none; border: 0; }
.ap-acc-ic {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(var(--ap-accent-rgb), .08);
	color: var(--ap-accent);
}
.ap-acc-ic .ap-icon { width: 20px; height: 20px; }

/* Meniu */
.ap-acc-nav {
	position: sticky;
	top: 96px;
	padding: 10px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 16px;
	box-shadow: var(--ap-shadow-md);
}
.ap-acc-user { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 8px 8px 14px; border-bottom: 1px solid var(--ap-line); }
.ap-acc-user__avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ap-accent);
	color: #fff;
	font-weight: 800;
	letter-spacing: .02em;
}
.ap-acc-user__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ap-acc-user__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ap-ink-muted); font-size: .78rem; }
.ap-acc-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ap-acc-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ap-ink);
	font-weight: 600;
	font-size: .93rem;
}
.ap-acc-nav a .ap-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--ap-ink-muted); }
.ap-acc-nav a:hover { background: var(--ap-surface-alt); color: var(--ap-ink); }
.ap-acc-nav .is-active a { background: rgba(var(--ap-accent-rgb), .08); color: var(--ap-accent); }
.ap-acc-nav .is-active a .ap-icon { color: var(--ap-accent); }
.ap-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ap-line); }
.ap-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a,
.ap-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a .ap-icon { color: var(--ap-accent); }

/* Conținut: titluri, carduri */
.ap-acc-head { margin-bottom: 18px; }
.ap-acc-head h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.ap-acc-head p { margin: 0; color: var(--ap-ink-muted); }
.ap-acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ap-acc-stat,
.ap-acc-help {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 14px;
}
.ap-acc-stat b { display: block; font-size: 1.35rem; line-height: 1.1; }
.ap-acc-stat small,
.ap-acc-help small { display: block; color: var(--ap-ink-muted); font-size: .8rem; }
.ap-acc-block { margin-bottom: 18px; padding: 16px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 16px; }
.ap-acc-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ap-acc-block__head h3 { margin: 0; font-size: 1.05rem; }
.ap-acc-block__head a { font-weight: 700; font-size: .88rem; }
.ap-acc-block__head small { color: var(--ap-ink-muted); }
.ap-acc-orders { display: grid; }
.ap-acc-order { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--ap-surface-alt); color: var(--ap-ink); }
.ap-acc-order:first-child { border-top: 0; }
.ap-acc-order:hover { color: var(--ap-ink); }
.ap-acc-order:hover strong { color: var(--ap-accent); }
.ap-acc-order__img {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--ap-surface-alt);
	color: var(--ap-ink-muted);
}
.ap-acc-order__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ap-acc-order__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ap-acc-order__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ap-ink-muted); }
.ap-acc-order__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
/* Cu .woocommerce-MyAccount-content și mark: woocommerce-layout.css pune fundal transparent pe orice mark din cont */
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus { padding: 2px 8px; border-radius: 999px; background: var(--ap-surface-alt); color: var(--ap-ink-muted); font-size: .72rem; font-weight: 700; }
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--processing { background: #e7f1fb; color: #1c67b3; }
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--completed { background: var(--ap-success-bg); color: var(--ap-success); }
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--on-hold,
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--pending { background: var(--ap-warning-bg); color: var(--ap-warning); }
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--cancelled,
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--failed,
.ap-wc-page .woocommerce-MyAccount-content mark.ap-ostatus--refunded { background: #fdecee; color: var(--ap-accent); }
.ap-acc-help { flex-wrap: wrap; background: var(--ap-surface-alt); border-color: transparent; }
.ap-acc-help > div { flex: 1; min-width: 160px; }
.ap-acc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 30px 20px;
	border: 1px dashed var(--ap-line-strong);
	border-radius: 16px;
	text-align: center;
	color: var(--ap-ink-muted);
}
.ap-acc-empty > .ap-icon { width: 28px; height: 28px; }
.ap-acc-empty p { margin: 0; }

/* Autentificare / cont nou */
.ap-login { display: grid; gap: 22px; }
.ap-login--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-login__card { padding: 26px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 18px; box-shadow: var(--ap-shadow-md); }
.ap-login__card--reg { background: linear-gradient(160deg, rgba(var(--ap-accent-rgb), .05), #fff 55%); }
.ap-login__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ap-login__head h2 { margin: 0; font-size: 1.35rem; }
.ap-login__head p { margin: 2px 0 0; color: var(--ap-ink-muted); font-size: .9rem; }
.ap-wc-page .ap-login form.login,
.ap-wc-page .ap-login form.register { display: block; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none; }
.ap-login .form-row { margin-bottom: 14px; }
.ap-login__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; }
.ap-login__row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; cursor: pointer; }
.ap-login__lost { font-weight: 600; font-size: .9rem; }
/* WooCommerce face butonul de autentificare float: left, iar separatorul Google se strângea lângă el */
.ap-wc-page .ap-login form .ap-btn--lg { width: 100%; float: none; margin: 0; }
.ap-gwrap { clear: both; }
.ap-login__perks { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.ap-login__perks li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.ap-login__perks .ap-icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--ap-accent); }
.ap-login__hint { margin: 0 0 12px; color: var(--ap-ink-muted); font-size: .88rem; }
.ap-login .woocommerce-privacy-policy-text { margin: 0 0 12px; }
.ap-login .woocommerce-privacy-policy-text p { margin: 0; font-size: .78rem; color: var(--ap-ink-muted); }
.ap-login .clear { display: none; }

/* Butonul „Continuă cu Google" (inc/google-login.php) */
.ap-gwrap { margin-top: 16px; }
.ap-gsep { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--ap-ink-muted); font-size: .82rem; }
.ap-gsep::before,
.ap-gsep::after { content: ""; flex: 1; height: 1px; background: var(--ap-line); }
.ap-gbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--ap-line-strong);
	border-radius: 10px;
	color: #3c4043;
	font-weight: 600;
	font-size: .96rem;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.ap-gbtn:hover { background: #f6f7f8; color: #3c4043; box-shadow: var(--ap-shadow-md); }
.ap-gbtn svg { flex-shrink: 0; }
.ap-ghint { margin: 8px 0 0; text-align: center; color: var(--ap-ink-muted); font-size: .8rem; }

/* Adrese, detalii cont */
.ap-wc-page--account .woocommerce-MyAccount-content > p:first-child { color: var(--ap-ink-muted); }
.ap-wc-page--account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ap-wc-page--account .woocommerce-Addresses::before,
.ap-wc-page--account .woocommerce-Addresses::after { display: none; }
.ap-wc-page--account .woocommerce-Addresses.col2-set .woocommerce-Address { float: none; width: auto; max-width: none; padding: 18px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 14px; }
.ap-wc-page--account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ap-wc-page--account .woocommerce-Addresses .woocommerce-Address-title::before,
.ap-wc-page--account .woocommerce-Addresses .woocommerce-Address-title::after { display: none; }
.ap-wc-page--account .woocommerce-Address-title h2 { margin: 0 0 8px; font-size: 1.15rem; }
.ap-wc-page--account .woocommerce-Address-title .edit { float: none; font-weight: 700; font-size: .88rem; }
.ap-wc-page--account .woocommerce-Address address { font-style: normal; line-height: 1.6; color: var(--ap-ink-soft); }
.ap-wc-page--account .woocommerce-EditAccountForm,
.ap-wc-page--account .woocommerce-address-fields {
	display: flex;
	flex-wrap: wrap;
	column-gap: 14px;
	padding: 20px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 16px;
}
.ap-wc-page--account .woocommerce-address-fields { display: block; }
.ap-wc-page--account .woocommerce-address-fields__field-wrapper { display: flex; flex-wrap: wrap; column-gap: 14px; }
.ap-wc-page--account .woocommerce-EditAccountForm .form-row:not(.form-row-first):not(.form-row-last) { flex: 1 1 100%; }
.ap-wc-page--account .woocommerce-EditAccountForm fieldset { width: 100%; margin: 10px 0 0; padding: 16px; border: 1px solid var(--ap-line); border-radius: 12px; }
.ap-wc-page--account .woocommerce-EditAccountForm legend { padding: 0 6px; font-weight: 700; }
.ap-wc-page--account .woocommerce-EditAccountForm em { display: block; margin-top: 4px; font-size: .8rem; color: var(--ap-ink-muted); }
.ap-wc-page--account .woocommerce-EditAccountForm > p:last-of-type,
.ap-wc-page--account .woocommerce-address-fields > p:last-child { flex: 1 1 100%; margin-top: 10px; }
.ap-wc-page--account .woocommerce-MyAccount-content mark:not(.ap-ostatus) { background: none; font-weight: 700; color: var(--ap-ink); }
.ap-wc-page--account .woocommerce-pagination--without-numbers { display: flex; justify-content: space-between; margin-top: 14px; }

/* Comenzile mele: carduri, tot cardul e link către comandă */
.ap-ocards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.ap-ocard {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 12px 14px;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ap-ocard:hover { border-color: var(--ap-accent); box-shadow: var(--ap-shadow-md); }
.ap-ocard__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ap-ocard--failed,
.ap-ocard--cancelled { opacity: .78; }
.ap-ocard__imgs { display: flex; flex-shrink: 0; }
.ap-ocard__imgs span {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-left: -12px;
	overflow: hidden;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 12px;
	box-shadow: var(--ap-shadow-md);
	color: var(--ap-ink-muted);
}
.ap-ocard__imgs span:first-child { margin-left: 0; }
.ap-ocard__imgs img { width: 100%; height: 100%; object-fit: contain; }
.ap-ocard__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ap-ocard__txt strong { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ap-ocard__txt small { color: var(--ap-ink-muted); }
.ap-ocard__txt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.ap-ocard__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; gap: 6px; }

/* Pagina comenzii */
.ap-order__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.ap-order__back { display: inline-block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.ap-order__head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 4px; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.ap-order__head h2 .ap-ostatus { font-size: .78rem; }
.ap-order__head p { margin: 0; color: var(--ap-ink-muted); }
.ap-order__total { text-align: right; white-space: nowrap; }
.ap-order__total small { display: block; color: var(--ap-ink-muted); font-size: .8rem; }
.ap-order__total b { font-size: 1.5rem; }
.ap-order__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ap-order__stopped { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: #fdecee; color: var(--ap-accent); font-weight: 700; }
.ap-order__stopped .ap-icon { width: 18px; height: 18px; }
.ap-otrack {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 20px;
	padding: 16px;
	list-style: none;
	background: var(--ap-surface);
	border: 1px solid var(--ap-line);
	border-radius: 16px;
}
.ap-otrack li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ap-otrack li::before { content: ""; position: absolute; top: 13px; right: 50%; z-index: 0; width: 100%; height: 3px; background: var(--ap-line); }
.ap-otrack li:first-child::before { display: none; }
.ap-otrack li.is-done::before { background: var(--ap-accent); }
.ap-otrack__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid var(--ap-line); border-radius: 50%; background: #fff; color: #fff; }
.ap-otrack__dot .ap-icon { width: 14px; height: 14px; stroke-width: 2.6; }
.ap-otrack li.is-done .ap-otrack__dot { border-color: var(--ap-accent); background: var(--ap-accent); }
.ap-otrack__txt { display: flex; flex-direction: column; line-height: 1.2; }
.ap-otrack__txt b { color: var(--ap-ink-muted); font-size: .88rem; }
.ap-otrack li.is-done .ap-otrack__txt b { color: var(--ap-ink); }
.ap-otrack__txt small { color: var(--ap-ink-muted); font-size: .75rem; }
.ap-order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ap-order__grid .ap-acc-block { margin-bottom: 0; }
.ap-oitem { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ap-surface-alt); }
.ap-oitem:first-of-type { border-top: 0; }
.ap-oitem__txt { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ap-oitem__txt > a,
.ap-oitem__txt > strong { color: var(--ap-ink); font-weight: 700; line-height: 1.35; }
.ap-oitem__txt > a:hover { color: var(--ap-accent); }
.ap-oitem__txt small { color: var(--ap-ink-muted); }
.ap-oitem__txt .wc-item-meta { margin: 2px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--ap-ink-muted); }
.ap-oitem__txt .wc-item-meta p { display: inline; margin: 0; }
.ap-oitem__ref { color: var(--ap-accent); font-weight: 600; }
.ap-oitem__note { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--ap-surface-alt); font-size: .85rem; }
.ap-oitem__total { white-space: nowrap; }
.ap-order__sum { position: sticky; top: 96px; }
.ap-order__sum h3,
.ap-order__addr h3,
.ap-order__notes h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; }
.ap-order__addr h3 .ap-icon { width: 18px; height: 18px; color: var(--ap-ink-muted); }
.ap-order__sum dl { margin: 0; }
.ap-order__row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ap-surface-alt); font-size: .9rem; }
.ap-order__row:first-child { border-top: 0; }
.ap-order__row dt { color: var(--ap-ink-muted); }
.ap-order__row dd { margin: 0; text-align: right; font-weight: 600; }
.ap-order__row dd small,
.ap-order__row .shipped_via { display: block; font-weight: 400; font-size: .75rem; color: var(--ap-ink-muted); }
.ap-order__row--order_total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--ap-line); font-size: 1.05rem; }
.ap-order__row--order_total dt { color: var(--ap-ink); font-weight: 800; }
.ap-order__row--order_total dd { font-weight: 800; }
.ap-order__cnote { margin: 10px 0 0; padding: 10px; border-radius: 8px; background: var(--ap-surface-alt); font-size: .85rem; }
.ap-order__addr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ap-order__addr .ap-acc-block { margin: 0; }
.ap-order__addr address { font-style: normal; line-height: 1.6; color: var(--ap-ink-soft); }
.ap-order__contact { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--ap-ink-muted); font-size: .88rem; }
.ap-order__contact .ap-icon { width: 15px; height: 15px; }
.ap-order__company:empty { display: none; }
.ap-order__company .ap-order-company { margin: 16px 0 0 !important; padding: 16px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 16px; }
.ap-order__company .ap-order-company h2 { font-size: 1.05rem; }
.ap-order__notes { margin-top: 16px; }
.ap-order__notes ol { margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 2px solid var(--ap-line); }
.ap-order__notes li { position: relative; padding: 0 0 12px 12px; }
.ap-order__notes li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ap-accent); box-shadow: 0 0 0 3px #fff; }
.ap-order__notes small { color: var(--ap-ink-muted); }
.ap-order__notes p { margin: 2px 0 0; }

@media (max-width: 1100px) {
	.ap-wc-page--account .woocommerce { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 860px) {
	.ap-wc-page--account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	/* Telefon: meniul rămâne listă verticală */
	.ap-acc-nav { position: static; padding: 8px; }
	.ap-login--two,
	.ap-wc-page--account .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
	/* Cifrele rămân pe un rând, compacte */
	.ap-acc-stats { gap: 8px; }
	.ap-acc-stat { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
	.ap-acc-stat .ap-acc-ic { display: none; }
	.ap-acc-stat b { font-size: 1.05rem; }
}
@media (max-width: 480px) {
	.ap-login__card { padding: 18px; }
	.ap-order__head { flex-direction: column; align-items: flex-start; }
	.ap-order__total { text-align: left; }
	.ap-order__grid,
	.ap-order__addr { grid-template-columns: minmax(0, 1fr); }
	.ap-order__sum { position: static; }
	.ap-otrack { padding: 12px 6px; }
	.ap-otrack__txt b { font-size: .75rem; }
	.ap-ocard { flex-wrap: wrap; }
	.ap-ocard__actions { flex-basis: 100%; justify-content: flex-start; }
	.ap-ocard__txt > span,
	.ap-acc-order__txt small { white-space: normal; }
}
