/**
 * Kaomi Custom Features — Frontend Stylesheet
 *
 * Estimated shipping time block on WooCommerce single product pages.
 * Designed to blend with the surrounding product summary area.
 * Uses BEM-style classes for easy theme overrides.
 */

/* ── Container ──────────────────────────────────────────────────────────── */

.kaomi-estimated-shipping {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 10px;
	padding: 9px 16px 9px 12px;
	background-color: #f0faf5;
	border: 1px solid #c3e6d3;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
	color: #1a3028;
	max-width: 100%;
	box-sizing: border-box;

	/* Subtle entrance animation */
	animation: kaomi-shipping-fade-in 0.3s ease both;
}

@keyframes kaomi-shipping-fade-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Icon ───────────────────────────────────────────────────────────────── */

.kaomi-estimated-shipping__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background-color: #1a8a5a;
	border-radius: 6px;
	color: #ffffff;
}

.kaomi-estimated-shipping__icon svg {
	display: block;
}

/* ── Text wrapper ───────────────────────────────────────────────────────── */

.kaomi-estimated-shipping__text {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
}

/* ── Label ──────────────────────────────────────────────────────────────── */

.kaomi-estimated-shipping__label {
	font-weight: 600;
	color: #1a3028;
	white-space: nowrap;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

/* ── Value ──────────────────────────────────────────────────────────────── */

.kaomi-estimated-shipping__value {
	color: #1a8a5a;
	font-weight: 600;
	font-size: 0.9rem;
}

/* ── Responsive: full-width on very narrow screens ──────────────────────── */

@media ( max-width: 480px ) {
	.kaomi-estimated-shipping {
		display: flex;
		width: 100%;
	}
}
