/*
 * Marquis Collections — client accounts, login, and the "Add to order"
 * cart/order-history UI. Matches the catalog's own palette and type
 * (marquis-collections.css): cream background, dark-green ink, maroon
 * accent, Real Head Pro for headings, Work Sans for body copy.
 * Loaded on every front-end page alongside marquis-collections.css.
 */

#mc-login,
#mc-account {
	--mc-ink: #0E261E;
	--mc-maroon: #6F2F37;
	--mc-cream: #FAF7F1;
	--mc-border: #D3D3D1;
	--mc-muted: #7A7A76;
	font-family: "Real Head Pro", sans-serif;
	color: var(--mc-ink);
	box-sizing: border-box;
}
#mc-login *,
#mc-login *::before,
#mc-login *::after,
#mc-account *,
#mc-account *::before,
#mc-account *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------
 * Shared bits: buttons, cards, fields
 * --------------------------------------------------------------- */
.mc-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0E261E;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}
.mc-btn-primary:hover { background: #000; }
.mc-btn-primary:active { transform: scale(0.98); }
.mc-btn-primary:disabled { background: #C9C9C4; cursor: not-allowed; transform: none; }
.mc-btn-block { width: 100%; }

.mc-btn-text {
	display: inline-flex;
	align-items: center;
	color: #6F2F37;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}
.mc-btn-text:hover { border-color: #6F2F37; }

.mc-card {
	background: #fff;
	border: 1px solid #D3D3D1;
	border-radius: 10px;
	padding: 22px 24px;
	margin-bottom: 20px;
}
.mc-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}
.mc-card-head h3 {
	margin: 0;
	font-family: "Real Head Pro", sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: #0E261E;
}

.mc_login_submit {
    background: #36473D!important;
    color: #fff!important;
    border-radius: 100px!important;
    margin-top: 10px!important;
    width: 100%!important;
}

.mc-field-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #0E261E;
	margin-bottom: 6px;
}

.mc-muted { color: #7A7A76; }
.mc-empty { color: #7A7A76; font-size: 13.5px; }

/* Cart-count pill (also used on the catalog topbar's "My order" link) */
.mc-cart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #6F2F37;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	vertical-align: middle;
}

/*
 * Default look for the [mc_account_link] shortcode only (never applied
 * just by adding "mc-account-cta" to your own button — that class is
 * purely functional, so your existing button design is untouched).
 */
.mc-cta-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0E261E;
	color: #fff;
	padding: 12px 24px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s ease;
}
.mc-cta-pill:hover { background: #000; color: #fff; }

/* ---------------------------------------------------------------
 * Auth cards (login page, and logged-out/logged-in notices)
 * --------------------------------------------------------------- */
#mc-login,
#mc-account .mc-auth-card--notice {
	display: flex;
	justify-content: center;
}
.mc-auth-card {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border: 1px solid #D3D3D1;
	border-radius: 14px;
	padding: 36px 32px;
	margin: 0 auto;
	text-align: left;
	box-shadow: 0 12px 30px rgba(14, 38, 30, 0.07);
}
.mc-auth-card-inner { max-width: none; }
.mc-auth-card h2 {
	margin: 0 0 8px;
	font-family: "Real Head Pro", sans-serif;
	font-size: 27px;
	font-weight: 700;
	color: #0E261E;
}
.mc-auth-sub { margin: 0 0 24px; font-size: 13.5px; color: #7A7A76; line-height: 1.5; }

.mc-alert {
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
}
.mc-alert-error { background: #F7E9EA; color: #8C2A3B; border: 1px solid #E3B9BE; }

.mc-auth-form .mc-field { margin-bottom: 18px; }
.mc-auth-form label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #0E261E;
	margin-bottom: 6px;
}
.mc-auth-form input[type="text"],
.mc-auth-form input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #D3D3D1;
	border-radius: 6px;
	background: #FAF7F1;
	font-size: 14px;
	color: #0E261E;
	transition: border-color 0.2s ease;
}
.mc-auth-form input[type="text"]:focus,
.mc-auth-form input[type="password"]:focus {
	outline: none;
	border-color: #6F2F37;
}

/* Password field's "Password" label + "Show/Hide" toggle, side by side */
.mc-field-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}
.mc-field-label-row label { margin-bottom: 0; }
.mc-show-toggle {
	display: inline-flex!important;
	align-items: center!important;
	gap: 5px!important;
	background: none!important;
	border: none!important;
	padding: 0!important;
	color: #6F2F37!important;
	font-size: 12.5px!important;
	font-weight: 600!important;
	cursor: pointer!important;
}
.mc-show-toggle-icon { flex-shrink: 0; }
.mc-show-toggle:hover { text-decoration: underline; }

/* "Keep me logged in" checkbox */
.mc-checkbox-row {
	display: flex!important;
	align-items: center!important;
	gap: 9px!important;
	margin: 14px 0 22px!important;
	font-size: 13px!important;
	color: #0E261E!important;
	cursor: pointer!important;
	user-select: none!important;
}
.mc-checkbox-row input[type="checkbox"] {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	accent-color: #0E261E;
	cursor: pointer;
}

/* "Forgot your password?" link under the login card's form */
.mc-auth-forgot {
	display: block;
	text-align: center;
	margin-top: 20px;
	color: #6F2F37;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.mc-auth-forgot:hover { text-decoration: underline; }

.mc-auth-card--notice { text-align: center; }
.mc-auth-card--notice h2 { margin-bottom: 8px; }
.mc-auth-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

/* ---------------------------------------------------------------
 * Account page
 * --------------------------------------------------------------- */
#mc-account { max-width: 1320px; margin: 0 auto; }

.mc-account-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding: 18px 24px;
	background: #fff;
	border: 1px solid #D3D3D1;
	border-radius: 12px;
	flex-wrap: wrap;
}
.mc-account-who { display: flex; align-items: center; gap: 16px; }
.mc-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #17352A, #0E261E);
	color: #fff;
	font-family: "Real Head Pro", sans-serif;
	font-size: 20px;
	font-weight: 600;
	box-shadow: 0 3px 8px rgba(14, 38, 30, 0.22);
}
.mc-account-who h2 {
	margin: 0;
	font-family: "Real Head Pro", sans-serif;
	font-size: 20px;
	color: #0E261E;
	line-height: 1.25;
}
.mc-account-email { margin: 3px 0 0; font-size: 12.5px; color: #7A7A76; }

.mc-logout-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: #0E261E;
	border: 1px solid #D3D3D1;
	border-radius: 999px;
	padding: 9px 18px 9px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mc-logout-btn svg { flex-shrink: 0; }
.mc-logout-btn:hover {
	background: #6F2F37;
	color: #fff;
	border-color: #6F2F37;
}

/* Cart summary card (real WooCommerce cart — see class-mc-account.php) */
.mc-cart-empty-state {
	background: #FAF7F1;
	border: 1px dashed #D3D3D1;
	border-radius: 8px;
	padding: 22px;
	text-align: center;
	margin-bottom: 0;
}
.mc-cart-empty-state p { margin: 0 0 4px; font-size: 13.5px; }
.mc-cart-empty-state p:last-child { margin-bottom: 0; }

.mc-cart-subtotal { margin: 0 0 16px; font-size: 14px; color: #0E261E; }
.mc-cart-subtotal .woocommerce-Price-amount { font-weight: 700; }
.mc-cart-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.mc-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #0E261E;
	border: 1px solid #0E261E;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.mc-btn-secondary:hover { background: #0E261E; color: #fff; }

/* Order-history cards — <details>/<summary> so each order expands to show
 * its full item list without any extra JS. */
.mc-order-list { display: flex; flex-direction: column; gap: 10px; }
.mc-order-card {
	background: #FAF7F1;
	border: 1px solid #D3D3D1;
	border-radius: 8px;
	overflow: hidden;
}
.mc-order-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
}
.mc-order-summary::-webkit-details-marker { display: none; }
.mc-order-summary::marker { content: ''; }
.mc-order-summary::after {
	content: '';
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-right: 2px solid #7A7A76;
	border-bottom: 2px solid #7A7A76;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.mc-order-card[open] .mc-order-summary::after { transform: rotate(225deg); }
.mc-order-card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mc-order-card-date { font-size: 11.5px; font-weight: 600; color: #7A7A76; text-transform: uppercase; letter-spacing: .02em; }
.mc-order-card-items {
	font-size: 13.5px;
	color: #0E261E;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mc-order-detail {
	padding: 0 16px 16px;
	border-top: 1px solid #ECE9E0;
}
.mc-order-detail-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.mc-order-detail-row { display: flex; align-items: center; gap: 12px; }
.mc-order-detail-thumb {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 6px;
	object-fit: cover;
	background: #fff;
	border: 1px solid #ECE9E0;
}
.mc-order-detail-thumb--empty {
	display: block;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9B6AC' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") no-repeat center / 20px;
}
.mc-order-detail-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-order-detail-title { font-size: 13.5px; color: #0E261E; text-decoration: none; }
a.mc-order-detail-title:hover { text-decoration: underline; }
.mc-order-detail-meta { font-size: 11.5px; color: #7A7A76; }
.mc-order-detail-notes {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px dashed #ECE9E0;
	font-size: 12.5px;
	color: #7A7A76;
}
.mc-order-detail-view {
	display: inline-block;
	margin-top: 12px;
	color: #6F2F37;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}
.mc-order-detail-view:hover { text-decoration: underline; }

.mc-status {
	flex-shrink: 0;
	display: inline-block;
	padding: 4px 11px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .01em;
	background: #E8E8E8;
	color: #0E261E;
}
.mc-status-pending { background: #E8E8E8; color: #0E261E; }
.mc-status-confirmed { background: #D1D09D; color: #0E261E; }
.mc-status-shipped { background: #A9C6B8; color: #0E261E; }
.mc-status-completed { background: #6F2F37; color: #fff; }

@media (max-width: 600px) {
	.mc-auth-card { padding: 28px 22px; }
	.mc-card { padding: 18px; }
	.mc-account-head { padding: 16px 18px; }
	.mc-logout-btn { width: 100%; justify-content: center; }
	.mc-order-summary { flex-direction: column; align-items: flex-start; gap: 8px; }
	.mc-order-card-items { white-space: normal; }
}