/**
 * GM Product Price Table - Frontend styles.
 * Author: GM Software
 *
 * Two cells shown as 2 columns (side by side) or 2 rows (stacked). The layout
 * control writes flex-direction and these custom properties on ".gm-ppt":
 *   --gm-ppt-c1-basis  width of cell 1 (columns) / auto (rows)
 *   --gm-ppt-c2-basis  0 (columns: fills the rest) / auto (rows)
 *   --gm-ppt-div-w     divider width  (line size in columns, auto in rows)
 *   --gm-ppt-div-h     divider height (auto in columns, line size in rows)
 *
 * Each cell: [tags above] [tags left | text | tags right] [tags below].
 */

.gm-ppt {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	--gm-ppt-c1-basis: var(--gm-ppt-c1-width, 50%);
	--gm-ppt-c2-basis: 0px;
	--gm-ppt-div-w: var(--gm-ppt-divider-size, 1px);
	--gm-ppt-div-h: auto;
}

/* ---------- Cells ---------- */
.gm-ppt-cell {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	box-sizing: border-box;
	padding: 8px 12px;
}

.gm-ppt-cell-1 {
	order: 0;
	flex: 0 0 var(--gm-ppt-c1-basis);
}

.gm-ppt-divider {
	order: 1;
	flex: 0 0 auto;
	align-self: stretch;
	width: var(--gm-ppt-div-w);
	height: var(--gm-ppt-div-h);
	background-color: #dddddd;
}

.gm-ppt-cell-2 {
	order: 2;
	flex: 1 1 var(--gm-ppt-c2-basis);
}

/* A single visible cell takes the whole width. */
.gm-ppt-cell:only-child {
	flex: 1 1 auto;
}

/* ---------- Text line (left tags | text | right tags) ---------- */
.gm-ppt-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	min-width: 0;
}

.gm-ppt-text {
	margin: 0;
	padding: 0;
	min-width: 0;
	font-size: 16px;
	line-height: 1.3;
	color: #333;
}

.gm-ppt-cell-1 .gm-ppt-text {
	font-size: 20px;
	color: #1a7f37;
}

.gm-ppt-text a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Tag zones ---------- */
.gm-ppt-zone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.gm-ppt-zone-left,
.gm-ppt-zone-right {
	flex: 0 0 auto;
}

/* ---------- Tags ---------- */
.gm-ppt-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	color: #fff;
	background-color: #e02b2b;
	border-radius: 4px;
	box-sizing: border-box;
}

.gm-ppt-tag-icon {
	display: inline-flex;
	line-height: 1;
}

.gm-ppt-tag-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- HTML marks (defaults, overridable from "Marcas HTML") ---------- */
.gm-ppt del,
.gm-ppt s,
.gm-ppt strike {
	color: #999;
	font-weight: 400;
	font-size: 0.8em;
	text-decoration: line-through;
}

.gm-ppt ins {
	text-decoration: underline;
	background: none;
}

.gm-ppt mark {
	padding: 0 3px;
	color: inherit;
	background-color: #fff3a0;
}

.gm-ppt small {
	font-size: 0.75em;
}

.gm-ppt .m1 {
	color: #e02b2b;
	font-weight: 700;
}

.gm-ppt .m2 {
	color: #1a7f37;
	font-weight: 700;
}

.gm-ppt .m3 {
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gm-ppt .woocommerce-Price-amount {
	white-space: nowrap;
}

/* ---------- Notices (editor only) ---------- */
.gm-ppt-notice {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #50575e;
	background: #f6f7f7;
	text-align: center;
}
