

.woocommerce form .form-row.wlg-hidden,
.woocommerce-checkout .form-row.wlg-hidden,
.woocommerce form .form-row.wlg-field-hidden,
.woocommerce-checkout .form-row.wlg-field-hidden { display: none !important }

.wlg-corp { transition: opacity .2s ease }
.wlg-corp.wlg-hidden { display: none !important }

.wlg-tax-field.wlg-hidden,
.form-row.wlg-tax-field.wlg-hidden { display: none !important }

.woocommerce-Address {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0;
	overflow: hidden;
}
.woocommerce-Address-title {
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	padding: 16px 20px;
	margin: 0;
}
.woocommerce-Address-title h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}
.woocommerce-Address-title .edit {
	font-size: 14px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}
.woocommerce-Address-title .edit:hover { color: #1d4ed8 }
.woocommerce-Address address {
	padding: 20px;
	margin: 0;
	font-style: normal;
	line-height: 1.9;
	color: #374151;
	font-size: 14px;
}
.woocommerce-Address address br {
	display: block;
	content: "";
	margin: 2px 0;
}
.woocommerce-Address address > *:first-child {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 4px;
}
.woocommerce-Address address .separator {
	display: block;
	margin: 12px 0;
	border-bottom: 1px solid #e5e7eb;
	line-height: 0;
	color: transparent;
}
.woocommerce-Address address > * { display: block }

.woocommerce form textarea[name*="address_2"],
.woocommerce-checkout textarea[name*="address_2"],
.woocommerce-edit-address textarea[name*="address_2"] {
	min-height: 100px !important;
	height: 100px !important;
	resize: vertical !important;
	font-family: inherit !important;
	line-height: 1.5 !important;
	padding: 10px 12px !important;
}

.woocommerce-address-fields .form-row label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: #1d2327;
}
.woocommerce-address-fields .form-row input[type="text"],
.woocommerce-address-fields .form-row input[type="email"],
.woocommerce-address-fields .form-row input[type="tel"],
.woocommerce-address-fields .form-row select,
.woocommerce-address-fields .form-row textarea {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	color: #1d2327;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.woocommerce-address-fields .form-row textarea {
	height: auto;
	padding: 10px 12px;
	min-height: 80px;
	resize: vertical;
	line-height: 1.5;
}
.woocommerce-address-fields .form-row input:focus,
.woocommerce-address-fields .form-row select:focus,
.woocommerce-address-fields .form-row textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}



