#card-element {
    border: 2.5px solid #ddd3d3;
    margin: 2.0rem;
}

.card-element-wrapper {
    background: white;
    position: relative;
    clear: both;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 2rem;
}

/* Dynamic height based on container width */
#express_checkout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* First two buttons take half width */
    gap: 10px;
    margin: 20px 0;
}

#paypal-button,
#pay-later-button,
#apple-pay-button,
#google-pay-button-container {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* apple pay style */
apple-pay-button {
    --apple-pay-button-width: 180px;
    --apple-pay-button-height: 52px;
    --apple-pay-button-border-radius: 5px;
    margin: auto;
}

#google-pay-button-container button {
    min-height: 30px;
    height: 50px;
    width: 100%;
}

#express_checkout #apple-pay-button {
    width: 100%;
}

/* mid width to match paypal styling */
/*@media only screen and (max-width: 895px) {
    #express_checkout {
        gap: 8px;
    }
    
    #paypal-button,
    #pay-later-button,
    #apple-pay-button,
    #google-pay-button-container {
        height: 35px;
    }
    
    #google-pay-button-container button {
        height: 33px;
        padding: 8px;
    }

    #apple-pay-button {
        --apple-pay-button-height: 35px;
    }
}*/

/* small width to match paypal styling */
/*@media only screen and (max-width: 450px) {
    #express_checkout {
        gap: 6px;
    }
    
    #paypal-button,
    #pay-later-button,
    #apple-pay-button,
    #google-pay-button-container {
        height: 30px;
    }
    
    #google-pay-button-container button {
        height: 28px;
        padding: 6px;
    }

    #apple-pay-button {
        --apple-pay-button-height: 30px;
    }
}*/

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.or-divider:not(:empty)::before {
    margin-right: .25em;
}

.or-divider:not(:empty)::after {
    margin-left: .25em;
}