/*
 * Klinike My Account — "Mitt konto – omdesign" (mobile first).
 * White surface, beige blocks, mono labels, sharp corners.
 *
 * Typography comes from the theme (k-fonts.css / k-typography.css):
 * Libre Caslon Text for text and headings, uppercase Roboto Mono for labels,
 * buttons and navigation. Every element sets its family explicitly so nothing
 * falls back to the Elementor kit's sans-serif.
 */

.woocommerce-account,
.kma,
.kma-benefits {
    --kma-ink: #000;
    --kma-muted: #7a6a5e;
    --kma-beige: #f3ece6;
    --kma-beige-light: #f9f6f3;
    --kma-line: #eee8e3;
    --kma-line-strong: #d9ccc1;
    --kma-nav-line: #d9d9d9;
    --kma-serif: var(--font-libre, "Libre Caslon Text", serif);
    --kma-mono: var(--font-mono, "Roboto Mono", monospace);
    --kma-gutter: 20px;
}

.kma,
.kma-benefits {
    color: var(--kma-ink);
    font-family: var(--kma-serif);
    font-size: 16px;
    line-height: 1.5;
}

.kma *,
.kma *::before,
.kma *::after {
    box-sizing: border-box;
}

.kma a {
    color: var(--kma-ink);
}

.kma a:hover {
    color: var(--kma-ink);
    opacity: 0.7;
}

.kma ul,
.kma ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kma h2,
.kma h3 {
    margin: 0;
    font-family: var(--kma-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.kma p {
    margin: 0;
}

/* ---- Primitives ---------------------------------------------------- */

.kma-label {
    font-family: var(--kma-mono);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--kma-ink);
}

.kma-link {
    color: var(--kma-ink) !important;
    text-decoration: none;
    white-space: nowrap;
}

.kma-note {
    font-size: 13px;
    color: var(--kma-ink);
}

.kma .kma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    background: var(--kma-ink);
    border: 1px solid var(--kma-ink);
    border-radius: 0;
    color: #fff;
    font-family: var(--kma-mono);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.kma .kma-btn:hover {
    background: #333;
    color: #fff;
}

.kma .kma-btn--outline {
    background: transparent;
    color: var(--kma-ink);
}

.kma .kma-btn--outline:hover {
    background: var(--kma-beige-light);
    color: var(--kma-ink);
}

.kma .kma-btn--soft,
.kma .kma-btn.is-added {
    background: var(--kma-beige);
    border-color: var(--kma-beige);
    color: var(--kma-ink);
}

.kma .kma-btn--soft:hover {
    background: #e8ddd3;
    color: var(--kma-ink);
}

.kma .kma-btn--block {
    display: flex;
    width: 100%;
}

.kma .kma-btn--large {
    min-height: 48px;
}

.kma .kma-btn--small {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 1px;
}

.kma .kma-btn.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.kma .kma-btn.is-error {
    background: #fff;
    color: #a00;
    border-color: #a00;
}

.kma-btn-row {
    display: flex;
    gap: 8px;
}

.kma-btn-row > .kma-btn {
    flex: 1;
}

.kma-chip {
    display: inline-block;
    padding: 4px 8px;
    background: var(--kma-beige);
    font-family: var(--kma-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.kma-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--kma-beige-light);
}

.kma-list-heading {
    display: block;
    padding: 20px 0 8px;
}

/* Forms inside the account pages */
.kma-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kma textarea,
.kma input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--kma-line-strong);
    border-radius: 0;
    background: #fff;
    font-family: var(--kma-mono);
    font-size: 14px;
    line-height: 1.5;
    color: var(--kma-ink);
    box-shadow: none;
}

.kma textarea:focus,
.kma input[type="text"]:focus {
    outline: none;
    border-color: var(--kma-ink);
}

/* ---- Account layout ------------------------------------------------- */

/* The dashboard tiles and "← Konto" bar replace the WooCommerce menu. */
nav.woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
}

/* ---- Sub page bar ("← Konto") -------------------------------------- */

.kma-subbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    margin: 0 calc(-1 * var(--kma-gutter)) 16px;
    padding: 12px var(--kma-gutter);
    border-bottom: 1px solid var(--kma-line);
}

/* Bordered like the PLP category nav (.archive-cat-nav__link). */
.kma .kma-subbar__back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--kma-nav-line);
    color: var(--kma-ink) !important;
    font-size: 14px;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.3s ease;
}

.kma .kma-subbar__back:hover {
    border-color: var(--kma-ink);
    opacity: 1;
}

