/* Țeavă cu cornete – comandă rapidă (stil Temu) */
:root { --tcc-orange: #fb7701; --tcc-orange-2: #ff8a1f; --tcc-ok: #0a8f3f; }

/* Butoane produs */
body.tcc div.product form.cart { flex-wrap: wrap; }
body.tcc div.product form.cart .single_add_to_cart_button { flex: 1 1 180px; }
body.tcc div.product form.cart .single_add_to_cart_button:not(.tcc-buynow) {
	background: transparent !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6) !important;
}
body.tcc div.product form.cart .single_add_to_cart_button:not(.tcc-buynow):hover { background: rgba(255, 255, 255, .08) !important; }
body.tcc div.product form.cart .tcc-buynow,
body.tcc .tcc-buybar__buy,
body.tcc .tcc-paybar__btn,
body.tcc #place_order {
	background: var(--tcc-orange) !important;
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(251, 119, 1, .28) !important;
}
body.tcc div.product form.cart .tcc-buynow:hover,
body.tcc #place_order:hover { background: var(--tcc-orange-2) !important; }
body.tcc div.product form.cart .single_add_to_cart_button.loading { opacity: .6; }
body.tcc .woocommerce-variation-add-to-cart .tcc-buynow { flex: 1 1 180px; padding: 18px 30px !important; font-size: 18px !important; }

/* Bară fixă pe produs */
.tcc-buybar, .tcc-paybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: #161616; border-top: 1px solid #2e2e2e;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
	font-family: var(--tcc-body);
}
.tcc-buybar[hidden] { display: none; }
.tcc-buybar__price { flex: 0 0 auto; display: flex; flex-direction: column; line-height: 1.1; }
.tcc-buybar__price .amount { color: var(--tcc-yellow); font-family: var(--tcc-head); font-size: 22px; font-weight: 600; }
.tcc-buybar__price del { display: none; }
.tcc-buybar__price small, .tcc-paybar__total small { color: var(--tcc-muted); font-size: 12px; margin-top: 3px; }
.tcc-buybar button, .tcc-paybar button {
	flex: 1; min-height: 48px; border-radius: 999px; border: 0; padding: 0 12px;
	font: 700 15px/1.1 var(--tcc-body); cursor: pointer; white-space: nowrap;
}
.tcc-buybar__add { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }

/* Toast „Adăugat în coș” */
.tcc-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9995;
	width: min(92vw, 420px); background: #fff; color: #111; border-radius: 14px;
	padding: 14px 40px 14px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	display: flex; flex-direction: column; gap: 10px; font: 500 15px/1.35 var(--tcc-body);
	animation: tcc-up .25s ease;
}
.tcc-toast[hidden] { display: none; }
body.tcc-has-bar .tcc-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
.tcc-toast__ok { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tcc-toast__ok::before {
	content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px;
	border-radius: 50%; background: var(--tcc-ok); color: #fff; font-size: 13px;
}
.tcc-toast.is-error { background: #fff3f0; color: #8a1c00; }
a.tcc-toast__go {
	display: block; text-align: center; background: var(--tcc-orange); color: #fff !important;
	border-radius: 999px; padding: 12px; font-weight: 700; text-decoration: none !important;
}
.tcc-toast__x {
	position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #666;
	font-size: 24px; line-height: 1; padding: 4px; cursor: pointer;
}
@keyframes tcc-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Checkout */
body.tcc.woocommerce-checkout .page-header,
body.tcc.woocommerce-checkout .entry-header .entry-title { font-size: 30px; }
.tcc-co-strip {
	list-style: none; margin: 0 0 20px; padding: 12px 14px; border-radius: 12px;
	background: rgba(10, 143, 63, .12); border: 1px solid rgba(10, 143, 63, .35);
	display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: #7fe0a6;
}
.tcc-co-strip li::before { content: "✓ "; }
.tcc-co-title, body.tcc #order_review_heading {
	font-family: var(--tcc-head); font-size: 22px !important; margin: 0 0 12px !important; color: #fff;
}
body.tcc .woocommerce-billing-fields > h3 { display: none; }
body.tcc form.checkout #customer_details {
	box-sizing: border-box; width: 100% !important; max-width: 100%;
	background: var(--tcc-card); border: 1px solid var(--tcc-line); border-radius: var(--tcc-radius); padding: 18px 16px 8px;
}
body.tcc form.checkout #customer_details .col-1, body.tcc form.checkout #customer_details .col-2 { width: 100% !important; float: none !important; }
body.tcc form.checkout #order_review_heading { margin-top: 26px !important; }
body.tcc form.checkout .form-row { margin-bottom: 12px; }
body.tcc form.checkout .form-row label { font-size: 14px; color: var(--tcc-muted); margin-bottom: 4px; }
body.tcc form.checkout input.input-text, body.tcc form.checkout select, body.tcc form.checkout .select2-selection {
	min-height: 48px; font-size: 16px !important; width: 100%;
}
body.tcc #billing_country_field { display: none !important; }
body.tcc .woocommerce-account-fields, body.tcc .woocommerce-additional-fields { margin-top: 6px; }
body.tcc .woocommerce-additional-fields > h3 { font-size: 16px !important; color: var(--tcc-muted); }
body.tcc form.checkout textarea { min-height: 70px; }