.wlg-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999 !important }
.wlg-modal.active { display: flex !important; align-items: center; justify-content: center }
.wlg-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.7); cursor: pointer }
.wlg-modal-container {
	position: relative; background: #fff; border-radius: 8px;
	max-width: 90%; max-height: 90%; width: 600px;
	box-shadow: 0 10px 30px rgba(0,0,0,.3);
	display: flex; flex-direction: column; overflow: hidden;
}
.wlg-modal-header { padding: 20px 25px 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center }
.wlg-modal-header h3 { margin: 0; font-size: 18px; color: #333 }
.wlg-modal-close {
	background: none; border: none; font-size: 24px; cursor: pointer; color: #666;
	width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; transition: background .15s, color .15s;
}
.wlg-modal-close:hover { background: #f5f5f5; color: #333 }
.wlg-modal-close:focus { outline: 2px solid #2271b1; outline-offset: 2px }
.wlg-modal-content { padding: 20px 25px; overflow-y: auto; flex: 1; line-height: 1.6; -webkit-overflow-scrolling: touch }
.wlg-modal-footer { padding: 15px 25px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end }
.wlg-modal-footer .button { background: #666; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; transition: background .15s }
.wlg-modal-footer .button:hover { background: #555 }
.wlg-modal-footer .button:focus { outline: 2px solid #2271b1; outline-offset: 2px }
body.wlg-modal-open { overflow: hidden }

@media (max-width: 768px) {
	.wlg-modal-container { max-width: 95%; margin: 20px }
}



body.wlg-custom-thankyou-active .woocommerce-order-details,
body.wlg-custom-thankyou-active .woocommerce-customer-details,
body.wlg-custom-thankyou-active .woocommerce-thankyou-order-received,
body.wlg-custom-thankyou-active .woocommerce-thankyou-order-details,
body.wlg-custom-thankyou-active .woocommerce-order-downloads,
body.wlg-custom-thankyou-active .woocommerce-order-received .woocommerce-table--order-details,
body.wlg-custom-thankyou-active .woocommerce-order-received .woocommerce-customer-details,
body.wlg-custom-thankyou-active .woocommerce-view-order .woocommerce-table--order-details,
body.wlg-custom-thankyou-active .woocommerce-view-order .woocommerce-customer-details {
	display: none !important;
}

:root {
	--wlg-ty-text: #111111;
	--wlg-ty-text-secondary: #555555;
	--wlg-ty-text-muted: #888888;
	--wlg-ty-bg: #f5f5f5;
	--wlg-ty-card-bg: #ffffff;
	--wlg-ty-border: #e0e0e0;
	--wlg-ty-border-light: #f0f0f0;
	--wlg-ty-accent: #111111;
	--wlg-ty-success: #22c55e;
	--wlg-ty-warning: #f59e0b;
	--wlg-ty-danger: #ef4444;
	--wlg-ty-radius: 12px;
	--wlg-ty-radius-sm: 8px;
	--wlg-ty-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
	--wlg-ty-shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

@keyframes wlgFadeInUp {
	from { opacity: 0; transform: translateY(16px) }
	to { opacity: 1; transform: translateY(0) }
}
@keyframes wlgFadeIn {
	from { opacity: 0 }
	to { opacity: 1 }
}
@keyframes wlgScaleIn {
	from { opacity: 0; transform: scale(0.85) }
	to { opacity: 1; transform: scale(1) }
}
@keyframes wlgCheckDraw {
	from { stroke-dashoffset: 24 }
	to { stroke-dashoffset: 0 }
}
@keyframes wlgCircleDraw {
	from { stroke-dashoffset: 63 }
	to { stroke-dashoffset: 0 }
}
@keyframes wlgPulseRing {
	0% { transform: scale(1); opacity: 0.4 }
	100% { transform: scale(1.6); opacity: 0 }
}
@keyframes wlgSlideDown {
	from { opacity: 0; transform: translateY(-8px) }
	to { opacity: 1; transform: translateY(0) }
}

.wlg-ty-container {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--wlg-ty-text);
	line-height: 1.5;
}

.wlg-ty-cards-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
@media (max-width: 767px) {
	.wlg-ty-cards-grid { grid-template-columns: 1fr }
}

.wlg-ty-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 24px 32px;
	background: #111111;
	border-radius: var(--wlg-ty-radius);
	margin-bottom: 20px;
	color: #ffffff;
	position: relative;
	overflow: hidden;
	animation: wlgFadeIn 0.6s ease-out;
}

.wlg-ty-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 70%);
	pointer-events: none;
}

.wlg-ty-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 2px;
	background: rgba(255,255,255,0.3);
	border-radius: 1px;
}

.wlg-ty-header-error { background: #1a1a1a }
.wlg-ty-header-error::after { background: var(--wlg-ty-danger) }

.wlg-ty-header-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
	animation: wlgScaleIn 0.5s ease-out 0.2s both;
}

.wlg-ty-header-icon::before {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,0.2);
	animation: wlgPulseRing 2s ease-out infinite;
}

.wlg-ty-header-icon svg {
	width: 32px;
	height: 32px;
	color: #ffffff;
	position: relative;
	z-index: 1;
}

.wlg-ty-header:not(.wlg-ty-header-error) .wlg-ty-header-icon svg circle {
	stroke-dasharray: 63;
	stroke-dashoffset: 63;
	animation: wlgCircleDraw 0.8s ease-out 0.3s forwards;
}
.wlg-ty-header:not(.wlg-ty-header-error) .wlg-ty-header-icon svg path {
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
	animation: wlgCheckDraw 0.4s ease-out 0.9s forwards;
}

.wlg-ty-header-content { position: relative; z-index: 1 }
.wlg-ty-header-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.3px;
	animation: wlgFadeInUp 0.5s ease-out 0.4s both;
}
.wlg-ty-header-message {
	margin: 0 0 12px;
	font-size: 14px;
	color: rgba(255,255,255,0.65);
	max-width: 400px;
	animation: wlgFadeInUp 0.5s ease-out 0.5s both;
}
.wlg-ty-header-order {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	animation: wlgFadeInUp 0.5s ease-out 0.6s both;
}
.wlg-ty-header-order strong {
	color: rgba(255,255,255,0.85);
	font-weight: 600;
}

