/* ==========================================================================
   Pheuw Track Order — scoped styles
   ========================================================================== */
.pheuw-to-root {
	--pheuw-to-black: #000000;
	--pheuw-to-white: #ffffff;
	--pheuw-to-gray: #767677;
	--pheuw-to-divider: #ebedee;
	--pheuw-to-card-bg: #f8f8f8;
	--pheuw-to-card-border: #e5e5e5;
	--pheuw-to-red: #c50f26;
	--pheuw-to-red-bg: #fff5f6;
	--pheuw-to-font-din: 'AdihausDIN', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pheuw-to-font-neue: 'AdineuePRO', 'AdihausDIN', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pheuw-to-ease: cubic-bezier(0.22, 1, 0.36, 1);

	width: 100%;
	background: var(--pheuw-to-white);
	color: var(--pheuw-to-black);
	font-family: var(--pheuw-to-font-din);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}
.pheuw-to-root,
.pheuw-to-root * { box-sizing: border-box; }

.pheuw-to-root a { color: var(--pheuw-to-black); text-decoration: none; transition: color .15s ease; }
.pheuw-to-root a:hover { color: var(--pheuw-to-gray); }

/* Layout ------------------------------------------------------------------ */
.pheuw-to-root .pheuw-to-container { max-width: 760px; margin: 0 auto 60px; padding: 16px 0 0; }
.pheuw-to-root .pheuw-to-header { margin-bottom: 24px; }
.pheuw-to-root .pheuw-to-title {
	font-family: var(--pheuw-to-font-neue);
	font-size: 28px; line-height: 1.15; font-weight: 700;
	letter-spacing: 1.2px; text-transform: uppercase;
	margin: 0 0 10px; color: var(--pheuw-to-black);
}
.pheuw-to-root .woocommerce { width: 100%; }

/* Form -------------------------------------------------------------------- */
.pheuw-to-root .track_order > p:first-of-type:not(.form-row) { display: none; } /* WC intro text, if a theme adds one */
.pheuw-to-root .track_order p.form-row {
	margin: 0 0 24px; padding: 0; width: 100%; float: none; clear: both;
}
.pheuw-to-root .track_order label {
	display: block;
	font-family: var(--pheuw-to-font-neue);
	font-size: 14px; line-height: 20px; font-weight: 700;
	letter-spacing: 1.2px; text-transform: uppercase;
	color: #000; margin: 0 0 8px;
}
.pheuw-to-root .track_order input.input-text {
	width: 100%; height: 50px; padding: 0 16px;
	font-family: var(--pheuw-to-font-din); font-size: 15px;
	color: #000; background: #fff;
	border: 1px solid var(--pheuw-to-gray); border-radius: 0;
	box-shadow: none; outline: none;
	transition: border-color .15s ease, outline .15s ease;
}
.pheuw-to-root .track_order input.input-text:focus { border-color: #000; outline: 1px solid #000; }
.pheuw-to-root .track_order input.input-text::placeholder { color: var(--pheuw-to-gray); }
.pheuw-to-root .track_order input.input-text.is-invalid { border-color: var(--pheuw-to-red); outline: 1px solid var(--pheuw-to-red); }

/* Signature button (ID-scoped to beat theme/WC button styles) -------------- */
#pheuw-track-order-page .pheuw-to-btn-wrap { display: block; width: 100%; margin: 8px 0 0; padding: 0; clear: both; }

#pheuw-track-order-page .pheuw-to-btn {
	-webkit-appearance: none; appearance: none;
	position: relative; display: flex; align-items: center; justify-content: space-between;
	width: 100%; min-height: 50px; margin: 0; padding: 0 24px;
	line-height: 50px; font-family: var(--pheuw-to-font-din);
	font-size: 13px; font-weight: 700; letter-spacing: 2px;
	text-align: left; text-transform: uppercase; text-decoration: none; text-shadow: none;
	white-space: nowrap; color: #fff; background: #000; background-image: none;
	border: 1px solid #000; border-radius: 0; box-shadow: none; outline: none;
	cursor: pointer; user-select: none;
	transition: color .25s var(--pheuw-to-ease), opacity .2s ease, transform .08s ease-out;
}
#pheuw-track-order-page .pheuw-to-btn span { color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; }

