/* Uweld Simple Order — custom cart page */

.uweld-cart-page {
	padding: 40px 0 60px;
}

.uweld-cart-title {
	margin: 0 0 28px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.uweld-cart-lead {
	margin: -16px 0 24px;
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	max-width: 760px;
}

.uweld-simple-order .uw-captcha-row {
	margin: 0;
}

.uweld-captcha-note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #888;
	text-align: center;
}

.uweld-captcha-note a {
	color: inherit;
	text-decoration: underline;
}

.uweld-captcha-note a:hover {
	color: var(--uw-spark, #eb6600);
}

.uweld-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 40px;
	align-items: start;
}

.uweld-cart-col {
	min-width: 0;
}

/* ---- Cart items ---- */

.uweld-cart-items {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
}

.uweld-cart-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.uweld-cart-item:last-child {
	border-bottom: none;
}

.uweld-cart-item-thumb {
	flex: 0 0 72px;
	width: 72px;
}

.uweld-cart-item-thumb img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 4px;
}

.uweld-cart-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.uweld-cart-item-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px;
}

.uweld-cart-item-name a {
	color: inherit;
	text-decoration: none;
}

.uweld-cart-item-name a:hover {
	color: #e53935;
}

.uweld-cart-item-price {
	font-size: 13px;
	color: #777;
	margin-bottom: 10px;
}

.uweld-cart-item-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.uweld-qty-label {
	font-size: 13px;
	color: #555;
}

.uweld-qty-input {
	width: 64px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
}

.uweld-cart-item-remove {
	font-size: 13px;
	color: #e53935;
	text-decoration: none;
}

.uweld-cart-item-remove:hover {
	text-decoration: underline;
}

.uweld-cart-item-total {
	flex: 0 0 auto;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.uweld-cart-items-actions {
	padding: 16px 0 4px;
}

/* ---- Totals ---- */

.uweld-cart-totals {
	margin-top: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	padding: 8px 16px;
}

.uweld-cart-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 15px;
}

.uweld-cart-totals-total {
	font-size: 18px;
	font-weight: 700;
}

/* ---- Order form ---- */

.uweld-simple-order {
	padding: 24px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	position: sticky;
	top: 24px;
}

.uweld-simple-order h3 {
	margin: 0 0 16px;
	font-size: 20px;
}

.uweld-simple-order .form-row {
	margin-bottom: 14px;
}

.uweld-simple-order label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.uweld-simple-order .required {
	color: #d33;
}

.uweld-required-note {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.4;
	color: #888;
}

.uweld-simple-order input[type="text"],
.uweld-simple-order input[type="tel"],
.uweld-simple-order input[type="email"],
.uweld-simple-order textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
}

.uweld-simple-order textarea {
	min-height: 80px;
	resize: vertical;
}

.uweld-simple-order .form-error {
	color: #d33;
	font-size: 13px;
	margin-top: 4px;
}

.uweld-simple-order .submit-wrap {
	margin-top: 10px;
}

/* Honeypot: скрыто от людей, видно ботам */
.uweld-simple-order .uw-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Согласие на обработку ПД */
.uweld-consent-row {
	margin-bottom: 14px;
}

.uweld-simple-order label.uweld-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.uweld-simple-order label.uweld-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: auto;
	margin-top: 2px;
}

.uweld-simple-order .submit-wrap button {
	width: 100%;
}

/* ---- Notice ---- */

.uweld-simple-order-note {
	max-width: 720px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 6px;
	text-align: center;
	font-size: 16px;
}

.uweld-simple-order-note.ok {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #2e7d32;
}

.uweld-simple-order-note.err {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	color: #c62828;
}

/* ---- Order success (thank-you, centered, site style) ---- */

.uweld-order-success {
	max-width: 640px;
	margin: 24px auto 16px;
	background: #fff;
	border: 2px solid var(--uw-carbon, #111114);
	box-shadow: var(--uw-shadow, 6px 6px 0 #111114);
	border-radius: 0;
	padding: 48px 40px 40px;
	text-align: center;
}

.uweld-order-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--uw-spark, #eb6600);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.uweld-order-success-icon svg {
	width: 34px;
	height: 34px;
}

.uweld-order-success-title {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.uweld-order-success-text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}

.uweld-order-success-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---- Empty cart ---- */

.uweld-cart-empty {
	padding: 32px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	font-size: 16px;
}

.uweld-cart-empty p {
	margin: 0 0 12px;
}

.uweld-cart-empty a.uweld-btn {
	display: inline-block;
}

/* ---- Buttons ---- */

.uweld-btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 35px;
	font-family: "Montserrat", "Inter", sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	line-height: 1.4;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.uweld-btn-primary {
	background: var(--e-global-color-accent, #eb6600);
	color: #fff;
}

.uweld-btn-primary:hover {
	background: var(--e-global-color-text, #222222);
	color: #fff;
}

.uweld-btn-outline {
	background: #fff;
	color: var(--e-global-color-accent, #eb6600);
	border: 2px solid var(--e-global-color-accent, #eb6600);
}

.uweld-btn-outline:hover {
	background: var(--e-global-color-accent, #eb6600);
	border-color: var(--e-global-color-accent, #eb6600);
	color: #fff;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
	.uweld-cart-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.uweld-simple-order {
		position: static;
	}
}

@media (max-width: 480px) {
	.uweld-order-success {
		padding: 32px 20px 28px;
		margin: 16px auto 8px;
	}

	.uweld-order-success-title {
		font-size: 22px;
	}

	.uweld-cart-item {
		flex-wrap: wrap;
	}

	.uweld-cart-item-total {
		width: 100%;
		text-align: right;
	}
}
