.pdf-combined {
	--pdf-accent: #e4601c;
	--pdf-ink: #1c1d20;
	--pdf-grey: #7a7d84;
	--pdf-line: #e6e6e8;
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	max-width: 100%;
	margin-bottom: 24px;
	overflow-x: hidden;
}
.pdf-combined * { box-sizing: border-box; }

.pdf-title-wrap { margin-bottom: 16px; }

/* Flatsome/WooCommerce geben an der alten Stelle in der jetzt leeren
   Summary-Spalte oft noch eine verwaiste zweite Breadcrumb aus, die
   dann unten auf der Seite rausfaellt - unterdruecken, unsere eigene
   (oben im .pdf-breadcrumb-Wrapper) bleibt sichtbar. */
.woocommerce-breadcrumb { display: none; }
.pdf-breadcrumb .woocommerce-breadcrumb { display: block; }

.pdf-block {
	border: 1px solid var(--pdf-line);
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 12px;
}
.pdf-block h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pdf-grey);
	margin: 0 0 12px 0;
}

.pdf-btn {
	padding: 13px 14px;
	background: #ffffff;
	color: var(--pdf-ink);
	border: 1px solid var(--pdf-line);
	border-radius: 4px;
	font-size: 15px;
	cursor: pointer;
	width: 100%;
}
.pdf-btn.pdf-accent { background: var(--pdf-accent); color: #fff; border-color: var(--pdf-accent); }
.pdf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pdf-row2:last-child { margin-bottom: 0; }

.pdf-field { margin-bottom: 10px; }
.pdf-field:last-child { margin-bottom: 0; }
.pdf-field label {
	display: block;
	font-size: 13px;
	color: var(--pdf-grey);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 7px;
}
.pdf-field input, .pdf-field select {
	width: 100%;
	height: 48px !important;
	padding: 0 12px !important;
	border: 1px solid var(--pdf-line);
	border-radius: 4px;
	font-size: 16px;
	line-height: normal !important;
	box-sizing: border-box !important;
}

.pdf-text-input-wrap { position: relative; }
.pdf-text-input-wrap input {
	border-color: var(--pdf-accent) !important;
	padding-right: 76px !important;
}
.pdf-text-height-badge {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--pdf-grey);
	pointer-events: none;
}


.pdf-font-dropdown { position: relative; }
.pdf-font-trigger {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--pdf-line);
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
	color: var(--pdf-ink);
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	box-sizing: border-box;
}
.pdf-font-trigger-arrow { color: var(--pdf-grey); font-size: 12px; }
.pdf-font-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--pdf-line);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.pdf-font-group-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pdf-grey);
	padding: 10px 14px 4px;
	font-weight: 600;
}
.pdf-font-option {
	padding: 10px 14px;
	font-size: 18px;
	cursor: pointer;
	color: var(--pdf-ink);
}
.pdf-font-option:hover { background: #f7f7f7; }
.pdf-font-option.active { background: var(--pdf-accent); color: #fff; }

.pdf-select-with-swatch { display: flex; align-items: center; gap: 10px; margin: 0; }
.pdf-select-with-swatch select {
	flex: 1;
	margin: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7d84' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px !important;
}
.pdf-color-preview {
	width: 48px;
	height: 48px;
	border-radius: 4px;
	border: 1px solid var(--pdf-line);
	flex-shrink: 0;
	box-sizing: border-box;
}

.pdf-dropzone {
	margin-top: 8px;
	border: 2px dashed var(--pdf-line);
	border-radius: 6px;
	padding: 24px 16px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.pdf-dropzone:hover, .pdf-dropzone.pdf-dropzone-active {
	border-color: var(--pdf-accent);
	background: #fff6f1;
}
.pdf-dropzone-title { font-size: 14px; color: var(--pdf-ink); margin-bottom: 4px; }
.pdf-dropzone-sub { font-size: 12px; color: var(--pdf-grey); }

.pdf-dropzone-busy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.pdf-dropzone.pdf-dropzone-loading { cursor: default; }
.pdf-spinner {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 3px solid var(--pdf-line);
	border-top-color: var(--pdf-accent);
	animation: pdf-spin 0.7s linear infinite;
}
@keyframes pdf-spin {
	to { transform: rotate(360deg); }
}
.pdf-progress-track {
	width: 100%;
	max-width: 220px;
	height: 6px;
	background: var(--pdf-line);
	border-radius: 3px;
	overflow: hidden;
}
.pdf-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--pdf-accent);
	transition: width 0.15s ease-out;
}
.pdf-progress-label { font-size: 12px; color: var(--pdf-grey); }

.pdf-material-badge {
	display: inline-block;
	padding: 7px 14px;
	background: var(--pdf-ink);
	color: #fff;
	border-radius: 4px;
	font-size: 14px;
	margin-bottom: 8px;
}
.pdf-hint-text { font-size: 13px; color: var(--pdf-grey); margin: 0 0 12px 0; }

.pdf-stage-outer {
	border: 1px solid var(--pdf-line);
	border-radius: 6px;
	padding: 20px;
	max-width: 100%;
	overflow-x: auto;
}
.pdf-canvas-stage {
	display: inline-block;
	background-image:
		linear-gradient(45deg, #ccc 25%, transparent 25%),
		linear-gradient(-45deg, #ccc 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #ccc 75%),
		linear-gradient(-45deg, transparent 75%, #ccc 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	background-color: #f4f4f4;
	box-shadow: 0 0 0 1px var(--pdf-line);
}

.pdf-dims-line { text-align: right; font-size: 13px; color: var(--pdf-grey); margin-top: 6px; }

.pdf-price-box {
	border: 1px solid var(--pdf-line);
	border-radius: 6px;
	margin-top: 20px;
	overflow: hidden;
}
.pdf-price-header {
	background: var(--pdf-accent);
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 12px 18px;
}
.pdf-price-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 18px;
	border-top: 1px solid var(--pdf-line);
	font-size: 14px;
}
.pdf-price-row.pdf-total { background: #f7f7f7; }
.pdf-price-row.pdf-total .pdf-amount { font-size: 26px; font-weight: 700; color: var(--pdf-accent); }

/* Native WooCommerce Formular-Elemente unter der Preisbox einreihen */
.pdf-col-right form.cart {
	margin-top: 16px;
}
.pdf-col-right .single_add_to_cart_button {
	background: var(--pdf-accent) !important;
	border-color: var(--pdf-accent) !important;
}

@media (max-width: 782px) {
	.pdf-combined { grid-template-columns: 1fr; }
}
