/*
 * SpeedaCure Account + Cart polish
 * Visual only — does not alter header layout.
 */

header .sc-ac-action {
    position: relative;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 3px !important;

    min-width: 62px !important;
    min-height: 54px !important;

    padding: 4px 7px !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: transparent !important;

    color: #555555 !important;

    text-decoration: none !important;

    transition:
        color .18s ease,
        background-color .18s ease,
        transform .18s ease !important;
}


header .sc-ac-action:hover,
header .sc-ac-action:focus-visible {
    color: #128a58 !important;
    background: #eef8f3 !important;
}


header .sc-ac-action:hover {
    transform: translateY(-1px);
}


header .sc-ac-action:focus-visible {
    outline: 2px solid #128a58 !important;
    outline-offset: 2px;
}


/* Icon */

header .sc-ac-icon {
    position: relative;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;
}


header .sc-ac-icon svg {
    display: block;

    width: 28px !important;
    height: 28px !important;

    stroke: currentColor !important;
    color: currentColor !important;
}


/* Text below icon */

header .sc-ac-label {
    display: block;

    color: currentColor !important;

    font-size: 12px !important;
    line-height: 1 !important;

    font-weight: 800 !important;

    white-space: nowrap;
}


/* Cart notification */

header .sc-ac-cart-icon {
    position: relative;
}


header .sc-ac-badge {
    position: absolute !important;

    top: -8px !important;
    right: -10px !important;

    z-index: 3;

    min-width: 21px !important;
    height: 21px !important;

    padding: 0 5px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border: 2px solid #ffffff !important;
    border-radius: 999px !important;

    background: #eb793c !important;
    color: #ffffff !important;

    font-size: 10px !important;
    line-height: 1 !important;

    font-weight: 900 !important;

    pointer-events: none;
}


/* Mobile remains compact */

@media (max-width: 900px) {

    header .sc-ac-action {
        min-width: 48px !important;
        min-height: 46px !important;

        padding: 3px !important;
    }

    header .sc-ac-icon,
    header .sc-ac-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    header .sc-ac-label {
        font-size: 10px !important;
    }

    header .sc-ac-badge {
        min-width: 19px !important;
        height: 19px !important;

        top: -7px !important;
        right: -8px !important;

        font-size: 9px !important;
    }
}