#pheuw-track-order-page .pheuw-to-btn::before {
	content: ""; position: absolute; pointer-events: none;
	bottom: -4px; left: 3px; width: 100%; height: 3px;
	border-bottom: 1px solid #000; border-left: 1px solid #000;
	transition: border-color .1s ease;
}
#pheuw-track-order-page .pheuw-to-btn::after {
	content: ""; position: absolute; pointer-events: none;
	top: 3px; right: -4px; width: 3px; height: 100%;
	border-top: 1px solid #000; border-right: 1px solid #000;
	transition: border-color .1s ease;
}

#pheuw-track-order-page .pheuw-to-btn-arrow {
	display: flex; align-items: center; justify-content: flex-end;
	margin-left: 24px; width: 24px; height: 12px; line-height: 12px;
}
#pheuw-track-order-page .pheuw-to-btn-arrow svg {
	display: block; width: 24px; height: 12px; fill: currentColor;
	transition: transform .25s var(--pheuw-to-ease);
}

#pheuw-track-order-page .pheuw-to-btn:hover,
#pheuw-track-order-page .pheuw-to-btn:focus { color: var(--pheuw-to-gray); background: #000; border-color: #000; }
#pheuw-track-order-page .pheuw-to-btn:hover .pheuw-to-btn-arrow svg { transform: translateX(6px); }
#pheuw-track-order-page .pheuw-to-btn:active { transform: translate(3px, 3px); }
#pheuw-track-order-page .pheuw-to-btn:active::before,
#pheuw-track-order-page .pheuw-to-btn:active::after { border-color: transparent; }
#pheuw-track-order-page .pheuw-to-btn:focus-visible { outline: 2px dashed #000; outline-offset: 6px; }
#pheuw-track-order-page .pheuw-to-btn.is-loading { opacity: .6; cursor: progress; }