/* No animated theme underline on bordered links. */
.kma .kma-subbar__back::after,
.woocommerce-account .woocommerce-Address-title a.edit::after {
    content: none !important;
}

.kma-subbar__title {
    font-size: 16px;
    text-align: center;
}

/* ---- Dashboard ------------------------------------------------------ */

.kma-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 20px;
}

.kma-intro__title {
    font-size: 28px;
    line-height: 1.2;
}

.kma-intro__text {
    color: var(--kma-ink);
}

/* Ongoing order card */
.kma-ongoing {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--kma-beige);
}

.kma-ongoing__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.kma-ongoing__carrier {
    font-size: 12px;
    color: var(--kma-ink);
}

.kma-ongoing__headline {
    font-size: 18px;
    line-height: 1.3;
}

.kma-progress {
    display: grid;
    grid-template-columns: repeat(var(--kma-steps, 3), 1fr);
    gap: 4px;
}

.kma-progress__bar {
    height: 3px;
    background: var(--kma-line-strong);
}

.kma-progress__bar.is-done {
    background: var(--kma-ink);
}

.kma-progress__label {
    padding-top: 2px;
    font-family: var(--kma-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--kma-ink);
}

.kma-progress__label.is-current {
    color: var(--kma-ink);
}

/* Shortcut tiles */
.kma-shortcuts {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 12px !important;
    background: #fff;
    border: none;
}

.kma-shortcuts__item {
    border: 0.5px solid var(--kma-ink);
}

.kma-shortcuts__item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 64px;
    height: 100%;
    padding: 12px 14px;
    background: #fff;
    text-decoration: none;
}

.kma-shortcuts__item a:hover {
    background: var(--kma-beige-light);
    color: var(--kma-ink);
}

.kma-shortcuts__label {
    color: var(--kma-ink);
    font-size: 14px;
}

/* Sections */
.kma-section {
    padding-top: 36px;
}

.kma-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
}

.kma-section__title {
    font-size: 18px;
}

.kma-section__more {
    color: var(--kma-ink) !important;
    text-decoration: none;
    white-space: nowrap;
}

/*
 * Product cards: the theme's loop markup and k-loop-grid.css
 * (.kew-product-grid ul.products > li.product). Only sizing is adjusted here.
 */
.kma .kma-products--row .kew-product-grid ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Theme's hover add-to-cart button: sit lower on the image, account pages only. */
.kma .kew-product-grid ul li a.add_to_cart_button,
.kma .kew-product-grid ul li a.button.product_type_simple,
.kma .kew-product-grid ul li a.button.product_type_variable {
    top: 60%;
}

.kma .kew-product-grid .kew-product-image,
.kma .kew-product-grid .kew-product-image img {
    min-height: 0;
    max-height: none;
}

.kma .kew-product-grid .kew-product-image img {
    height: auto;
    aspect-ratio: 1 / 1;
}

/* "Köp igen" / "Skriv en recension": always visible, styled like the store button. */
.kma .kew-product-grid ul.products li.product a.kma-card-button {
    display: block;
    width: 100%;
    margin-top: 0.625rem;
    padding: 0.618em 1em;
    background: #000;
    border: 1px solid #000;
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.kma .kew-product-grid ul.products li.product a.kma-card-button:hover {
    color: #fff;
    opacity: 0.8;
}

.kma .kew-product-grid ul.products li.product a.kma-card-button.is-added {
    background: var(--kma-beige);
    border-color: var(--kma-beige);
    color: var(--kma-ink);
}

.kma .kma-js-add.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.kma .kew-product-grid ul.products li.product a.kma-js-add.is-error {
    background: #fff;
    color: #a00;
    border-color: #a00;
}

@media (max-width: 767px) {
    .kma .kma-products--row .kew-product-grid ul.products {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 0.625rem !important;
        margin: 0 calc(-1 * var(--kma-gutter)) !important;
        padding: 0 var(--kma-gutter) 4px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .kma .kma-products--row .kew-product-grid ul.products::-webkit-scrollbar {
        display: none;
    }

    .kma .kma-products--row .kew-product-grid ul.products li.product {
        flex: 0 0 min(46vw, 220px);
        width: auto !important;
        height: auto;
        scroll-snap-align: start;
    }
}

/*
 * Guides: Expertis archive cards (.kew-expertis-card, styled by the theme's
 * k-archive-page.css). The theme only lays the card out inside
 * .kew-expertis-grid, so the card's own flex layout is repeated here.
 */
.kma-guides {
    display: flex !important;
    gap: 1.25rem;
    margin: 0 calc(-1 * var(--kma-gutter)) !important;
    padding: 0 var(--kma-gutter) !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--kma-gutter);
    scrollbar-width: none;
}

.kma-guides::-webkit-scrollbar {
    display: none;
}

.kma-guides__item {
    flex: 0 0 min(80vw, 320px);
    scroll-snap-align: start;
}

.kma .kew-expertis-card {
    display: flex;
    flex-direction: column;
    gap: 0.325rem;
    width: 100%;
    text-decoration: none;
}

.kma .kew-expertis-card:hover {
    opacity: 1;
}

.kma .kew-expertis-card__image {
    background: var(--kma-beige-light);
}

.kma .kew-expertis-card__img {
    display: block;
}

/* CTA */
.kma-cta {
    margin: 36px 0 12px;
    padding: 22px 18px;
}

.kma-cta p {
    color: var(--kma-ink);
}

.kma-cta .kma-btn {
    margin-top: 4px;
}

/* Logout (replaces the hidden WC account navigation item) */
.kma .kma-logout {
    margin-top: 24px;
}

/* ---- Orders --------------------------------------------------------- */

.kma-order-list {
    border-top: 1px solid var(--kma-line);
}

.kma-order-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 0;
    border-bottom: 1px solid var(--kma-line);
}

