/*
 * Heritage Motorworks
 * Shop availability / procurement model
 */

/* ==========================================================================\n   PRODUCT CARD\n   ========================================================================== */

.woocommerce ul.products li.product .hm-delivery-badge,
.woocommerce-page ul.products li.product .hm-delivery-badge,
.hm-shop-product .hm-delivery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 20px;
    margin: 0 0 10px;
    padding: 0;
    color: #555;
    text-align: center;
}

/* Delivery status in product cards: no colored status dot. */
.hm-delivery-badge__dot {
    display: none !important;
}


.hm-shop-product .hm-shop-product__delivery {
    margin-top: 2px;
    margin-bottom: 13px;
}

.hm-shop-product .hm-delivery-badge__text {
    justify-content: flex-start;
}

.hm-delivery-badge__dot {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #18A891;
}

.hm-delivery-badge--lagernd 
.hm-shop-product .hm-shop-product__delivery {
    margin-top: 2px;
    margin-bottom: 13px;
}

.hm-shop-product .hm-delivery-badge__text {
    justify-content: flex-start;
}

.hm-delivery-badge__dot {
    background: #18A891;
}

.hm-delivery-badge--beschaffung 
.hm-shop-product .hm-shop-product__delivery {
    margin-top: 2px;
    margin-bottom: 13px;
}

.hm-shop-product .hm-delivery-badge__text {
    justify-content: flex-start;
}

.hm-delivery-badge__dot {
    background: #C6A15B;
}

.woocommerce ul.products li.product .hm-delivery-badge__text,
.woocommerce-page ul.products li.product .hm-delivery-badge__text {
    justify-content: center;
    text-align: center;
}

.hm-shop-product .hm-delivery-badge__text {
    justify-content: flex-start;
    text-align: left;
}

.hm-delivery-badge__text {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 5px;
    line-height: 1.2;
    text-align: left;
}

.hm-delivery-badge__text strong {
    color: #333;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .2px;
    text-transform: none;
}

.hm-delivery-badge__text small {
    color: #777;
    font-size: 9px;
    font-weight: 400;
}

/* ==========================================================================\n   SINGLE PRODUCT\n   ========================================================================== */

.hm-delivery-panel {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 18px 0 20px;
    padding: 17px 19px;
    border: 1px solid rgba(24,168,145,.22);
    border-radius: 14px;
    background: rgba(24,168,145,.035);
}

.hm-delivery-panel--beschaffung {
    border-color: rgba(198,161,91,.35);
    background: rgba(198,161,91,.045);
}

.hm-delivery-panel--nicht_lieferbar {
    border-color: rgba(160,60,60,.25);
    background: rgba(160,60,60,.035);
}

.hm-delivery-panel__icon {
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border: 1px solid rgba(24,168,145,.45);
    border-radius: 50%;
}

.hm-delivery-panel--beschaffung .hm-delivery-panel__icon {
    border-color: rgba(198,161,91,.65);
}

.hm-delivery-panel--nicht_lieferbar .hm-delivery-panel__icon {
    border-color: rgba(160,60,60,.45);
}

.hm-delivery-panel__icon span,
.hm-delivery-panel__icon span::after {
    position: absolute;
    display: block;
    content: '';
}

.hm-delivery-panel__icon span {
    top: 14px;
    left: 7px;
    width: 15px;
    height: 1px;
    background: #18A891;
}

.hm-delivery-panel--beschaffung .hm-delivery-panel__icon span {
    background: #C6A15B;
}

.hm-delivery-panel--nicht_lieferbar .hm-delivery-panel__icon span {
    background: #A03C3C;
}

.hm-delivery-panel__icon span::after {
    top: -7px;
    right: -1px;
    width: 1px;
    height: 15px;
    background: inherit;
}

.hm-delivery-panel__content {
    min-width: 0;
}

.hm-delivery-panel__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #18A891;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hm-delivery-panel--beschaffung .hm-delivery-panel__eyebrow {
    color: #A47C35;
}

.hm-delivery-panel--nicht_lieferbar .hm-delivery-panel__eyebrow {
    color: #A03C3C;
}

