/**
 * Editor Styles
 *
 * Matches the frontend display for the block editor.
 */

/* Editor width — matches theme.json contentSize */
.editor-styles-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Typography */
.editor-styles-wrapper {
	font-size: 1rem;
	line-height: 1.75;
	color: #333333;
}

/* Product content uses the full editor canvas instead of the theme content width. */
.editor-styles-wrapper > .is-root-container,
.editor-styles-wrapper .is-root-container,
body.editor-styles-wrapper .is-root-container {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0;
	margin-right: 0;
}

.editor-styles-wrapper .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.editor-styles-wrapper .wp-block {
	max-width: none !important;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	color: #101010;
	font-weight: 700;
	line-height: 1.3;
	margin-top: 2em;
	margin-bottom: 0.75em;
}

.editor-styles-wrapper h1 { font-size: 2.25rem; }
.editor-styles-wrapper h2 { font-size: 1.875rem; }
.editor-styles-wrapper h3 { font-size: 1.5rem; }
.editor-styles-wrapper h4 { font-size: 1.25rem; }
.editor-styles-wrapper h5 { font-size: 1.125rem; }
.editor-styles-wrapper h6 { font-size: 1rem; }

.editor-styles-wrapper a {
	color: #0096de;
	text-decoration: underline;
}

.editor-styles-wrapper p {
	margin-bottom: 1.25em;
}

.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
	margin-bottom: 1.25em;
	padding-left: 1.5em;
}

.editor-styles-wrapper ul { list-style: disc; }
.editor-styles-wrapper ol { list-style: decimal; }
.editor-styles-wrapper li { margin-bottom: 0.5em; }

.editor-styles-wrapper blockquote {
	border-left: 4px solid #0096de;
	padding-left: 1em;
	color: #555;
	font-style: italic;
	margin: 1.5em 0;
}

.editor-styles-wrapper table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.editor-styles-wrapper th,
.editor-styles-wrapper td {
	border: 1px solid #ddd;
	padding: 0.75em;
}

.editor-styles-wrapper th {
	background: #f5f5f5;
	font-weight: 600;
	text-align: left;
}

.editor-styles-wrapper figure {
	margin: 1.5em 0;
}

.editor-styles-wrapper .wp-block-image {
	text-align: left;
}

.editor-styles-wrapper .wp-block-image img {
	margin-left: 0;
	margin-right: 0;
}

/* Product option columns stay left-aligned, size to their contents, and wrap. */
.editor-styles-wrapper .wp-block-columns.product-option-grid,
.product-content .wp-block-columns.product-option-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 2rem;
}

.editor-styles-wrapper .product-option-grid > .wp-block-column,
.product-content .product-option-grid > .wp-block-column {
	flex: 0 1 auto;
	flex-basis: auto;
	width: auto;
	max-width: none;
	margin: 0;
}

.editor-styles-wrapper .product-option-grid .wp-block-image,
.product-content .product-option-grid .wp-block-image {
	margin-left: 0;
	margin-right: 0;
}

.editor-styles-wrapper figcaption {
	font-size: 0.875rem;
	color: #666;
	text-align: center;
	margin-top: 0.5em;
}

.editor-styles-wrapper img {
	max-width: 100%;
	height: auto;
}

.editor-styles-wrapper pre {
	background: #f5f5f5;
	padding: 1em;
	overflow-x: auto;
	font-size: 0.875rem;
	border-radius: 4px;
}

.editor-styles-wrapper code {
	background: #f5f5f5;
	padding: 0.2em 0.4em;
	font-size: 0.875em;
	border-radius: 3px;
}