.kma-order-list__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    text-decoration: none;
}

.kma-order-list__id {
    font-size: 14px;
}

.kma-pagination {
    padding-top: 16px;
}

.kma-browse {
    padding-top: 16px;
}

/* Single order */
.kma-order-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--kma-line);
}

.kma-order-head__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.kma-order-head__title {
    font-size: 18px;
}

.kma-timeline {
    margin-left: 4px !important;
    padding-left: 16px !important;
    border-left: 1px solid var(--kma-line-strong);
}

.kma-timeline__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    color: var(--kma-ink);
}

.kma-timeline__step::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -21px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--kma-line-strong);
}

.kma-timeline__step.is-done {
    color: var(--kma-ink);
}

.kma-timeline__step.is-done::before {
    background: var(--kma-ink);
}

.kma-timeline__label {
    font-size: 14px;
}

.kma-order-items {
    border-top: 1px solid var(--kma-line);
}

.kma-order-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--kma-line);
}

.kma-order-item__media {
    flex: 0 0 76px;
    height: 92px;
    background: var(--kma-beige-light);
}

.kma-order-item__image,
.kma-order-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.kma-order-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.kma-order-item__name {
    font-family: var(--kma-mono);
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
}

.kma-order-item__price {
    font-size: 13px;
}

.kma-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.kma .kma-stars__star {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--kma-line-strong);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.kma .kma-stars__star:hover,
.kma .kma-stars__star.is-on {
    background: transparent;
    color: var(--kma-ink);
}

.kma-stars__status {
    margin-left: 4px;
}

.kma-stars__status.is-error {
    color: #a00;
}

.kma-order-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

.kma-returns {
    gap: 8px;
}

.kma-returns__title {
    font-size: 15px !important;
}

.kma-returns p {
    font-size: 13px;
    color: var(--kma-ink);
}

.kma-returns .kma-btn {
    margin-bottom: 8px;
}

.kma-disclosure > summary {
    list-style: none;
}

.kma-disclosure > summary::-webkit-details-marker {
    display: none;
}

.kma-disclosure[open] > summary {
    margin-bottom: 10px;
}

.kma-receipt {
    border-top: 1px solid var(--kma-line);
    border-bottom: 1px solid var(--kma-line);
}