.hm-delivery-panel__time {
    display: block;
    margin-bottom: 5px;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.hm-delivery-panel p {
    margin: 0;
    color: #666;
    font-size: 11px;
    line-height: 1.6;
}

/* ==========================================================================
   PROCUREMENT MODEL — FILTER-INTEGRATED
   ========================================================================== */

/*
 * Deliberately restrained:
 * The procurement information belongs visually to the filter/product area.
 * It is not a separate content block and must not interrupt the product flow.
 */

.hm-delivery-info {
	width: 100%;
	margin: 0 0 26px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   PRODUKTSUCHE – BESCHAFFUNGSMODELL
   Auf das identische 1280px-Masterraster wie Ergebnis,
   Filter und Produktliste begrenzen.
-------------------------------------------------------------------------- */

.hm-product-search-page .hm-delivery-info {
	width: min(1280px, calc(100% - 48px));
	margin: 0 auto 26px;
}

.hm-delivery-info--shop-home {
	width: min(1280px, calc(100% - 48px));
	margin: 18px auto 24px;
}

.hm-delivery-info__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: 15px 2px 16px;
	border-top: 1px solid #e3e5e2;
	border-bottom: none;
	background: transparent;
}

.hm-delivery-info__intro {
	min-width: 0;
	padding: 0;
	background: transparent;
}

.hm-delivery-info__eyebrow {
	display: block;
	margin-bottom: 6px;
	color: #18A891;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
}

.hm-delivery-info__intro h2 {
	max-width: 520px;
	margin: 0;
	color: #171a21;
	font-size: clamp(19px, 2vw, 25px);
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.05;
}

.hm-delivery-info__intro h2::after {
	content: "";
}

.hm-delivery-info__intro h2 {
	max-width: 400px;
}



.hm-delivery-info__text {
	min-width: 0;
	padding: 0;
}

.hm-delivery-info__text p {
	max-width: 560px;
	margin: 0;
	color: #747875;
	font-size: 11px;
	line-height: 1.55;
}

.hm-delivery-info__text .hm-delivery-info__hint {
	margin-top: 7px;
	color: #30342f;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.35;
}


/* ==========================================================================
   CART / CHECKOUT NOTICE
   ========================================================================== */

/* Keep WooCommerce's existing notice styling intact. */
}

/* ==========================================================================\n   MOBILE\n   ========================================================================== */

@media (max-width: 768px) {

	.hm-product-search-page .hm-delivery-info {
		width: calc(100% - 28px);
		margin: 0 auto 26px;
	}

	.woocommerce ul.products li.product .hm-delivery-badge,
	.woocommerce-page ul.products li.product .hm-delivery-badge,
	.hm-shop-product .hm-delivery-badge {
		gap: 5px;
		margin-bottom: 9px;
	}

	.hm-delivery-badge__text {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
	}

	.hm-delivery-badge__text strong,
	.hm-delivery-badge__text small {
		font-size: 8px;
	}

	.hm-delivery-panel {
		gap: 12px;
		margin-top: 16px;
		padding: 15px 16px;
		border-radius: 13px;
	}

	.hm-delivery-panel__icon {
		flex-basis: 27px;
		width: 27px;
		height: 27px;
	}

	.hm-delivery-panel__icon span {
		top: 12px;
		left: 6px;
		width: 13px;
	}

	.hm-delivery-panel__icon span::after {
		height: 13px;
		top: -6px;
	}

	.hm-delivery-panel__eyebrow {
		font-size: 9px;
	}

	.hm-delivery-panel__time {
		font-size: 12px;
	}

	.hm-delivery-panel p {
		font-size: 10px;
		line-height: 1.55;
	}

	/* Procurement information stays visually subordinate to the filter. */
	.hm-delivery-info {
		margin-bottom: 24px;
	}

	.hm-delivery-info--shop-home {
		width: calc(100% - 28px);
		margin-top: 14px;
		margin-bottom: 20px;
	}

	.hm-delivery-info__inner {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 13px 0 14px;
	}

	.hm-delivery-info__eyebrow {
		margin-bottom: 5px;
		font-size: 8px;
		letter-spacing: 1.4px;
	}

	.hm-delivery-info__intro h2 {
		max-width: 100%;
		font-size: 20px;
		line-height: 1.06;
	}

	.hm-delivery-info__text p {
		max-width: 100%;
		font-size: 10px;
		line-height: 1.55;
	}

	.hm-delivery-info__text .hm-delivery-info__hint {
		margin-top: 6px;
		font-size: 9px;
	}
}

