/* Variables */
:root {
  --button-border-radius: 0px;
  --product-button-height: 52px;
  --youpay-gradient: linear-gradient(90deg, rgba(123,82,170,1) 0%, rgba(67,68,151,1) 26%, rgba(46,70,153,1) 57%, rgba(46,70,153,1) 69%, rgba(27,111,200,1) 100%);
  --youpay-gradient-hover: linear-gradient(90deg, rgba(123,82,170,1) 0%, rgba(67,68,151,1) 17%, rgba(39,51,141,1) 40%, rgba(39,51,141,1) 70%, rgba(26,89,159,1) 90%);
  --youpay-gradient-callout: linear-gradient(42deg, rgba(67,68,151,1) 5%, rgba(39,51,141,1) 40%, rgba(39,51,141,1) 70%, rgba(26,89,159,1) 97%);
  --youpay-logo-height: 16px;
}

.youpay-disabled:not(.youpay-preview-enabled) .youpay-block-container, .youpay-disabled:not(.youpay-preview-enabled) .youpay-container {
    display: none!important;
}

.shopify-block.youpay-block-container {
    margin-top: 0;
    margin-bottom: 0;
}
  
.youpay-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.youpay-button > * {
  pointer-events: none;
}

.youpay-text-group, .youpay-logo-container {
    display: inline-block;
    vertical-align: middle;
}
  
.youpay-button .youpay-text-group {
    z-index: 2;
}

.youpay-text-group span {
    white-space: nowrap;
}

/* reset - change this id/class in new badge build */
.youpay-callout-button #youpay-product-message * {
  pointer-events: none;
}

.youpay-button-group {
    margin-top: 10px;
    margin-bottom: 10px;
}

.youpay-mobile-device .youpay-button-group {
    min-width: 100%;
}

/*  Vanilla Button CSS  */
.youpay-button-group[data-theme="vanilla"] .youpay-button, #monster-upsell-cart .youpay-button-group[data-theme="vanilla"] .youpay-button {
    font-size: 14px;
    font-weight: 400;
    background: transparent;
    color: #000000;
    height: 50px;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000000;
}

.youpay-button-group[data-theme="vanilla"] .youpay-button:hover, #monster-upsell-cart .youpay-button-group[data-theme="vanilla"] .youpay-button:hover {
    color: #ffffff;
    background: #000000;
}

.youpay-button-group[data-theme="vanilla"] .youpay-logo-container .youpay-logo path:nth-of-type(3) {
    fill: transparent;
}

