/**
 * Vynox Order Tracking — ported from the standalone "WC Order Tracking"
 * plugin's assets/css/frontend.css. Visuals unchanged except the accent
 * color pipeline: the original set a single --wcot-accent HEX value (from
 * a dashboard "Brand Color" field) and derived hover/muted/tint from it via
 * color-mix(). This plugin's own convention (see cart.css/checkout.css) is
 * per-widget-instance Style-tab colors injected as "R G B" triplets
 * consumed via rgb(var(--x) / alpha) — so --wcot-accent/--wcot-accent-hover
 * are now two independently-set triplets (Elementor\Colors::hex_to_rgb_triplet()),
 * not a single hex value with a computed hover shade. --wcot-accent-muted/
 * --wcot-accent-tint stay as color-mix() derivations of --wcot-accent alone,
 * same as before — only the two "primary" shades are separately overridable.
 */

.wcot-wrap {
/* 	--wcot-accent: 109 61 245;
	--wcot-accent-hover: 87 45 208; */
	--wcot-accent-muted: color-mix( in srgb, rgb( var( --wcot-accent ) / 1 ) 55%, white );
	--wcot-accent-tint: color-mix( in srgb, rgb( var( --wcot-accent ) / 1 ) 12%, white );
	--wcot-success-bg: #dcfce7;
	--wcot-success-text: rgb( var( --wcot-accent ) / 1 );
	--wcot-success-dot: #22c55e;
	--wcot-error-bg: #fee2e2;
	--wcot-error-text: #b91c1c;
	--wcot-error-icon: #ef4444;
	--wcot-border: #e5e7eb;
	--wcot-text: #000000;
	--wcot-text-muted: #6b7280;
	--wcot-bg-muted: #f9fafb;
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var( --wcot-text );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.wcot-wrap *,
.wcot-wrap *::before,
.wcot-wrap *::after {
	box-sizing: border-box;
}

.wcot-wrap .wcot-icon {
	width: 20px;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

/* ---------- Card (panels 1-3) ---------- */

.wcot-wrap .wcot-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 ), 0 8px 24px rgba( 0, 0, 0, 0.06 );
	padding: 32px 28px;
}

.wcot-wrap .wcot-card .wcot-heading {
	text-align: center;
	font-size: 40px;
	font-weight: 700;
	margin: 0 0 24px;
	color: var( --wcot-text );
}

/* ---------- Alert banner ---------- */

.wcot-wrap .wcot-card .wcot-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.wcot-wrap .wcot-card .wcot-alert.wcot-alert--error {
	background: var( --wcot-error-bg );
	color: var( --wcot-error-text );
}

.wcot-wrap .wcot-card .wcot-alert .wcot-alert-icon {
	flex: 0 0 auto;
	color: var( --wcot-error-icon );
	font-size: 20px;
	margin-top: 1px;
	display: flex;
}

/* ---------- Form fields ---------- */

.wcot-wrap .wcot-card .wcot-field {
	margin-bottom: 25px;
}

.wcot-wrap .wcot-card .wcot-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var( --wcot-text );
}

.wcot-wrap .wcot-card .wcot-field .wcot-input-wrap {
	position: relative;
}

.wcot-wrap .wcot-card .wcot-field .wcot-input-wrap .wcot-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY( -50% );
	color: var( --wcot-text-muted );
	font-size: 16px;
	pointer-events: none;
	display: flex;
}

.wcot-wrap .wcot-card .wcot-field .wcot-input-wrap input {
	width: 100%;
	padding: 12px 14px 12px 40px;
	border: 1px solid var( --wcot-border );
	border-radius: 10px;
	font-size: 15px;
	background: #fff;
	color: var( --wcot-text );
}

.wcot-wrap .wcot-card .wcot-footer-note {
	position: relative;
}

.wcot-wrap .wcot-card .wcot-footer-note:before {
	position: absolute;
	top: 16px;
	left: 0;
	width: 100%;
	height: 1px;
	background: #d7d7d7;
	content: "";
}

.wcot-wrap .wcot-card .wcot-footer-note span {
	background: #fff;
	padding: 5px 22px;
	position: inherit;
	z-index: 1;
}

.wcot-wrap .wcot-card .wcot-footer-note p {
	margin: 13px 0 0 0;
	max-width: 350px;
}

.wcot-wrap .wcot-card .wcot-field .wcot-input-wrap input:focus {
	outline: none;
	border-color: rgb( var( --wcot-accent ) / 1 );
	box-shadow: 0 0 0 3px var( --wcot-accent-tint );
}

