/* My Account login, register and lost/reset password forms, shown to signed-out visitors. White cards, inputs and
   buttons in the style of the theme's checkout. Lives in the plugin (the wishlist sends guests here) and takes its
   colours from the theme palette, so it suits the second site too. !important where theme form rules compete. */
.woocommerce-account .woocommerce{--em-af-ink:var(--em-charcoal,#382b40);--em-af-sub:var(--em-sub,#625961);--em-af-line:var(--em-line,#e3dbe9);--em-af-field:color-mix(in srgb,var(--em-lilac,#b39acf) 30%,var(--em-line,#e3dbe9));--em-af-purple:var(--em-purple,#76528d)}

/* Cards: the heading and its form join into one card, as the theme does for the checkout order summary. */
.woocommerce-account .woocommerce>h2:has(+form.woocommerce-form-login),.woocommerce-account .woocommerce>h2:has(+form.woocommerce-form-register),.woocommerce-account #customer_login h2{box-sizing:border-box;max-width:460px;margin:0!important;padding:26px 28px 6px!important;background:#fff;border:1px solid var(--em-af-line);border-bottom:0;border-radius:16px 16px 0 0;font-size:clamp(1.5rem,2.4vw,1.9rem)!important;line-height:1.25!important;color:var(--em-af-ink)}
.woocommerce-account .woocommerce form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password){box-sizing:border-box;max-width:460px;margin:0 0 24px!important;padding:16px 28px 26px!important;background:#fff;border:1px solid var(--em-af-line);border-radius:16px;box-shadow:0 7px 23px color-mix(in srgb,var(--em-charcoal,#2f2a2d) 3%,transparent);color:var(--em-af-ink);font-size:14px;line-height:1.6}
/* Clip the form's shadow at its top edge, or it shows as a faint line across the heading above it. */
.woocommerce-account .woocommerce h2+form:is(.woocommerce-form-login,.woocommerce-form-register){border-top:0;border-radius:0 0 16px 16px;clip-path:inset(0 -40px -40px -40px)}
.woocommerce-account form.lost_reset_password{padding-top:24px!important}
.woocommerce-account form.lost_reset_password>p:first-child{color:var(--em-af-sub);margin:0 0 16px}
/* Login and register side by side when registration is on; stacked on phones. */
.woocommerce-account #customer_login{display:grid!important;grid-template-columns:repeat(2,minmax(0,460px));gap:24px;align-items:start;width:auto!important}
.woocommerce-account #customer_login::before,.woocommerce-account #customer_login::after{display:none!important}
.woocommerce-account #customer_login>.u-column1,.woocommerce-account #customer_login>.u-column2{float:none!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
.woocommerce-account #customer_login form{margin:0!important}

/* Fields */
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) .form-row{float:none!important;width:100%!important;margin:0 0 15px!important;padding:0!important}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) label:not(.woocommerce-form__label-for-checkbox){display:block!important;margin:0 0 6px!important;font-size:13px!important;font-weight:700!important;line-height:1.5;color:var(--em-af-ink)}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) .required{color:var(--em-wish,#c62828);border:0;text-decoration:none}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) input.input-text{box-sizing:border-box!important;display:block;width:100%!important;max-width:none!important;min-height:46px;margin:0!important;padding:10px 13px!important;border:1px solid var(--em-af-field)!important;border-radius:9px!important;background:#fff!important;color:var(--em-af-ink)!important;font:inherit;font-size:15px!important;box-shadow:none!important}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) input.input-text:focus{outline:2px solid var(--em-af-purple)!important;outline-offset:1px;border-color:var(--em-af-purple)!important}
/* Show-password eye that WooCommerce adds beside password fields; without WooCommerce's own stylesheet it is an empty box. */
.woocommerce-account form .password-input{position:relative;display:block!important;width:100%}
.woocommerce-account form .password-input input.input-text{padding-right:48px!important}
.woocommerce-account form .show-password-input{position:absolute!important;top:50%;right:5px;width:38px!important;height:38px!important;min-height:0!important;margin:0!important;padding:0!important;transform:translateY(-50%);border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
.woocommerce-account form .show-password-input::after{content:"";position:absolute;inset:9px;background:var(--em-af-sub);-webkit-mask:var(--em-eye) center/contain no-repeat;mask:var(--em-eye) center/contain no-repeat;--em-eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.woocommerce-account form .show-password-input.display-password::after{--em-eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.6 5.1A10.4 10.4 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-2.6 3.5M6.6 6.6C3.7 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2M3 3l18 18'/%3E%3C/svg%3E")}
.woocommerce-account form .show-password-input:hover::after{background:var(--em-af-purple)}
.woocommerce-account form .show-password-input:focus-visible{outline:2px solid var(--em-af-purple)!important}

/* Remember me + button: checkbox on its own line, full-width button underneath. */
.woocommerce-account form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit){display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:4px 0 14px!important}
.woocommerce-account form .woocommerce-form__label-for-checkbox{display:inline-flex!important;align-items:center;gap:9px;margin:0!important;font-size:14px!important;font-weight:500!important;color:var(--em-af-sub);cursor:pointer}
.woocommerce-account form .woocommerce-form__label-for-checkbox input[type=checkbox]{width:18px;height:18px;margin:0!important;accent-color:var(--em-af-purple)}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) button[type=submit]{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:48px!important;margin:0!important;padding:12px 20px!important;border:0!important;border-radius:9px!important;background:var(--em-af-purple)!important;color:#fff!important;font:inherit;font-size:15px!important;font-weight:700!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;cursor:pointer;transition:background-color .2s}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) button[type=submit]:hover{background:color-mix(in srgb,var(--em-af-ink) 34%,var(--em-af-purple))!important}
.woocommerce-account form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password) button[type=submit]:focus-visible{outline:2px solid var(--em-af-purple)!important;outline-offset:2px}
.woocommerce-account form .lost_password{margin:0!important;padding-top:14px;border-top:1px solid var(--em-af-line);text-align:center;font-size:14px}
.woocommerce-account form .lost_password a{color:var(--em-af-purple)!important;font-weight:600;text-decoration:underline!important}
.woocommerce-account form.woocommerce-form-register>p:not(.form-row),.woocommerce-account form .woocommerce-privacy-policy-text{color:var(--em-af-sub);font-size:13px;line-height:1.6;margin:0 0 15px}
.woocommerce-account form .woocommerce-privacy-policy-text a{color:var(--em-af-purple)}
/* WooCommerce messages on My Account pages ("An account is already registered…", "We have emailed you a link…"). Without
   WooCommerce's stylesheet they are plain bullet points; here they are cards like the forms: coloured edge, round
   icon, red for errors, theme purple for confirmations and information. Classic and block-style notices both. */
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner){--em-note:var(--em-af-purple);--em-note-icon:"i";position:relative;box-sizing:border-box;max-width:944px;margin:0 0 20px!important;padding:15px 20px 15px 56px!important;list-style:none!important;background:color-mix(in srgb,var(--em-note) 6%,#fff)!important;border:1px solid color-mix(in srgb,var(--em-note) 26%,#fff)!important;border-left:5px solid var(--em-note)!important;border-radius:12px!important;box-shadow:0 7px 23px color-mix(in srgb,var(--em-charcoal,#2f2a2d) 5%,transparent);color:var(--em-af-ink)!important;font-size:15px!important;line-height:1.55!important;animation:em-note-in .35s ease-out}
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.wc-block-components-notice-banner.is-error){--em-note:var(--em-wish,#c62828);--em-note-icon:"!"}
.woocommerce-account .woocommerce :is(.woocommerce-message,.wc-block-components-notice-banner.is-success){--em-note-icon:"✓"}
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner)::before{content:var(--em-note-icon)!important;position:absolute!important;left:18px!important;top:15px!important;display:flex!important;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--em-note)!important;color:#fff!important;font:700 14px/1 system-ui,sans-serif!important}
.woocommerce-account .woocommerce .wc-block-components-notice-banner>svg{display:none}
.woocommerce-account .woocommerce ul.woocommerce-error li{list-style:none!important;margin:0!important;padding:0!important}
.woocommerce-account .woocommerce ul.woocommerce-error li+li{margin-top:6px!important}
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info) strong{color:var(--em-note)}
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner) a:not(.button){color:var(--em-note)!important;font-weight:700;text-decoration:underline!important}
/* Buttons inside a message ("Browse products" on an empty Downloads page): filled in the message colour, white text. */
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner) a.button{float:right;display:inline-flex!important;align-items:center;min-height:0!important;margin:-6px 0 -6px 16px!important;padding:8px 16px!important;border:0!important;border-radius:8px!important;background:var(--em-note)!important;color:#fff!important;font-size:13px!important;font-weight:700!important;line-height:1.4!important;text-decoration:none!important;box-shadow:none!important}
.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner) a.button:hover{background:color-mix(in srgb,var(--em-af-ink) 30%,var(--em-note))!important;color:#fff!important}
@media(max-width:600px){.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info,.wc-block-components-notice-banner) a.button{float:none;display:flex!important;width:fit-content;margin:10px 0 0!important}}
/* Single login card: messages match its width. */
.woocommerce-account .woocommerce:has(>form.woocommerce-form-login) :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info){max-width:460px}
@keyframes em-note-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.woocommerce-account .woocommerce :is(ul.woocommerce-error,.woocommerce-message,.woocommerce-info){animation:none}}