/*  Blue Button CSS  */
.youpay-button-group[data-theme="blue"] .youpay-button, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button {
    font-size: 16px;
    font-weight: 400;
    border-radius: var(--button-border-radius);
    background: var(--youpay-gradient);
    color: #171717;
    height: var(--product-button-height);
    letter-spacing: -0.02em;
    text-transform: lowercase;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youpay-button-group[data-theme="blue"] .youpay-button:hover, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button:hover {
    background: var(--youpay-gradient-hover);
}

.youpay-button-group[data-theme="blue"] .youpay-button .youpay-text-group span {
      color: white;
      font-family: 'Yeseva One', serif;
      white-space: nowrap;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
}
  
/*  Triangle for inline blue button 	 */
.youpay-button-group[data-theme="blue"] .youpay-button::before, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button::before {
  content: "";
  height: 0;
  position: relative;
  border-style: solid;
  border-width: 10px 11px 0 11px;
  border-color: #F796B9 transparent transparent transparent;
  left: 11px;
  top: -1.5px;
  z-index: 1;
  margin-left: -11px;
}

.youpay-button-group[data-theme="blue"] .youpay-button.youpay-logo-only::before, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button.youpay-logo-only::before {
    content: none;
}
    
.youpay-button-group[data-theme="blue"] .youpay-logo-container,
.youpay-button-group[data-theme="vanilla"] .youpay-logo-container { 
  height: calc(var(--youpay-logo-height) - 2px);
  margin-left: 6px;
}
  
.youpay-button-group[data-theme="blue"] .youpay-button.youpay-logo-only .youpay-logo-container {
    margin-left: 0;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo,
.youpay-button-group[data-theme="vanilla"] .youpay-logo-container .youpay-logo {
    width: auto;
    vertical-align: top;
    height: var(--youpay-logo-height);
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo path:nth-of-type(1) {
    color: #ffffff;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo path:nth-of-type(2) {
    color: #F796B9;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo path:nth-of-type(4) {
    color: #0CD9DC;
}
  
/* YouPay Callout Button CSS */
/* reset - clean up with new callout layout */
.youpay-callout-button {
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    letter-spacing: 0.06rem;
    text-align: left;
}

.youpay-callout-button:hover, .youpay-callout-button:focus {
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    -webkit-appearance: none;
    color: inherit;
}

.youpay-callout-button > * {
    pointer-events: none;
}

.youpay-callout-container[data-theme="badge"] {
    margin-top: 10px;
}

.youpay-callout-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-weight: 400;
    width: auto;
    align-items: center;
}

.youpay-callout-message-before {
    margin: 0.5rem 0.5rem 0.5rem 0;
    line-height: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.youpay-callout-badge {
    background:  var(--youpay-gradient-callout);
    border-radius: 4px;
    padding: 9px 7px;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.youpay-badge-logo {
    margin-left: .25rem;
    margin-right: .25rem;
    margin-top: 1px;
    width: 70px;
    height: auto;
}

.youpay-logo-text {
    fill: #fff;
}

.youpay-callout-message-after {
    margin: 0;
    font-size: 14px;
    text-decoration: underline;
    line-height: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Light Callout CSS */
.youpay-callout-container[data-theme="light"] .youpay-logo-text {
    fill: black;
}

.youpay-callout-container[data-theme="light"] .youpay-light-logo {
    margin-left: .25rem;
    margin-right: .25rem;
    margin-top: 4px;
    width: 80px;
}

.youpay-callout-container[data-theme="light"] .youpay-callout-message-before {
    margin-right: 0;
}

/* adjust light version for new HTML layout */
.youpay-light-button button {
    background: none;
}
  
.youpay-light-button #youpay-popup-box .youpay-logo {
    width: 77px;
}

/* Pending modal cover */
#pending-modal-cover {
    display: block;
}

/* Modal */
#youpay-info-modal {
    display: block;
}

/* YouPay Footer CSS */
/* 
The below CSS has been temporarily added here from the 
snippet files so that we can stay under the 100kB limit
when using 'shopify extension push'
*/

/* CSS from loadingcover-css.liquid - START */
/* <style> */
.youpay-cover-container {
    font-size: 16px;        
}

.youpay-cover-container .youpay-fix-group {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

.youpay-cover-container .youpay-content-group {
    font-size: 16px;
    gap: 2em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background-color: rgb(28, 40, 126, 0.6);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    display: flex;
    position: relative;
}

.youpay-cover-container .youpay-close-button {
    margin: 0;
    padding: 0;
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    position: absolute;
    top: 1em;
    right: 1em;
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    font-size: 16px;
    border-color: transparent;
}

.youpay-cover-container .youpay-close-icon {
    color: #ffffff;
    width: 3em;
    height: 3em;
    display: block;
}

.youpay-cover-container .youpay-logo {
    color: #ffffff;
    width: 10em;
    margin-top: 3em;
    display: block;
}

.youpay-cover-container .youpay-heading {
    color: #ffffff;
    font-size: 20px;
    line-height: 20px;
    font-family: Yeseva One,serif;
    font-weight: 400;
    text-align: center;
    padding-left: 1.25em;
    padding-right: 1.25em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.youpay-cover-container .youpay-button-content-group {
    padding-left: 1.25em;
    padding-right: 1.25em;
    align-items: center;
    width: 100%;
    height: 4.5em;
    display: flex;
    box-sizing: border-box;
}

.youpay-cover-container .youpay-button {
    align-items: center;
    flex-direction: row;
    width: 100%;
    display: flex;
    position: relative;
    cursor: pointer;
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    text-transform: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    font-size: 16px;
    border-color: transparent;
}

.youpay-cover-container .youpay-text-group {
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    color: rgb(47, 58, 147);
    text-transform: lowercase;
    font-family: Yeseva One,serif;
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3em;
    display: flex;
    margin-right: 2em;
}

.youpay-cover-container .youpay-text {
    text-transform: lowercase;
    font-size: 18px;
    line-height: 18px;
    font-family: Yeseva One,serif;
}

.youpay-cover-container .youpay-text span {
    text-transform: none;
}

.youpay-cover-container .youpay-button-container {
    right: 0.5em;
    position: absolute;
}

.youpay-cover-container .youpay-button-group {
    justify-content: center;
    align-items: center;
    width: 3em;
    height: 3em;
    display: flex;
    position: relative;
}

.youpay-cover-container .youpay-button-background-white {
    transform: matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0);
    background-color: rgb(255,255,255);
    width: 3em;
    height: 3em;
    position: absolute;
}

.youpay-cover-container .youpay-button-background-blue {
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    transform: matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0);
    background-color: rgb(12,217,220);
    width: 3em;
    height: 3em;
    position: absolute;
}

.youpay-cover-container .youpay-arrow-group {
    color: rgb(47, 58, 147);
    width: 2em;
    height: 2em;
    position: absolute;
}

.youpay-cover-container .youpay-arrow {
    display: block;
}

.youpay-cover-container .youpay-icon-group {

}

.youpay-cover-container .youpay-icon-pink {
    color: rgb(247, 150, 185);
    width: 1.25em;
    top: -0.25em;
    left: 50%;
    position: absolute;
    display: block;
}

.youpay-cover-container .youpay-icon-white {
    color: #ffffff;
    width: 0.75em;
    bottom: 0px;
    left: 66.666667%;
    position: absolute;
    display: block;
    transform: rotate(135deg);
}

@media (min-width: 1024px) {
    .youpay-cover-container .youpay-heading {
        font-size: 24px;
        line-height: 24px;
        max-width: 32em;
        width: 50%;
    }

    .youpay-cover-container .youpay-button-content-group {
        max-width: 32em;
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 450px) {
    .youpay-button-group {
        min-width: 100%;
    }
}
/* </style> */
/* CSS from loadingcover-css.liquid - END */
