/**
 * Puratek Order Tracking — "Track My Order" widget styles.
 * Scoped under .puratek-ot. Accent color is pulled from the site's own
 * Woodmart primary color (--wd-primary-color, #F29421) with a static
 * fallback so the widget still looks correct if that variable is absent.
 */

.puratek-ot {
	--puratek-ot-accent: var(--wd-primary-color, #f5820b);
	--puratek-ot-accent-rgb: 245, 130, 11;
	--puratek-ot-accent-deep: #ef6d0a;
	--puratek-ot-ink: #16233a;
	--puratek-ot-muted: #6b7a90;
	--puratek-ot-border: #e6eaf1;
	--puratek-ot-surface: #ffffff;

	width: 100%;
	max-width: 630px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
	color: var(--puratek-ot-ink);
	-webkit-font-smoothing: antialiased;
}

.puratek-ot__card {
	position: relative;
	background: var(--puratek-ot-surface);
	border: 1px solid #f4f0ec;
	border-radius: 24px;
	padding: 22px 74px 21px;
	box-shadow:
		0 2px 8px rgba(39, 49, 68, 0.035),
		0 14px 34px rgba(221, 118, 41, 0.09);
}

/* ---------------------------------------------------------------- header */

.puratek-ot__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	margin: 0 auto 11px;
	border-radius: 50%;
	background: rgba(var(--puratek-ot-accent-rgb), 0.11);
	color: var(--puratek-ot-accent);
}

.puratek-ot__icon svg,
.puratek-ot__icon img {
	width: 38px;
	height: 38px;
	display: block;
	object-fit: contain;
}

.puratek-ot__title {
	margin: 0 0 5px;
	text-align: center;
	font-size: 27px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--puratek-ot-ink);
}

.puratek-ot__intro {
	margin: 0 auto 20px;
	max-width: 410px;
	text-align: center;
	color: var(--puratek-ot-muted);
	font-size: 14px;
	line-height: 1.48;
}

.puratek-ot__intro-highlight {
	color: var(--puratek-ot-accent);
	font-weight: 600;
	white-space: nowrap;
}

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

.puratek-ot__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.puratek-ot__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.puratek-ot__field label {
	font-weight: 700;
	font-size: 13px;
	letter-spacing: -0.005em;
	color: var(--puratek-ot-ink);
}

.puratek-ot__input-wrap {
	position: relative;
	display: block;
}

.puratek-ot__input-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	display: flex;
	pointer-events: none;
	color: #9aa6b8;
	transition: color 0.15s ease;
}

.puratek-ot__input-icon svg,
.puratek-ot__input-icon img {
	width: 17px;
	height: 17px;
	display: block;
	object-fit: contain;
}

.puratek-ot__field input {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 10px 15px 10px 42px;
	border: 1.5px solid var(--puratek-ot-border);
	border-radius: 11px;
	font-size: 13px;
	font-family: inherit;
	color: var(--puratek-ot-ink);
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.puratek-ot__field input::placeholder {
	color: #a6b1c2;
}

/* The first field is softly highlighted in the supplied reference. */
.puratek-ot__field:first-child input {
	border-color: rgba(var(--puratek-ot-accent-rgb), 0.48);
	box-shadow: 0 4px 10px rgba(var(--puratek-ot-accent-rgb), 0.09);
}

/* The email row in the reference carries a soft accent halo. */
.puratek-ot__input-wrap:hover input {
	border-color: rgba(var(--puratek-ot-accent-rgb), 0.5);
}

.puratek-ot__field input:focus {
	border-color: var(--puratek-ot-accent);
	box-shadow: 0 0 0 4px rgba(var(--puratek-ot-accent-rgb), 0.14);
}

.puratek-ot__input-wrap:focus-within .puratek-ot__input-icon {
	color: var(--puratek-ot-accent);
}

.puratek-ot__submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin-top: 2px;
	padding: 11px 22px;
	border: none;
	border-radius: 12px;
	background-color: #ef6e08 !important;
	background-image: none !important;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.005em;
	cursor: pointer;
	box-shadow: 0 9px 18px -8px rgba(var(--puratek-ot-accent-rgb), 0.78);
	transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.puratek-ot__submit-arrow {
	width: 18px;
	height: 18px;
	flex: none;
	transition: transform 0.18s ease;
}

.puratek-ot__submit:hover:not(:disabled) {
	background-color: #ef6e08 !important;
	background-image: none !important;
	filter: brightness(1.04);
	box-shadow: 0 14px 26px -10px rgba(var(--puratek-ot-accent-rgb), 0.95);
}

.puratek-ot__submit:hover:not(:disabled) .puratek-ot__submit-arrow {
	transform: translateX(3px);
}

.puratek-ot__submit:active:not(:disabled) {
	background-color: #ef6e08 !important;
	background-image: none !important;
	transform: translateY(1px);
}

.puratek-ot__submit:disabled {
	background-color: #ef6e08 !important;
	background-image: none !important;
	cursor: wait;
	opacity: 0.7;
	box-shadow: none;
}

.puratek-ot__submit:focus-visible {
	outline: 2px solid var(--puratek-ot-accent);
	outline-offset: 3px;
}

/* --------------------------------------------------------- secure footer */

.puratek-ot__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 14px 0 0;
	color: var(--puratek-ot-muted);
	font-size: 11px;
	line-height: 1.4;
}

