.StripeElement {background-color: white;height: 40px;padding: 10px 12px;border-radius: 4px;border: 1px solid transparent;box-shadow: 0 1px 3px 0 #e6ebf1;-webkit-transition: box-shadow 150ms ease;transition: box-shadow 150ms ease;} .StripeElement--focus {box-shadow: 0 1px 3px 0 #cfd7df;} .StripeElement--invalid {border-color: #fa755a;} .StripeElement--webkit-autofill {background-color: #fefde5 !important;}
.submit-button {border: none;border-radius: 4px;outline: none;text-decoration: none;color: #fff;background: #32325d;white-space: nowrap;display: inline-block;height: 40px;line-height: 40px;padding: 0 14px;box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);border-radius: 4px;font-size: 15px;font-weight: 600;letter-spacing: 0.025em;text-decoration: none;-webkit-transition: all 150ms ease;transition: all 150ms ease;float: left;margin-top: 10px;}
.submit-button[disabled] {opacity: 0.3;cursor: not-allowed;}

.modal-window {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.25);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.modal-window.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
	background-color: #0000004f;
}

.modal-window > div {
    width: 410px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 2em;
	border-radius: 8px;
    background: #ffffff;
}

.modal-window > div > form .card-details > .expire-date {
	display: inline-block;
}

.modal-window header, .modal-window label {
    font-weight: bold;
}

.modal-window h1 {
    font-size: 150%;
    margin: 0 0 15px;
}

.modal-close {
    color: #0e0e0e;
    line-height: 50px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}

.modal-close:hover {
    color: #0e0e0e;
}

.modal-container {
    display: grid;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    height: 100vh;
}

.modal-window div:not(:last-of-type) {
    margin-bottom: 15px;
    text-align: left;
}

.donation-input {
    width: 50px;
    text-align: center;
    background: transparent;
    margin-top: 5px;
}

#donation-payment-form {
    margin-top: 10px;
}

#donation_note {
    width: 96%;
    height: 100px;
}

#card-errors,
#card-success,
h3.title {
	text-align: left;
}

.donation-form-width {
    width: 96%;
}

.float-right {
    float: right;
}

.number-input {
    width: 40%;
    margin-top: 5px;
    margin-right: 5px;
}

#card-errors {
    color: #dc3545;
    text-align: left;
}

.donate-button-tt-fix {
    margin-top: 0 !important;
    height: 21px !important;
    line-height: inherit !important;
}
@media (max-height: 768px) {
    .modal-window > div {
        overflow-y: auto;
        top: 65px;
        transform: translateX(-50%);
        max-height: calc(100vh - 65px);
        box-sizing: border-box;
        width: calc(410px + 2em);
    }
}


@media screen and (max-width:470px) {
	.modal-window > div {
        height: calc(100vh - 65px);
        overflow-x: auto;
        width: 100vw;
        left: unset;
        top: 65px;
        transform: none;
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;
	}

	.modal-window > div > h3,
	.modal-window > div > form > .form-row {
		text-align: center;
	}

	.modal-window > div > form #card-errors,
	.modal-window > div > form #card-success {
		text-align: center;
	}

	.modal-window > div > form .card-details {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.modal-window > div > form .card-details > .number-input {
		width: 145px;
	}

	.modal-window > div > form > .submit-button {
		width: 100%;
	}

    .modal-window textarea {
        resize: vertical;
    }
}