/* Honeypot — off-screen, but not display:none, so simplistic bot scripts still "see" a fillable field */
.wcot-wrap .wcot-card .wcot-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

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

.wcot-wrap .wcot-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	padding: 18px 20px;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	min-height: 50px;
}

.wcot-wrap .wcot-btn span {
	line-height: normal;
}

.wcot-wrap .wcot-card .wcot-btn--primary {
	width: 100%;
	background: rgb( var( --wcot-accent ) / 1 );
	color: #fff;
	border-color: rgb( var( --wcot-accent ) / 1 );
}

.wcot-wrap .wcot-card .wcot-btn--primary:hover {
	background: rgb( var( --wcot-accent-hover ) / 1 );
	border-color: rgb( var( --wcot-accent-hover ) / 1 );
}

.wcot-wrap .wcot-card .wcot-btn--primary:disabled,
.wcot-wrap .wcot-card .wcot-btn--primary[aria-disabled="true"] {
	background: var( --wcot-accent-muted );
	border-color: var( --wcot-accent-muted );
	cursor: default;
}

.wcot-wrap .wcot-track-another .wcot-btn--outline {
	background: #fff;
	color: rgb( var( --wcot-accent ) / 1 );
	border-color: rgb( var( --wcot-accent ) / 1 );
}

.wcot-wrap .wcot-track-another .wcot-btn--outline:hover {
	background: var( --wcot-accent-tint );
}

.wcot-wrap .wcot-card .wcot-btn-icon--loading {
	display: none;
}

.wcot-wrap .wcot-card .wcot-submit-btn.is-loading .wcot-btn-icon--default {
	display: none;
}

.wcot-wrap .wcot-card .wcot-submit-btn.is-loading .wcot-btn-icon--loading {
	display: inline-block;
}

.wcot-wrap .wcot-spin {
	animation: wcot-spin 0.8s linear infinite;
}

@keyframes wcot-spin {
	from {
		transform: rotate( 0deg );
	}

	to {
		transform: rotate( 360deg );
	}
}

.wcot-wrap .wcot-card .wcot-footer-note {
	text-align: center;
	font-size: 13px;
	color: var( --wcot-text-muted );
	margin: 22px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wcot-wrap .wcot-card .wcot-footer-note a {
	color: rgb( var( --wcot-accent ) / 1 );
	font-weight: 600;
	text-decoration: none;
}

.wcot-wrap .wcot-card .wcot-footer-note a:hover {
	text-decoration: underline;
}

/* ---------- Panel 4: order details ---------- */

.wcot-wrap .wcot-order-heading {
	text-align: center;
	font-size: 26px;
	font-weight: 800;
	margin: 8px 0 16px;
	color: var( --wcot-text );
}

.wcot-wrap .wcot-badge-row {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.wcot-wrap .wcot-badge-row .wcot-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px 6px 8px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
}

.wcot-wrap .wcot-badge-row .wcot-badge--success {
	background: var( --wcot-success-bg );
	color: var( --wcot-success-text );
}

.wcot-wrap .wcot-badge-row .wcot-badge--problem {
	background: var( --wcot-error-bg );
	color: var( --wcot-error-text );
}

.wcot-wrap .wcot-badge-row .wcot-badge .wcot-badge-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
}

.wcot-wrap .wcot-badge-row .wcot-badge--success .wcot-badge-dot {
	background: var( --wcot-success-dot );
}

.wcot-wrap .wcot-badge-row .wcot-badge--problem .wcot-badge-dot {
	background: var( --wcot-error-icon );
}

.wcot-wrap .wcot-subtitle {
	text-align: center;
	color: var( --wcot-text-muted );
	font-size: 15px;
	margin: 0 0 32px;
}

/* ---------- Problem alert (replaces stepper) ---------- */

.wcot-wrap .wcot-problem-alert {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var( --wcot-error-bg );
	color: var( --wcot-error-text );
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 28px;
}

.wcot-wrap .wcot-problem-alert .wcot-problem-icon {
	flex: 0 0 auto;
	font-size: 22px;
	margin-top: 2px;
}

.wcot-wrap .wcot-problem-alert .wcot-problem-body strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.wcot-wrap .wcot-problem-alert .wcot-problem-body p {
	margin: 0;
	font-size: 14px;
}

/* ---------- Stepper ---------- */

.wcot-wrap .wcot-stepper {
	position: relative;
	margin: 0 0 32px;
	padding: 0 8px;
}

.wcot-wrap .wcot-stepper .wcot-stepper-line {
	position: absolute;
	top: 19px;
	left: 12.5%;
	right: 12.5%;
	height: 3px;
	background: var( --wcot-border );
	border-radius: 2px;
	z-index: 0;
}

