/*
Theme Name: EVERWhite Child
Theme URI: https://everwhiteboards.com
Description: Tema hijo mínimo de Hello Elementor para EVERWhite. Solo contiene estilos base; toda la lógica de negocio vive en el plugin everwhite-core.
Author: All In Advertising
Author URI: https://allinadvertising.com
Template: hello-elementor
Version: 1.4.4
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: everwhite-child
*/

/* Los estilos base migrados del Customizer de Lanex y del "Extra CSS" de WPCode
   se cargan desde assets/base.css (generado en la fase 3 por 31-child-theme-css.php). */

/* Formularios de Everase (Formidable 44 «request-quote» y 43 «tryit»).
   En producción son Gravity Forms con campos cuadrados y el botón verde de la marca:
   #2da284, #278e74 al pasar el ratón, texto blanco en mayúsculas (medido el 17-09-2026). */
#frm_form_43_container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
#frm_form_43_container select,
#frm_form_43_container textarea,
#frm_form_44_container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
#frm_form_44_container select,
#frm_form_44_container textarea {
	border-radius: 0;
}
#frm_form_43_container .frm_submit button,
#frm_form_43_container .frm_submit input[type="submit"],
#frm_form_44_container .frm_submit button,
#frm_form_44_container .frm_submit input[type="submit"] {
	background: #2da284;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	height: auto;
	line-height: 1.4;
	padding: 16px 22px;
	text-transform: uppercase;
}
#frm_form_43_container .frm_submit button:hover,
#frm_form_43_container .frm_submit button:focus,
#frm_form_43_container .frm_submit input[type="submit"]:hover,
#frm_form_43_container .frm_submit input[type="submit"]:focus,
#frm_form_44_container .frm_submit button:hover,
#frm_form_44_container .frm_submit button:focus,
#frm_form_44_container .frm_submit input[type="submit"]:hover,
#frm_form_44_container .frm_submit input[type="submit"]:focus {
	background: #278e74;
	color: #fff;
}

/* Entradas del blog con la barra «Blog Widgets» (single.php de producción: 9 + 3 columnas; medido el 21-09-2026). */
.ew-blog-post { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.ew-blog-post__layout { display: flex; gap: 0; align-items: flex-start; }
.ew-blog-post__content { flex: 0 0 75%; max-width: 75%; }
.ew-blog-post__content h1.entry-title { margin: 22px 0 11px; font-size: 26px; color: #107392; }
.ew-blog-post__sidebar { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.blog-widgets .widget h2 { margin: 22px 0 11px; font-size: 22px; font-weight: 600; line-height: 1.1; color: #23527c; }
.blog-widgets .widget_recent_entries ul { display: flex; flex-direction: column; margin: 0 0 25px; padding: 0; list-style: none; }
.blog-widgets .widget_recent_entries li { display: flex; flex-direction: column-reverse; margin: 0; padding: 0; }
.blog-widgets .widget_recent_entries a { font-size: 14px; font-weight: 600; line-height: 20px; color: #008dba; }
.blog-widgets .widget_recent_entries .post-date { display: block; margin-bottom: 10px; font-size: 13px; color: #a3a3a3; }
.blog-widgets hr { margin: 22px 0; border: 0; border-top: 2px solid #808080; }
.blog-widgets .wp-block-categories__label { display: block; margin: 0 0 5px; font-size: 16px; font-weight: 700; line-height: 1.42857143; color: #333; }
@media (max-width: 991px) {
	.ew-blog-post__layout { display: block; }
	.ew-blog-post__content, .ew-blog-post__sidebar { max-width: 100%; }
	.ew-blog-post__sidebar { display: none; } /* producción: hidden-sm hidden-xs */
}

/* Archivos del blog (template-parts/archive.php): archive.php de Lanex, content-area col-lg-9 + blog-widgets
   col-lg-3 sin hidden-*: por debajo de 1200px la barra se apila debajo y sigue visible (medido el 28-09-2026). */
@media (min-width: 768px) and (max-width: 991px) {
	body:not([class*="elementor-page-"]) .site-main.ew-blog-archive { max-width: 750px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
	body:not([class*="elementor-page-"]) .site-main.ew-blog-archive { max-width: 970px; }
}
@media (max-width: 1199px) {
	.ew-blog-archive .ew-blog-post__layout { display: block; }
	.ew-blog-archive .ew-blog-post__content,
	.ew-blog-archive .ew-blog-post__sidebar { max-width: 100%; }
	.ew-blog-archive .ew-blog-post__sidebar { display: block; }
}

/* Variaciones de producto en móvil, una debajo de otra como en producción. Allí el @media del Customizer va
   después del snippet WPCode 113990 y gana; base-late.css (que se reimprime tras este archivo) los tiene al
   revés. body.woocommerce da la especificidad necesaria. Revisión de la clienta del 28-09-2026, punto 10. */
@media (max-width: 640px) {
	body.woocommerce div.product form.cart table.variations {
		grid-template-columns: 1fr !important;
	}
}

/* Botón «Quick Links» de Division 10 (bloque de botón sin enlace): hello-reset pone a:not([href]) en color
   heredado y el texto quedaba gris sobre azul; en producción es blanco. */
.wp-block-button a.wp-block-button__link:not([href]):not(.has-text-color) { color: #fff; }

/* Request a Quote (Formidable 37, campo 924): imagen completa en cada opción. Formidable 6.35 ya no deja el
   hueco que en producción evitaba el recorte superior de object-fit: cover. */
#frm_form_37_container .frm_field_924_container .frm_image_option_container img { object-fit: contain; }

/* Páginas de industrias en móvil: margen lateral para que el texto no toque el borde (petición de la clienta,
   punto 13; producción tampoco lo tiene). */
@media (max-width: 767px) {
	body.page:not([class*="elementor-page-"]) .site-main { padding-inline: 15px; }
	body.page:not([class*="elementor-page-"]) .site-main .page-header .entry-title { padding-inline: 0; }
	/* Contenedor e927081: el mismo diseño se copió en Manufacturing, Wallcovering y siete páginas de Everase
	   (barrido del 29-09-2026), todas con 0 de relleno en móvil. El CSS de cada página lo fija con
	   «.elementor-NNN .elementor-element.elementor-element-e927081» (0,3,0): hace falta más peso. */
	body [data-elementor-type] .e-con.elementor-element.elementor-element-e927081 { --padding-left: 15px; --padding-right: 15px; }
	body [data-elementor-type] .e-con.elementor-element.elementor-element-3ea4c6d { --padding-left: 15px; --padding-right: 15px; }
	.ew-custom-shop #custom-shop .container { padding-left: 15px; padding-right: 15px; }
}

/* Botones de envío de Formidable con texto largo («I'm Finished Choosing My Graphic», Custom Shop paso 3): en móvil
   se cortaban por la derecha (white-space: pre); ahora parten línea dentro del ancho del formulario. */
@media (max-width: 767px) {
	.frm_forms .frm_submit input[type="submit"],
	.frm_forms .frm_submit button { white-space: normal; max-width: 100%; height: auto; }
}