.wlg-ty-progress {
	margin-bottom: 20px;
	animation: wlgFadeInUp 0.5s ease-out 0.3s both;
}
.wlg-ty-progress-track {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	padding: 0 10px;
}
.wlg-ty-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	z-index: 2;
}
.wlg-ty-progress-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--wlg-ty-border);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
}
.wlg-ty-progress-icon svg {
	width: 16px;
	height: 16px;
	color: var(--wlg-ty-text-muted);
	transition: color 0.4s ease;
}
.wlg-ty-progress-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--wlg-ty-text-muted);
	text-align: center;
	max-width: 70px;
}

.wlg-ty-progress-step-completed .wlg-ty-progress-icon { background: var(--wlg-ty-accent); border-color: var(--wlg-ty-accent) }
.wlg-ty-progress-step-completed .wlg-ty-progress-icon svg { color: #fff }
.wlg-ty-progress-step-completed .wlg-ty-progress-label { color: var(--wlg-ty-text); font-weight: 600 }

.wlg-ty-progress-step-current .wlg-ty-progress-icon { background: var(--wlg-ty-accent); border-color: var(--wlg-ty-accent); box-shadow: 0 0 0 3px rgba(17,17,17,0.12) }
.wlg-ty-progress-step-current .wlg-ty-progress-icon svg { color: #fff }
.wlg-ty-progress-step-current .wlg-ty-progress-label { color: var(--wlg-ty-text); font-weight: 600 }

.wlg-ty-progress-step-pending .wlg-ty-progress-icon { background: #fff; border-color: var(--wlg-ty-border) }
.wlg-ty-progress-step-pending .wlg-ty-progress-icon svg { color: var(--wlg-ty-text-muted) }
.wlg-ty-progress-step-pending .wlg-ty-progress-label { color: var(--wlg-ty-text-muted) }

.wlg-ty-progress-line {
	flex: 1;
	height: 2px;
	background: var(--wlg-ty-border);
	margin: 0 -4px;
	position: relative;
	top: -16px;
	transition: background 0.4s ease;
}
.wlg-ty-progress-line-completed { background: var(--wlg-ty-accent) }

.wlg-ty-card {
	background: var(--wlg-ty-card-bg);
	border: 1px solid var(--wlg-ty-border);
	border-radius: var(--wlg-ty-radius);
	box-shadow: var(--wlg-ty-shadow);
	margin-bottom: 16px;
	overflow: hidden;
	animation: wlgFadeInUp 0.5s ease-out both;
}
.wlg-ty-card:nth-child(3) { animation-delay: 0.15s }
.wlg-ty-card:nth-child(4) { animation-delay: 0.25s }

.wlg-ty-card-title {
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wlg-ty-text);
	border-bottom: 1px solid var(--wlg-ty-border);
	background: var(--wlg-ty-bg);
	display: flex;
	align-items: center;
	gap: 8px;
}
.wlg-ty-card-title svg {
	width: 16px;
	height: 16px;
	color: var(--wlg-ty-text-secondary);
	flex-shrink: 0;
}

.wlg-ty-order-card { border: 1px solid var(--wlg-ty-border) }

.wlg-ty-order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: var(--wlg-ty-bg);
	border-bottom: 1px solid var(--wlg-ty-border);
	gap: 12px;
}
.wlg-ty-order-info { flex: 1; min-width: 0 }
.wlg-ty-order-number { font-size: 15px; font-weight: 700; color: var(--wlg-ty-text); margin-bottom: 4px }
.wlg-ty-order-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.wlg-ty-order-date { font-size: 12px; color: var(--wlg-ty-text-muted) }
.wlg-ty-order-status {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	background: var(--wlg-ty-border-light);
	color: var(--wlg-ty-text-secondary);
}

.wlg-ty-status-pending { background: #fef3c7; color: #92400e }
.wlg-ty-status-processing { background: #dbeafe; color: #1e40af }
.wlg-ty-status-completed, .wlg-ty-status-wlg-delivered { background: #dcfce7; color: #166534 }
.wlg-ty-status-shipped, .wlg-ty-status-wlg-shipped { background: #e0e7ff; color: #3730a3 }
.wlg-ty-status-wlg-transit { background: #ede9fe; color: #5b21b6 }
.wlg-ty-status-cancelled,
.wlg-ty-status-refunded,
.wlg-ty-status-failed,
.wlg-ty-status-wlg-returned { background: #fee2e2; color: #991b1b }

.wlg-ty-invoice-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}
.wlg-ty-invoice-person { background: #f3f4f6; color: var(--wlg-ty-text-secondary) }
.wlg-ty-invoice-company { background: #111111; color: #ffffff }

.wlg-ty-products-section { padding: 0 }
.wlg-ty-product-item {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--wlg-ty-border-light);
	align-items: center;
	transition: background 0.15s ease;
}
.wlg-ty-product-item:last-child { border-bottom: 1px solid var(--wlg-ty-border) }
.wlg-ty-product-item:hover { background: rgba(0,0,0,0.01) }
.wlg-ty-product-thumb {
	width: 52px;
	height: 52px;
	border-radius: var(--wlg-ty-radius-sm);
	overflow: hidden;
	background: var(--wlg-ty-bg);
	flex-shrink: 0;
	border: 1px solid var(--wlg-ty-border-light);
}
.wlg-ty-product-thumb img { width: 100%; height: 100%; object-fit: cover }
.wlg-ty-product-info { min-width: 0 }
.wlg-ty-product-title { font-size: 14px; font-weight: 600; color: var(--wlg-ty-text); margin-bottom: 2px; line-height: 1.3 }
.wlg-ty-product-variant { font-size: 12px; color: var(--wlg-ty-text-muted); margin-bottom: 2px }
.wlg-ty-product-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wlg-ty-text-muted) }
.wlg-ty-product-meta .wlg-ty-product-quantity::after {
	content: '\00D7';
	margin-left: 6px;
	color: var(--wlg-ty-text-muted);
}
.wlg-ty-product-amount { font-size: 14px; font-weight: 700; color: var(--wlg-ty-text); white-space: nowrap }

.wlg-ty-extras-section {
	padding: 14px 18px;
	border-bottom: 1px solid var(--wlg-ty-border);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--wlg-ty-bg);
}
.wlg-ty-extras-item { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 140px }
.wlg-ty-extras-label { font-size: 10px; font-weight: 600; color: var(--wlg-ty-text-muted); text-transform: uppercase; letter-spacing: 0.5px }
.wlg-ty-extras-value { font-size: 13px; font-weight: 600; color: var(--wlg-ty-text) }

.wlg-ty-totals-section { padding: 16px 18px; background: var(--wlg-ty-bg) }
.wlg-ty-total-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 }
.wlg-ty-total-item .wlg-ty-total-label { font-size: 13px; color: var(--wlg-ty-text-muted); font-weight: 400 }
.wlg-ty-total-item .wlg-ty-total-value { font-size: 14px; color: var(--wlg-ty-text); font-weight: 600 }
.wlg-ty-total-discount .wlg-ty-total-value { color: var(--wlg-ty-success) }
.wlg-ty-total-final { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--wlg-ty-border) }
.wlg-ty-total-final .wlg-ty-total-label { font-size: 15px; font-weight: 700; color: var(--wlg-ty-text) }
.wlg-ty-total-final .wlg-ty-total-value { font-size: 18px; font-weight: 700; color: var(--wlg-ty-text) }

.wlg-ty-customer-card { border: 1px solid var(--wlg-ty-border) }

.wlg-ty-customer-identity { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--wlg-ty-border-light) }
.wlg-ty-customer-avatar {
	width: 44px; height: 44px; border-radius: 50%;
	background: #111111; color: #ffffff;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 700; flex-shrink: 0; letter-spacing: 0.5px;
}
.wlg-ty-customer-details { flex: 1; min-width: 0 }
.wlg-ty-customer-name { font-size: 15px; font-weight: 700; color: var(--wlg-ty-text); margin-bottom: 2px }
.wlg-ty-customer-company { font-size: 13px; color: var(--wlg-ty-text-secondary); margin-bottom: 6px }
.wlg-ty-customer-contacts { display: flex; flex-wrap: wrap; gap: 12px }
.wlg-ty-contact-link {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; color: var(--wlg-ty-text-muted);
	text-decoration: none; transition: color 0.2s ease;
}
.wlg-ty-contact-link:hover { color: var(--wlg-ty-text) }
.wlg-ty-contact-link svg { width: 13px; height: 13px; flex-shrink: 0 }

.wlg-ty-tax-info { display: flex; gap: 24px; padding: 12px 18px; background: var(--wlg-ty-bg); border-bottom: 1px solid var(--wlg-ty-border-light) }
.wlg-ty-tax-item { display: flex; flex-direction: column; gap: 2px }
.wlg-ty-tax-label { font-size: 10px; font-weight: 600; color: var(--wlg-ty-text-muted); text-transform: uppercase; letter-spacing: 0.5px }
.wlg-ty-tax-value { font-size: 13px; font-weight: 600; color: var(--wlg-ty-text) }

.wlg-ty-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 }
.wlg-ty-address-card { padding: 0; border-right: 1px solid var(--wlg-ty-border-light) }
.wlg-ty-address-card:last-child { border-right: none }
.wlg-ty-address-header {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 18px; font-size: 11px; font-weight: 600;
	color: var(--wlg-ty-text-muted); text-transform: uppercase; letter-spacing: 0.5px;
	background: var(--wlg-ty-bg); border-bottom: 1px solid var(--wlg-ty-border-light);
}
.wlg-ty-address-header svg { width: 13px; height: 13px; flex-shrink: 0 }
.wlg-ty-address-body { padding: 14px 18px; font-size: 13px; color: var(--wlg-ty-text-secondary); line-height: 1.7 }

