/**
 * CSS migrado do "CSS adicional" do Customizer
 *
 * Origem: Aparência > Personalizar > CSS adicional (textarea livre).
 * Migrado em 2026-05-08 para versionamento via git.
 *
 * Descartado durante a migração (regras órfãs):
 *   - #wc-shipping-sim*  → plugin Simulador de Frete (Luiz Bills) removido
 *   - .woo-better-content-block → plugin não identificado, removido
 *   - .fc-*  → plugin FluidCheckout (não usamos, usamos CheckoutWC)
 *   - background-color: #fffae (cor inválida — typo)
 *   - color: var(--color-primary) important (faltava `!`)
 *
 * @package briluz-shoptimizer
 * @since   1.2.0
 */

/* =============================================================================
   MY ACCOUNT — Address form + entry layout
   ============================================================================= */

.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
	margin-top: 4rem;
}

.entry-content {
	margin: 5rem 0;
}

.entry-title {
	display: none;
}

nav.woocommerce-breadcrumb {
	display: none;
}

form.woocommerce-ResetPassword.lost_reset_password {
	margin: 4rem 15rem;
}

/* =============================================================================
   LOGIN / REGISTER — formulário customer_login
   ============================================================================= */

a.woocommerce-Button.button,
button.woocommerce-Button.button {
	width: 250px;
}

.u-column1.col-1,
.u-column2.col-2 {
	height: 470px;
}

/* Centralização e Container */
.woocommerce-account .entry-content > .woocommerce {
	display: flex;
	justify-content: space-between;
}

.woocommerce #customer_login {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	max-width: 100%;
	margin: 40px auto;
	padding: 0 20px;
	align-items: flex-start;
}

/* Colunas de Login e Registro */
.woocommerce .u-column1,
.woocommerce .u-column2 {
	flex: 1;
	min-width: 320px;
	background: var(--color-bg);
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border: 1px solid #f0f0f0;
}

/* Títulos */
.woocommerce #customer_login h2 {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--color-text-strong);
	margin-bottom: 30px;
	text-align: center;
	position: relative;
}

.woocommerce #customer_login h2::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: #ffde00;
	margin: 10px auto 0;
	border-radius: 2px;
}

/* Campos */
.woocommerce-form-row {
	margin-bottom: 20px !important;
}

.woocommerce-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #444;
	font-size: 0.9rem;
}

.woocommerce-Input--text {
	width: 100% !important;
	padding: 14px 16px !important;
	border: 1px solid #e2e2e2 !important;
	border-radius: 10px !important;
	background-color: #fdfdfd !important;
	transition: all 0.3s ease !important;
	font-size: 1rem;
}

.woocommerce-Input--text:focus {
	border-color: #ffde00 !important;
	background-color: var(--color-bg) !important;
	outline: none;
	box-shadow: 0 0 0 4px rgba(255, 222, 0, 0.1) !important;
}

/* Checkbox "Lembre-me" */
.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	font-weight: 500 !important;
	color: var(--color-text-medium);
	cursor: pointer;
}

.woocommerce-form__input-checkbox {
	margin-right: 10px !important;
	width: 18px;
	height: 18px;
}

/* Botões — cores DELEGADAS ao Customizer do Shoptimizer (Native First).
   Aqui ficam apenas propriedades estruturais. */
.woocommerce .button {
	width: 100%;
	border-radius: 10px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease !important;
	cursor: pointer;
	margin-top: 10px;
}

/* Links */
.lost_password,
.woocommerce-privacy-policy-text {
	margin-top: 15px;
	text-align: center;
	font-size: 0.85rem;
}

.lost_password a,
.woocommerce-privacy-policy-link {
	color: var(--color-text-medium);
	text-decoration: underline;
	transition: color 0.2s;
}

.lost_password a:hover {
	color: #ffde00;
}

.woocommerce-privacy-policy-text p {
	color: var(--color-text-soft);
	line-height: 1.5;
	margin-bottom: 20px;
}

.u-column2 p:not(.form-row) {
	color: #777;
	font-size: 0.9rem;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.woocommerce #customer_login {
		gap: 30px;
		flex-direction: column;
	}

	.woocommerce .u-column1,
	.woocommerce .u-column2 {
		width: 100%;
		padding: 30px 20px;
	}
}

/* =============================================================================
   BANNER — single product / page sem breadcrumb
   ============================================================================= */

body.single-product:has(:not(.woocommerce-breadcrumb)) .site-main,
body:has(:not(.woocommerce-breadcrumb)) .site-content {
	padding: 0;
}

/* CART-DISABLED-START (toggle) */
@supports not (display: block) {

/* =============================================================================
   CART (Gutenberg blocks) — wc-block-cart-items + totals
   ============================================================================= */

a.wc-block-components-product-name {
	font-size: 15px !important;
	font-weight: 600;
	margin-top: 6px;
}

span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value {
	font-size: 17px;
	font-weight: bold;
}

input.wc-block-components-quantity-selector__input {
	font-size: 15px !important;
	font-weight: bold;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg {
	fill: #d06969 !important;
	margin-left: 1rem;
}

th.wc-block-cart-items__header-image,
th.wc-block-cart-items__header-total {
	font-weight: bold !important;
}

h2.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title {
	font-weight: bold;
}

h2.has-text-align-center.wp-block-post-title.has-medium-font-size {
	font-size: 15px !important;
	font-weight: 500;
}

button.wp-block-button__link.wp-element-button.wc-block-components-product-button__button.add_to_cart_button.ajax_add_to_cart.product_type_simple {
	padding: 10px;
	font-size: 15px !important;
	background: var(--color-primary);
}

button.wp-block-button__link.wp-element-button.wc-block-components-product-button__button.add_to_cart_button.ajax_add_to_cart.product_type_simple:hover {
	color: #ef9317;
}

.wc-block-product {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 10px;
}

.wc-block-components-product-button {
	margin-top: auto;
}

.wp-block-post-title {
	min-height: 3.5em;
}

span.woocommerce-Price-amount.amount {
	font-weight: bold;
}

span.wc-block-components-totals-item__label,
.wc-block-components-panel__button,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 17px !important;
	font-weight: 900 !important;
}

span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-totals-item__value {
	font-size: 15px;
	font-weight: 500 !important;
}

span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-totals-footer-item-tax-value {
	font-size: 17px;
	font-weight: 900;
}

}
/* CART-DISABLED-END */

/* =============================================================================
   PRODUCT LOOP — min-height do título
   ============================================================================= */

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	min-height: 50px;
}
