/*
 * The file contains CSS for Subscribe and Unsubscribe button on AMP endpoints which will be enqued only at AMP endpoints.
 *
/* 
    Created on : Jul 14, 2021, 11:57:12 PM
    Author     : milind
*/

amp-web-push-widget button.subscribe.subscribe, amp-web-push-widget button.unsubscribe {
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    outline: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: transparent;
    height: 48px;
    width: 48px;
}

amp-web-push-widget button.unsubscribe{
    opacity: 0.5;
}

amp-web-push-widget button.unsubscribe:hover {
    opacity: 1;
}

amp-web-push-widget button.subscribe svg.onesignal-bell-svg, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

amp-web-push-widget button.subscribe svg.onesignal-bell-svg .background, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg .background {
    fill: #e54b4d;
}

amp-web-push-widget button.subscribe svg.onesignal-bell-svg .foreground, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg .foreground {
    fill: #ffffff;
}

amp-web-push-widget button.subscribe svg.onesignal-bell-svg .stroke, amp-web-push-widget button.unsubscribe svg.onesignal-bell-svg .stroke {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-miterlimit: 10;
}

/* Tooltip text */
amp-web-push-widget button.subscribe .tooltiptext, amp-web-push-widget button.unsubscribe .tooltiptext {
    visibility: hidden;
    min-width: 350px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    top: 5px;
    right: 120%;
    position: absolute;
    z-index: 1;
    font-size: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

amp-web-push-widget button.subscribe .tooltiptext::after, amp-web-push-widget button.unsubscribe .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent black;
}

amp-web-push-widget button.subscribe:hover .tooltiptext, amp-web-push-widget button.unsubscribe:hover .tooltiptext {
    visibility: visible;
}
