/*
This file is part of the plugin Login with Vipps
Copyright (c) 2019 WP-Hosting AS

MIT License

Copyright (c) 2019 WP-Hosting AS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

/* Styles for wp-login.php */
#continue-with-vipps-wrapper, .continue-with-vipps-wrapper.center-block {
 text-align:center;
 display: block;
 padding: 0.5rem 0;
}
#continue-with-vipps-wrapper {
 margin: 20px;
}

#continue-with-vipps-wrapper .button.continue-with-vipps {
 margin: 0 auto;
 width: 100%;
 height: 48px; 
 line-height: 48px;
} 

/* And the rest */
.continue-with-vipps-wrapper.center-block .button.continue-with-vipps {
 margin: 0 auto;
 width: 100%;
}
.continue-with-vipps-wrapper {
 display:inline-block;
}
.continue-with-vipps-wrapper a.button.continue-with-vipps img {
    max-width: 6rem;
    margin:0px 2px;
    display:inline;
    height: 2ex;
    vertical-align: text-bottom;
}
.continue-with-vipps-wrapper a.button.continue-with-vipps:hover img {
    opacity: 0.9;
}
.continue-with-vipps-wrapper a.button.continue-with-vipps.disabled img {
    opacity: 0.7;
}
.continue-with-vipps-wrapper a.button.continue-with-vipps {
 display: inline-block;
 color: #fff;
 border: 0;
 padding:0;
 font-size: 22px;
 height: 48px;
 line-height: 48px;
 font-weight: 400;
 text-align:center;
 cursor: pointer;
 box-sizing: border-box;
}

.mobilepay-background {
    background-color: #5A78FF!important;
}
.vipps-background {
    background-color: #FF5B24!important;
}

.continue-with-vipps-wrapper.inline a.button.continue-with-vipps {
 text-decoration: none;
 font-size: 1em;
 line-height: 2em;
 font-weight: 500;
 height: auto;
 padding: 5px 10px 4px 10px;
}

.continue-with-vipps-wrapper a.button.continue-with-vipps:focus {
 outline:0; 
}
.continue-with-vipps-wrapper a.button.continue-with-vipps:active, #continue-with-vipps-wrapper a.button.continue-with-vipps:active {
 border: 0;
}

.vippsorange, .button.vippsorange, button.vippsorange{
 background-color: #FF5B24;
 color: #fff;
}

/* For woocommerce */
.widget_shopping_cart .continue-with-vipps-wrapper.center-block, .widget_shopping_cart .continue-with-vipps-wrapper {
 width:100%
}

.widget_shopping_cart .continue-with-vipps-wrapper.widget a.button.continue-with-vipps{
 float: none;
 color: #fff;
 background-color: #FF5B24;
 font-size: 14.5px;
 padding-left: 5px;
 padding-right: 4px;
 width:80%;
 margin-top: 0;
 margin-bottom: 0;
 margin-left: auto;
 margin-right: auto;
 clear: both;
}
.widget_shopping_cart .continue-with-vipps-wrapper a.button.continue-with-vipps:hover{
 color: #fff;
 background-color: #FF5B24;
 border: 0;
}

/* This is for a plugin I'm doing testing with. */
.woocommerce-cart-tab-container .widget_shopping_cart a.button.continue-with-vipps{
 min-width: 190px;
}

/* Make this very specific */
html body img.inline.vipps-logo {
 height: 2ex;
 max-width: 4rem;
 display:inline;
 vertical-align: text-bottom;
 padding:0;
 border:0;
 background-color:transparent;
}

/* For the My Account page */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--vipps a::before {
    content: " ";
    height:1em;
    width:1em;
    display:inline-block;
    background-size: 1em 1em;
}

/* For the banners - replicate default Woo banner css for this because too many themes override */
.vipps-banner.vipps-info {
    color: #fff;
    background-color: #FF5B24;
    border-color: #FF5B24;
    border-color: #FF5B24;
}
.vipps-banner.vipps-info a {
    color: #fff;
}
.mobilepay-banner.mobilepay-info {
    color: #fff;
    background-color: #5A78FF;
    border-color: #5A78FF;
    border-color: #5A78FF;
}
.mobilepay-banner.mobilepay-info a {
    color: #fff;
}

.vipps-banner.vipps-info img.vipps-logo {
 margin:0px;
}
.vipps-banner.vipps-info::before {
    color: #fff;
}
.vipps-banner.vipps-info::before, .mobilepay-banner.mobilepay-info::before, .woocommerce-error::before, .woocommerce-noreviews::before, p.no-comments::before {
    font-family: "Font Awesome 5 Free";
    content: "";
    display: inline-block;
    position: absolute;
    top: 1.05em;
    left: 1.5em;
    color: #fff;
}
.vipps-banner.vipps-info::after {
    clear: both;
}
.vipps-banner.vipps-info a {
    color:white;
    background-color:#FF5B24;

}
.vipps-banner.vipps-info {
    margin-bottom: 2.617924em;
    margin-left: 0;
    border-radius: 2px;
    color: #fff;
    clear: both;
    border-left: 0.6180469716em solid rgba(0,0,0,.15);
    padding: 1em 2em 1em 3.5em;
    position: relative;
    list-style: none outside;
}
.mobilepay-banner.mobilepay-info {
    margin-bottom: 2.617924em;
    margin-left: 0;
    border-radius: 2px;
    color: #fff;
    clear: both;
    border-left: 0.6180469716em solid rgba(0,0,0,.15);
    padding: 1em 2em 1em 3.5em;
    position: relative;
    list-style: none outside;
}
.vipps-banner.vipps--info.vipps-info a:hover {
    color:#fff;
    font-weight: bolder;
    background-color: transparent;
}