.puratek-ot__secure svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: #8fa0b8;
}

/* --------------------------------------------------------------- results */

.puratek-ot__result {
	margin-top: 22px;
}

.puratek-ot__result:empty {
	margin-top: 0;
}

.puratek-ot__message {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f4f6fa;
	color: var(--puratek-ot-ink);
	font-size: 14px;
}

.puratek-ot__message--error {
	background: #fdeceb;
	color: #9c1c1c;
}

.puratek-ot__order {
	padding: 20px 22px;
	border: 1px solid var(--puratek-ot-border);
	border-radius: 14px;
	background: #fafbfd;
}

.puratek-ot__order-number {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 16px;
}

.puratek-ot__order-date {
	font-weight: 400;
	color: var(--puratek-ot-muted);
	font-size: 13px;
}

.puratek-ot__status {
	margin: 0 0 4px;
}

.puratek-ot__status strong {
	color: var(--puratek-ot-accent);
}

.puratek-ot__status-note {
	color: var(--puratek-ot-muted);
	font-size: 13.5px;
}

.puratek-ot__tracking-heading {
	margin: 18px 0 8px;
}

.puratek-ot__tracking-item {
	margin: 0 0 12px;
	padding: 13px 15px;
	border: 1px solid var(--puratek-ot-border);
	border-radius: 12px;
	background: #fff;
	font-size: 14px;
}

.puratek-ot__tracking-date {
	color: var(--puratek-ot-muted);
	font-size: 13px;
}

.puratek-ot__tracking-item a {
	display: inline-block;
	margin-top: 6px;
	font-weight: 700;
	color: var(--puratek-ot-accent);
	text-decoration: none;
}

.puratek-ot__tracking-item a:hover {
	text-decoration: underline;
}

.puratek-ot__no-tracking {
	margin: 0;
	color: var(--puratek-ot-muted);
}

@media (max-width: 700px) {
	.puratek-ot {
		max-width: 630px;
		padding: 14px;
	}

	.puratek-ot__card {
		padding-right: clamp(28px, 9vw, 64px);
		padding-left: clamp(28px, 9vw, 64px);
	}

}

@media (max-width: 480px) {
	.puratek-ot {
		padding: 10px;
	}

	.puratek-ot__card {
		padding: 26px 20px 22px;
		border-radius: 20px;
	}

	.puratek-ot__icon {
		width: 68px;
		height: 68px;
	}

	.puratek-ot__icon svg,
	.puratek-ot__icon img {
		width: 38px;
		height: 38px;
	}

	.puratek-ot__title {
		font-size: 25px;
	}

	.puratek-ot__intro {
		font-size: 13.5px;
	}

	.puratek-ot__intro-highlight {
		white-space: normal;
	}

	.puratek-ot__secure {
		align-items: flex-start;
		text-align: center;
	}
}