/* FINAL CARD DELIVERY OVERRIDES */
.hm-delivery-badge__dot { display: none !important; }

/* Shop-Startseite: Lieferzeit im anthrazitfarbenen Kartenbereich linksbündig. */
.hm-shop-section--new .hm-delivery-badge__text {
    justify-content: flex-start;
    text-align: left;
}


/* ==========================================================================
   FINAL SHOP CARD / SHOP-HOME OVERRIDES
   ========================================================================== */

/* Delivery information on the Shop-Startseite: left aligned.
   Normal WooCommerce product cards remain centered. */
.hm-shop-section--new .hm-delivery-badge {
    justify-content: flex-start;
    text-align: left;
}

.hm-shop-section--new .hm-delivery-badge__text {
    justify-content: flex-start;
    text-align: left;
}

/* Normal writing instead of forced uppercase; deliberately subtle. */
.hm-delivery-badge__text strong {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* No status dots on product cards. */
.hm-delivery-badge__dot {
    display: none !important;
}

/* ==========================================================================
   PROCUREMENT MODEL – NEW EDITORIAL MOBILE LAYOUT
   ========================================================================== */

@media (max-width: 768px) {

	.hm-delivery-info--shop-home {
		width: calc(100% - 28px);
		margin-top: 18px;
		margin-bottom: 0;
	}

	.hm-delivery-info__inner {
		grid-template-columns: 1fr;
		border-radius: 13px;
	}

	.hm-delivery-info__intro {
		min-height: 0;
		padding: 28px 24px 0;
	}

	.hm-delivery-info__eyebrow {
		margin-bottom: 11px;
		font-size: 9px;
		letter-spacing: 1.6px;
	}

	.hm-delivery-info__intro h2 {
		max-width: 100%;
		font-size: 28px;
		line-height: 1.03;
	}

	.hm-delivery-info__text {
		padding: 0 24px 26px;
	}

	.hm-delivery-info__text p {
		max-width: 100%;
		font-size: 12px;
		line-height: 1.6;
	}

	.hm-delivery-info__text .hm-delivery-info__hint {
		margin-top: 11px;
		font-size: 10px;
	}
}



/* ==========================================================================
   PROCUREMENT MODEL — COLLAPSIBLE EXPLANATION
========================================================================== */

.hm-delivery-info__details {
    min-width: 0;
}

.hm-delivery-info__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    margin: 0;
    padding: 12px 0 0;

    color: #30342f;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;

    cursor: pointer;
    list-style: none;
}

.hm-delivery-info__summary::-webkit-details-marker {
    display: none;
}

.hm-delivery-info__summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;
    width: 28px;
    height: 28px;

    border: 1px solid #d9ddda;
    border-radius: 50%;

    color: #18A891;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.hm-delivery-info__details[open] .hm-delivery-info__summary-icon {
    transform: rotate(45deg);
    border-color: #18A891;
    background: rgba(24,168,145,.06);
}

.hm-delivery-info__summary:focus-visible {
    outline: 2px solid #18A891;
    outline-offset: 4px;
}

.hm-delivery-info__details .hm-delivery-info__text {
    padding-top: 12px;
}

@media (max-width: 768px) {
    .hm-delivery-info__summary {
        padding-top: 11px;
        font-size: 10px;
    }

    .hm-delivery-info__summary-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .hm-delivery-info__details .hm-delivery-info__text {
        padding-top: 11px;
    }
}


/* ==========================================================================
   PROCUREMENT MODEL — EDITORIAL MASTER LAYOUT
   ========================================================================== */

/*
 * The procurement statement is treated as one editorial text block:
 * eyebrow → headline/trigger → explanation.
 * Desktop keeps the headline on one line; mobile allows a maximum of two.
 */

.hm-delivery-info__inner {
	display: block;
	padding: 14px 2px 30px;
	border-top: 0;
}

.hm-delivery-info__intro {
	width: 100%;
}

