/* =========================================================================
   Elyomiel — Mon compte
   S'appuie sur les variables et composants du socle.
   ====================================================================== */

body.ely-account-page { background: #fffaf0; }
.ely-account-page .ely-footer { margin-block-start: 0; }

.ely-ac {
	display: block;
	overflow-x: clip;
	padding-block: clamp(26px, 4vw, 48px) clamp(56px, 7vw, 96px);
	background:
		radial-gradient(48rem 30rem at 85% -4%, rgba(255, 201, 74, .3), transparent 70%),
		radial-gradient(36rem 26rem at 0% 40%, rgba(248, 227, 200, .7), transparent 70%),
		#fffaf0;
	color: var(--ely-ink);
	font-family: var(--ely-body);
	font-size: 1.0625rem;
	line-height: 1.55;
}
.ely-ac *, .ely-ac *::before, .ely-ac *::after { box-sizing: border-box; }
main.ely-ac .woocommerce { width: 100%; max-width: none; margin: 0; padding: 0; }
.ely-ac :is(h1, h2, h3) { color: var(--ely-ink); }
.ely-ac a { color: #7a4206; }
.ely-ac .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ely-ac-ico { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; }
.ely-ac .ely-btn--line { color: var(--ely-ink); box-shadow: inset 0 0 0 2px rgba(42, 22, 7, .2); }
.ely-ac .ely-btn--line:hover { color: var(--ely-ink); box-shadow: inset 0 0 0 2px var(--ely-ink); }
.ely-ac .ely-btn--honey { color: var(--ely-darker); }
.ely-ac .ely-btn--ink { color: var(--ely-milk); }
.ely-ac-muted { color: #9a7b58; }
.ely-ac-free { color: #2f7a3a; }

/* Messages WooCommerce classiques */
.ely-ac :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 4px 0 0 var(--ely-honey), 0 0 0 1px rgba(42, 22, 7, .08);
	list-style: none;
	font-size: .96rem;
}
.ely-ac .woocommerce-error { box-shadow: inset 4px 0 0 #c0392b, 0 0 0 1px rgba(192, 57, 43, .2); }
.ely-ac .woocommerce-notices-wrapper:empty { display: none; }
.ely-ac--out .woocommerce-notices-wrapper,
.ely-ac--out .ely-ac-notices { max-width: 980px; margin-inline: auto; }

/* -------------------------------------------------------------------------
   Titres
   ---------------------------------------------------------------------- */
.ely-ac-head { margin-bottom: clamp(18px, 2.6vw, 28px); }
.ely-ac-head--center { position: relative; max-width: 640px; margin-inline: auto; text-align: center; }
.ely-ac-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.ely-ac-head__bee { display: block; width: 62px; height: auto; margin: 0 auto 6px; animation: ely-ac-bee 5s ease-in-out infinite; }
@keyframes ely-ac-bee { 50% { transform: translate(-8px, 6px) rotate(-6deg); } }
.ely-ac-head__kicker { margin: 0 0 6px; color: #8a6a48; font-size: .9rem; font-weight: 600; }
.ely-ac-head__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.01em; }
.ely-ac-head__lead { margin: 10px 0 0; color: #6b4a26; }
.ely-ac-h2 { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.7rem); line-height: 1.1; }
.ely-ac-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 1.02rem/1.3 var(--ely-body); }
.ely-ac-h3 .ely-ac-ico { color: #a0620a; }
.ely-ac-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: #6b4a26 !important; font-size: .92rem; font-weight: 600; text-decoration: none; }
.ely-ac-back .ely-ac-ico { width: 18px; height: 18px; transition: transform .25s var(--ely-ease); }
.ely-ac-back:hover .ely-ac-ico { transform: translateX(-3px); }

.ely-ac-card {
	padding: clamp(20px, 2.6vw, 28px);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 44px -34px rgba(90, 50, 0, .5);
}

/* -------------------------------------------------------------------------
   Champs (connexion, inscription, profil, adresses)
   ---------------------------------------------------------------------- */
.ely-ac .form-row { margin: 0 0 14px; padding: 0; }
.ely-ac .form-row label:not(.woocommerce-form__label-for-checkbox):not(.checkbox) { display: block; margin: 0 0 6px; color: #5b3d1f; font-size: .9rem; font-weight: 600; }
.ely-ac .form-row .required { color: #c0392b; text-decoration: none; border: 0; }
.ely-ac .form-row .optional { color: #a08466; font-weight: 400; }
.ely-ac .woocommerce-input-wrapper { display: block; }
.ely-ac :is(input.input-text, select, textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="password"]) {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 14px;
	background: #fffaf0;
	box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .14);
	color: var(--ely-ink);
	font: 500 1rem/1.3 var(--ely-body);
	transition: box-shadow .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.ely-ac textarea { height: 110px; padding: 14px 16px; }
.ely-ac select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a4206' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px;
}
.ely-ac :is(input.input-text, select, textarea, input[type="password"])::placeholder { color: #a99073; font-weight: 400; }
.ely-ac :is(input.input-text, select, textarea, input[type="password"]):hover { box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .3); }
.ely-ac :is(input.input-text, select, textarea, input[type="password"]):focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--ely-honey-deep), 0 0 0 4px rgba(242, 168, 29, .2); }
.ely-ac .woocommerce-invalid :is(input.input-text, select) { box-shadow: inset 0 0 0 2px #c0392b; background: #fff6f4; }
.ely-ac .form-row .description, .ely-ac em { display: block; margin: 6px 2px 0; color: #8a6a48; font-size: .84rem; font-style: normal; }
.ely-ac input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	border-radius: 7px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .3);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.ely-ac input[type="checkbox"]:checked {
	background: var(--ely-honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b0d03' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
	box-shadow: inset 0 0 0 1.5px var(--ely-honey-deep);
}
.ely-ac input[type="checkbox"]:focus-visible { outline: 3px solid var(--ely-honey); outline-offset: 2px; }
.ely-ac .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; font-weight: 500; color: #5b3d1f; }

/* Afficher / masquer le mot de passe (bouton ajouté par WooCommerce) */
.ely-ac .password-input { position: relative; display: block; }
.ely-ac .password-input input { padding-right: 52px !important; }
.ely-ac .show-password-input {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a48' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3C/svg%3E") center / 20px no-repeat;
	cursor: pointer;
	transform: translateY(-50%);
}
.ely-ac .show-password-input::after { display: none; }
.ely-ac .show-password-input:hover { background-color: rgba(242, 168, 29, .16); }
.ely-ac .show-password-input.display-password { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c97a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E"); }
.ely-ac input[type="password"]::-ms-reveal { display: none; }
/* Jauge de robustesse WooCommerce */
.ely-ac .woocommerce-password-strength { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: .84rem; font-weight: 600; text-align: left; }
.ely-ac .woocommerce-password-strength.short, .ely-ac .woocommerce-password-strength.bad { background: #fbe1dc; color: #a0301f; }
.ely-ac .woocommerce-password-strength.good { background: #fff1c9; color: #7a4206; }
.ely-ac .woocommerce-password-strength.strong { background: #e4f3e1; color: #2f7a3a; }
.ely-ac .woocommerce-password-hint { display: block; margin-top: 6px; color: #8a6a48; font-size: .82rem; }

/* -------------------------------------------------------------------------
   Connexion / inscription
   ---------------------------------------------------------------------- */
.ely-auth { display: grid; gap: clamp(16px, 2.5vw, 24px); max-width: 980px; margin-inline: auto; }
.ely-auth--duo { grid-template-columns: 1fr 1fr; align-items: stretch; }
.ely-auth--single { max-width: 500px; }
.ely-auth__tabs { display: none; }
.ely-auth__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3.4vw, 40px);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 30px 60px -40px rgba(90, 50, 0, .55);
}
.ely-auth__card--register { background: linear-gradient(160deg, #fff6df, #ffeab8); box-shadow: 0 0 0 1px rgba(160, 98, 10, .14), 0 30px 60px -40px rgba(90, 50, 0, .55); }
.ely-auth__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: #fff6df; color: #a0620a; }
.ely-auth__ico .ely-ac-ico { width: 26px; height: 26px; }
.ely-auth__ico--honey { background: var(--ely-honey); color: var(--ely-darker); box-shadow: 0 4px 0 var(--ely-honey-deep); }
.ely-auth__ico--ok { background: #e4f3e1; color: #2f7a3a; }
.ely-auth__title { margin: 0; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; }
.ely-auth__lead { margin: 8px 0 20px; color: #6b4a26; }
.ely-auth__small { margin: -8px 0 20px; color: #8a6a48; font-size: .9rem; }
.ely-auth__perks { display: grid; gap: 8px; margin: -4px 0 20px; padding: 0; list-style: none; }
.ely-auth__perks li { display: flex; align-items: center; gap: 10px; color: #5b3d1f; font-weight: 600; font-size: .95rem; }
.ely-auth__perks .ely-ac-ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .8); color: #a0620a; }
.ely-auth__guest { max-width: 980px; margin: 22px auto 0; color: #6b4a26; font-size: .95rem; text-align: center; }
.ely-auth__guest a { font-weight: 600; }
.ely-auth__back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #6b4a26 !important; font-size: .92rem; font-weight: 600; text-decoration: none; }
.ely-auth__back .ely-ac-ico { width: 18px; height: 18px; }

.ely-form { display: flex; flex-direction: column; flex: 1 1 auto; }
.ely-form__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ely-form__labelrow label { margin: 0 !important; }
.ely-form__aside { font-size: .86rem; font-weight: 600; }
.ely-form__remember { margin-top: 2px !important; }
.ely-form__hint { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .75); color: #5b3d1f; font-size: .9rem; }
.ely-form__hint .ely-ac-ico { color: #a0620a; }
.ely-form .woocommerce-privacy-policy-text p { margin: 0 0 14px; color: #6b4a26; font-size: .84rem; }
.ely-form__submit { width: 100%; min-height: 56px; margin-top: auto; font-size: 1.05rem; }
.ely-form .ely-form__submit { margin-top: 6px; }
.ely-auth__card--login .ely-form__submit { margin-top: auto; }

/* -------------------------------------------------------------------------
   Espace connecté : menu + contenu
   ---------------------------------------------------------------------- */
.ely-acc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(22px, 3.2vw, 44px); align-items: start; }
.ely-acc__side {
	position: sticky;
	top: calc(var(--ely-header-h) + var(--ely-ab, 0px) + 20px);
	padding: 18px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 44px -34px rgba(90, 50, 0, .5);
}
.ely-acc__who { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; margin-bottom: 10px; border-bottom: 1.5px dashed rgba(42, 22, 7, .12); }
.ely-acc__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--ely-honey); box-shadow: 0 3px 0 var(--ely-honey-deep); color: var(--ely-darker); font: 700 1.05rem/1 var(--ely-body); letter-spacing: .02em; }
.ely-acc__whotxt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ely-acc__whotxt strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ely-acc__whotxt small { color: #8a6a48; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ely-acc__nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ely-account-page .ely-acc__nav li { margin: 0; padding: 0; list-style: none; }
.ely-account-page .ely-acc__nav li:first-child { padding-top: 0; }
.ely-acc__nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 14px;
	color: #5b3d1f !important;
	font-weight: 600;
	font-size: .98rem;
	text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.ely-acc__nav a .ely-ac-ico { color: #a0620a; }
.ely-acc__nav a:hover { background: #fff6df; color: var(--ely-ink) !important; }
.ely-acc__nav .is-active a { background: var(--ely-honey); color: var(--ely-darker) !important; box-shadow: 0 3px 0 var(--ely-honey-deep); }
.ely-acc__nav .is-active a .ely-ac-ico { color: var(--ely-darker); }
.ely-acc__nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(42, 22, 7, .08); }
.ely-acc__nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: #9a5a3a !important; font-weight: 500; }
.ely-acc__nav .woocommerce-MyAccount-navigation-link--customer-logout a .ely-ac-ico { color: #b06a40; }
.ely-acc__content { min-width: 0; display: grid; gap: clamp(16px, 2.2vw, 22px); align-content: start; }
.ely-acc__content > .ely-ac-head { margin-bottom: 0; }
.ely-acc__content > .woocommerce-notices-wrapper:empty { display: none; }

/* Statuts */
.ely-ac-status { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.ely-ac-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ely-ac-status--honey { background: #fff1c9; color: #8a4f06; }
.ely-ac-status--ok { background: #e4f3e1; color: #2f7a3a; }
.ely-ac-status--wait { background: #f3ece2; color: #7a5a3a; }
.ely-ac-status--off { background: #eeeae6; color: #77695e; }
.ely-ac-status--bad { background: #fbe1dc; color: #a0301f; }

/* Vignettes */
.ely-ac-thumb { position: relative; display: block; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: var(--ely-cream); overflow: hidden; }
.ely-ac-thumb--honey { background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--hn) 62%, #fff) 0 42%, #fff6dc 43%); }
.ely-ac-thumb__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ely-ac-thumb__jar { position: absolute; inset: 0; display: block; width: 100%; height: 80%; margin: auto; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(90, 50, 0, .25)); }
.ely-ac-thumb--more { display: grid; place-items: center; background: #f3ece2; color: #6b4a26; font-weight: 700; font-size: .92rem; }
.ely-ac-stack { display: flex; align-items: center; }
.ely-ac-stack > .ely-ac-thumb { box-shadow: 0 0 0 3px #fff; }
.ely-ac-stack > .ely-ac-thumb + .ely-ac-thumb { margin-left: -12px; }

/* Tableau de bord */
.ely-ac-last__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ely-ac-last__meta { margin: 6px 0 0; color: #8a6a48; font-size: .92rem; }
.ely-ac-last__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding-top: 16px; border-top: 1.5px dashed rgba(42, 22, 7, .12); }
.ely-ac-last__total { display: flex; flex-direction: column; margin-left: auto; text-align: right; line-height: 1.1; }
.ely-ac-last__total > span { color: #8a6a48; font-size: .84rem; }
.ely-ac-last__total strong { font-family: var(--ely-display); font-weight: 400; font-size: 1.6rem; color: #7a4206; }
.ely-ac-last__btn { min-height: 48px; padding: 12px 22px; }

.ely-ac-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ely-ac-tile {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 14px 30px -24px rgba(90, 50, 0, .45);
	color: var(--ely-ink) !important;
	text-decoration: none;
	transition: transform .3s var(--ely-spring), box-shadow .25s;
}
.ely-ac-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(160, 98, 10, .2), 0 18px 34px -22px rgba(90, 50, 0, .5); }
.ely-ac-tile__ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: #fff6df; color: #a0620a; }
.ely-ac-tile strong { font-size: 1rem; }
.ely-ac-tile small { color: #8a6a48; font-size: .86rem; }
.ely-ac-tile--honey { background: linear-gradient(150deg, #ffd56a, var(--ely-honey)); box-shadow: 0 4px 0 var(--ely-honey-deep); }
.ely-ac-tile--honey .ely-ac-tile__ico { background: rgba(255, 255, 255, .55); color: var(--ely-darker); }
.ely-ac-tile--honey small { color: #5b3410; }

.ely-ac-empty { display: grid; justify-items: center; gap: 8px; padding: clamp(30px, 5vw, 50px) 24px; text-align: center; }
.ely-ac-empty p { margin: 0 0 10px; color: #6b4a26; }
.ely-ac-empty__bee { width: 70px; height: auto; animation: ely-ac-bee 5s ease-in-out infinite; }

/* Liste des commandes */
.ely-ac-orders { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ely-ac-order { padding: 20px 22px; }
.ely-ac-order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ely-ac-order__num { color: var(--ely-ink) !important; font: 700 1.08rem/1.3 var(--ely-body); text-decoration: none; }
.ely-ac-order__num:hover { text-decoration: underline; text-decoration-color: var(--ely-honey-deep); text-underline-offset: 3px; }
.ely-ac-order__meta { margin: 4px 0 0; color: #8a6a48; font-size: .9rem; }
.ely-ac-order__body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 14px; border-top: 1.5px dashed rgba(42, 22, 7, .12); }
.ely-ac-order__total { font-family: var(--ely-display); font-weight: 400; font-size: 1.4rem; color: #7a4206; }
.ely-ac-order__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ely-ac-order__btn { min-height: 42px; padding: 10px 16px; font-size: .92rem; }
.ely-ac-pager { display: flex; justify-content: space-between; gap: 10px; }

/* Détail commande */
.ely-ac-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 18px 10px; border-radius: 22px; background: linear-gradient(135deg, #fff3d6, #ffe7b0); list-style: none; }
.ely-ac-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #8a6a48; font-size: .92rem; }
.ely-ac-track li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 3px; border-radius: 3px; background: rgba(160, 98, 10, .2); }
.ely-ac-track li.is-done:not(:last-child):has(+ .is-done)::after { background: #2f7a3a; }
.ely-ac-track__dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(160, 98, 10, .3); color: #a0620a; }
.ely-ac-track li.is-done { color: var(--ely-ink); }
.ely-ac-track li.is-done .ely-ac-track__dot { background: #2f7a3a; box-shadow: none; color: #fff; }
.ely-ac-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; box-shadow: inset 4px 0 0 var(--ely-honey), 0 0 0 1px rgba(42, 22, 7, .08); }
.ely-ac-alert p { margin: 0; font-weight: 600; }

.ely-ac-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 20px); align-items: start; }
.ely-ac-detail__side { display: grid; gap: clamp(14px, 2vw, 20px); }
.ely-ac-detail .ely-ac-h2 { margin-bottom: 12px; }
.ely-ac-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.ely-ac-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ely-ac-line + .ely-ac-line { border-top: 1px solid rgba(42, 22, 7, .07); }
.ely-ac-line__media { position: relative; flex: 0 0 auto; }
.ely-ac-line__qty { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ely-ink); color: var(--ely-milk); font-size: .75rem; font-weight: 700; }
.ely-ac-line__info { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.ely-ac-line__name { color: var(--ely-ink) !important; font-weight: 600; text-decoration: none; }
a.ely-ac-line__name:hover { text-decoration: underline; text-decoration-color: var(--ely-honey-deep); text-underline-offset: 3px; }
.ely-ac-line__format { margin-top: 3px; color: #8a6a48; font-size: .84rem; }
.ely-ac-line__total { font-weight: 600; white-space: nowrap; }
.ely-ac-totals { margin: 12px 0 0; padding-top: 12px; border-top: 1.5px dashed rgba(42, 22, 7, .14); }
.ely-ac-totals__row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: .96rem; }
.ely-ac-totals__row dt { margin: 0; color: #5b3d1f; }
.ely-ac-totals__row dd { margin: 0; font-weight: 600; text-align: right; }
.ely-ac-totals__row--order_total { margin-top: 6px; padding-top: 12px; }
.ely-ac-totals__row--order_total dt { color: var(--ely-ink); font-weight: 700; font-size: 1.08rem; }
.ely-ac-totals__row--order_total dd { font-family: var(--ely-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: #7a4206; }
.ely-ac-totals__row--order_total dd small { display: block; font-family: var(--ely-body); font-size: .75rem; color: #8a6a48; }
.ely-ac-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fffaf0; font-size: .92rem; color: #5b3d1f; }
.ely-ac-again:empty { display: none; }
.ely-ac-again { margin-top: 16px; }
.ely-ac-again .order-again { margin: 0; }
.ely-ac-again .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 14px;
	background: var(--ely-honey);
	box-shadow: 0 4px 0 var(--ely-honey-deep);
	color: var(--ely-darker) !important;
	font-weight: 600;
	text-decoration: none;
}
.ely-ac-box address { font-style: normal; color: #5b3d1f; font-size: .95rem; line-height: 1.55; }
.ely-ac-box__method { margin: 0 0 6px; font-weight: 600; }
.ely-ac-notes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ely-ac-notes li { padding: 10px 12px; border-radius: 12px; background: #fffaf0; font-size: .92rem; color: #5b3d1f; }
.ely-ac-notes time { display: block; margin-bottom: 4px; color: #8a6a48; font-size: .8rem; font-weight: 600; }
.ely-ac-notes p { margin: 0; }

/* Adresses */
.ely-ac-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.ely-ac-address { display: flex; flex-direction: column; }
.ely-ac-address address { flex: 1 1 auto; margin: 0 0 18px; font-style: normal; color: #5b3d1f; line-height: 1.6; }
.ely-ac-address__btn { align-self: flex-start; min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.ely-ac-address.is-empty { background: #fffaf0; box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .1); }

/* Formulaires WooCommerce habillés : profil, modifier une adresse */
.ely-acc__content form.edit-account,
.ely-acc__content .woocommerce-address-fields,
.ely-acc__content > form:has(.woocommerce-address-fields) {
	padding: clamp(20px, 2.6vw, 30px);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(42, 22, 7, .06), 0 20px 44px -34px rgba(90, 50, 0, .5);
}
.ely-acc__content > form:has(.woocommerce-address-fields) .woocommerce-address-fields { padding: 0; background: none; box-shadow: none; }
.ely-acc__content > form > h2,
.ely-acc__content > form > h3 { margin: 0 0 18px; font-family: var(--ely-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.1; }
.ely-acc__content .woocommerce-address-fields__field-wrapper,
.ely-acc__content form.edit-account { display: flex; flex-wrap: wrap; gap: 0 14px; }
.ely-acc__content .form-row { flex: 1 1 100%; }
.ely-acc__content .form-row-first, .ely-acc__content .form-row-last { flex: 1 1 calc(50% - 7px); }
.ely-acc__content form.edit-account > .clear { display: none; }
.ely-acc__content #account_display_name_field,
.ely-acc__content form.edit-account p:has(> #account_display_name) { display: none; }
.ely-acc__content form.edit-account fieldset {
	flex: 1 1 100%;
	margin: 10px 0 14px;
	padding: 18px;
	border: 0;
	border-radius: 18px;
	background: #fffaf0;
	box-shadow: inset 0 0 0 1.5px rgba(42, 22, 7, .08);
}
.ely-acc__content form.edit-account legend { padding: 0 6px; font-weight: 700; color: var(--ely-ink); }
.ely-acc__content form.edit-account fieldset .form-row:last-child { margin-bottom: 0; }
.ely-acc__content form.edit-account > p:last-of-type,
.ely-acc__content .woocommerce-address-fields > p:last-child { flex: 1 1 100%; margin: 6px 0 0; }
.ely-acc__content :is(form.edit-account, .woocommerce-address-fields) button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 30px;
	border: 0;
	border-radius: 14px;
	background: var(--ely-honey);
	box-shadow: 0 4px 0 var(--ely-honey-deep);
	color: var(--ely-darker);
	font: 600 1.02rem/1.15 var(--ely-body);
	cursor: pointer;
	transition: transform .25s var(--ely-spring), box-shadow .25s;
}
.ely-acc__content :is(form.edit-account, .woocommerce-address-fields) button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ely-honey-deep); }

/* Cartes enregistrées (WooPayments) */
.ely-acc__content .woocommerce-MyAccount-paymentMethods { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(42, 22, 7, .06); overflow: hidden; font-size: .95rem; }
.ely-acc__content .woocommerce-MyAccount-paymentMethods :is(th, td) { padding: 14px 16px; border-bottom: 1px solid rgba(42, 22, 7, .07); text-align: left; }
.ely-acc__content .woocommerce-MyAccount-paymentMethods thead th { background: #fff6df; color: #5b3d1f; font-size: .85rem; }
.ely-acc__content .woocommerce-MyAccount-paymentMethods .button { margin-right: 6px; color: #7a4206; font-weight: 600; }
.ely-acc__content > .button, .ely-acc__content a.button[href*="add-payment-method"] {
	justify-self: start;
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	padding: 12px 22px;
	border-radius: 14px;
	background: var(--ely-honey);
	box-shadow: 0 4px 0 var(--ely-honey-deep);
	color: var(--ely-darker) !important;
	font-weight: 600;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ely-ac-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ely-acc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.ely-acc__side { position: static; padding: 14px; }
	.ely-acc__who { padding: 2px 4px 12px; }
	.ely-acc__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.ely-acc__nav a { gap: 8px; padding: 10px; font-size: .88rem; line-height: 1.2; white-space: nowrap; background: #fffaf0; }
	.ely-acc__nav a .ely-ac-ico { width: 18px; height: 18px; }
	.ely-acc__nav .woocommerce-MyAccount-navigation-link--customer-logout { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
	.ely-acc__nav .woocommerce-MyAccount-navigation-link--customer-logout a { justify-content: center; background: none; }
	.ely-ac-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.ely-auth--duo { grid-template-columns: minmax(0, 1fr); }
	.ely-auth--duo .ely-auth__tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px;
		padding: 5px;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 0 0 1px rgba(42, 22, 7, .08);
	}
	.ely-auth__tab { min-height: 46px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: #6b4a26; font: 600 .98rem/1 var(--ely-body); cursor: pointer; }
	.ely-auth__tab[aria-selected="true"] { background: var(--ely-honey); color: var(--ely-darker); box-shadow: 0 3px 0 var(--ely-honey-deep); }
	.ely-auth--duo[data-tab="login"] [data-ely-panel="register"],
	.ely-auth--duo[data-tab="register"] [data-ely-panel="login"] { display: none; }
	.ely-auth__card { border-radius: 22px; }
	.ely-ac-addresses { grid-template-columns: minmax(0, 1fr); }
	.ely-ac-order__actions { margin-left: 0; width: 100%; }
	.ely-ac-order__actions .ely-btn { flex: 1 1 auto; }
	.ely-ac-last__btn { width: 100%; }
}
@media (max-width: 520px) {
	.ely-ac-head__title { font-size: 2rem; }
	.ely-acc__content .form-row-first, .ely-acc__content .form-row-last { flex-basis: 100%; }
	.ely-acc__content #billing_postcode_field, .ely-acc__content #shipping_postcode_field { flex: 0 1 38%; }
	.ely-acc__content #billing_city_field, .ely-acc__content #shipping_city_field { flex: 1 1 50%; }
	.ely-ac-tile { padding: 14px; }
	.ely-ac-tile__ico { width: 36px; height: 36px; margin-bottom: 8px; }
	.ely-ac-track { padding: 14px 4px; }
	.ely-ac-track li { font-size: .82rem; }
	.ely-ac-track li:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px); top: 19px; }
	.ely-ac-track__dot { width: 38px; height: 38px; }
	.ely-ac-order { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.ely-ac *, .ely-ac *::before, .ely-ac *::after { animation: none !important; transition: none !important; }
}
