/**
 * Product Tile Widget — frontend styles.
 *
 * Height chain: Elementor renders
 *   .elementor-element > .elementor-widget-container > [our HTML]
 * We chain height: 100% down so the <a> tile can push the CTA to the bottom.
 */

/* ── Height chain ─────────────────────────────────────────────────────────── */

.elementor-widget-nolapilateshouse_product,
.elementor-widget-nolapilateshouse_product > .elementor-widget-container,
.elementor-widget-nolapilateshouse_product .nola-product-tile-wrapper {
	height: 100%;
}

/* display:contents makes the wrapper invisible to the flex/grid layout context */
.elementor-widget-nolapilateshouse_product .nola-product-tile-wrapper {
	display: contents;
}

/* ── Tile (<a>) ─────────────────────────────────────────────────────────────── */

.nola-product-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.75rem;
	width: 100%;
	height: 100%;
	padding: 2.5rem 2rem;
	background-color: transparent;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	outline-offset: 2px;
}

.nola-product-tile:hover,
.nola-product-tile:visited,
.nola-product-tile:focus,
.nola-product-tile:focus-visible,
.nola-product-tile:active {
	text-decoration: none;
	color: inherit;
}

.nola-product-tile:focus-visible {
	outline: 2px solid currentColor;
	border-radius: 4px;
}

/* Editor placeholder */
.nola-product-tile--placeholder {
	justify-content: center;
	border: 2px dashed #ccc;
	background-color: #f9f9f9 !important;
	color: #888;
	font-style: italic;
}

/* ── Body (grows to fill available space above CTA) ─────────────────────────── */

.nola-product-tile__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.nola-product-tile__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-bottom: 0.25rem;
}

.nola-product-tile__badge {
	display: inline-block;
	padding: 0.2em 0.65em;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nola-product-tile__badge--type {
	background-color: rgba(88, 76, 69, 0.08);
	color: #584C45;
}

.nola-product-tile__badge--category {
	background-color: rgba(88, 76, 69, 0.08);
	color: #584C45;
}

/* ── Name ────────────────────────────────────────────────────────────────────── */

.nola-product-tile__name {
	margin: 0;
	font-family: "Manrope", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	line-height: 1.3;
	color: inherit;
	/* Reserve space for 3 lines on tablet/desktop so prices align across cards.
	   On mobile cards stack vertically, so alignment is not needed. */
}

/* ── Price ───────────────────────────────────────────────────────────────────── */

.nola-product-tile__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.3em;
}

.nola-product-tile__price-amount {
	font-family: "Manrope", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
}

.nola-product-tile__billing-cycle {
	font-size: 0.85rem;
	font-weight: 400;
	opacity: 0.65;
}

/* ── Detail rows ─────────────────────────────────────────────────────────────── */

.nola-product-tile__detail {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.7;
	line-height: 1.5;
}

/* ── Custom text ─────────────────────────────────────────────────────────────── */

.nola-product-tile__custom-text {
	margin: 0.25rem 0 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

@media (min-width: 575px) {
	.nola-product-tile__name {
		min-height: calc(4 * 1.3em);
	}
}

@media (min-width: 768px) {
	.nola-product-tile__name {
		min-height: calc(2 * 1.3em);
	}
}

/* ── CTA (pinned to bottom of tile, matches .site-section__cta) ──────────────── */

.nola-product-tile__cta {
	flex-shrink: 0;
	display: flex;
	justify-content: center;
}

.nola-product-tile__button {
	position: relative;
	display: inline-block;
	font-family: "Manrope", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #584C45;
	background: none;
	border: none;
	padding: 0 0 0.35em 0;
	line-height: inherit;
	text-decoration: none;
}

/* Expanding underline: starts at 30%, grows to 100% on tile hover/focus */
.nola-product-tile__button::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30%;
	height: 1px;
	background: currentColor;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nola-product-tile:hover .nola-product-tile__button::after,
.nola-product-tile:focus-visible .nola-product-tile__button::after {
	width: 100%;
}