.hm-delivery-info__details {
	display: block;
	width: fit-content;
	max-width: 100%;
}

.hm-delivery-info__summary {
	display: block;
	width: fit-content;
	max-width: 100%;
	padding: 0;
	margin: 0;
	color: #171A21;
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: 1.04;
}

.hm-delivery-info__heading {
	display: inline;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	white-space: nowrap;
}

.hm-delivery-info__summary-icon {
	display: inline-flex;
	vertical-align: -.08em;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	margin-left: 14px;
	border: 2px solid #18A891;
	border-radius: 50%;
	background: transparent;
	color: #18A891;
	font-size: 37px;
	font-weight: 500;
	line-height: 1;
}

.hm-delivery-info__details[open] .hm-delivery-info__summary-icon {
	background: rgba(24,168,145,.07);
}

.hm-delivery-info__details .hm-delivery-info__text {
	width: 100%;
	max-width: none;
	padding: 22px 0 0;
}

.hm-delivery-info__text p {
	width: 100%;
	max-width: none;
	margin: 0;
	font-size: 12px;
	line-height: 1.65;
}

.hm-delivery-info__text .hm-delivery-info__hint {
	width: 100%;
	max-width: none;
	margin-top: 12px;
	font-size: 10px;
}

/* On desktop the text block follows the exact width of the headline block. */
@media (min-width: 769px) {
	.hm-delivery-info__summary {
		white-space: nowrap;
	}

	.hm-delivery-info__details .hm-delivery-info__text {
		width: 100%;
	}
}

@media (max-width: 768px) {

	.hm-delivery-info__inner {
		padding: 12px 0 26px;
	}

	.hm-delivery-info__details {
		width: 100%;
		max-width: 100%;
	}

	.hm-delivery-info__summary {
		width: 100%;
		max-width: 100%;
		font-size: 28.9px;
		line-height: 1.06;
	}

	.hm-delivery-info__heading {
		white-space: normal;
	}

	.hm-delivery-info__summary-icon {
		width: 48px;
		height: 48px;
		margin-left: 10px;
		font-size: 33px;
		vertical-align: -.08em;
	}

	.hm-delivery-info__details .hm-delivery-info__text {
		width: 100%;
		padding-top: 18px;
	}

	.hm-delivery-info__text p {
		width: 100%;
		font-size: 11px;
		line-height: 1.6;
	}

	.hm-delivery-info__text .hm-delivery-info__hint {
		width: 100%;
		margin-top: 10px;
		font-size: 9px;
	}
}


/* ==========================================================================
   PROCUREMENT MODEL — DISCLOSURE CONTROL / FINAL UI
   The disclosure control is intentionally a compact Heritage action button,
   not a secondary circular icon.
   ========================================================================== */

.hm-delivery-info__details > .hm-delivery-info__summary {
	display: block;
	width: fit-content;
	max-width: 100%;
}

.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__heading {
	display: inline;
}

.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;

	width: 50px;
	height: 50px;
	margin-left: 16px;
	padding: 0;

	border: 0;
	border-radius: 15px;
	background: #18A891;
	color: #171A21;

	font-size: 34px;
	font-weight: 400;
	line-height: 1;

	box-shadow: none;
	transform: none;
	transition: background-color .2s ease, transform .2s ease;
}

.hm-delivery-info__details[open] > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
	background: #171A21;
	color: #18A891;
	border: 1px solid #171A21;
	transform: none;
}

.hm-delivery-info__details > .hm-delivery-info__summary:hover .hm-delivery-info__summary-icon {
	background: #159a85;
}

.hm-delivery-info__details > .hm-delivery-info__summary:focus-visible .hm-delivery-info__summary-icon {
	outline: 2px solid #18A891;
	outline-offset: 4px;
}

@media (max-width: 768px) {

	.hm-delivery-info__details > .hm-delivery-info__summary {
		width: 100%;
		max-width: 100%;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
		width: 46px;
		height: 46px;
		margin-left: 11px;
		border-radius: 14px;
		font-size: 31px;
		vertical-align: -.1em;
	}
}


/* ==========================================================================
   PROCUREMENT MODEL — FINAL DISCLOSURE REFINEMENT
   ========================================================================== */