.wcot-wrap .wcot-stepper .wcot-stepper-line .wcot-stepper-line-fill {
	display: block;
	height: 100%;
	background: rgb( var( --wcot-accent ) / 1 );
	border-radius: 2px;
	transition: width 0.3s ease;
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps {
	position: relative;
	display: flex;
	justify-content: space-between;
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 25%;
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step .wcot-step-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var( --wcot-border );
	color: var( --wcot-text-muted );
	font-size: 18px;
	margin-bottom: 8px;
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step.is-active .wcot-step-icon {
	background: rgb( var( --wcot-accent ) / 1 );
	border-color: rgb( var( --wcot-accent ) / 1 );
	color: #fff;
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step .wcot-step-label {
	font-size: 13px;
	font-weight: 600;
	color: var( --wcot-text-muted );
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step.is-active .wcot-step-label {
	color: rgb( var( --wcot-accent ) / 1 );
}

.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step .wcot-step-date {
	font-size: 12px;
	color: var( --wcot-text-muted );
	margin-top: 2px;
}

/* ---------- Boxed cards: Order Summary / Shipping Details ---------- */

.wcot-wrap .wcot-box {
	background: #fff;
	border: 1px solid var( --wcot-border );
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 20px;
}

.wcot-wrap .wcot-box .wcot-box-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
}

.wcot-wrap .wcot-box .wcot-table {
	width: 100%;
	border-collapse: collapse;
}

.wcot-wrap .wcot-box .wcot-table thead th {
	background: var( --wcot-bg-muted );
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var( --wcot-text-muted );
	padding: 10px 12px;
	font-weight: 600;
}

.wcot-wrap .wcot-box .wcot-table .wcot-col-qty,
.wcot-wrap .wcot-box .wcot-table .wcot-col-price {
	text-align: right;
}

.wcot-wrap .wcot-box .wcot-table tbody td {
	padding: 12px;
	border-bottom: 1px solid var( --wcot-border );
	font-size: 14px;
	vertical-align: middle;
}

.wcot-wrap .wcot-box .wcot-table tbody tr:last-child td {
	border-bottom: none;
}

.wcot-wrap .wcot-box .wcot-table .wcot-product-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wcot-wrap .wcot-box .wcot-table .wcot-product-cell .wcot-product-thumb img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var( --wcot-border );
	display: block;
}

.wcot-wrap .wcot-box .wcot-table .wcot-product-cell .wcot-product-info {
	display: flex;
	flex-direction: column;
}

.wcot-wrap .wcot-box .wcot-table .wcot-product-cell .wcot-product-info .wcot-product-name {
	font-weight: 600;
}

.wcot-wrap .wcot-box .wcot-table .wcot-product-cell .wcot-product-info .wcot-product-sku {
	font-size: 12px;
	color: var( --wcot-text-muted );
	margin-top: 2px;
}

.wcot-wrap .wcot-box .wcot-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	font-size: 15px;
	padding-top: 16px;
	margin-top: 4px;
}

.wcot-wrap .wcot-box .wcot-total-row .wcot-total-amount {
	font-size: 20px;
	color: rgb( var( --wcot-accent ) / 1 );
}

/* ---------- Shipping details rows ---------- */

.wcot-wrap .wcot-box .wcot-detail-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 0;
}

.wcot-wrap .wcot-box .wcot-detail-row + .wcot-detail-row {
	border-top: 1px solid var( --wcot-border );
}

.wcot-wrap .wcot-box .wcot-detail-row .wcot-detail-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var( --wcot-accent-tint );
	color: rgb( var( --wcot-accent ) / 1 );
	font-size: 16px;
}

.wcot-wrap .wcot-box .wcot-detail-row .wcot-detail-body {
	display: flex;
	flex-direction: column;
}

.wcot-wrap .wcot-box .wcot-detail-row .wcot-detail-body .wcot-detail-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var( --wcot-text-muted );
	margin-bottom: 3px;
}

.wcot-wrap .wcot-box .wcot-detail-row .wcot-detail-body .wcot-detail-value {
	font-size: 14px;
	font-weight: 600;
	color: var( --wcot-text );
}

.wcot-wrap .wcot-track-another {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

@media ( max-width: 480px ) {
	.wcot-wrap .wcot-card {
		padding: 24px 18px;
	}

	.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step .wcot-step-label {
		font-size: 11px;
	}

	.wcot-wrap .wcot-stepper .wcot-stepper-steps .wcot-step .wcot-step-date {
		font-size: 10px;
	}
}
