/* KIB BuyNow product page widget. */

.kib-buynow-widget {
	background: #eef6fa;
	border-radius: 6px;
	padding: 16px;
	margin: 12px 0;
	color: #263238;
	box-sizing: border-box;
}

.kib-buynow-widget *,
.kib-buynow-widget *::before,
.kib-buynow-widget *::after {
	box-sizing: inherit;
}

.kib-buynow-widget__brand {
	margin-bottom: 10px;
}

.kib-buynow-widget__brand img {
	height: 28px;
	width: auto;
	border: 0;
}

.kib-buynow-widget__text {
	color: #263238;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 4px;
}

.kib-buynow-widget__text strong {
	color: #003976;
	font-weight: 600;
}

.kib-buynow-widget__subtext {
	display: block;
	font-size: 12px;
	opacity: 0.8;
}

.kib-buynow-widget__link {
	background: none;
	border: none;
	padding: 0;
	color: #003976;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	font-family: inherit;
}

.kib-buynow-widget__link:hover,
.kib-buynow-widget__link:focus {
	color: #00b2a9;
}

.kib-buynow-widget__schedule {
	display: flex;
	gap: 8px;
	margin: 10px 0;
	flex-wrap: wrap;
}

.kib-buynow-widget__installment {
	flex: 1 1 0;
	min-width: 60px;
	background: #fff;
	border: 1px solid #d8e6ee;
	border-radius: 6px;
	padding: 8px 4px;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.kib-buynow-widget__installment--down {
	border-color: #00b2a9;
	background: rgba(0, 178, 169, 0.06);
}

.kib-buynow-widget__installment-period {
	color: #00b2a9;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
}

.kib-buynow-widget__installment--down .kib-buynow-widget__installment-period {
	color: #003976;
}

.kib-buynow-widget__installment-amount {
	color: #263238;
	font-size: 15px;
	font-weight: 600;
}

.kib-buynow-widget__installment-currency {
	color: #263238;
	font-size: 11px;
	opacity: 0.7;
}

.kib-buynow-widget__tenor {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	flex-wrap: wrap;
}

.kib-buynow-widget__tenor-label {
	color: #263238;
	font-size: 13px;
}

.kib-buynow-widget__tenor-select {
	min-width: 120px;
	padding: 4px 8px;
	border: 1px solid #d8e6ee;
	border-radius: 4px;
	background: #fff;
	color: #263238;
	font-size: 13px;
}

/* "Learn more" pop-up. */

.kib-buynow-widget__modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(38, 50, 56, 0.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.kib-buynow-widget__modal {
	background: #fff;
	border-radius: 8px;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.kib-buynow-widget__modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #e6eef3;
}

.kib-buynow-widget__modal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #003976;
}

.kib-buynow-widget__modal-close {
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: #6b7c86;
	cursor: pointer;
	padding: 2px 6px;
}

.kib-buynow-widget__modal-close:hover,
.kib-buynow-widget__modal-close:focus {
	color: #00b2a9;
}

.kib-buynow-widget__modal-body {
	padding: 16px;
}

.kib-buynow-widget__modal-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 12px;
	border: 0;
}

.kib-buynow-widget__modal-body p {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 8px;
	color: #263238;
}

.kib-buynow-widget__cta {
	display: inline-block;
	margin-top: 8px;
	background: #00b2a9;
	color: #fff;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
}

.kib-buynow-widget__cta:hover,
.kib-buynow-widget__cta:focus {
	background: #00988f;
	color: #fff;
	text-decoration: none;
}

/* Right-to-left: flex rows and grids mirror themselves with the */
/* document direction, so only the base alignment needs a nudge. */

[dir="rtl"] .kib-buynow-widget,
[dir="rtl"] .kib-buynow-widget__modal,
[dir="rtl"] .kib-buynow-widget__modal-overlay {
	text-align: right;
}

/* Latin amounts inside the Arabic schedule keep their digit order. */
[dir="rtl"] .kib-buynow-widget__installment-amount,
[dir="rtl"] .kib-buynow-widget__text strong {
	direction: ltr;
	unicode-bidi: isolate;
}