/* Rezumat comandă */
body.tcc .woocommerce-checkout-review-order-table thead { display: none; }
body.tcc .woocommerce-checkout-review-order-table td, body.tcc .woocommerce-checkout-review-order-table th { padding: 12px 14px !important; }
.tcc-co-item { display: flex; align-items: center; gap: 12px; }
.tcc-co-item img { width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 10px; flex: 0 0 64px; background: #fff; }
.tcc-co-item__name { font-size: 14px; line-height: 1.35; }
body.tcc .woocommerce-checkout-review-order-table .order-total .amount { color: var(--tcc-yellow); font-size: 22px; font-family: var(--tcc-head); }

/* Metode de plată */
body.tcc #payment { padding: 6px 0 !important; margin-top: 18px; }
body.tcc #payment ul.payment_methods { border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.tcc #payment ul.payment_methods li.wc_payment_method {
	position: relative; list-style: none; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--tcc-line);
}
body.tcc #payment ul.payment_methods li.wc_payment_method:last-child { border-bottom: 0; }
body.tcc #payment ul.payment_methods li > input.input-radio {
	position: absolute; left: 16px; top: 22px; width: 22px; height: 22px; margin: 0; accent-color: var(--tcc-orange);
}
body.tcc #payment ul.payment_methods li > label {
	display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px;
	padding: 18px 16px 18px 52px !important; margin: 0 !important; font-weight: 600; font-size: 16px; color: #fff; cursor: pointer;
}
body.tcc #payment li.payment_method_cod > label::after {
	content: "FĂRĂ COMISION"; background: var(--tcc-ok); color: #fff; font-size: 11px; font-weight: 800;
	padding: 3px 7px; border-radius: 4px; letter-spacing: .02em;
}
body.tcc #payment li.payment_method_euplatesc > label::after {
	content: "VISA · Mastercard"; color: #1a1f71; background: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 4px;
}
body.tcc #payment li.payment_method_euplatesc > label img { display: none; }
body.tcc #payment li.payment_method_stripe { display: none !important; }
body.tcc #wc-stripe-express-checkout-element { margin: 0 0 18px; }
body.tcc div.product #wc-stripe-express-checkout-element { margin: 12px 0 0; flex: 1 1 100%; }
body.tcc #wc-stripe-express-checkout-button-separator { color: var(--tcc-muted); font-size: 13px; text-align: center; margin: 8px 0 14px; }
body.tcc #payment div.payment_box { margin: 0 16px 14px 52px !important; padding: 10px 12px !important; font-size: 14px; }
body.tcc #payment li.payment_method_cod div.payment_box { display: none !important; }
body.tcc #payment .place-order { padding: 14px 16px 8px !important; margin: 0 !important; }
.tcc-co-terms { font-size: 13px; color: var(--tcc-muted); margin: 0 0 12px; }
.tcc-co-terms a { color: var(--tcc-muted); text-decoration: underline; }
body.tcc #place_order { width: 100%; padding: 18px !important; font-size: 18px !important; }

/* Bară fixă checkout */
.tcc-paybar__total { display: flex; flex-direction: column; line-height: 1.1; flex: 0 0 auto; }
.tcc-paybar__total .amount { color: var(--tcc-yellow); font-family: var(--tcc-head); font-size: 24px; font-weight: 600; }
.tcc-paybar__total small { order: -1; margin: 0 0 2px; }
.tcc-paybar__btn { color: #fff; }

@media (min-width: 769px) {
	.tcc-buybar, .tcc-paybar { display: none !important; }
}
@media (max-width: 768px) {
	body.tcc-has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	body.tcc-has-bar .lalita-back-to-top { display: none !important; }
	body.tcc div.product form.cart { gap: 10px; }
	body.tcc div.product form.cart .quantity { flex: 0 0 72px; }
	body.tcc div.product form.cart .single_add_to_cart_button { flex: 1 1 40%; padding: 16px 10px !important; font-size: 16px !important; }
	body.tcc div.product form.cart .tcc-buynow { flex: 1 1 100%; order: 5; }
	body.tcc.woocommerce-checkout .site-content { padding: 18px 14px 40px; }
	body.tcc form.checkout #customer_details { padding: 14px 12px 4px; }
	body.tcc form.checkout .form-row-first, body.tcc form.checkout .form-row-last { width: 100% !important; float: none !important; }
	body.tcc.tcc-has-bar #payment .place-order #place_order { display: none !important; }
}
