.woocommerce-checkout,
.miake-wallet {
	--miake-text: #1f1f1f;
	--miake-muted: #6c6570;
	--miake-line: #eee4ea;
	--miake-soft: #fff7fb;
	--miake-pink: #bd5f9e;
	--miake-plum: #7e2f69;
	--miake-dark: #111111;
	color: var(--miake-text);
}

.miake-wallet * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.miake-wallet__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px;
	border: 1px solid var(--miake-line);
	border-radius: 16px;
	background: linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
	box-shadow: 0 18px 45px rgba(31, 31, 31, 0.06);
}

.miake-wallet__eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--miake-pink);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.miake-wallet__hero h2,
.miake-wallet__panel h3 {
	margin: 0;
	color: var(--miake-text);
}

.miake-wallet__hero h2 {
	font-size: 30px;
	line-height: 1.15;
}

.miake-wallet__hero p,
.miake-wallet__panel p,
.miake-wallet__small {
	margin: 8px 0 0;
	color: var(--miake-muted);
	font-size: 14px;
	line-height: 1.6;
}

.miake-wallet__rank-badge {
	flex: 0 0 auto;
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--miake-plum);
	color: #ffffff;
	font-weight: 700;
}

.miake-wallet__stats,
.miake-wallet__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 14px;
}

.miake-wallet__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.miake-wallet__grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.miake-wallet__stat,
.miake-wallet__panel {
	padding: 18px;
	border: 1px solid var(--miake-line);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(31, 31, 31, 0.045);
}

.miake-wallet__stat span {
	display: block;
	color: var(--miake-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.miake-wallet__stat strong {
	display: block;
	margin-top: 8px;
	font-size: 24px;
	line-height: 1.2;
	color: var(--miake-text);
}

.miake-wallet__panel {
	margin-top: 14px;
}

.miake-wallet__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.miake-wallet__progress {
	height: 10px;
	margin-top: 14px;
	border-radius: 999px;
	background: #f5eef2;
	overflow: hidden;
}

.miake-wallet__progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #bd5f9e 0%, #7e2f69 100%);
}

.miake-wallet__progress,
.miake-wallet__progress span {
	transition: width 240ms ease;
}

.miake-wallet__dob-form,
.miake-wallet__recharge-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px;
	gap: 12px;
	margin-top: 14px;
}

.miake-wallet__dob-form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.miake-wallet__dob-form label span {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.miake-wallet__dob-form input,
.miake-wallet__dob-form button,
.miake-wallet__skin-form button,
.miake-wallet__recharge-form input,
.miake-wallet__recharge-form button,
.miake-wallet__copy,
.miake-wallet-checkout__inner input,
.miake-wallet-checkout__inner .button {
	min-height: 46px;
	border-radius: 10px;
}

.miake-wallet__dob-form input,
.miake-wallet__recharge-form input,
.miake-wallet__copy,
.miake-wallet-checkout__inner input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--miake-line);
	background: #ffffff;
	color: var(--miake-text);
}

.miake-wallet__dob-form button,
.miake-wallet__recharge-form button,
.miake-wallet__skin-form button,
.miake-wallet-spin__button,
.miake-wallet__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--miake-plum);
	background: linear-gradient(180deg, #92507e 0%, #7e2f69 100%);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.miake-wallet__text-link {
	display: inline-block;
	margin-top: 12px;
	color: var(--miake-pink);
	font-weight: 700;
	text-decoration: none;
}

.miake-wallet-skin__choices {
	display: grid;
	gap: 8px;
	margin-top: 14px;
}

.miake-wallet-skin__choice {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--miake-line);
	border-radius: 10px;
	background: #ffffff;
	color: var(--miake-text);
	cursor: pointer;
}

.miake-wallet-skin__choice input {
	width: 16px;
	height: 16px;
	accent-color: var(--miake-plum);
}

.miake-wallet-skin__choice:has(input:checked) {
	border-color: var(--miake-plum);
	background: #fff7fb;
	box-shadow: inset 3px 0 0 var(--miake-plum);
}

.miake-wallet-skin__choice span {
	font-size: 13px;
	font-weight: 700;
}

.miake-wallet-product-card {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin-top: 14px;
	padding: 12px;
	border: 1px solid #ead9e2;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
}

.miake-wallet-product-card__media img {
	display: block;
	width: 82px;
	height: 82px;
	border-radius: 12px;
	object-fit: cover;
}

