/*
 * =========================================================
 * SpeedaCure Account / Cart V2
 * =========================================================
 */


/*
 * Base action
 */

header .sc-header-action {

    position: relative;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 4px !important;

    width: 72px !important;

    min-width: 72px !important;

    min-height: 58px !important;

    padding: 5px 7px !important;

    margin: 0 !important;

    border: 0 !important;

    border-radius: 10px !important;

    background: transparent !important;

    color: #555555 !important;

    text-decoration: none !important;

    cursor: pointer;

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


/*
 * Icon container
 */

header .sc-header-action-icon {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 29px;

    height: 29px;

    flex: 0 0 29px;
}


/*
 * SVG
 */

header .sc-header-action-icon svg {

    display: block;

    width: 29px !important;

    height: 29px !important;

    overflow: visible;

    color: currentColor !important;

    stroke: currentColor !important;
}


/*
 * Label below icon
 */

header .sc-header-action-label {

    display: block;

    margin: 0;

    color: currentColor;

    font-size: 13px !important;

    line-height: 1.1 !important;

    font-weight: 700 !important;

    white-space: nowrap;
}


/*
 * Hover
 */

header .sc-header-action:hover,
header .sc-header-action:focus-visible {

    color: #128a58 !important;

    background:
        #f2faf6 !important;
}


header .sc-header-action:hover {

    transform:
        translateY(-1px);
}


header .sc-header-action:focus-visible {

    outline:
        2px solid #128a58 !important;

    outline-offset:
        2px;
}


/*
 * =========================================================
 * CART BADGE
 * =========================================================
 */

header .sc-header-cart-icon {

    position: relative;
}


header .sc-header-cart-badge {

    position: absolute !important;

    top: -8px !important;

    right: -11px !important;

    z-index: 2;

    min-width: 21px !important;

    height: 21px !important;

    padding:
        0 5px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border:
        2px solid #ffffff !important;

    border-radius:
        999px !important;

    background:
        #eb793c !important;

    color:
        #ffffff !important;

    box-sizing:
        border-box !important;

    font-size:
        11px !important;

    line-height:
        1 !important;

    font-weight:
        800 !important;

    pointer-events:
        none;
}


/*
 * =========================================================
 * DESKTOP
 * =========================================================
 */

@media (min-width: 901px) {

    /*
     * Remove visual rules from earlier
     * Account/Cart experiments.
     */

    header .sc-ref-account,
    header .sc-ref-cart {

        border: 0 !important;

        background:
            transparent !important;

        box-shadow:
            none !important;
    }


    /*
     * Give the two actions enough room.
     */

    header .sc-header-account {

        margin-left:
            2px !important;
    }


    header .sc-header-cart {

        margin-left:
            2px !important;
    }
}


/*
 * =========================================================
 * MOBILE / TABLET
 * =========================================================
 */

@media (max-width: 900px) {

    header .sc-header-action {

        width:
            52px !important;

        min-width:
            52px !important;

        min-height:
            48px !important;

        padding:
            3px !important;
    }


    header .sc-header-action-icon,
    header .sc-header-action-icon svg {

        width:
            25px !important;

        height:
            25px !important;
    }


    header .sc-header-action-label {

        font-size:
            10px !important;
    }


    header .sc-header-cart-badge {

        min-width:
            19px !important;

        height:
            19px !important;

        top:
            -7px !important;

        right:
            -9px !important;

        font-size:
            10px !important;
    }
}
