/* Woo DruckAdmin – Cart PDF Upload */

/* ── Warenkorb-Grundlayout ─────────────────────────────────────────────────── */

.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th,
.woocommerce-page table.cart td,
.woocommerce-page table.cart th {
	font-size: 15px;
	line-height: 1.45;
}

.woocommerce-cart table.cart th,
.woocommerce-page table.cart th {
	font-weight: 600;
	color: #222;
}

.woocommerce-cart table.cart td.product-name,
.woocommerce-page table.cart td.product-name {
	color: #222;
	font-weight: 400;
}

.woocommerce-cart table.cart td.product-name > a,
.woocommerce-page table.cart td.product-name > a {
	display: inline-block;
	margin-bottom: 0.7em;
	color: #1aa9d6;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.woocommerce-cart table.cart td.product-name > a:hover,
.woocommerce-page table.cart td.product-name > a:hover {
	text-decoration: underline;
}

.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal,
.woocommerce-page table.cart td.product-price,
.woocommerce-page table.cart td.product-subtotal {
	color: #222;
	font-weight: 500;
	white-space: nowrap;
}

.woocommerce-cart table.cart td.product-remove,
.woocommerce-page table.cart td.product-remove {
	width: 52px;
	text-align: center;
	vertical-align: top;
}

.woocommerce-cart table.cart a.remove,
.woocommerce-page table.cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: 0.35em;
	border: 1px solid #e3e7eb;
	border-radius: 4px;
	background: #fff;
	color: #6b7280 !important;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.woocommerce-cart table.cart a.remove:hover,
.woocommerce-page table.cart a.remove:hover {
	border-color: #d95c5c;
	background: #fff5f5;
	color: #c62828 !important;
}

.woocommerce-cart table.cart tr.cart_item + tr.cart_item td,
.woocommerce-page table.cart tr.cart_item + tr.cart_item td {
	border-top: 1px solid #e3e7eb;
}

/* ── Konfigurationsdaten im Warenkorb ──────────────────────────────────────── */

.wda-cart-config-list,
.woocommerce-cart table.cart dl.variation,
.woocommerce-page table.cart dl.variation {
	display: grid;
	grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
	column-gap: 0.55em;
	row-gap: 0.25em;
	margin: 0.55em 0 0;
	color: #222;
	font-size: 15px;
	line-height: 1.4;
}

.wda-cart-config-list dt,
.woocommerce-cart table.cart dl.variation dt,
.woocommerce-page table.cart dl.variation dt {
	margin: 0;
	color: #222;
	font-weight: 600;
}

.wda-cart-config-list dd,
.woocommerce-cart table.cart dl.variation dd,
.woocommerce-page table.cart dl.variation dd {
	margin: 0;
	color: #222;
	font-weight: 400;
}

.wda-cart-config-list dd p,
.woocommerce-cart table.cart dl.variation dd p,
.woocommerce-page table.cart dl.variation dd p {
	margin: 0;
	font-weight: 400;
}

.wda-cart-design-note {
	display: inline-flex;
	align-items: center;
	margin: 0.2em 0 0.65em;
	padding: 0.35em 0.6em;
	border: 1px solid #d8eef6;
	border-radius: 4px;
	background: #f3fbfe;
	color: #3f6f7f;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.wda-cart-item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.8em;
}

.wda-cart-edit-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35em 0.7em;
	border: 1px solid #d8e0e5;
	border-radius: 4px;
	background: #fff;
	color: #375766 !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none !important;
}

.wda-cart-edit-link:hover,
.wda-cart-edit-link:focus {
	border-color: #1aa9d6;
	color: #0a7ea5 !important;
}

.wda-cart-pdf-wrap {
	margin: 0.75em 0;
	padding: 0.85em 1em;
	background: #fbfdfe;
	border: 1px solid #dfe6eb;
	border-radius: 4px;
	font-size: 14px;
}

.wda-pdf-label {
	margin-bottom: 0.45em;
	font-weight: 500;
}

.wda-pdf-file-row {
	margin-bottom: 0.6em;
}

.wda-file-input-label {
	display: block;
	margin-bottom: 0.35em;
	color: #444;
	font-size: 13px;
	font-weight: 600;
}

.wda-cart-pdf-file {
	display: block;
	width: 100%;
	max-width: 360px;
	padding: 0.45em;
	border: 1px solid #d8e0e5;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 13px;
}

.wda-pdf-btn-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75em;
}

.wda-btn-upload-pdf,
.wda-file-select-label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background-color: #e87622 !important;
	color: #fff !important;
	border-color: #cf6d17 !important;
	padding: 0.4em 1em !important;
	font-size: 0.88em !important;
	cursor: pointer;
	text-decoration: none !important;
}

.wda-btn-upload-pdf:hover,
.wda-btn-upload-pdf:focus,
.wda-file-select-label:hover,
.wda-file-select-label:focus {
	background-color: #cf6d17 !important;
	color: #fff !important;
}

.wda-btn-upload-pdf:disabled,
.wda-file-select-label.wda-upload-disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.wda-pdf-uploaded {
	margin-bottom: 0.65em;
	color: #2e7d32;
}

.wda-pdf-uploaded a.wda-remove-cart-pdf {
	margin-left: 0.5em;
	color: #c62828;
	font-size: 0.85em;
	text-decoration: underline;
}

.wda-upload-success { color: #2e7d32; }
.wda-upload-error   { color: #c62828; }
.wda-upload-info    { color: #555; }

@media ( max-width: 700px ) {
	.wda-cart-config-list,
	.woocommerce-cart table.cart dl.variation,
	.woocommerce-page table.cart dl.variation {
		grid-template-columns: 1fr;
		row-gap: 0.15em;
	}

	.wda-cart-config-list dd,
	.woocommerce-cart table.cart dl.variation dd,
	.woocommerce-page table.cart dl.variation dd {
		margin-bottom: 0.35em;
	}
}
