/*
 * Miss Networker · aggiunte per WordPress.
 * Gli stili del restyling sono in assets/css/style.css (copiati dall'anteprima, da non toccare qui).
 * Questo file aggiunge solo ciò che serve alle pagine vere di WooCommerce e di WordPress, con gli stessi colori,
 * le stesse misure e gli stessi componenti dell'anteprima.
 */

/* ---------- Barra di amministrazione: l'intestazione resta sotto ---------- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ---------- Profilo: voce attiva scelta dal server, sezione sempre aperta ---------- */
.acc-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.acc-nav a[aria-current="page"] .icon { color: var(--pink); }
.acc-panel.is-active { display: block; }
.acc-avatar--foto { overflow: hidden; padding: 0; }
.acc-avatar--foto img { width: 100%; height: 100%; object-fit: cover; }
.acc-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding: 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.acc-empty > .star { width: 22px; height: 22px; color: var(--pink-deep); flex: none; }
.acc-empty p { flex: 1; min-width: 220px; margin: 0; font-size: .95rem; color: var(--graphite); }
.acc-empty strong { color: var(--ink); }
.acc-pages { justify-content: space-between; }
.acc-back { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.acc-back .icon { width: 16px; height: 16px; }
.acc-guide__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.acc-addr .btn { margin-top: 14px; }
.acc-addr address { font-style: normal; line-height: 1.6; color: var(--graphite); }

/* ---------- Campi dei moduli di WooCommerce come i campi del restyling ---------- */
.acc-wcform { margin-top: 20px; }
.acc-wcform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acc-wcform .form-row { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.acc-wcform .form-row-wide, .acc-wcform .form-row.notes, .acc-wcform #billing_address_1_field, .acc-wcform #shipping_address_1_field,
.acc-wcform #billing_country_field, .acc-wcform #shipping_country_field, .acc-wcform #billing_email_field { grid-column: 1 / -1; }
.acc-wcform .form-row label { font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.acc-wcform .form-row .required { color: var(--pink-deep); text-decoration: none; border: 0; }
.acc-wcform .form-row .optional { color: var(--stone); font-weight: 400; }
.acc-wcform .woocommerce-input-wrapper { display: block; }
.acc-wcform .input-text, .acc-wcform select, .acc-wcform textarea {
	width: 100%; min-height: 54px; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
	color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.acc-wcform .input-text:focus, .acc-wcform select:focus, .acc-wcform textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px rgba(249, 197, 210, .55); }
.acc-wcform .woocommerce-invalid .input-text, .acc-wcform .woocommerce-invalid select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 60, .12); }
.acc-wcform .select2-container .select2-selection--single { height: 54px; border-radius: 14px; border-color: var(--line); display: flex; align-items: center; padding: 0 8px; }
.acc-wcform .select2-container .select2-selection__arrow { height: 52px; right: 10px; }
.acc-wcform__actions { margin-top: 22px; }
.acc-form .acc-pass { margin-top: 26px; }
@media (max-width: 560px) { .acc-wcform__grid { grid-template-columns: 1fr; } }

/* ---------- Avvisi di WooCommerce (salvato, errori, informazioni) ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner {
	list-style: none; margin: 18px 0; padding: 14px 18px; border-radius: 16px; font-size: .92rem; line-height: 1.5;
	background: var(--blush); border: 1px solid var(--pink-60); color: var(--ink);
}
.woocommerce-error { background: #fbeef0; border-color: rgba(180, 35, 60, .25); color: var(--danger); }
.woocommerce-error li { margin: 0; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-message .button, .woocommerce-info .button { display: table; margin: 0 0 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pagina «Il mio account» del plugin Area corsi per chi non ha corsi ---------- */
.mn-ac-account-vuoto { margin-top: 20px; padding: 26px 22px !important; border: 1px solid var(--line) !important; border-radius: 22px !important; background: var(--white) !important; text-align: left !important; }
.mn-ac-account-vuoto h3 { font-family: var(--serif); font-size: 1.4rem !important; color: var(--ink) !important; }
.mn-ac-account-vuoto p { color: var(--graphite); }
.mn-ac-account-pulsanti { justify-content: flex-start !important; }
.mn-ac-account-pulsanti a { padding: 12px 22px !important; border-radius: var(--pill) !important; font-weight: 600 !important; }
.mn-ac-account-pulsanti .mn-ac-primario { background: var(--ink) !important; color: #fff !important; }
.mn-ac-account-pulsanti .mn-ac-secondario { background: var(--blush) !important; color: var(--ink) !important; }
.mn-ac-account-vuoto .mn-ac-account-aiuto { color: var(--stone) !important; }

/* ---------- Pagine di WordPress fatte con Elementor o dai plugin, dentro il tema ---------- */
.mnt-contenuto { padding-block: clamp(40px, 6vw, 80px); }

/* ---------- Area corsi: voce attiva scelta dal server, sezione sempre aperta ---------- */
.lms-side nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.lms-side nav a[aria-current="page"] .icon { color: var(--pink); }
.lms-bottom a[aria-current="page"] { color: var(--ink); background: var(--blush); }
.lms-bottom a[aria-current="page"] .icon { color: var(--pink-deep); }
.lms-panel.is-active { display: block; }
.lms-top__logo svg { height: 34px; width: auto; }

/* ---------- Area corsi: passaggio a Glow Up New York (calcolato dal plugin Area corsi) ---------- */
.lms-up { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; margin-top: 28px; padding: clamp(20px, 3vw, 30px); border-radius: 26px; background: var(--ink); color: #fff; }
.lms-up .lms-k { color: var(--pink); }
.lms-up h3 { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; color: #fff; }
.lms-up p { margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.lms-up__offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.lms-up__label { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.lms-up__offer s { color: rgba(255, 255, 255, .5); font-size: .95rem; }
.lms-up__offer strong { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: #fff; }
.lms-up__note { font-size: .82rem; color: rgba(255, 255, 255, .7); }
.lms-up__offer .btn { margin-top: 8px; }
.lms-up__offer .link { color: #fff; font-size: .86rem; }
@media (max-width: 760px) { .lms-up { grid-template-columns: 1fr; } }

/* ---------- Area corsi: sotto-pagine ridisegnate (I miei corsi, Domande, Impostazioni) ---------- */
.lms-main > .tutor-dashboard-page > .lms-panel { max-width: 1040px; margin: 0 auto; }
.lms-q strong a { color: inherit; }
.lms-q strong a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lms-q__a > span:not(.acc-avatar) { flex: 1; min-width: 0; }
.lms-q__a em { display: block; margin-top: 4px; font-style: normal; font-weight: 600; color: var(--ink); }
.lms-q__wait { margin: 12px 0 0; font-size: .86rem; color: var(--stone); }
.lms-q .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .88rem; }
.lms-q .link .arrow { width: 14px; height: 14px; }
.lms-panel > .woocommerce-message, .lms-panel > .woocommerce-error { max-width: 640px; }
.lms-panel .acc-form { margin-top: 20px; display: grid; gap: 20px; justify-items: start; }
.lms-panel .acc-form .form-grid { width: 100%; max-width: 640px; }
.mnt-file { cursor: pointer; }
.mnt-file:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .lms-panel .acc-form .form-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine di Tutor e Tutor Pro nell'area corsi e nelle lezioni: colori e caratteri del restyling ---------- */
body.is-app {
	--tutor-font-family-body: "General Sans";
	--tutor-font-family-heading: "General Sans";
	--tutor-brand-50: #fff8fa;
	--tutor-brand-100: #fdf3f6;
	--tutor-brand-200: #fbe3ea;
	--tutor-brand-300: #f9d3dd;
	--tutor-brand-400: #f9c5d2;
	--tutor-brand-450: #f2a9bc;
	--tutor-brand-500: #f2a9bc;
	--tutor-brand-600: #0b0b0c;
	--tutor-brand-700: #000000;
	--tutor-brand-800: #1c1c1d;
	--tutor-brand-900: #141415;
	--tutor-brand-950: #0b0b0c;
	--tutor-surface-base: var(--porcelain);
	--plyr-color-main: var(--pink-deep);
}
.lms-main > .tutor-dashboard-page { max-width: 1040px; margin-inline: auto; }
.mnt-pagina-tutor__testa { margin: 0 0 20px; }

/* ---------- Abbonamenti (WooCommerce Subscriptions): i dettagli come le «schede» dell'anteprima ---------- */
.acc-sub .subscription_details { display: block; width: 100%; margin: 0; border: 0; }
.acc-sub .subscription_details tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.acc-sub .subscription_details tr { display: block; padding: 12px 14px; border-radius: 14px; background: var(--porcelain); }
.acc-sub .subscription_details tr:first-child { display: none; } /* lo stato è già nella pastiglia in alto */
.acc-sub .subscription_details td { display: block; padding: 0; border: 0; background: none; text-align: left; }
.acc-sub .subscription_details td:first-child { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.acc-sub .subscription_details td + td { margin-top: 4px; font-weight: 600; color: var(--ink); }
.acc-sub .subscription_details td + td small { font-weight: 400; color: var(--stone); }
/* Azioni (cambia carta, annulla il rinnovo…): riga intera, pulsanti del restyling */
.acc-sub .subscription_details tr:has(.button) { grid-column: 1 / -1; padding: 0; background: none; }
.acc-sub .subscription_details tr:has(.button) td:first-child { display: none; }
.acc-sub .subscription_details tr:has(.button) td + td { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.acc-sub .subscription_details .button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill);
	background: transparent; color: var(--ink); border: 1px solid var(--ink); font-family: var(--sans); font-weight: 500; font-size: .9rem; line-height: 1;
	white-space: nowrap; text-decoration: none; transition: background-color .35s var(--ease), color .35s var(--ease);
}
.acc-sub .subscription_details .button:hover { background: var(--black); color: var(--white); }
.acc-sub .subscription_details .button.resubscribe, .acc-sub .subscription_details .button.reactivate, .acc-sub .subscription_details .button.subscription_renewal_early { background: var(--pink); border-color: var(--pink); color: var(--black); }
/* Rinnovo automatico: l'interruttore di WooCommerce Subscriptions con i colori del restyling */
.acc-sub .subscription-auto-renew-toggle { position: relative; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #d9d3d4; cursor: pointer; vertical-align: middle; transition: background-color .25s; }
.acc-sub .subscription-auto-renew-toggle--on { background: var(--ink); }
.acc-sub .subscription-auto-renew-toggle__i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.acc-sub .subscription-auto-renew-toggle--on .subscription-auto-renew-toggle__i { transform: translateX(20px); }
.acc-sub .subscription-auto-renew-toggle--disabled { opacity: .5; cursor: not-allowed; }
.acc-sub .subscription-auto-renew-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Aggiornamenti dell'abbonamento (note per la cliente) */
.acc-sub .mnt-sub-details h2 { margin-top: 22px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.acc-sub .woocommerce-OrderUpdates { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--graphite); }
.acc-sub .woocommerce-OrderUpdate { padding: 10px 14px; border-radius: 14px; background: var(--porcelain); }
.acc-sub .woocommerce-OrderUpdate-meta { margin: 0; font-size: .76rem; color: var(--stone); }
/* Dettaglio dell'importo (a scomparsa) */
.mnt-sub-totali { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.mnt-sub-totali summary { cursor: pointer; font-size: .86rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink-deep); }
.mnt-sub-totali h2 { display: none; }
.mnt-sub-totali table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .88rem; }
.mnt-sub-totali th, .mnt-sub-totali td { padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.mnt-sub-totali td:last-child, .mnt-sub-totali th:last-child { text-align: right; }
.mnt-sub-totali .remove_item { display: none; }
/* Pagamenti: azioni di un rinnovo da pagare */
.acc-subpay__azioni { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .acc-sub .subscription_details tbody { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Fattura su richiesta (checkout e profilo, inc/fattura.php) ---------- */
/* I campi compaiono solo con «Voglio la fattura»; l'indirizzo a parte solo se non è lo stesso. Niente JavaScript. */
.mnt-fattura:has(.check--card input:not(:checked)) .co-invoice__body,
.mnt-fattura:has(.mnt-fattura-stesso input:checked) .mnt-fattura-indirizzo { display: none; }
.mnt-fattura .mnt-fattura-stesso { margin-top: 16px; }
.mnt-fattura .mnt-fattura-indirizzo { margin-top: 12px; }
.mnt-fattura .co-invoice__body > .co-hint { margin-bottom: 0; }
.acc-invoice.mnt-fattura form { display: grid; gap: 14px; }
.acc-invoice.mnt-fattura .co-invoice__body { margin-top: 4px; }
.acc-invoice.mnt-fattura .co-invoice__body > .small { margin: 12px 0 0; }
.acc-invoice.mnt-fattura .btn { justify-self: start; }
/* Ricevuta: i dati della fattura richiesta, uno per riga. */
.rcp-note .rcp-note__dati { display: grid; gap: 2px; }
.rcp-note .rcp-note__dati strong { color: var(--ink); font-weight: 600; }

/* Pagina «Paga» di un ordine con Infinity mensile: perché non ci sono le rate (inc/infinity-rate.php) */
.mnt-rate-paga { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--blush); font-size: .88rem; line-height: 1.45; color: var(--graphite); }
