/*
 * Make-Up Show — professional accounts.
 * Loaded on the account pages and, for pros, everywhere (pro prices, header badge).
 *
 * Author: Bilal Yasin — https://bilalyasindev.com
 */

/* =========================================================
   PRO PRICE (cards, product page, cart drawer)
   ========================================================= */
.ms-pro-price,
.ms-pro-price__main,
.ms-pro-price__public {
	display: block;
}

.ms-pro-price__label {
	display: inline-flex;
	margin-bottom: 0.25rem;
	padding: 0.15rem 0.5rem;
	font-size: 0.6rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ms-fuchsia);
	background: #fff4fa;
	border: 1px solid #f6cfe5;
}

.ms-pro-price__public {
	margin-top: 0.15rem;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ms-text-muted);
}

.ms-pro-price__public .amount {
	font-weight: 500;
}

.ms-product__price .ms-pro-price__label {
	font-size: 0.65rem;
}

.ms-product__price .ms-pro-price__public {
	margin-top: 0.25rem;
	font-size: 0.875rem;
}

.ms-cart-item .ms-pro-price__label {
	margin: 0.25rem 0 0;
}

/* Header: "Pro" badge on the account icon */
.ms-header__account--pro {
	position: relative;
}

.ms-header__pro {
	position: absolute;
	top: 0.25rem;
	right: -0.125rem;
	padding: 0.05rem 0.3rem;
	font-size: 0.5rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-white);
	background: var(--ms-ink);
	border-radius: 999px;
}

/* Pending pros: notice under the product price */
.ms-pro-notice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0.625rem 0.875rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #9a6500;
	background: #fff8e1;
	border: 1px solid #fdefba;
}

/* =========================================================
   SIGN-UP: "Je suis : Particulier / Professionnel"
   ========================================================= */

/* Never wider than the screen (grid columns otherwise grow to their content). */
.ms-login {
	grid-template-columns: minmax(0, 1fr);
}

.ms-login__card {
	min-width: 0;
}

@media (max-width: 479px) {
	.ms-login__card {
		padding: 1.5rem 1.25rem;
	}
}

@media (min-width: 768px) and (max-width: 899px) {
	.ms-login.ms-login--two {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 900px) {
	.ms-login.ms-login--two {
		max-width: 72rem;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.ms-login--two > .ms-login__card:first-child {
		position: sticky;
		top: 6rem;
	}
}

.ms-account-type {
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-account-type legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-size: 0.75rem;
	font-weight: 600;
}

.ms-account-type__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.ms-account-type__option {
	position: relative;
	display: grid;
	gap: 0.15rem;
	padding: 0.875rem 1rem 0.875rem 2.5rem;
	background: var(--ms-white);
	border: 1px solid var(--ms-input);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-account-type__option input[type="radio"] {
	position: absolute;
	top: 1.05rem;
	left: 1rem;
	margin: 0;
}

.ms-account-type__option:hover {
	border-color: var(--ms-ink);
}

.ms-account-type__option:has(input:checked) {
	border-color: var(--ms-fuchsia);
	box-shadow: inset 0 0 0 1px var(--ms-fuchsia);
}

.ms-account-type__option:has(input:focus-visible) {
	outline: 2px solid var(--ms-fuchsia);
	outline-offset: 2px;
}

.ms-account-type__name {
	font-family: var(--ms-font-serif);
	font-size: 1.05rem;
	line-height: 1.3;
}

.ms-account-type__desc {
	font-size: 0.7rem;
	line-height: 1.3;
	color: var(--ms-text-muted);
}

/* =========================================================
   PRO FORM (sign-up + "Devenir professionnel")
   ========================================================= */
.ms-pro-form {
	display: grid;
	gap: 1.25rem;
}

.ms-pro-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 480px) {
	.ms-pro-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.ms-pro-form__grid > .ms-span-2 {
		grid-column: 1 / -1;
	}
}

.ms-pro-fields {
	display: grid;
	gap: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid #f6cfe5;
}

.ms-pro-fields[hidden] {
	display: none;
}

.ms-pro-fields__title {
	margin: 0 !important;
	font-family: var(--ms-font-serif);
	font-size: 1.25rem;
	line-height: 1.3;
}

.ms-pro-fields__title span {
	font-family: var(--ms-font-sans);
	font-size: 0.75rem;
	color: var(--ms-text-muted);
}

.ms-pro-form__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-pro-form__group[hidden] {
	display: none;
}

.ms-pro-form__group legend {
	margin-bottom: 0.75rem;
	padding: 0;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ms-fuchsia);
}

.ms-pro-form__help {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.72rem;
	color: var(--ms-text-muted);
}

.ms-pro-form__same {
	margin: 0;
}

.ms-pro-form__file input[type="file"] {
	display: block;
	width: 100%;
	padding: 0.75rem;
	font: inherit;
	font-size: 0.8rem;
	background: var(--ms-white);
	border: 1px dashed var(--ms-input);
	cursor: pointer;
}

.ms-pro-form__file input[type="file"]:focus-visible {
	border-color: var(--ms-ink);
	outline: 2px solid var(--ms-fuchsia);
	outline-offset: 2px;
}

.ms-pro-form__file input[type="file"]::file-selector-button {
	margin-right: 0.75rem;
	padding: 0.45rem 0.9rem;
	font: inherit;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ms-white);
	background: var(--ms-ink);
	border: 0;
	cursor: pointer;
}

