/* TOB Pre-Departure Shipments – matches the site's home page (violet #6f1343) */
.tob-pdo-dash,
.tob-pdo-single,
.tob-pdo-content {
	--tob-pdo-brand: #6f1343;
	--tob-pdo-brand-tint: #f6eef2;
	--tob-pdo-border: #e6e6e6;
	--tob-pdo-band: #f5f5f5;
	--tob-pdo-muted: #6b6b70;
	--tob-pdo-text: #222;
	--tob-pdo-radius: 12px;
}

/* Shared --------------------------------------------------------------- */
.tob-pdo-heading {
	margin: 0 0 28px;
	text-align: center;
	color: var(--tob-pdo-brand);
	font-weight: 500;
	line-height: 1.3;
}
.tob-pdo-heading::after {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin: 14px auto 0;
	background: var(--tob-pdo-brand);
	opacity: .35;
}
h3.tob-pdo-heading { font-size: 1.25em; margin-bottom: 20px; }
.tob-pdo-placeholder {
	display: inline-block;
	padding: 4px 8px;
	border: 1px dashed #b9b9be;
	border-radius: 4px;
	color: var(--tob-pdo-muted, #6b6b70);
	font-size: .85em;
}

/* Notices */
.tob-pdo-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-left: 4px solid var(--tob-pdo-brand, #6f1343);
	background: var(--tob-pdo-brand-tint, #f6eef2);
	border-radius: 6px;
	line-height: 1.6;
}
.tob-pdo-notice p:last-child { margin-bottom: 0; }
.tob-pdo-notice--warn { border-left-color: #b7791f; background: #fdf6ea; }
.tob-pdo-notice .button { margin-left: 8px; }

/* Status pill */
.tob-pdo-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ececef;
	font-size: .85em;
	font-weight: 600;
}
.tob-pdo-pill--coming_soon { background: var(--tob-pdo-brand-tint); color: var(--tob-pdo-brand); }
.tob-pdo-pill--at_sea,
.tob-pdo-pill--arriving { background: #e3eefb; color: #1d4f8c; }
.tob-pdo-pill--customs { background: #fdf0d9; color: #8a5a00; }
.tob-pdo-pill--dispatch,
.tob-pdo-pill--arrived { background: #e3f4e8; color: #1f6b3a; }

/* Facts boxes */
.tob-pdo-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 20px 0 0;
}
.tob-pdo-facts > div {
	background: #fff;
	border: 1px solid var(--tob-pdo-border);
	border-radius: 10px;
	padding: 14px 16px;
}
.tob-pdo-facts dt { color: var(--tob-pdo-muted); font-size: .85em; font-weight: 400; margin: 0 0 4px; }
.tob-pdo-facts dd { margin: 0; font-size: 1.15em; font-weight: 700; color: var(--tob-pdo-brand); }

/* Dashboard [pdo_dashboard] ------------------------------------------- */
.tob-pdo-dash {
	border: 1px solid var(--tob-pdo-border);
	border-radius: var(--tob-pdo-radius);
	background: #fff;
	padding: 28px;
}
.tob-pdo-dash--plain { border: 0; padding: 0; background: transparent; }
.tob-pdo-dash__title { margin: 0 0 10px; font-size: 1.6em; }
.tob-pdo-dash__intro { margin: 0 0 20px; font-size: 1.1em; line-height: 1.6; }
.tob-pdo-grid {
	display: grid;
	grid-template-columns: repeat(var(--tob-pdo-cols, 2), minmax(0, 1fr));
	gap: 18px;
}
.tob-pdo-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border: 1px solid var(--tob-pdo-border);
	border-radius: var(--tob-pdo-radius);
	background: #fafafa;
	color: var(--tob-pdo-text);
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tob-pdo-card:hover,
.tob-pdo-card:focus-visible {
	border-color: var(--tob-pdo-brand);
	box-shadow: 0 6px 18px rgba(111, 19, 67, .08);
	transform: translateY(-1px);
	color: var(--tob-pdo-text);
}
.tob-pdo-card__top { display: flex; justify-content: space-between; align-items: center; }
.tob-pdo-card__num { font-size: 1.45em; font-weight: 600; color: var(--tob-pdo-brand); }
.tob-pdo-icon { color: var(--tob-pdo-brand); flex: none; }
.tob-pdo-card__status,
.tob-pdo-card__wines,
.tob-pdo-card__desc,
.tob-pdo-card__update { color: var(--tob-pdo-muted); }
.tob-pdo-card__eta { font-size: 1.45em; font-weight: 700; margin: 6px 0; color: var(--tob-pdo-text); }
.tob-pdo-card__desc,
.tob-pdo-card__update { font-size: .92em; line-height: 1.5; }
.tob-pdo-card__update strong { color: var(--tob-pdo-text); font-weight: 600; }
.tob-pdo-card__cta { margin-top: auto; padding-top: 14px; text-align: center; font-weight: 500; color: var(--tob-pdo-brand); }
.tob-pdo-card:hover .tob-pdo-card__cta { text-decoration: underline; }

/* Shipment content [pdo_shipment_content] ----------------------------- */
.tob-pdo-content { color: var(--tob-pdo-text); }
.tob-pdo-sc .tob-pdo-section,
.tob-pdo-sc .tob-pdo-hero { margin-bottom: 0; }

/* 1. Overview */
.tob-pdo-overview {
	max-width: 960px;
	margin: 8px auto 64px;
	text-align: center;
}
.tob-pdo-eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--tob-pdo-brand-tint);
	color: var(--tob-pdo-brand);
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tob-pdo-lead {
	max-width: 760px;
	margin: 0 auto 40px;
	font-size: 1.12em;
	line-height: 1.75;
	color: #444;
}
.tob-pdo-lead p:last-child { margin-bottom: 0; }

/* Progress stepper */
.tob-pdo-steps {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin: 0 0 44px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.tob-pdo-step {
	position: relative;
	margin: 0;
	padding: 0 6px;
	text-align: center;
}
.tob-pdo-step::before { /* connecting line */
	content: "";
	position: absolute;
	top: 9px;
	left: calc(-50% + 12px);
	right: calc(50% + 12px);
	height: 2px;
	background: #e3e3e6;
}
.tob-pdo-step:first-child::before { display: none; }
.tob-pdo-step.is-done::before,
.tob-pdo-step.is-current::before { background: var(--tob-pdo-brand); }
.tob-pdo-step__dot {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	margin: 0 auto 12px;
	border-radius: 50%;
	border: 2px solid #d6d6da;
	background: #fff;
	box-sizing: border-box;
}
.tob-pdo-step.is-done .tob-pdo-step__dot {
	border-color: var(--tob-pdo-brand);
	background: var(--tob-pdo-brand);
}
.tob-pdo-step.is-done .tob-pdo-step__dot::after { /* tick */
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.tob-pdo-step.is-current .tob-pdo-step__dot {
	border: 6px solid var(--tob-pdo-brand);
	box-shadow: 0 0 0 6px rgba(111, 19, 67, .14);
}
.tob-pdo-step__label {
	display: block;
	font-size: .82em;
	line-height: 1.35;
	color: #9a9aa0;
}
.tob-pdo-step.is-done .tob-pdo-step__label { color: #555; }
.tob-pdo-step.is-current .tob-pdo-step__label { color: var(--tob-pdo-brand); font-weight: 700; }

/* Key dates */
.tob-pdo-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--tob-pdo-border);
	border-bottom: 1px solid var(--tob-pdo-border);
}
.tob-pdo-stats > div { padding: 22px 16px; }
.tob-pdo-stats > div + div { border-left: 1px solid var(--tob-pdo-border); }
.tob-pdo-stats dt {
	margin: 0 0 6px;
	color: var(--tob-pdo-muted);
	font-size: .76em;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.tob-pdo-stats dd {
	margin: 0;
	color: var(--tob-pdo-brand);
	font-size: 1.3em;
	font-weight: 600;
	line-height: 1.3;
}

/* 2. Tracking: map + updates */
.tob-pdo-track {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	margin: 0 0 72px;
	align-items: start;
}
.tob-pdo-track { max-width: 1040px; margin-left: auto !important; margin-right: auto !important; }
.tob-pdo-track.has-both { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.tob-pdo-mapcard {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .08);
}
.tob-pdo-mapcard img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	object-position: center;
}
.tob-pdo-mapcard figcaption {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	font-size: .9em;
}
.tob-pdo-mapcard__label { flex: 1; font-weight: 600; }
.tob-pdo-mapcard__label em {
	display: block;
	font-style: normal;
	font-weight: 400;
	font-size: .9em;
	color: var(--tob-pdo-muted);
}
.tob-pdo-mapcard figcaption > a {
	color: var(--tob-pdo-brand);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.tob-pdo-mapcard figcaption > a:hover { text-decoration: underline; }
.tob-pdo-live { /* pulsing "live" dot */
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2fa36b;
	box-shadow: 0 0 0 0 rgba(47, 163, 107, .5);
	animation: tob-pdo-pulse 2s infinite;
}
@keyframes tob-pdo-pulse {
	70% { box-shadow: 0 0 0 8px rgba(47, 163, 107, 0); }
	100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); }
}
@media (prefers-reduced-motion: reduce) { .tob-pdo-live { animation: none; } }

.tob-pdo-news {
	padding: 26px 26px 10px;
	border-radius: 14px;
	background: #faf7f8;
	border: 1px solid #efe6ea;
}
.tob-pdo-track.has-both .tob-pdo-news { max-height: 372px; overflow-y: auto; }
.tob-pdo-news__title {
	margin: 0 0 22px;
	color: var(--tob-pdo-brand);
	font-size: 1.15em;
	font-weight: 600;
}

/* Updates timeline */
.tob-pdo-updates {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tob-pdo-updates li {
	position: relative;
	margin: 0;
	padding: 0 0 22px 26px;
}
.tob-pdo-updates li::before { /* dot */
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d4b8c6;
	box-shadow: 0 0 0 4px #faf7f8;
}
.tob-pdo-updates li::after { /* line */
	content: "";
	position: absolute;
	left: 4px;
	top: 18px;
	bottom: 2px;
	width: 2px;
	background: #eadde3;
}
.tob-pdo-updates li:last-child::after { display: none; }
.tob-pdo-updates li:first-child::before { background: var(--tob-pdo-brand); }
.tob-pdo-updates time {
	display: block;
	margin-bottom: 4px;
	color: var(--tob-pdo-muted);
	font-size: .78em;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.tob-pdo-updates li:first-child time { color: var(--tob-pdo-brand); }
.tob-pdo-updates__text { line-height: 1.55; }
.tob-pdo-updates__text p { margin: 0 0 4px; }
.tob-pdo-updates li:first-child .tob-pdo-updates__text { font-weight: 600; }
.tob-pdo-updates__img img { max-width: 100%; height: auto; border-radius: 8px; margin-top: 8px; }

/* 3. Wines */
.tob-pdo-block { margin: 0 0 72px; }

/* 4. Ordering information */
.tob-pdo-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
	gap: 40px;
	margin: 0 0 40px;
	padding: 40px 44px;
	border-radius: 14px;
	background: var(--tob-pdo-brand);
	color: #fff;
}
.tob-pdo-info__head h2 {
	margin: 0;
	color: #fff;
	font-size: 1.5em;
	font-weight: 500;
	line-height: 1.3;
}
.tob-pdo-info__body { line-height: 1.75; color: rgba(255, 255, 255, .9); }
.tob-pdo-info__body a { color: #fff; text-decoration: underline; }
.tob-pdo-info__body p { margin: 0 0 12px; }
.tob-pdo-info__rule {
	margin: 18px 0 0 !important;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-weight: 500;
}

.tob-pdo-back { text-align: center; margin: 0 0 40px; }
.tob-pdo-back a { color: var(--tob-pdo-brand); text-decoration: none; font-weight: 600; }
.tob-pdo-back a:hover { text-decoration: underline; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.tob-pdo-grid { grid-template-columns: repeat(min(var(--tob-pdo-cols, 2), 2), minmax(0, 1fr)); }
	.tob-pdo-track.has-both { grid-template-columns: minmax(0, 1fr); }
	.tob-pdo-track.has-both .tob-pdo-news { max-height: none; overflow: visible; }
}
@media (max-width: 768px) {
	.tob-pdo-dash { padding: 18px; }
	.tob-pdo-grid,
	.tob-pdo-facts { grid-template-columns: 1fr; }
	.tob-pdo-card { padding: 18px; }
	.tob-pdo-overview { margin-bottom: 44px; text-align: left; }
	.tob-pdo-lead { margin-bottom: 28px; font-size: 1.02em; }

	/* Stepper becomes a vertical list */
	.tob-pdo-steps { grid-template-columns: 1fr; gap: 0; margin-bottom: 28px; }
	.tob-pdo-step { display: flex; align-items: center; gap: 14px; padding: 0 0 16px; text-align: left; }
	.tob-pdo-step::before { top: auto; bottom: calc(100% - 9px); left: 9px; right: auto; width: 2px; height: calc(100% - 4px); }
	.tob-pdo-step__dot { margin: 0; flex: none; }
	.tob-pdo-step__label { font-size: .92em; }

	.tob-pdo-stats { grid-template-columns: 1fr; }
	.tob-pdo-stats > div { padding: 16px 0; }
	.tob-pdo-stats > div + div { border-left: 0; border-top: 1px solid var(--tob-pdo-border); }
	.tob-pdo-track { margin-bottom: 52px; }
	.tob-pdo-mapcard img { height: 220px; }
	.tob-pdo-news { padding: 22px 20px 6px; }
	.tob-pdo-block { margin-bottom: 52px; }
	.tob-pdo-info { grid-template-columns: 1fr; gap: 14px; padding: 28px 22px; }
	.tob-pdo-notice .button { display: inline-block; margin: 8px 8px 0 0; }
}