.wlg-ty-address-details { display: flex; flex-direction: column; gap: 4px }
.wlg-ty-address-name { font-size: 14px; font-weight: 700; color: var(--wlg-ty-text); margin-bottom: 4px }
.wlg-ty-address-item { font-size: 13px; color: var(--wlg-ty-text-secondary); line-height: 1.5 }
.wlg-ty-address-label { font-weight: 600; color: var(--wlg-ty-text-muted); font-size: 12px }
.wlg-ty-address-value { color: var(--wlg-ty-text) }
.wlg-ty-address-separator { height: 1px; background: var(--wlg-ty-border-light); margin: 8px 0 }

.wlg-ty-invoice-section { padding: 0; border-bottom: 1px solid var(--wlg-ty-border-light) }
.wlg-ty-section-label {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 18px; font-size: 11px; font-weight: 600;
	color: var(--wlg-ty-text-muted); text-transform: uppercase; letter-spacing: 0.5px;
	background: var(--wlg-ty-bg); border-bottom: 1px solid var(--wlg-ty-border-light);
}
.wlg-ty-section-label svg { width: 13px; height: 13px; flex-shrink: 0 }
.wlg-ty-info-table { width: 100%; border-collapse: collapse }
.wlg-ty-info-table tr { border-bottom: 1px solid var(--wlg-ty-border-light) }
.wlg-ty-info-table tr:last-child { border-bottom: none }
.wlg-ty-tl { padding: 8px 18px; font-size: 12px; font-weight: 600; color: var(--wlg-ty-text-muted); white-space: nowrap; width: 120px; vertical-align: middle }
.wlg-ty-tv { padding: 8px 18px; font-size: 13px; color: var(--wlg-ty-text); vertical-align: middle }
.wlg-ty-mono { font-family: 'SF Mono', 'Fira Code', monospace; letter-spacing: 0.5px }
.wlg-ty-invoice-company { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #111; color: #fff }
.wlg-ty-invoice-person { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #f3f4f6; color: var(--wlg-ty-text-secondary) }

@media (max-width: 640px) {
	.wlg-ty-container { padding: 16px 12px }
	.wlg-ty-header { padding: 32px 16px 24px }
	.wlg-ty-header-icon { width: 52px; height: 52px }
	.wlg-ty-header-icon svg { width: 26px; height: 26px }
	.wlg-ty-header-title { font-size: 19px }
	.wlg-ty-header-message { font-size: 13px }

	.wlg-ty-progress-track { padding: 0 4px }
	.wlg-ty-progress-icon { width: 32px; height: 32px }
	.wlg-ty-progress-icon svg { width: 14px; height: 14px }
	.wlg-ty-progress-label { font-size: 10px; max-width: 55px }
	.wlg-ty-progress-line { top: -14px }

	.wlg-ty-order-header { flex-direction: column; align-items: flex-start; padding: 14px }
	.wlg-ty-invoice-badge { align-self: flex-start }

	.wlg-ty-product-item { grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 14px }
	.wlg-ty-product-thumb { width: 44px; height: 44px }
	.wlg-ty-product-amount { grid-column: 2; text-align: right; margin-top: -2px }

	.wlg-ty-totals-section { padding: 14px }

	.wlg-ty-customer-identity { padding: 14px }
	.wlg-ty-customer-contacts { flex-direction: column; gap: 6px }
	.wlg-ty-tax-info { flex-direction: column; gap: 10px; padding: 10px 14px }

	.wlg-ty-addresses { grid-template-columns: 1fr }
	.wlg-ty-address-card { border-right: none; border-bottom: 1px solid var(--wlg-ty-border-light) }
	.wlg-ty-address-card:last-child { border-bottom: none }
	.wlg-ty-address-header { padding: 8px 14px }
	.wlg-ty-address-body { padding: 12px 14px }
}

@media (max-width: 480px) {
	.wlg-ty-progress-track { overflow-x: auto; justify-content: flex-start; gap: 0 }
	.wlg-ty-progress-line { min-width: 30px }
}

@media print {
	.wlg-ty-container { max-width: 100%; padding: 0 }
	.wlg-ty-header { background: #fff !important; color: #000 !important; border: 2px solid #000; animation: none }
	.wlg-ty-header * { animation: none !important; color: #000 !important }
	.wlg-ty-header-icon::before { display: none }
	.wlg-ty-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; margin-bottom: 10px; animation: none }
	.wlg-ty-progress { display: none }
	.wlg-ty-customer-avatar { background: #fff; color: #000; border: 2px solid #000 }
}