/*
 * Keep the explanation tied to the natural width of the editorial headline
 * on desktop. The disclosure control is intentionally compact and uses the
 * Heritage accent without competing with the headline.
 */

@media (min-width: 769px) {
	.hm-delivery-info__details {
		display: inline-block;
		width: max-content;
		max-width: 100%;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary {
		width: max-content;
		max-width: 100%;
	}

	.hm-delivery-info__details .hm-delivery-info__text {
		width: 100%;
		max-width: 100%;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
		width: 30px;
		height: 30px;
		margin-left: 12px;
		border-radius: 9px;
		font-size: 22px;
		font-weight: 500;
		color: #FFFFFF;
		vertical-align: -0.18em;
	}
}

@media (max-width: 768px) {
	.hm-delivery-info__details .hm-delivery-info__text {
		width: 100%;
		max-width: 100%;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
		width: 28px;
		height: 28px;
		margin-left: 8px;
		border-radius: 8px;
		font-size: 21px;
		font-weight: 500;
		color: #FFFFFF;
		vertical-align: -0.12em;
	}
}


/* ==========================================================================
   PROCUREMENT MODEL — FINAL WIDTH / CONTROL REFINEMENT
   ========================================================================== */

/*
 * The disclosure text must size from the editorial headline, not from the
 * full shop container. The summary therefore determines the details width;
 * the text is contained so it cannot expand that intrinsic width.
 */

@media (min-width: 769px) {
	.hm-delivery-info__details {
		display: inline-block;
		width: max-content;
		max-width: 100%;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary {
		display: inline-block;
		width: max-content;
		max-width: 100%;
	}

	.hm-delivery-info__details .hm-delivery-info__text {
		width: calc(100% - 36px);
		max-width: calc(100% - 36px);
		min-width: 0;
		contain: inline-size;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
		width: 23px;
		height: 23px;
		margin-left: 10px;
		border-radius: 6px;
		font-size: 16.5px;
		font-weight: 500;
		color: #FFFFFF;
		vertical-align: -0.12em;
	}
}

@media (max-width: 768px) {
	.hm-delivery-info__details .hm-delivery-info__text {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.hm-delivery-info__details > .hm-delivery-info__summary .hm-delivery-info__summary-icon {
		width: 21.5px;
		height: 21.5px;
		font-size: 16px;
		margin-left: 7px;
		border-radius: 6px;
		font-weight: 500;
		color: #FFFFFF;
		vertical-align: -0.1em;
	}
}


/* ==========================================================================
   PROCUREMENT MODEL — HERITAGE EYEBROW / DISCLOSURE HOVER
   ========================================================================== */

/* Match the editorial eyebrow treatment used in the Hero. */
.hm-delivery-info__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	color: #18A891;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .19em;
	line-height: 1;
	text-transform: uppercase;
}

.hm-delivery-info__eyebrow::before {
	content: "";
	display: block;
	flex: 0 0 30px;
	width: 30px;
	height: 1px;
	background: #18A891;
}

/* Hover must look exactly like the expanded disclosure state. */
.hm-delivery-info__details > .hm-delivery-info__summary:hover .hm-delivery-info__summary-icon {
	background: #171A21;
	color: #18A891;
}

.hm-delivery-info__details > .hm-delivery-info__summary:focus-visible .hm-delivery-info__summary-icon {
	background: #171A21;
	color: #18A891;
}

@media (max-width: 768px) {
	.hm-delivery-info__eyebrow {
		gap: 10px;
		margin-bottom: 12px;
		font-size: 10px;
		letter-spacing: .17em;
	}

	.hm-delivery-info__eyebrow::before {
		flex-basis: 26px;
		width: 26px;
	}
}


/* ==========================================================================
   PROCUREMENT MODEL — EYEBROW ON ITS OWN LINE
   ========================================================================== */

/*
 * Keep the procurement eyebrow visually equivalent to the Hero eyebrow:
 * it occupies its own row, while headline + disclosure control start below.
 */
.hm-delivery-info__intro > .hm-delivery-info__eyebrow {
	display: flex;
	width: fit-content;
	max-width: 100%;
}

.hm-delivery-info__intro > .hm-delivery-info__details {
	display: block;
}
