@supports (-webkit-appearance: -apple-pay-button) {
    .apple-pay-button {
        display: inline-block;
        -webkit-appearance: -apple-pay-button;
        -apple-pay-button-type: plain;
        width: 100%;
        height: 2.3rem;
        cursor: pointer;
    }
    .apple-pay-button-black {
        -apple-pay-button-style: black;
    }
    .apple-pay-button-white {
        -apple-pay-button-style: white;
    }
    .apple-pay-button-white-with-line {
        -apple-pay-button-style: white-outline;
    }
}

@supports not (-webkit-appearance: -apple-pay-button) {
    .apple-pay-button {
        display: inline-block;
        background-size: 100% 60%;
        background-repeat: no-repeat;
        background-position: 50% 50%;
        border-radius: 5px;
        padding: 0px;
        box-sizing: border-box;
        min-width: 200px;
        min-height: 32px;
        max-height: 64px;
        width: 100%;
        height: 2.3rem;
    }
    .apple-pay-button-black {
        background-image: -webkit-named-image(apple-pay-logo-white);
        background-color: black;
    }
    .apple-pay-button-white {
        background-image: -webkit-named-image(apple-pay-logo-black);
        background-color: white;
    }
    .apple-pay-button-white-with-line {
        background-image: -webkit-named-image(apple-pay-logo-black);
        background-color: white;
        border: .5px solid black;
    }
}

.apple-pay-message {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 5px;
    padding: 0px;
    box-sizing: border-box;
    min-width: 200px;
    min-height: 32px;
    max-height: 64px;
    width: 100%;
    height: 2.3rem;
}

.apple-pay-message p {
    color: white;
    margin: 0;
}

.apple-pay-message-error {
    background-color: orangered;
}

.apple-pay-message-passive-warning {
    background-color: #727272;
}

@media only screen and (min-width: 1024px) {
    .apple-pay-button {
        width: 70%;
        margin-right: auto;
        margin-left: auto;
    }

    .apple-pay-message {
        width: 70%;
        margin-right: auto;
        margin-left: auto;
    }
}
.hide-input {
    display: none !important;
}