/* Account details and Addresses edit forms (signed in). They already sit in the theme's white content card, so only
   the fields change: labels above full-width rounded inputs, first/last name side by side, the password change box
   as a soft panel, and the same purple button as the login form. */
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields__field-wrapper){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;max-width:680px}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields__field-wrapper)>*{grid-column:1/-1}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields__field-wrapper)>.form-row-first{grid-column:1}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields__field-wrapper)>.form-row-last{grid-column:2}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) .clear{display:none}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) .form-row{float:none!important;width:auto!important;margin:0 0 16px!important;padding:0!important}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) label:not(.checkbox){display:block!important;margin:0 0 6px!important;font-size:13px!important;font-weight:700!important;line-height:1.5;color:var(--em-af-ink)}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) .required{color:var(--em-wish,#c62828);border:0;text-decoration:none}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) :is(input.input-text,select,textarea){box-sizing:border-box!important;display:block;width:100%!important;max-width:none!important;min-height:46px;margin:0!important;padding:10px 13px!important;border:1px solid var(--em-af-field)!important;border-radius:9px!important;background:#fff!important;color:var(--em-af-ink)!important;font:inherit;font-size:15px!important;box-shadow:none!important}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) :is(input.input-text,select,textarea):focus{outline:2px solid var(--em-af-purple)!important;outline-offset:1px;border-color:var(--em-af-purple)!important}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .select2-container{width:100%!important}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .select2-selection--single{display:flex!important;align-items:center;height:auto!important;min-height:46px;border:1px solid var(--em-af-field)!important;border-radius:9px!important;background:#fff!important}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .select2-selection__rendered{padding-left:13px!important;line-height:1.4!important;color:var(--em-af-ink)!important;font-size:15px}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .select2-selection__arrow{top:10px!important;right:8px!important}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account #account_display_name_description{display:block;margin-top:6px;font-size:13px;line-height:1.5;color:var(--em-af-sub)}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account #account_display_name_description em{font-style:normal}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset{box-sizing:border-box;min-width:0;margin:6px 0 20px!important;padding:16px 20px 2px!important;border:1px solid var(--em-af-line)!important;border-radius:12px!important;background:var(--em-paper,#faf8fc)}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account legend{float:none;width:auto;margin:0!important;padding:0 8px!important;font-size:15px!important;font-weight:700!important;color:var(--em-af-ink)}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) button[type=submit]{display:inline-flex!important;align-items:center;justify-content:center;min-width:180px;min-height:48px!important;margin:0!important;padding:12px 26px!important;border:0!important;border-radius:9px!important;background:var(--em-af-purple)!important;color:#fff!important;font:inherit;font-size:15px!important;font-weight:700!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;cursor:pointer}
.woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) button[type=submit]:hover{background:color-mix(in srgb,var(--em-af-ink) 34%,var(--em-af-purple))!important}
.woocommerce-account .woocommerce-MyAccount-content form:has(.woocommerce-address-fields)>h2,.woocommerce-account .woocommerce-MyAccount-content form:has(.woocommerce-address-fields)>h3{margin:0 0 18px!important;font-size:clamp(1.4rem,2.2vw,1.8rem)!important;line-height:1.25!important}
@media(max-width:600px){
 .woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields__field-wrapper){grid-template-columns:minmax(0,1fr)}
 .woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields__field-wrapper)>:is(.form-row-first,.form-row-last){grid-column:1}
 .woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset{padding:14px 14px 2px!important}
 .woocommerce-account .woocommerce-MyAccount-content :is(form.edit-account,.woocommerce-address-fields) button[type=submit]{width:100%}
}

/* The wishlist's "log in to save" note sits above the card at the same width. */
.woocommerce-account .woocommerce>.em-wishlist-guest{box-sizing:border-box;max-width:460px}
.woocommerce-account .woocommerce:has(#customer_login)>.em-wishlist-guest{max-width:944px}
@media(max-width:760px){
 .woocommerce-account #customer_login{grid-template-columns:minmax(0,1fr)}
 .woocommerce-account .woocommerce>h2:has(+form),.woocommerce-account #customer_login h2{padding:22px 20px 4px!important}
 .woocommerce-account .woocommerce form:is(.woocommerce-form-login,.woocommerce-form-register,.lost_reset_password){padding:14px 20px 22px!important}
}
