/* Container for widget and message */

.ns-points-widget-container {

    text-align: center; // default to center aligned widget

    &.ns-widget-right {
        text-align: right;
    }

    &.ns-widget-left {
        text-align: left;
    }

    // float layout option may be required depending on adjacent elements

    &.ns-widget-float-left {
        float: left;
    }

    &.ns-widget-float-right {
        float: right;
    }

    &.ns-rounded-left .ns-points-widget {
        border-top-left-radius: 100px;
        border-bottom-left-radius: 100px;
    }

    &.ns-rounded-right .ns-points-widget {
        border-top-right-radius: 100px;
        border-bottom-right-radius: 100px;
    }
}

.ns-points-widget {
    cursor: pointer;
    color: #fff;
    display: inline-block;
    padding: 4px 5px;
    margin: 0 auto;
    width: auto;
    
        @media(min-width: 321px) {
            padding: 4px 6px;
        }

        @media(min-width: 576px) {
            padding: 6px 12px;
        }
    .ns-points-total {  
        align-items: center;
        display: flex;
        font-family: $futura-bold;
        font-size: 13px;

        span {
            font-size: 13px;
                @media(min-width: 321px) {
                    font-size: 17px;
                }
        }
    }

    /* widget modifiers */
    &.ns-border-yellow {
        border: 1px solid $ns-yellow;
    }

    &.ns-border-white {
        border: 1px solid #fff;
    }

}


.ns-points-message {
    border-radius: 100px;
    position: absolute;
    color: #fff;
    font-family: $futura-medium;
    font-size: 1.4rem;
    max-width: 245px;
    background: #000;
    padding: 10px 35px;
    text-align: center;
   
    p {
        margin-bottom: 0;
    }

    &:after {
        bottom: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-bottom-color: #000;
    }
}
.ns-rounded-left.ns-rounded-right {
    .ns-points-message {
        border-radius: 100px;
        left: 0;
        right: 0;
        margin: auto;
        margin-top: 1.5rem;
            &:after {
                left: calc(50% - 10px);
                border-width: 10px;
            }
    }
}

.ns-rounded-left {
    .ns-points-message {
        right: 30px;
        border-top-right-radius: 0;
        margin-top: 1.5rem;
            &:after {
            right: 0;
            border-width: 0 0 10px 10px;
            }
    }
}
.ns-rounded-right {
    .ns-points-message {
        right: 30px;
        border-top-left-radius: 0;
        margin-top: 1.5rem;
            &:after {
            left: 0;
            border-width: 0 10px 10px 0;
            }
    }
}


/* Points icon - needs refined */

.ns-points-widget-icon {
    position: relative;
    width: 15px;
    height: 15px;
    top: 0;
    left: 0px;
    margin-right: 4px;
}

.ns-points-widget-icon .fill {
    stroke: $ns-yellow;
    fill: $ns-yellow;
}

.ns-hide {
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}
.ns-fill-yellow {
    background: $ns-yellow;
    color: #171717;

    &:after {
        border-bottom-color: $ns-yellow;
    }

    .ns-points-widget-icon .fill {
        fill: $ns-yellow;
        stroke: #171717;
    }
}