.ms-pro-form__privacy,
.ms-pro-form__intro {
	margin: 0 !important;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--ms-text-muted);
}

.ms-pro-form__privacy a {
	color: var(--ms-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ms-pro-become .ms-pro-form {
	margin-top: 1.5rem;
}

.ms-pro-become .ms-pro-form > button {
	justify-self: start;
}

/* =========================================================
   STATUS BOX (dashboard, Mon entreprise)
   ========================================================= */
.ms-pro-status {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--ms-border);
}

.ms-pro-status > div {
	flex: 1 1 16rem;
}

.ms-pro-status > .ms-icon {
	flex-shrink: 0;
	color: var(--ms-fuchsia);
}

.ms-pro-status p {
	margin: 0 !important;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ms-text-muted);
}

.ms-pro-status .ms-pro-status__title {
	margin-bottom: 0.25rem !important;
	font-family: var(--ms-font-serif);
	font-size: 1.125rem;
	color: var(--ms-ink);
}

.ms-pro-status .ms-pro-status__date {
	margin-top: 0.375rem !important;
	font-size: 0.72rem;
}

.ms-pro-status .ms-btn {
	align-self: center;
}

.ms-pro-status--cta {
	background: #fff4fa;
	border-color: #f6cfe5;
}

.ms-pro-status--en_attente {
	background: #fff8e1;
	border-color: #fdefba;
}

.ms-pro-status--en_attente > .ms-icon {
	color: #9a6500;
}

.ms-pro-status--valide {
	background: #effbf3;
	border-color: #d2f6dd;
}

.ms-pro-status--valide > .ms-icon {
	color: #007e46;
}

.ms-pro-status--refuse {
	background: #fff5f4;
	border-color: #ffe2de;
}

.ms-pro-status--refuse > .ms-icon {
	color: #d01d21;
}

.ms-pro-become > .ms-pro-status {
	margin: 0 0 2rem;
}

/* =========================================================
   MON ENTREPRISE
   ========================================================= */
.ms-pro-company > .ms-pro-status {
	margin-top: 0;
}

.ms-pro-company h2 {
	margin: 2rem 0 1rem !important;
	font-family: var(--ms-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
}

.ms-pro-company__list {
	display: grid;
	margin: 0;
	border-top: 1px solid var(--ms-border);
}

.ms-pro-company__list > div {
	display: grid;
	gap: 0.25rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--ms-border);
}

@media (min-width: 640px) {
	.ms-pro-company__list > div {
		grid-template-columns: 14rem 1fr;
	}
}

.ms-pro-company__list dt {
	font-size: 0.75rem;
	color: var(--ms-text-muted);
}

.ms-pro-company__list dd {
	margin: 0;
	font-size: 0.9rem;
}

.ms-pro-company__note {
	margin-top: 0.75rem !important;
	font-size: 0.8rem;
	color: var(--ms-text-muted);
}

.ms-pro-company__note a {
	color: var(--ms-ink);
	text-decoration: underline;
}

.ms-pro-company__phone {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
}

.ms-pro-company__phone .form-row {
	flex: 1 1 16rem;
	max-width: 22rem;
}
