/* =========================================================
   Páginas especiales a ancho completo en teléfonos
   =========================================================
   Igualamos la estructura móvil de las herramientas y páginas
   interactivas con el cuerpo de las entradas. GeneratePress puede
   conservar rellenos y márgenes en varios contenedores anidados;
   aquí se retiran únicamente en las páginas reconstruidas por CTejidas.
*/

@media (max-width: 768px) {
	body.ctejidas-yarn-calculator-page,
	body.ctejidas-price-calculator-page,
	body.ctejidas-size-calculator-page,
	body.ctejidas-stitch-dictionary-page,
	body.ctejidas-weaver-directory-page,
	body.ctejidas-directory-page,
	body.ctejidas-gallery-page,
	body.ctejidas-learning-hub-page,
	body.ctejidas-tools-hub-page,
	body.ctejidas-crochet-course-page,
	body.ctejidas-subscription-page {
		max-width: 100%;
		overflow-x: hidden;
	}

	body.ctejidas-yarn-calculator-page #page,
	body.ctejidas-yarn-calculator-page .site,
	body.ctejidas-yarn-calculator-page #content,
	body.ctejidas-yarn-calculator-page .site-content,
	body.ctejidas-yarn-calculator-page .grid-container,
	body.ctejidas-yarn-calculator-page #primary,
	body.ctejidas-yarn-calculator-page .content-area,
	body.ctejidas-yarn-calculator-page #main,
	body.ctejidas-yarn-calculator-page .site-main,
	body.ctejidas-yarn-calculator-page #main > article,
	body.ctejidas-yarn-calculator-page article.page,
	body.ctejidas-yarn-calculator-page .inside-article,
	body.ctejidas-yarn-calculator-page .entry-content,
	body.ctejidas-price-calculator-page #page,
	body.ctejidas-price-calculator-page .site,
	body.ctejidas-price-calculator-page #content,
	body.ctejidas-price-calculator-page .site-content,
	body.ctejidas-price-calculator-page .grid-container,
	body.ctejidas-price-calculator-page #primary,
	body.ctejidas-price-calculator-page .content-area,
	body.ctejidas-price-calculator-page #main,
	body.ctejidas-price-calculator-page .site-main,
	body.ctejidas-price-calculator-page #main > article,
	body.ctejidas-price-calculator-page article.page,
	body.ctejidas-price-calculator-page .inside-article,
	body.ctejidas-price-calculator-page .entry-content,
	body.ctejidas-size-calculator-page #page,
	body.ctejidas-size-calculator-page .site,
	body.ctejidas-size-calculator-page #content,
	body.ctejidas-size-calculator-page .site-content,
	body.ctejidas-size-calculator-page .grid-container,
	body.ctejidas-size-calculator-page #primary,
	body.ctejidas-size-calculator-page .content-area,
	body.ctejidas-size-calculator-page #main,
	body.ctejidas-size-calculator-page .site-main,
	body.ctejidas-size-calculator-page #main > article,
	body.ctejidas-size-calculator-page article.page,
	body.ctejidas-size-calculator-page .inside-article,
	body.ctejidas-size-calculator-page .entry-content,
	body.ctejidas-stitch-dictionary-page #page,
	body.ctejidas-stitch-dictionary-page .site,
	body.ctejidas-stitch-dictionary-page #content,
	body.ctejidas-stitch-dictionary-page .site-content,
	body.ctejidas-stitch-dictionary-page .grid-container,
	body.ctejidas-stitch-dictionary-page #primary,
	body.ctejidas-stitch-dictionary-page .content-area,
	body.ctejidas-stitch-dictionary-page #main,
	body.ctejidas-stitch-dictionary-page .site-main,
	body.ctejidas-stitch-dictionary-page #main > article,
	body.ctejidas-stitch-dictionary-page article.page,
	body.ctejidas-stitch-dictionary-page .inside-article,
	body.ctejidas-stitch-dictionary-page .entry-content,
	body.ctejidas-weaver-directory-page #page,
	body.ctejidas-weaver-directory-page .site,
	body.ctejidas-weaver-directory-page #content,
	body.ctejidas-weaver-directory-page .site-content,
	body.ctejidas-weaver-directory-page .grid-container,
	body.ctejidas-weaver-directory-page #primary,
	body.ctejidas-weaver-directory-page .content-area,
	body.ctejidas-weaver-directory-page #main,
	body.ctejidas-weaver-directory-page .site-main,
	body.ctejidas-weaver-directory-page #main > article,
	body.ctejidas-weaver-directory-page article.page,
	body.ctejidas-weaver-directory-page .inside-article,
	body.ctejidas-weaver-directory-page .entry-content,
	body.ctejidas-directory-page #page,
	body.ctejidas-directory-page .site,
	body.ctejidas-directory-page #content,
	body.ctejidas-directory-page .site-content,
	body.ctejidas-directory-page .grid-container,
	body.ctejidas-directory-page #primary,
	body.ctejidas-directory-page .content-area,
	body.ctejidas-directory-page #main,
	body.ctejidas-directory-page .site-main,
	body.ctejidas-directory-page #main > article,
	body.ctejidas-directory-page article.page,
	body.ctejidas-directory-page .inside-article,
	body.ctejidas-directory-page .entry-content,
	body.ctejidas-gallery-page #page,
	body.ctejidas-gallery-page .site,
	body.ctejidas-gallery-page #content,
	body.ctejidas-gallery-page .site-content,
	body.ctejidas-gallery-page .grid-container,
	body.ctejidas-gallery-page #primary,
	body.ctejidas-gallery-page .content-area,
	body.ctejidas-gallery-page #main,
	body.ctejidas-gallery-page .site-main,
	body.ctejidas-gallery-page #main > article,
	body.ctejidas-gallery-page article.page,
	body.ctejidas-gallery-page .inside-article,
	body.ctejidas-gallery-page .entry-content,
	body.ctejidas-learning-hub-page #page,
	body.ctejidas-learning-hub-page .site,
	body.ctejidas-learning-hub-page #content,
	body.ctejidas-learning-hub-page .site-content,
	body.ctejidas-learning-hub-page .grid-container,
	body.ctejidas-learning-hub-page #primary,
	body.ctejidas-learning-hub-page .content-area,
	body.ctejidas-learning-hub-page #main,
	body.ctejidas-learning-hub-page .site-main,
	body.ctejidas-learning-hub-page #main > article,
	body.ctejidas-learning-hub-page article.page,
	body.ctejidas-learning-hub-page .inside-article,
	body.ctejidas-learning-hub-page .entry-content,
	body.ctejidas-tools-hub-page #page,
	body.ctejidas-tools-hub-page .site,
	body.ctejidas-tools-hub-page #content,
	body.ctejidas-tools-hub-page .site-content,
	body.ctejidas-tools-hub-page .grid-container,
	body.ctejidas-tools-hub-page #primary,
	body.ctejidas-tools-hub-page .content-area,
	body.ctejidas-tools-hub-page #main,
	body.ctejidas-tools-hub-page .site-main,
	body.ctejidas-tools-hub-page #main > article,
	body.ctejidas-tools-hub-page article.page,
	body.ctejidas-tools-hub-page .inside-article,
	body.ctejidas-tools-hub-page .entry-content,
	body.ctejidas-crochet-course-page #page,
	body.ctejidas-crochet-course-page .site,
	body.ctejidas-crochet-course-page #content,
	body.ctejidas-crochet-course-page .site-content,
	body.ctejidas-crochet-course-page .grid-container,
	body.ctejidas-crochet-course-page #primary,
	body.ctejidas-crochet-course-page .content-area,
	body.ctejidas-crochet-course-page #main,
	body.ctejidas-crochet-course-page .site-main,
	body.ctejidas-crochet-course-page #main > article,
	body.ctejidas-crochet-course-page article.page,
	body.ctejidas-crochet-course-page .inside-article,
	body.ctejidas-crochet-course-page .entry-content,
	body.ctejidas-subscription-page #page,
	body.ctejidas-subscription-page .site,
	body.ctejidas-subscription-page #content,
	body.ctejidas-subscription-page .site-content,
	body.ctejidas-subscription-page .grid-container,
	body.ctejidas-subscription-page #primary,
	body.ctejidas-subscription-page .content-area,
	body.ctejidas-subscription-page #main,
	body.ctejidas-subscription-page .site-main,
	body.ctejidas-subscription-page #main > article,
	body.ctejidas-subscription-page article.page,
	body.ctejidas-subscription-page .inside-article,
	body.ctejidas-subscription-page .entry-content {
		box-sizing: border-box !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: none !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	body.ctejidas-yarn-calculator-page .site-content,
	body.ctejidas-price-calculator-page .site-content,
	body.ctejidas-size-calculator-page .site-content,
	body.ctejidas-stitch-dictionary-page .site-content,
	body.ctejidas-weaver-directory-page .site-content,
	body.ctejidas-directory-page .site-content,
	body.ctejidas-gallery-page .site-content,
	body.ctejidas-learning-hub-page .site-content,
	body.ctejidas-tools-hub-page .site-content,
	body.ctejidas-crochet-course-page .site-content,
	body.ctejidas-subscription-page .site-content {
		display: block !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.ctejidas-yarn-calculator-page #primary .inside-article,
	body.ctejidas-price-calculator-page #primary .inside-article,
	body.ctejidas-size-calculator-page #primary .inside-article,
	body.ctejidas-stitch-dictionary-page #primary .inside-article,
	body.ctejidas-weaver-directory-page #primary .inside-article,
	body.ctejidas-directory-page #primary .inside-article,
	body.ctejidas-gallery-page #primary .inside-article,
	body.ctejidas-learning-hub-page #primary .inside-article,
	body.ctejidas-tools-hub-page #primary .inside-article,
	body.ctejidas-crochet-course-page #primary .inside-article,
	body.ctejidas-subscription-page #primary .inside-article {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}

	/* Formularios y selectores que nunca deben desbordar su columna. */
	body.ctejidas-yarn-calculator-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-yarn-calculator-page select,
	body.ctejidas-yarn-calculator-page textarea,
	body.ctejidas-price-calculator-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-price-calculator-page select,
	body.ctejidas-price-calculator-page textarea,
	body.ctejidas-size-calculator-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-size-calculator-page select,
	body.ctejidas-size-calculator-page textarea,
	body.ctejidas-stitch-dictionary-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-stitch-dictionary-page select,
	body.ctejidas-stitch-dictionary-page textarea,
	body.ctejidas-weaver-directory-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-weaver-directory-page select,
	body.ctejidas-weaver-directory-page textarea,
	body.ctejidas-directory-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-directory-page select,
	body.ctejidas-directory-page textarea,
	body.ctejidas-gallery-page input:not([type="checkbox"]):not([type="radio"]),
	body.ctejidas-gallery-page select,
	body.ctejidas-gallery-page textarea {
		box-sizing: border-box !important;
		display: block;
		font-size: 16px !important;
		max-width: 100% !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	body.ctejidas-yarn-calculator-page select,
	body.ctejidas-price-calculator-page select,
	body.ctejidas-size-calculator-page select,
	body.ctejidas-stitch-dictionary-page select,
	body.ctejidas-weaver-directory-page select,
	body.ctejidas-directory-page select,
	body.ctejidas-gallery-page select {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.ct-campo,
	.ctp-campo,
	.ct-campo-tallas,
	#ctDiccionarioTejido .ctd-controls > *,
	.ct-weaver-directory__toolbar > *,
	.ct-page-gallery__search > * {
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* Una sola columna antes de que los campos empiecen a apretarse. */
	.ct-grid,
	#ctp-precio-widget .ctp-grid,
	.ct-grid-tallas,
	.ct-botones,
	#ctp-precio-widget .ctp-botones,
	.ct-botones-tallas,
	#ctp-precio-widget .ctp-resultado-grid,
	#ctp-precio-widget .ctp-busqueda-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	#ctDiccionarioTejido .ctd-controls {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