.kma-receipt__toggle {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-family: var(--kma-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.kma-receipt__toggle::-webkit-details-marker {
    display: none;
}

.kma-receipt__toggle::after {
    content: "+";
}

.kma-receipt[open] .kma-receipt__toggle::after {
    content: "–";
}

.kma-receipt__body {
    padding-bottom: 20px;
    font-size: 13px;
}

/* ---- Gift cards ----------------------------------------------------- */

.kma-giftcards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kma-giftcard-list {
    display: grid;
    gap: 12px;
}

.kma-giftcard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1.6 / 1;
    max-width: 420px;
    padding: 20px;
    background: var(--kma-beige);
}

.kma-giftcard__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.kma-giftcard__brand {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.28em;
}

.kma-giftcard__bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kma-giftcard__balance {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.kma-giftcard--empty {
    opacity: 0.7;
}

.kma-giftcards__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.kma-giftcards__form {
    padding: 16px;
    background: var(--kma-beige-light);
}

.kma-giftcards__form[hidden] {
    display: none;
}

.kma-activity__amount {
    font-size: 14px;
    white-space: nowrap;
}

/* ---- Fråga experten ------------------------------------------------- */

.kma-question {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
}

.kma-question__title {
    font-size: 22px !important;
    line-height: 1.25;
}

.kma-question__form {
    gap: 14px;
}

.kma-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.kma-question__legend {
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    font-size: 13px;
    color: var(--kma-ink);
}

.kma-chip-option {
    position: relative;
    margin: 0;
}

.kma-chip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Bordered like the PLP category nav (.archive-cat-nav__link). */
.kma-chip-option span {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--kma-nav-line);
    font-family: var(--kma-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.kma-chip-option span:hover {
    border-color: var(--kma-ink);
}

.kma-chip-option input:checked + span {
    background: var(--kma-ink);
    border-color: var(--kma-ink);
    color: #fff;
}

.kma-chip-option input:focus-visible + span {
    outline: 2px solid var(--kma-muted);
    outline-offset: 2px;
}

.kma-question textarea {
    min-height: 120px;
}

.kma-attach {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--kma-ink);
    cursor: pointer;
}

.kma-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kma-attach__box {
    display: inline-block;
    flex: 0 0 18px;
    height: 18px;
    border: 1px solid var(--kma-ink);
}

.kma-attach.has-file .kma-attach__box {
    background: var(--kma-ink);
}

.kma-attach input:focus-visible ~ .kma-attach__box {
    outline: 2px solid var(--kma-muted);
    outline-offset: 2px;
}

.kma-question__foot {
    text-align: center;
    font-size: 11px;
    text-transform: none;
}

/* ---- Min hud ------------------------------------------------------- */

.kma-preferences {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
}

.kma-preferences__form {
    gap: 24px;
}

.kma-preferences__group .kma-question__legend {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    color: var(--kma-ink);
}

/* ---- WooCommerce pages (Adresser, Kontouppgifter) ------------------ */

.woocommerce-account .woocommerce-MyAccount-content {
    font-family: var(--kma-serif);
}

/*
 * Adresser: title, address, then the "Lägg till / Redigera …" link as a
 * button. The Elementor widget colours it beige and positions it absolutely.
 */
.woocommerce-account .woocommerce-Address {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.woocommerce-account .woocommerce-Address-title {
    display: contents;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
    order: 1;
    float: none;
    margin: 0;
    font-family: var(--kma-serif);
    font-size: 20px;
    font-weight: 400;
}

.woocommerce-account .woocommerce-Address address {
    order: 2;
    margin: 0;
    padding: 16px 18px !important;
    border: 1px solid var(--kma-line-strong) !important;
    color: var(--kma-ink) !important;
    font-family: var(--kma-serif);
    font-style: normal;
}

.woocommerce-account .woocommerce-Address-title a.edit {
    order: 3;
    position: static !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important; /* theme sets links to fit-content */
    min-height: 48px;
    margin: 0 !important;
    padding: 0 16px;
    background: var(--kma-ink);
    border: 1px solid var(--kma-ink);
    border-radius: 0;
    color: #fff !important;
    font-family: var(--kma-mono);
    font-size: 14px;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s;
}

.woocommerce-account .woocommerce-Address-title a.edit:hover {
    background: #333;
    color: #fff !important;
}

/* ---- Login benefits ------------------------------------------------- */

.kma-benefits {
    margin-bottom: 2em;
    padding: 20px;
    background: var(--kma-beige-light);
}

.kma-benefits__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 400;
}

.kma-benefits__lead {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
}

.kma-benefits__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kma-benefits__list li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 18px;
}

.kma-benefits__list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--kma-ink);
}

/* ---- Wider screens -------------------------------------------------- */

@media (min-width: 768px) {
    .kma {
        --kma-gutter: 0px;
    }

    .kma-shortcuts {
        grid-template-columns: repeat(3, 1fr);
    }

    .kma-guides {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 1.25rem;
        overflow: visible;
    }

    .kma-guides__item {
        flex: none;
    }

    .kma-view-order,
    .kma-giftcards {
        max-width: 640px;
    }

    .kma-cta {
        max-width: 640px;
    }
}

/* Same breakpoint as the Expertis grid. */
@media (min-width: 1025px) {
    .kma-guides {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---- Elementor My Account widget ------------------------------------ */

/* The widget colours links beige; keep them black (stylesheet only loads on the account page). */
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce a {
    color: var(--kma-ink, #000);
}

/* ...but keep solid buttons' white text, which the rule above would otherwise override. */
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .kma a.kma-btn {
    color: #fff;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .kma a.kma-btn--outline,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .kma a.kma-btn--soft,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .kma a.kma-btn.is-added {
    color: var(--kma-ink);
}
