/**
 * CR Finalizar Compra - estilos del carrito y del checkout.
 */

/* --- Calculadora de envio: pais, region y codigo postal van fijos --------- */
#calc_shipping_country_field,
#calc_shipping_state_field,
#calc_shipping_postcode_field {
	display: none !important;
}

.woocommerce-shipping-destination,
.xoo-wsc-shipping-destination {
	display: none !important;
}

/* --- Direccion de envio distinta a la de facturacion ---------------------- */
#ship-to-different-address {
	display: block !important;
	margin-bottom: 10px;
}

#shipping_first_name_field,
#shipping_last_name_field,
#shipping_company_field,
#shipping_country_field,
#shipping_state_field,
#shipping_postcode_field,
#shipping_address_2_field {
	display: none !important;
}

/* --- Campos que dejan de ser obligatorios --------------------------------- */
/* El tema pinta su asterisco al renderizar. Si el campo deja de ser
   obligatorio (por ejemplo al pasar de despacho a retiro en tienda) lo
   ocultamos, para no pedirle al cliente algo que ya no se le exige. */
.crfc-sin-asterisco > label .required,
.crfc-sin-asterisco > label abbr.required {
	display: none !important;
}

/* --- Selector de transporte para envio a region --------------------------- */
.crfc-transporte {
	display: none;
	margin: 10px 0 16px;
	padding: 12px 14px;
	background: #f8f9fa;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
}

.crfc-transporte.is-visible {
	display: block;
}

.crfc-transporte__label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.crfc-transporte__select {
	width: 100%;
	max-width: 100%;
	padding: 8px;
	border-radius: 4px;
	border: 1px solid #ccc;
	font-size: 14px;
}

.crfc-transporte__hint {
	font-size: 12px;
	color: #666;
	margin-top: 6px;
}

/* --- Despacho STGO solo en la Region Metropolitana ------------------------ */
.crfc-comuna-aviso {
	display: block;
	margin-top: 6px;
	padding: 8px 10px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #7a3b00;
	background: #fff6e5;
	border: 1px solid #f5c78a;
	border-radius: 6px;
}

.crfc-entrega__aviso {
	margin: 12px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #7a3b00;
	background: #fff6e5;
	border: 1px solid #f5c78a;
	border-radius: 8px;
}

/* --- Barra de estado al enviar el pedido ---------------------------------- */
#crfc-status-bar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	background: #1c3f94;
	color: #fff;
	text-align: center;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, .25 );
}

#crfc-status-bar.is-visible {
	display: block;
}

#crfc-status-bar.is-error {
	background: #b32d2e;
}

/* --- Carrito flotante: el panel de envio se abre como hoja inferior ------- */
body.xoo-wsc-slider-active .xoo-wsc-slider {
	top: auto !important;
	bottom: 0 !important;
	height: auto !important;
	max-height: 78vh !important;
	overflow-y: auto !important;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	box-shadow: 0 -4px 18px rgba( 0, 0, 0, .18 );
}

/* --- 1.14.0: Condicion de entrega en el carrito --------------------------- */
.crfc-carro {
	margin: 12px 0 0;
	text-align: left;
}

.crfc-carro__fila {
	margin: 0 0 10px;
}

.crfc-carro__fila label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.crfc-carro__fila input {
	width: 100%;
	max-width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.crfc-carro__region {
	margin: 0 0 10px;
	font-size: 12.5px;
	color: #555;
}

.crfc-carro__aviso {
	margin: 0 0 10px;
	padding: 8px 10px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #7a3b00;
	background: #fff6e5;
	border: 1px solid #f5c78a;
	border-radius: 6px;
}

.crfc-carro__calcular {
	width: 100%;
	margin: 0 0 4px;
}

.crfc-carro .crfc-despacho-dias {
	margin: 10px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.5;
	background: #f4f8ff;
	border: 1px solid #cfe0fa;
	border-radius: 8px;
}

.crfc-carro .crfc-despacho-dias__fecha {
	display: block;
	margin-top: 4px;
}

.crfc-carro .crfc-despacho-dias__feriado {
	color: #7a3b00;
}

.crfc-carro .crfc-lincoln-aviso {
	margin: 0 0 10px;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #7a3b00;
	background: #fff6e5;
	border: 1px solid #f5c78a;
	border-radius: 8px;
}

.crfc-carro .crfc-lincoln-aviso a {
	font-weight: 700;
	text-decoration: underline;
}

/* --- 1.17.0: envio corto en el carrito flotante --------------------------- */
/* "Enviar a: ..." y la calculadora nativa: los reemplaza el panel corto. */
.xoo-wsc-markup .xoo-wsc-shipping-destination,
.xoo-wsc-markup .woocommerce-shipping-calculator {
	display: none !important;
}

.crfc-flot {
	margin: 8px 0 0;
}

.crfc-flot__input,
.crfc-flot__transporte {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 6px;
	padding: 7px 9px;
	font-size: 13px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
}

.crfc-flot__calcular {
	width: 100%;
	margin: 0 0 6px;
	padding: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #0f3a7d;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.crfc-flot__linea,
.crfc-flot__aviso {
	margin: 0 0 6px;
	padding: 6px 9px;
	font-size: 12px;
	line-height: 1.4;
	border-radius: 6px;
}

.crfc-flot__linea {
	color: #475569;
	background: #f6f9fc;
	border: 1px solid #dbe4f0;
}

.crfc-flot__aviso {
	color: #7a3b00;
	background: #fff6e5;
	border: 1px solid #f5c78a;
}
