/* My Account, log in / register and password reset */
.kc-wcpage--account .kc-wcpage__body { min-height: 50vh; }

/* ---------- Auth (login, register, reset) ---------- */
.kc-auth { display: grid; gap: 22px; max-width: 980px; margin-inline: auto; align-items: stretch; }
.kc-auth--single { max-width: 520px; }
.kc-auth__info { padding: 24px; border-radius: 28px; background: linear-gradient(160deg, var(--blue), var(--blue-dk)); color: #fff; box-shadow: var(--shadow); }
.kc-auth__info h2 { font-size: 26px; line-height: 1.15; margin-bottom: 14px; }
.kc-auth__info ul { display: grid; gap: 12px; }
.kc-auth__info li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.35; }
.kc-auth__info .kc-i { width: 22px; height: 22px; flex: none; color: var(--sun); stroke-width: 3.2; margin-top: 1px; }
.kc-auth__guest { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, .35); font-size: 15px; opacity: .95; }
.kc-auth__card { padding: 22px 18px; border-radius: 28px; background: #fff; border: 3px solid #e1eefc; box-shadow: var(--shadow); }
.kc-auth__card--center { text-align: center; }
.kc-auth__h { font-size: 26px; color: var(--navy); margin-bottom: 14px; line-height: 1.15; }
.kc-auth__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 12px; border-radius: 50%; background: #eef5fd; color: var(--pink); }
.kc-auth__card--center .kc-auth__icon { margin-inline: auto; }
.kc-auth__icon .kc-i { width: 32px; height: 32px; }
.kc-auth__icon--ok { background: var(--green); color: #fff; }
.kc-auth__icon--ok .kc-i { stroke-width: 3.4; }
.kc-auth__note { color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.kc-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px 0 16px; }
.kc-auth__link, .kc-auth__back a { color: var(--blue-dk); font-weight: 700; text-underline-offset: 3px; }
.kc-auth__back { margin-top: 16px; text-align: center; }
.kc-auth .kc-btn--xl { margin-top: 0; }

.kc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 99px; background: #eef5fd; }
.kc-tabs button { min-height: 48px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-weight: 700; font-size: 17px; }
.kc-tabs button[aria-selected="true"] { background: #fff; color: var(--pink-dk); box-shadow: 0 2px 8px rgba(20, 51, 107, .18); }
.kc-panel-auth[hidden] { display: none; }

/* ---------- Logged-in layout ---------- */
.kc-acct { display: grid; gap: 20px; align-items: start; }
.kc-acct__side { display: grid; gap: 12px; }
.kc-acct__who { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; background: #fff; border: 3px solid #e1eefc; box-shadow: var(--shadow); }
.kc-acct__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; font-size: 24px; border: 3px solid #fff; box-shadow: 0 2px 0 var(--pink-dk); flex: none; }
.kc-acct__name { font-weight: 700; color: var(--navy); line-height: 1.2; }
.kc-acct__mail { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.kc-acct__nav ul { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.kc-acct__nav ul::-webkit-scrollbar { display: none; }
.kc-acct__nav a { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 16px; border-radius: 99px; background: #eef5fd; border: 2px solid #d6e4f7; color: var(--navy); font-weight: 700; text-decoration: none; }
.kc-acct__nav .kc-i { width: 20px; height: 20px; }
.kc-acct__nav a[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.kc-acct__nav .is-active a { background: var(--pink); border-color: var(--pink); color: #fff; }
.kc-acct__nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--pink-dk); }
.kc-acct__content { padding: 20px 16px; border-radius: 28px; background: #fff; border: 3px solid #e1eefc; box-shadow: var(--shadow); min-width: 0; }
.kc-acct__h { font-size: 26px; color: var(--navy); margin-bottom: 6px; line-height: 1.15; }
.kc-acct__lead { color: var(--muted); margin-bottom: 16px; }

/* ---------- Dashboard ---------- */
.kc-dash__hello h2 { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.kc-dash__hello p { color: var(--muted); margin-bottom: 18px; line-height: 1.45; }
.kc-tiles { display: grid; gap: 12px; margin-bottom: 24px; }
.kc-tiles a { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: #f3f9ff; border: 2px solid #dcebfb; text-decoration: none; color: var(--navy); transition: transform .12s ease, border-color .12s ease; }
.kc-tiles a:hover { transform: translateY(-2px); border-color: var(--pink-lt); }
.kc-tiles__i { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--pink); color: #fff; }
.kc-tiles__i .kc-i { width: 26px; height: 26px; }
.kc-tiles b { font-size: 18px; line-height: 1.1; align-self: end; }
.kc-tiles small { color: var(--muted); align-self: start; }
.kc-dash__rh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.kc-dash__rh h3 { font-size: 21px; color: var(--navy); }
.kc-dash__rh a { color: var(--blue-dk); font-weight: 700; }
.kc-dash__help { margin-top: 22px; padding: 12px 16px; border-radius: 16px; background: #eaf7e1; color: var(--green-dk); font-weight: 600; }
.kc-dash__help a { color: inherit; text-underline-offset: 3px; }
.kc-empty--small { padding: 22px 8px; }

/* ---------- Orders ---------- */
.kc-olist { display: grid; gap: 12px; }
.kc-ocard { padding: 14px 16px; border-radius: 22px; background: #fff; border: 2px solid #dcebfb; display: grid; gap: 12px; }
.kc-ocard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kc-ocard__no { display: block; font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: none; }
.kc-ocard__no:hover { text-decoration: underline; }
.kc-ocard__date { color: var(--muted); font-size: 14.5px; }
.kc-ocard__mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kc-ocard__thumbs { display: flex; }
.kc-ocard__thumbs span { width: 48px; height: 48px; margin-right: -10px; border-radius: 14px; overflow: hidden; background: #eef7ff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20, 51, 107, .2); }
.kc-ocard__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-ocard__sum { text-align: right; color: var(--muted); font-size: 14.5px; line-height: 1.25; }
.kc-ocard__sum strong { display: block; font-size: 20px; color: var(--navy); }
.kc-ocard__act { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 2px dashed #dcebfb; }
.kc-btn--sm { min-height: 40px; padding: 6px 18px; font-size: 15px; border-width: 2px; }
.kc-pillst { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: #eef5fd; color: var(--navy); white-space: nowrap; }
.kc-pillst--pending, .kc-pillst--on-hold { background: #fff3c9; color: #7a4b00; }
.kc-pillst--processing { background: #dcebff; color: var(--blue-dk); }
.kc-pillst--completed, .kc-pillst--shipped { background: #dff3cf; color: var(--green-dk); }
.kc-pillst--cancelled, .kc-pillst--failed, .kc-pillst--refunded { background: #ffe0ee; color: var(--pink-dk); }

/* ---------- Addresses ---------- */
.kc-addrs { display: grid; gap: 14px; }
.kc-addr { padding: 16px; border-radius: 22px; background: #f3f9ff; border: 2px solid #dcebfb; }
.kc-addr header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kc-addr h3 { font-size: 19px; color: var(--navy); }
.kc-addr address { font-style: normal; line-height: 1.55; color: var(--navy); }
.kc-addr__none { color: var(--muted); }

/* ---------- Forms inside the account (edit account / edit address) ---------- */
.kc-acct__content form .form-row { margin-bottom: 14px; }
.woocommerce-EditAccountForm, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr; column-gap: 14px; }
.woocommerce-EditAccountForm fieldset { grid-column: 1 / -1; margin: 10px 0 0; padding: 16px; border: 2px solid #dcebfb; border-radius: 20px; min-width: 0; }
.woocommerce-EditAccountForm legend { padding: 0 8px; font-weight: 700; color: var(--navy); font-size: 18px; }
.woocommerce-EditAccountForm .clear { display: none; }
.woocommerce-EditAccountForm > p:last-of-type, .woocommerce-EditAccountForm .form-row-wide { grid-column: 1 / -1; }
.woocommerce-EditAccountForm em, .woocommerce-address-fields .description { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); font-style: normal; }
.woocommerce-password-strength { margin-top: 6px; padding: 6px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; background: #eef5fd; }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { background: #ffe0ee; color: var(--pink-dk); }
.woocommerce-password-strength.good { background: #fff3c9; color: #7a4b00; }
.woocommerce-password-strength.strong { background: #dff3cf; color: var(--green-dk); }
.woocommerce-password-hint { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.kc-acct__content form > p > .button, .kc-acct__content .woocommerce-address-fields > p > .button { min-width: 180px; }

/* View order */
.kc-acct__content .woocommerce-order-details, .kc-acct__content .woocommerce-customer-details { margin-top: 18px; padding: 16px; border-radius: 22px; border: 2px solid #dcebfb; background: #fff; }
.kc-acct__content mark { background: var(--sun); color: var(--navy); padding: 1px 8px; border-radius: 99px; font-weight: 700; }
.kc-acct__content table.shop_table { width: 100%; border-collapse: collapse; }
.kc-acct__content table.shop_table th, .kc-acct__content table.shop_table td { padding: 10px 0; border-bottom: 2px dashed #d6e4f7; text-align: left; vertical-align: top; color: var(--navy); }
.kc-acct__content table.shop_table td:last-child, .kc-acct__content table.shop_table tfoot td { text-align: right; font-weight: 700; }
.kc-acct__content .wc-item-meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.kc-acct__content .wc-item-meta li { display: flex; gap: 6px; }
.kc-acct__content .wc-item-meta p { margin: 0; }
.kc-acct__content h2.woocommerce-order-details__title, .kc-acct__content h2.woocommerce-column__title { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.kc-acct__content address { font-style: normal; line-height: 1.55; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
	.kc-tiles { grid-template-columns: repeat(3, 1fr); }
	.kc-tiles a { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 4px; text-align: left; }
	.kc-tiles__i { grid-row: auto; margin-bottom: 6px; }
	.woocommerce-EditAccountForm, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
	.woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
	.kc-addrs { grid-template-columns: 1fr 1fr; }
	.kc-auth__card { padding: 28px 30px; }
}
@media (min-width: 960px) {
	.kc-auth:not(.kc-auth--single) { grid-template-columns: 1fr 1.1fr; gap: 0; }
	.kc-auth:not(.kc-auth--single) .kc-auth__info { border-radius: 28px 0 0 28px; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
	.kc-auth:not(.kc-auth--single) .kc-auth__card { border-radius: 0 28px 28px 0; border-left: 0; }
	.kc-acct { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
	.kc-acct__side { position: sticky; top: 100px; }
	.kc-acct__nav ul { flex-direction: column; overflow: visible; padding: 0; }
	.kc-acct__nav a { border-radius: 18px; padding: 13px 16px; }
	.kc-acct__content { padding: 30px 32px; }
}

/* Forms sit directly on the card, with pink primary buttons */
.kc-wcpage .kc-auth form, .kc-wcpage .kc-auth form.woocommerce-form-login { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.kc-wcpage .button.kc-btn--pink, .kc-wcpage .button.kc-btn--pink:hover { background: linear-gradient(var(--pink-lt), var(--pink)); }
.kc-wcpage .button.kc-btn--ghost { background: #fff; color: var(--navy); text-shadow: none; border-color: #d6e4f7; }
.kc-wcpage .button.kc-btn--xl { min-height: 62px; font-size: 20px; }
.kc-wcpage .button.kc-btn--sm { min-height: 40px; padding: 6px 18px; font-size: 15px; border-width: 2px; }
.kc-wcpage .button.kc-btn--block { display: flex; width: 100%; }
body.woocommerce-account .kc-wa-float { display: none; }
.kc-auth__row .checkbox { margin: 0; }

.kc-eft-wrap { margin-bottom: 18px; }

/* Phones: the form comes first, the benefits underneath */
.kc-auth__info { order: 2; }
@media (min-width: 960px) { .kc-auth__info { order: 0; } }

/* Let the grid shrink so the scrolling tab row can't widen the page */
.kc-acct { grid-template-columns: minmax(0, 1fr); }
.kc-acct__side, .kc-acct__nav { min-width: 0; }
@media (min-width: 960px) { .kc-acct { grid-template-columns: 280px minmax(0, 1fr); } }

.kc-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
