/* =========================================================
   MKC HEADER – MEIN KONTO UND WARENKORB
   Version 0.6.6.19
   ========================================================= */

.mkc-header-actions,
.mkc-header-actions * {
    box-sizing: border-box;
}

.mkc-header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 auto;
}

.mkc-header-action {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 88px;
    padding: 9px 4px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;

    border-radius: 14px;
    background: transparent;
    color: #000000 !important;
    text-decoration: none !important;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}


.mkc-header-account {
    flex-grow: 1.12;
}

.mkc-header-cart {
    flex-grow: 1;
}

.mkc-header-action:hover,
.mkc-header-action:focus-visible {
    background-color: #e2e2e2;
    color: #c50000 !important;
    text-decoration: none !important;
    outline: none;
}

.mkc-header-action:focus-visible {
    box-shadow: 0 0 0 2px rgba(197, 0, 0, 0.22);
}

.mkc-header-action-icon {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.mkc-header-action-icon svg {
    display: block;
    width: 40px;
    height: 40px;
    overflow: visible;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mkc-header-action-label {
    display: block;
    max-width: none;
    overflow: visible;
    color: inherit;
    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.mkc-header-cart-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;

    border: 2px solid #efefef;
    border-radius: 999px;
    background: #c50000;
    color: #ffffff;

    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.mkc-header-cart-badge.is-empty {
    display: none;
}

/* Feine optische Trennung der beiden Headeraktionen auf Desktop. */
@media screen and (min-width: 981px) {
    .mkc-header-cart {
        position: relative;
    }

    .mkc-header-cart::before {
        position: absolute;
        top: 14px;
        bottom: 14px;
        left: -6px;
        width: 1px;
        background: rgba(0, 0, 0, 0.14);
        content: "";
        pointer-events: none;
    }
}


/* Tablet und Smartphone: kompakter, Beschriftung ausblenden. */
@media screen and (max-width: 980px) {
    .mkc-header-actions {
        max-width: 122px;
        gap: 6px;
    }

    .mkc-header-action {
        flex: 0 0 54px;
        width: 54px;
        height: 52px;
        padding: 6px;
    }

    .mkc-header-action-label {
        display: none;
    }

    .mkc-header-cart-badge {
        border-color: #efefef;
    }
}
