.myload-credits-header {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid #8ebbb1;
	border-radius: 8px;
	background: #f8fbfa;
	color: #111827;
	text-decoration: none;
	white-space: nowrap;
}

.myload-credits-header span {
	font-size: 15px;
	font-weight: 400;
}

.myload-credits-header strong {
	color: #438577;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0;
}

.myload-credits-card,
.myload-credits-page__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 18px;
	align-items: center;
	margin: 18px 0;
	padding: 18px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .04);
}

.myload-credits-card span,
.myload-credits-page__hero span {
	display: block;
	margin-bottom: 4px;
	color: #ef130b;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.myload-credits-card h2,
.myload-credits-page__hero strong {
	margin: 0;
	color: #111827;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.myload-credits-card p {
	margin: 6px 0 0;
	color: #667085;
	font-size: 14px;
}

.myload-credits-chart {
	display: inline-flex;
	align-items: end;
	gap: 5px;
	width: 86px;
	height: 52px;
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f8fafc;
}

.myload-credits-chart i {
	display: block;
	width: 10px;
	border-radius: 4px 4px 0 0;
	background: #438577;
}

.myload-credits-card__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: end;
}

.myload-credits-card__actions a,
.myload-credits-card__actions button,
.myload-credits-page__hero button,
.myload-credits-modal button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid #ef130b;
	border-radius: 6px;
	background: #ef130b;
	color: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.myload-credits-card__actions a {
	border-color: #dee2e6;
	background: #ffffff;
	color: #111827;
}

.myload-credits-page {
	color: #111827;
	max-width: 100%;
	overflow-x: hidden;
}

.myload-credits-history {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.myload-credits-history th,
.myload-credits-history td {
	padding: 12px;
	border-bottom: 1px solid #edf0f2;
	text-align: left;
	font-size: 14px;
}

.myload-credits-history th {
	background: #f8fafc;
	font-weight: 800;
}

.myload-credits-history-cards {
	display: none;
}

.myload-credits-modal[hidden] {
	display: none !important;
}

.myload-credits-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, .48);
}

.myload-credits-modal__dialog {
	position: relative;
	width: min(100%, 540px);
	padding: 22px;
	border: 1px solid #dee2e6;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.myload-credits-modal__dialog h2 {
	margin: 0 0 14px;
	font-size: 24px;
}

.myload-credits-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: #f1f3f5;
	cursor: pointer;
}

.myload-credits-packages {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.myload-credits-packages label {
	cursor: pointer;
}

.myload-credits-packages input {
	position: absolute;
	opacity: 0;
}

.myload-credits-packages span {
	display: grid;
	gap: 5px;
	min-height: 76px;
	padding: 14px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #ffffff;
}

.myload-credits-packages label.is-selected span,
.myload-credits-packages input:checked + span {
	border-color: #ef130b;
	box-shadow: 0 0 0 3px rgba(239, 19, 11, .12);
}

.myload-credits-packages strong {
	color: #438577;
	font-size: 20px;
}

.myload-credits-custom {
	display: grid;
	gap: 6px;
	margin-bottom: 14px;
	color: #667085;
	font-size: 13px;
	font-weight: 700;
}

.myload-credits-custom input {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
}

.myload-credits-transfer-warning {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #ffd2cc;
	border-left: 4px solid #ef130b;
	border-radius: 8px;
	background: #fff8f7;
	color: #7a2e24;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.myload-credits-recipient-status {
	margin: -4px 0 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
}

.myload-credits-recipient-status.is-valid {
	border: 1px solid #badbcc;
	background: #f0fff7;
	color: #146c43;
}

.myload-credits-recipient-status.is-invalid {
	border: 1px solid #ffd2cc;
	background: #fff8f7;
	color: #7a2e24;
}

html[data-theme="dark"] .myload-credits-header,
html[data-theme="dark"] .myload-credits-card,
html[data-theme="dark"] .myload-credits-page__hero,
html[data-theme="dark"] .myload-credits-history,
html[data-theme="dark"] .myload-credits-modal__dialog,
html[data-theme="dark"] .myload-credits-packages span,
html[data-theme="dark"] .myload-credits-custom input {
	border-color: #353535;
	background: #171717;
	color: #f7f7f7;
}

html[data-theme="dark"] .myload-credits-transfer-warning {
	border-color: #57302d;
	background: #261b1a;
	color: #f7d7d3;
}

html[data-theme="dark"] .myload-credits-recipient-status.is-valid {
	border-color: #1f5138;
	background: #102419;
	color: #b8f3d0;
}

html[data-theme="dark"] .myload-credits-recipient-status.is-invalid {
	border-color: #57302d;
	background: #261b1a;
	color: #f7d7d3;
}

html[data-theme="dark"] .myload-credits-card h2,
html[data-theme="dark"] .myload-credits-page__hero strong {
	color: #f7f7f7;
}

@media (max-width: 900px) {
	.myload-credits-header {
		min-height: 34px;
		padding: 0 10px;
		gap: 7px;
	}

	.myload-credits-header span {
		font-size: 12px;
	}

	.myload-credits-header strong {
		font-size: 16px;
	}

	.myload-credits-card,
	.myload-credits-page__hero {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.myload-credits-card__actions {
		justify-content: stretch;
	}

	.myload-credits-card__actions a,
	.myload-credits-card__actions button,
	.myload-credits-page__hero button {
		width: 100%;
	}

	.myload-credits-packages {
		grid-template-columns: 1fr;
	}

	.myload-credits-history {
		display: none !important;
	}

	.myload-credits-history-cards {
		display: grid;
		gap: 12px;
		width: 100%;
		max-width: 100%;
	}

	.myload-credits-history-card {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		width: 100%;
		max-width: 100%;
		padding: 12px;
		border: 1px solid #dee2e6;
		border-radius: 8px;
		background: #ffffff;
		box-shadow: 0 8px 22px rgba(0, 0, 0, .04);
	}

	.myload-credits-history-card div {
		min-width: 0;
	}

	.myload-credits-history-card .is-wide {
		grid-column: 1 / -1;
	}

	.myload-credits-history-card span {
		display: block;
		margin-bottom: 3px;
		color: #667085;
		font-size: 11px;
		font-weight: 800;
		text-transform: uppercase;
	}

	.myload-credits-history-card strong {
		display: block;
		color: #111827;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	html[data-theme="dark"] .myload-credits-history-card {
		border-color: #353535;
		background: #171717;
	}

	html[data-theme="dark"] .myload-credits-history-card strong {
		color: #f7f7f7;
	}
}
