/* ==========================================================================
   Mada BNPL — Promotional Widget Styles
   Appears on: Single Product page, Cart page
   ========================================================================== */

.mada-bnpl-widget {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin: 12px 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.4;
}

/* RTL (Arabic) layout */
.mada-bnpl-widget[dir="rtl"] {
	direction: rtl;
	text-align: right;
}

/* Logo */
.mada-bnpl-widget__logo {
	width: 58px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 6px;
	display: block;
}

/* Body */
.mada-bnpl-widget__body {
	flex: 1;
	min-width: 0;
}

/* Main row: text + amount + info icon */
.mada-bnpl-widget__main {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.mada-bnpl-widget__text {
	font-size: 14px;
	color: #374151;
	font-weight: 400;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.mada-bnpl-widget__amount {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	transition: opacity 0.2s ease;
}

.mada-bnpl-widget__amount.is-updating {
	opacity: 0.4;
}

.mada-bnpl-widget__info {
	font-size: 14px;
	color: #9ca3af;
	cursor: help;
	line-height: 1;
	flex-shrink: 0;
}

/* Subtitle */
.mada-bnpl-widget__sub {
	margin: 4px 0 0;
	padding: 0;
	font-size: 11px;
	color: #9ca3af;
	line-height: 1.2;
}

/* Cart page variant — slightly more breathing room */
.mada-bnpl-widget--cart {
	margin-bottom: 16px;
}

/* Hover glow */
.mada-bnpl-widget:hover {
	border-color: #b4ddf2;
	box-shadow: 0 0 0 3px rgba(147, 211, 198, 0.15);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile */
@media (max-width: 480px) {
	.mada-bnpl-widget {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.mada-bnpl-widget[dir="rtl"] {
		align-items: flex-end;
	}

	.mada-bnpl-widget__main {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.mada-bnpl-widget[dir="rtl"] .mada-bnpl-widget__main {
		align-items: flex-end;
	}
}
