/**
 * eKhanS Store Manager v1.6.0 — checkout drawer additions.
 *
 * Loaded after store.css and esm-v15.css, so the few !important flags are
 * only where a v1.4.2 rule would otherwise win. Nothing here restyles an
 * existing element: every selector below belongs to markup introduced in
 * v1.6.0 (estimated-delivery badge, product-details accordion, wallet toggle,
 * pre-payment notice).
 */

/* ---- estimated delivery badge ------------------------------------- */

.esm-eta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(34, 197, 94, .12);
	border: 1px solid rgba(34, 197, 94, .35);
	font-size: 14px;
	line-height: 1.3;
}

.esm-eta__ico {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 99px;
	background: #22c55e;
}

.esm-eta__label {
	color: #94a3b8;
}

.esm-eta__val {
	color: #ffffff;
	font-weight: 700;
	margin-left: auto;
}

/* ---- product details --------------------------------------------- */

.esm-details {
	margin: 0 0 16px;
	border: 1px solid rgba(148, 163, 184, .28);
	border-radius: 8px;
	overflow: hidden;
}

.esm-details__head {
	cursor: pointer;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	background: rgba(148, 163, 184, .1);
	list-style: none;
}

.esm-details__head::-webkit-details-marker {
	display: none;
}

.esm-details__head::after {
	content: "+";
	float: right;
	font-weight: 400;
	color: #94a3b8;
}

.esm-details[open] .esm-details__head::after {
	content: "–";
}

.esm-details__body {
	padding: 12px 14px 14px;
	font-size: 14px;
	line-height: 1.6;
	color: #cbd5e1;
}

.esm-details__body p:first-child {
	margin-top: 0;
}

.esm-details__body p:last-child {
	margin-bottom: 0;
}

.esm-details__body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.esm-details__body a {
	color: #22c55e;
}

/* ---- wallet toggle ------------------------------------------------ */

.esm-wallet {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 14px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid rgba(34, 197, 94, .4);
	background: rgba(34, 197, 94, .08);
	cursor: pointer;
}

.esm-wallet.is-short {
	border-color: rgba(148, 163, 184, .3);
	background: rgba(148, 163, 184, .08);
	cursor: not-allowed;
}

.esm-wallet input {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin: 0;
	accent-color: #22c55e;
}

.esm-wallet__ink {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.esm-wallet__label {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
}

.esm-wallet__bal {
	font-size: 13px;
	color: #94a3b8;
}

.esm-wallet.is-short .esm-wallet__bal {
	color: #f87171;
}

/* ---- pre-payment notice ------------------------------------------ */

.esm-confirm {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.esm-confirm__scrim {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, .72);
}

.esm-confirm__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 88vh;
	overflow: auto;
	padding: 22px 22px 20px;
	border-radius: 14px;
	background: #0f172a;
	border: 1px solid rgba(148, 163, 184, .28);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.esm-confirm__title {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.3;
	color: #ffffff;
}

.esm-confirm__list {
	margin: 0 0 20px;
	padding: 0 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #cbd5e1;
}

.esm-confirm__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.esm-confirm__row .esm-btn {
	width: 100%;
	margin: 0;
}

.esm-confirm__no {
	border: 0;
	background: none;
	padding: 8px;
	font-size: 14px;
	color: #94a3b8;
	cursor: pointer;
}

/* ---- confirmation screen ----------------------------------------- */

.esm-done__bal {
	color: #94a3b8;
}

.esm-done__bal strong {
	color: #22c55e;
}
