.myload-reseller-admin,
.myload-reseller-landing,
.myload-reseller-dashboard {
	--myload-primary: var(--myload-color-primary, #4f46e5);
	--myload-border: #dfe3f0;
	--myload-muted: #64748b;
	--myload-surface: #ffffff;
	--myload-soft: #f7f8fc;
	color: #0f172a;
}

.myload-reseller-hero {
	background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 55%, #eef0ff 100%);
	border: 1px solid var(--myload-border);
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
	margin: 0 0 24px;
	padding: clamp(28px, 5vw, 64px);
}

.myload-reseller-hero span,
.myload-reseller-card > span {
	color: var(--myload-primary);
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.myload-reseller-hero h1 {
	font-size: clamp(34px, 6vw, 72px);
	line-height: 1;
	margin: 0 0 16px;
	max-width: 850px;
}

.myload-reseller-hero p {
	color: var(--myload-muted);
	font-size: 18px;
	line-height: 1.6;
	max-width: 820px;
}

.myload-reseller-button,
.myload-reseller-card button,
.myload-reseller-admin .button-primary,
.myload-reseller-products .button-primary {
	background: var(--myload-primary) !important;
	border-color: var(--myload-primary) !important;
	border-radius: 8px !important;
	color: #fff !important;
	display: inline-flex;
	font-weight: 800;
	gap: 8px;
	min-height: 42px;
	padding: 10px 18px;
	text-decoration: none;
}

.myload-reseller-benefits,
.myload-reseller-products {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	margin: 22px 0;
}

.myload-reseller-benefits article,
.myload-reseller-products article,
.myload-reseller-card,
.myload-reseller-apply {
	background: var(--myload-surface);
	border: 1px solid var(--myload-border);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
	padding: 18px;
}

.myload-reseller-benefits i {
	align-items: center;
	background: rgba(79, 70, 229, .1);
	border-radius: 8px;
	color: var(--myload-primary);
	display: inline-flex;
	height: 44px;
	justify-content: center;
	margin-bottom: 12px;
	width: 44px;
}

.myload-reseller-products img {
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	margin-bottom: 12px;
	object-fit: cover;
	width: 100%;
}

.myload-reseller-products h3 {
	font-size: 20px;
	margin: 0 0 10px;
}

.myload-reseller-products h4 {
	font-size: 16px;
	margin: 0 0 8px;
}

.myload-reseller-products p,
.myload-reseller-benefits p,
.myload-reseller-card p {
	color: var(--myload-muted);
	line-height: 1.55;
}

.myload-reseller-products div,
.myload-reseller-products strong {
	display: grid;
	gap: 4px;
	margin-top: 10px;
}

.myload-reseller-products-compact {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.myload-reseller-products-compact article {
	padding: 14px;
}

.myload-reseller-products-compact img {
	aspect-ratio: 4 / 3;
}

.myload-reseller-apply form,
.myload-reseller-card form,
.myload-reseller-dialog form {
	display: grid;
	gap: 12px;
}

.myload-reseller-apply label,
.myload-reseller-card label,
.myload-reseller-dialog label {
	display: grid;
	font-weight: 700;
	gap: 6px;
}

.myload-reseller-apply input,
.myload-reseller-apply select,
.myload-reseller-apply textarea,
.myload-reseller-card input,
.myload-reseller-card select,
.myload-reseller-card textarea,
.myload-reseller-dialog input,
.myload-reseller-dialog select,
.myload-reseller-dialog textarea {
	border: 1px solid var(--myload-border);
	border-radius: 8px;
	min-height: 42px;
	padding: 9px 12px;
	width: 100%;
}

.myload-reseller-dashboard {
	display: grid;
	gap: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--reseller a::before {
	content: "\f2b5";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--reseller a::before,
.woocommerce-account .myload-account-menu a[href*="/reseller/"]::before,
.woocommerce-account .account-nav a[href*="/reseller/"]::before {
	content: "\f2b5" !important;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
}

.myload-reseller-status {
	background: var(--myload-soft);
	border: 1px solid var(--myload-border);
	border-left: 4px solid var(--myload-primary);
	border-radius: 8px;
	margin: 0 0 16px;
	padding: 14px 16px;
}

.myload-reseller-status p {
	margin: 6px 0 0;
}

.myload-reseller-status--connected {
	border-left-color: #22c55e;
}

.myload-reseller-status--failed {
	border-left-color: #ef4444;
}

.myload-reseller-status--missing {
	border-left-color: #f59e0b;
}

.myload-reseller-card code {
	background: var(--myload-soft);
	border: 1px solid var(--myload-border);
	border-radius: 8px;
	display: block;
	font-size: 16px;
	margin: 12px 0;
	padding: 12px;
}

.myload-reseller-card table {
	border-collapse: collapse;
	width: 100%;
}

.myload-reseller-card th,
.myload-reseller-card td {
	border-bottom: 1px solid var(--myload-border);
	padding: 10px;
	text-align: left;
}

.myload-reseller-dialog {
	border: 0;
	border-radius: 8px;
	box-shadow: 0 30px 90px rgba(15, 23, 42, .35);
	max-width: 640px;
	padding: 24px;
	width: min(92vw, 640px);
}

.myload-reseller-dialog::backdrop {
	background: rgba(15, 23, 42, .55);
}

.myload-reseller-close {
	background: #f4f6fb;
	border: 1px solid var(--myload-border);
	border-radius: 8px;
	cursor: pointer;
	float: right;
	font-size: 24px;
	height: 40px;
	width: 40px;
}

@media (max-width: 680px) {
	.myload-reseller-hero,
	.myload-reseller-benefits article,
	.myload-reseller-products article,
	.myload-reseller-card,
	.myload-reseller-apply {
		padding: 14px;
	}

	.myload-reseller-card table {
		display: block;
		overflow-x: auto;
	}
}