.miake-wallet-product-card__eyebrow {
	display: block;
	margin-bottom: 4px;
	color: var(--miake-pink);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.miake-wallet-product-card__title {
	display: inline-block;
	color: var(--miake-text);
	font-weight: 700;
	text-decoration: none;
}

.miake-wallet-product-card__price {
	margin-top: 4px;
	color: var(--miake-plum);
	font-weight: 700;
}

.miake-wallet-spin__stage {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 20px auto 14px;
	width: 300px;
	height: 330px;
}

.miake-wallet-spin__pointer {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 4;
	width: 0;
	height: 0;
	border-left: 16px solid transparent;
	border-right: 16px solid transparent;
	border-top: 28px solid var(--miake-plum);
	transform: translateX(-50%);
}

.miake-wallet-spin__wheel {
	position: absolute;
	bottom: 0;
	width: 280px;
	height: 280px;
	border: 10px solid #ffffff;
	border-radius: 50%;
	background: radial-gradient(circle at center, #fff 0 60px, transparent 61px), conic-gradient(#f3cfe0 0deg 60deg, #7e2f69 60deg 120deg, #f4dce9 120deg 180deg, #bd5f9e 180deg 240deg, #ecd7e5 240deg 300deg, #9b5785 300deg 360deg);
	box-shadow: 0 20px 50px rgba(126, 47, 105, 0.22);
	transition: transform 4.2s cubic-bezier(0.12, 0.8, 0.16, 1);
}

.miake-wallet-spin__hub {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	border: 6px solid #ffffff;
	border-radius: 50%;
	background: linear-gradient(180deg, #8c4779 0%, #6d2558 100%);
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
	transform: translate(-50%, -50%);
}

.miake-wallet-spin__segment {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	transform: rotate(calc((360deg / var(--miake-spin-count)) * var(--miake-spin-index)));
}

.miake-wallet-spin__segment > span {
	display: block;
	width: 98px;
	padding-top: 28px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	transform: translateY(12px);
}

.miake-wallet-spin__segment--0 > span,
.miake-wallet-spin__segment--2 > span,
.miake-wallet-spin__segment--4 > span {
	color: var(--miake-plum);
}

.miake-wallet-spin__button {
	width: 100%;
	min-height: 48px;
	margin-top: 6px;
}

.miake-wallet-spin__result {
	min-height: 28px;
	margin-top: 12px;
	color: var(--miake-text);
	font-weight: 700;
	text-align: center;
}

.miake-wallet__copy {
	margin-top: 12px;
	border-radius: 6px;
}

.miake-wallet__vip {
	border-color: #bd5f9e;
}

.miake-wallet__table-wrap {
	width: 100%;
	overflow-x: auto;
}

.miake-wallet__transactions {
	width: 100%;
	min-width: 680px;
	margin-top: 12px;
	border-collapse: collapse;
}

.miake-wallet__transactions th,
.miake-wallet__transactions td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--miake-line);
	text-align: left;
	vertical-align: top;
}

.miake-wallet__transactions th {
	color: var(--miake-plum);
	font-size: 12px;
	text-transform: uppercase;
}

.miake-wallet__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.miake-wallet__actions a {
	padding: 0 16px;
}

.miake-wallet__action-link--recharge.is-active {
	box-shadow: 0 0 0 3px rgba(126, 47, 105, 0.14);
}

.miake-wallet__preset-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.miake-wallet__preset-amount {
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid #decad7;
	border-radius: 999px;
	background: #ffffff;
	color: var(--miake-plum);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.miake-wallet__preset-amount.is-active,
.miake-wallet__preset-amount:hover {
	border-color: var(--miake-plum);
	background: #fff7fb;
	color: var(--miake-plum);
}

.miake-wallet__recharge-form.is-focused input {
	border-color: var(--miake-plum);
	box-shadow: 0 0 0 3px rgba(126, 47, 105, 0.12);
}

.miake-wallet-checkout__inner {
	display: grid;
	grid-template-columns: minmax(90px, 1fr) auto auto;
	gap: 8px;
	align-items: center;
}

.woocommerce-checkout-review-order-table tr.miake-wallet-checkout th,
.woocommerce-checkout-review-order-table tr.miake-wallet-checkout td {
	padding-top: 18px;
	padding-bottom: 18px;
	background: #ffffff;
	border-top: 1px solid var(--miake-line);
}

.miake-wallet-checkout__inner input {
	border-color: #ded2da;
	font-weight: 700;
	text-align: center;
}

.woocommerce-checkout-review-order-table .miake-wallet-checkout .miake-wallet-checkout__inner button.button.miake-wallet-checkout__apply,
.woocommerce-checkout-review-order-table .miake-wallet-checkout .miake-wallet-checkout__inner .button.miake-wallet-checkout__apply,
.miake-wallet-checkout .miake-wallet-checkout__inner button.button.miake-wallet-checkout__apply {
	padding: 0 16px;
	border: 1px solid var(--miake-plum) !important;
	background: var(--miake-plum) !important;
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	box-shadow: none !important;
}

.woocommerce-checkout-review-order-table .miake-wallet-checkout .miake-wallet-checkout__inner button.button.miake-wallet-checkout__clear,
.woocommerce-checkout-review-order-table .miake-wallet-checkout .miake-wallet-checkout__inner .button.miake-wallet-checkout__clear,
.miake-wallet-checkout .miake-wallet-checkout__inner button.button.miake-wallet-checkout__clear {
	padding: 0 16px;
	border-color: #e6dce2 !important;
	background: #ffffff !important;
	color: var(--miake-plum) !important;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	box-shadow: none !important;
}

.miake-wallet-checkout small,
.miake-wallet-bkash-note {
	display: block;
	margin-top: 7px;
	color: #6c6570;
	font-size: 12px;
	line-height: 1.45;
}

body.miake-wallet-active .woocommerce-form-coupon-toggle,
body.miake-wallet-active form.checkout_coupon {
	display: none !important;
}

@media (max-width: 767px) {
	.miake-wallet__hero,
	.miake-wallet__panel-head {
		display: block;
	}

	.miake-wallet__stats,
	.miake-wallet__grid,
	.miake-wallet__grid--three,
	.miake-wallet__dob-form,
	.miake-wallet__recharge-form,
	.miake-wallet-checkout__inner,
	.miake-wallet-product-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.miake-wallet__rank-badge {
		display: inline-flex;
		margin-top: 16px;
	}

	.miake-wallet-spin__stage {
		width: 260px;
		height: 286px;
	}

	.miake-wallet-spin__wheel {
		width: 240px;
		height: 240px;
	}

	.miake-wallet-spin__segment > span {
		width: 84px;
		padding-top: 22px;
		font-size: 11px;
	}
}