/* WooCommerce notices ------------------------------------------------------ */
.pheuw-to-root .woocommerce-error,
.pheuw-to-root .woocommerce-message,
.pheuw-to-root .woocommerce-info {
	list-style: none; padding: 16px 20px; margin: 0 0 24px;
	font-family: var(--pheuw-to-font-din); font-size: 14px; line-height: 22px;
	border: 0; border-radius: 0; color: #111;
}
.pheuw-to-root .woocommerce-error::before,
.pheuw-to-root .woocommerce-message::before,
.pheuw-to-root .woocommerce-info::before { display: none; }
.pheuw-to-root .woocommerce-error { background: var(--pheuw-to-red-bg); border-left: 3px solid var(--pheuw-to-red); }
.pheuw-to-root .woocommerce-message,
.pheuw-to-root .woocommerce-info { background: var(--pheuw-to-card-bg); border-left: 3px solid #000; }
.pheuw-to-root .woocommerce-notices-wrapper:empty { display: none; }

/* Result ------------------------------------------------------------------- */
.pheuw-to-root .pheuw-to-result-head {
	padding: 24px 0 20px;
	border-top: 1px solid var(--pheuw-to-divider);
	margin-bottom: 8px;
}
.pheuw-to-root .pheuw-to-result-order { margin: 0 0 4px; font-size: 15px; color: #333; }
.pheuw-to-root .pheuw-to-result-status {
	font-family: var(--pheuw-to-font-neue);
	font-size: 34px; line-height: 1.1; font-weight: 700;
	letter-spacing: 1px; text-transform: uppercase;
	margin: 0 0 6px; color: #000;
}
.pheuw-to-root .pheuw-to-result-meta { margin: 0; font-size: 14px; color: var(--pheuw-to-gray); }

/* Progress steps */
.pheuw-to-root .pheuw-to-steps {
	display: grid; grid-template-columns: repeat(4, 1fr);
	list-style: none; margin: 16px 0 32px; padding: 0;
}
.pheuw-to-root .pheuw-to-step {
	position: relative; padding: 26px 8px 0 0; margin: 0;
	font-size: 12px; line-height: 16px; font-weight: 700;
	letter-spacing: .8px; text-transform: uppercase;
	color: var(--pheuw-to-gray);
}
.pheuw-to-root .pheuw-to-step::before {
	content: ""; position: absolute; top: 7px; left: 0; right: 0;
	height: 2px; background: var(--pheuw-to-divider);
}
.pheuw-to-root .pheuw-to-step::after {
	content: ""; position: absolute; top: 0; left: 0;
	width: 16px; height: 16px; background: #fff;
	border: 2px solid var(--pheuw-to-divider);
}
.pheuw-to-root .pheuw-to-step.is-done { color: #000; }
.pheuw-to-root .pheuw-to-step.is-done::before { background: #000; }
.pheuw-to-root .pheuw-to-step.is-done::after { background: #000; border-color: #000; }
.pheuw-to-root .pheuw-to-step.is-current::before { background: linear-gradient(90deg, #000 16px, var(--pheuw-to-divider) 16px); }
.pheuw-to-root .pheuw-to-step.is-current::after { background: #fff; border-color: #000; box-shadow: 3px 3px 0 #000; }
.pheuw-to-root .pheuw-to-step:last-child.is-current::before { background: #000; }

.pheuw-to-root .pheuw-to-section-title,
.pheuw-to-root .woocommerce-order-details__title,
.pheuw-to-root .woocommerce-column__title {
	font-family: var(--pheuw-to-font-neue);
	font-size: 18px; line-height: 1.2; font-weight: 700;
	letter-spacing: 1.2px; text-transform: uppercase;
	color: #000; margin: 32px 0 14px;
}

.pheuw-to-root .pheuw-to-result-hint { font-size: 14px; line-height: 22px; color: #333; margin: 0 0 8px; }

/* Shipments */
.pheuw-to-root .pheuw-to-shipments { display: flex; flex-direction: column; gap: 12px; }
.pheuw-to-root .pheuw-to-shipment {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 18px 20px; background: var(--pheuw-to-card-bg); border-left: 3px solid #000;
}
.pheuw-to-root .pheuw-to-shipment p { margin: 0; }
.pheuw-to-root .pheuw-to-shipment-carrier { font-size: 13px; font-weight: 700; color: var(--pheuw-to-gray); }
.pheuw-to-root .pheuw-to-shipment-number { font-size: 18px; font-weight: 700; letter-spacing: .5px; word-break: break-all; }
.pheuw-to-root .pheuw-to-shipment-date { font-size: 13px; color: #333; }
.pheuw-to-root a.pheuw-to-shipment-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	color: #000; border-bottom: 1px solid #000; padding-bottom: 2px;
}

/* Notes */
.pheuw-to-root .pheuw-to-notes { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--pheuw-to-card-border); }
.pheuw-to-root .pheuw-to-note { padding: 0 0 18px 18px; margin: 0; position: relative; }
.pheuw-to-root .pheuw-to-note::before {
	content: ""; position: absolute; left: -5px; top: 5px;
	width: 9px; height: 9px; background: #000;
}
.pheuw-to-root .pheuw-to-note-date { margin: 0 0 4px; font-size: 12px; color: var(--pheuw-to-gray); }
.pheuw-to-root .pheuw-to-note-text p { margin: 0; font-size: 14px; line-height: 22px; color: #222; }

/* WooCommerce order details table */
.pheuw-to-root .woocommerce-order-details { margin: 0; }
.pheuw-to-root table.shop_table.order_details {
	width: 100%; border-collapse: collapse; border: 1px solid var(--pheuw-to-card-border);
	border-radius: 0; margin: 0 0 24px; font-family: var(--pheuw-to-font-din);
}
.pheuw-to-root table.shop_table.order_details th,
.pheuw-to-root table.shop_table.order_details td {
	padding: 14px 16px; text-align: left; font-size: 14px;
	border: 0; border-bottom: 1px solid var(--pheuw-to-divider); background: transparent;
}
.pheuw-to-root table.shop_table.order_details thead th {
	font-family: var(--pheuw-to-font-neue); font-weight: 700;
	letter-spacing: 1px; text-transform: uppercase; background: var(--pheuw-to-card-bg);
}
.pheuw-to-root table.shop_table.order_details tfoot th { font-weight: 700; }
.pheuw-to-root table.shop_table.order_details tfoot tr:last-child th,
.pheuw-to-root table.shop_table.order_details tfoot tr:last-child td { font-size: 16px; font-weight: 700; border-bottom: 0; }
.pheuw-to-root table.shop_table.order_details .product-name a { text-decoration: underline; }
.pheuw-to-root table.shop_table.order_details .wc-item-meta { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: #444; }
.pheuw-to-root table.shop_table.order_details .wc-item-meta p { display: inline; margin: 0; }

/* Addresses */
.pheuw-to-root .woocommerce-customer-details .col2-set,
.pheuw-to-root .woocommerce-columns--addresses {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%;
}
.pheuw-to-root .woocommerce-columns--addresses .woocommerce-column { width: auto; float: none; padding: 0; margin: 0; }
.pheuw-to-root .woocommerce-columns--addresses .woocommerce-column__title { margin-top: 16px; }
.pheuw-to-root .woocommerce-customer-details address {
	font-style: normal; font-size: 14px; line-height: 22px; color: #222;
	padding: 16px 18px; border: 1px solid var(--pheuw-to-card-border); border-radius: 0; margin: 0;
}
.pheuw-to-root .woocommerce-customer-details address p { margin: 8px 0 0; }
.pheuw-to-root .woocommerce-customer-details address p::before { display: none; }

.pheuw-to-root a.pheuw-to-back {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
	font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	border-bottom: 1px solid #000; padding-bottom: 2px;
}

/* Toasts ------------------------------------------------------------------- */
.pheuw-to-root .pheuw-to-toaster {
	position: fixed; bottom: 28px; right: 28px; z-index: 999999;
	display: flex; flex-direction: column; gap: 12px;
	pointer-events: none; max-width: 440px; width: calc(100vw - 36px);
}
.pheuw-to-root .pheuw-to-toast {
	pointer-events: auto; display: flex; align-items: flex-start; gap: 14px;
	background: #fff; color: #000; border: 2px solid #000; box-shadow: 4px 4px 0 #000;
	padding: 16px 18px; position: relative; overflow: hidden;
	opacity: 0; transform: translateY(20px) scale(.96);
	transition: opacity .3s var(--pheuw-to-ease), transform .3s var(--pheuw-to-ease);
}
.pheuw-to-root .pheuw-to-toast--visible { opacity: 1; transform: translateY(0) scale(1); }
.pheuw-to-root .pheuw-to-toast--leaving { opacity: 0; transform: translateY(12px) scale(.95); }
.pheuw-to-root .pheuw-to-toast-icon {
	width: 34px; height: 34px; background: #000; color: #fff;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; font-size: 19px; line-height: 1;
}
.pheuw-to-root .pheuw-to-toast-body { flex: 1; min-width: 0; padding-top: 1px; }
.pheuw-to-root .pheuw-to-toast-title {
	font-family: var(--pheuw-to-font-neue); font-size: 14px; font-weight: 700;
	letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 3px; line-height: 1.25;
}
.pheuw-to-root .pheuw-to-toast-desc { font-size: 13px; line-height: 19px; color: #333; margin: 0; }
.pheuw-to-root .pheuw-to-toast-close {
	background: transparent; border: 0; cursor: pointer; color: var(--pheuw-to-gray);
	padding: 2px; margin: -2px -2px 0 6px; display: flex; font-size: 18px; line-height: 1;
}
.pheuw-to-root .pheuw-to-toast-close:hover { color: #000; background: transparent; }
.pheuw-to-root .pheuw-to-toast--warning { box-shadow: 4px 4px 0 var(--pheuw-to-red); }
.pheuw-to-root .pheuw-to-toast--warning .pheuw-to-toast-icon { background: var(--pheuw-to-red); }
.pheuw-to-root .pheuw-to-toast-progress {
	position: absolute; bottom: 0; left: 0; height: 3px; width: 100%;
	background: #000; transform-origin: left;
	animation: pheuwToastProgress 4.5s linear forwards;
}
.pheuw-to-root .pheuw-to-toast--warning .pheuw-to-toast-progress { background: var(--pheuw-to-red); }
@keyframes pheuwToastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 600px) {
	.pheuw-to-root .pheuw-to-container { padding: 12px 8px 0; }
	.pheuw-to-root .pheuw-to-title { font-size: 24px; }
	.pheuw-to-root .pheuw-to-result-status { font-size: 26px; }
	.pheuw-to-root .pheuw-to-step { font-size: 10px; letter-spacing: .4px; }
	.pheuw-to-root .woocommerce-customer-details .col2-set,
	.pheuw-to-root .woocommerce-columns--addresses { grid-template-columns: 1fr; }
	.pheuw-to-root .pheuw-to-toaster { bottom: 16px; left: 16px; right: 16px; width: auto; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pheuw-to-root *,
	.pheuw-to-root *::before,
	.pheuw-to-root *::after { transition: none !important; animation-duration: 0s !important; }
}
