/**
 * School accounts UI
 */

.mk-school-price-badge {
	display: inline-block;
	margin-left: 0.35em;
	padding: 0.15em 0.55em;
	border-radius: 999px;
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: hsl(28 41% 32%);
	background: hsl(28 41% 54% / 0.16);
	vertical-align: middle;
}

.mk-school-reg-lead,
.mk-school-page__lead {
	margin: 0 0 1.25rem;
	color: hsl(25 15% 40%);
	font-size: 0.98rem;
	line-height: 1.45;
}

.mk-school-reg-entry,
.mk-school-reg-alt {
	margin-top: 1rem;
	text-align: center;
}

/* Account-type chooser above register form */
.mk-reg-path-chooser {
	margin: 0 0 1.35rem;
	padding: 0 0 1.15rem;
	border-bottom: 1px solid hsl(35 28% 86%);
}

.mk-reg-path-chooser__label {
	margin: 0 0 0.75rem;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #364a63;
	line-height: 1.35;
}

.mk-reg-path-chooser__buttons {
	display: grid;
	gap: 0.65rem;
}

.mk-reg-path-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1.1rem;
	border-radius: 999px;
	border: 1.5px solid hsl(28 35% 62%);
	background: hsl(32 55% 96%);
	color: hsl(28 40% 28%) !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 2px 8px hsl(25 30% 20% / 0.06);
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mk-reg-path-btn:hover,
.mk-reg-path-btn:focus {
	background: hsl(28 45% 92%);
	border-color: hsl(28 41% 48%);
	color: hsl(28 45% 22%) !important;
	transform: translateY(-1px);
}

.mk-reg-path-btn--school {
	background: #b5813a;
	border-color: #b5813a;
	color: #fff !important;
	box-shadow: 0 4px 14px hsl(28 45% 35% / 0.22);
}

.mk-reg-path-btn--school:hover,
.mk-reg-path-btn--school:focus {
	background: #9a6d31;
	border-color: #9a6d31;
	color: #fff !important;
}

.mk-reg-path-chooser__divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.1rem 0 0;
	color: #8094ae;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.mk-reg-path-chooser__divider::before,
.mk-reg-path-chooser__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: hsl(35 28% 86%);
}

.mk-reg-path-chooser__divider span {
	white-space: nowrap;
}

body.woocommerce-account #marketking_become_vendor_link_myaccount {
	display: none !important;
}

body.woocommerce-account .mk-school-reg-entry--myaccount,
body.woocommerce-account #mk_school_reg_link_myaccount {
	display: none !important;
}

.mk-school-reg-form .form-row-first,
.mk-school-reg-form .form-row-last {
	width: 48%;
	display: inline-block;
	vertical-align: top;
}

.mk-school-reg-form .form-row-last {
	float: right;
}

.mk-school-reg-form::after {
	content: "";
	display: table;
	clear: both;
}

.mk-school-reg-form .mk-school-reg-submit,
.mk-registration-shell--school .mk-registration-submit,
.mk-registration-shell--school .woocommerce-form-register__submit {
	display: block !important;
	width: fit-content;
	min-width: 240px;
	max-width: 100%;
	margin: 1.35rem auto 0 !important;
	padding: 13px 32px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #b5813a !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	text-align: center;
	box-shadow: none !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

.mk-school-reg-form .mk-school-reg-submit:hover,
.mk-school-reg-form .mk-school-reg-submit:focus,
.mk-registration-shell--school .mk-registration-submit:hover,
.mk-registration-shell--school .woocommerce-form-register__submit:hover {
	background: #9a6d31 !important;
	color: #fff !important;
}

.mk-school-page__title {
	margin: 0 0 0.35rem;
	font-size: 1.45rem;
	color: hsl(25 30% 20%);
}

.mk-school-empty,
.mk-school-muted {
	color: hsl(25 15% 45%);
}

.mk-school-library-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.mk-school-library-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.95rem 1.1rem;
	border: 1px solid hsl(35 30% 88%);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px hsl(25 30% 20% / 0.05);
}

.mk-school-library-item__title {
	font-weight: 600;
	color: hsl(25 30% 20%);
	text-decoration: none;
}

.mk-school-library-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.mk-school-dl-btn {
	font-size: 0.9rem !important;
}

.mk-school-invite-form {
	margin: 0 0 1.5rem;
	padding: 1rem 1.1rem;
	border: 1px solid hsl(35 30% 88%);
	border-radius: 14px;
	background: #fff;
}

.mk-school-invite-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.mk-school-invite-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.mk-school-invite-row .input-text {
	flex: 1 1 220px;
	min-width: 0;
}

.mk-school-teachers-table {
	width: 100%;
	border-collapse: collapse;
}

.mk-school-teachers-table th,
.mk-school-teachers-table td {
	padding: 0.7rem 0.55rem;
	border-bottom: 1px solid hsl(35 30% 90%);
	text-align: left;
	vertical-align: middle;
}

.mk-school-status--active {
	color: hsl(145 40% 32%);
	font-weight: 600;
}

.mk-school-status--pending {
	color: hsl(28 50% 38%);
	font-weight: 600;
}

.mk-school-revoke-btn {
	font-size: 0.85rem !important;
}

@media (max-width: 640px) {
	.mk-school-reg-form .form-row-first,
	.mk-school-reg-form .form-row-last {
		width: 100%;
		float: none;
		display: block;
	}
}
