/* Variables */
/** {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    height: 100vh;
    width: 100vw;
}*/

#payment-form {
    width: 30vw;
    min-width: 500px;
    align-self: center;
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1), 0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
    padding: 40px;
    margin-top: auto;
    margin-bottom: auto;
}

.hidden {
    display: none;
}

#payment-message {
    color: rgb(105, 115, 134);
    font-size: 16px;
    line-height: 20px;
    padding-top: 12px;
    text-align: center;
}

#payment-element {
    margin-bottom: 24px;
}

/* Buttons and links */
.stripe-submit {
    background: #ffb548;
    font-family: Arial, sans-serif;
    color: #ffffff;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
    width: 100%;
}

    .stripe-submit:hover {
        filter: contrast(115%);
    }

    .stripe-submit:disabled {
        opacity: 0.5;
        cursor: default;
    }

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
    border-radius: 50%;
}

.spinner {
    color: #ffffff;
    font-size: 22px;
    text-indent: -99999px;
    margin: 0px auto;
    position: relative;
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 0 2px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

    .spinner:before,
    .spinner:after {
        position: absolute;
        content: "";
    }

    .spinner:before {
        width: 10.4px;
        height: 20.4px;
        background: #0055DE;
        border-radius: 20.4px 0 0 20.4px;
        top: -0.2px;
        left: -0.2px;
        -webkit-transform-origin: 10.4px 10.2px;
        transform-origin: 10.4px 10.2px;
        -webkit-animation: loading 2s infinite ease 1.5s;
        animation: loading 2s infinite ease 1.5s;
    }

    .spinner:after {
        width: 10.4px;
        height: 10.2px;
        background: #0055DE;
        border-radius: 0 10.2px 10.2px 0;
        top: -0.1px;
        left: 10.2px;
        -webkit-transform-origin: 0px 10.2px;
        transform-origin: 0px 10.2px;
        -webkit-animation: loading 2s infinite ease;
        animation: loading 2s infinite ease;
    }

/* Payment status page */
#payment-status {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    width: 30vw;
    min-width: 500px;
    min-height: 380px;
    align-self: center;
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1), 0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
    padding: 40px;
    opacity: 0;
    animation: fadeInAnimation 1s ease forwards;
}

#status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

/*h2 {
    margin: 0;
    color: #30313D;
    text-align: center;
}*/

/*a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    display: block;
}

    a:hover {
        filter: contrast(120%);
    }
*/
#details-table {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

    table tbody tr:first-child td {
        border-top: 1px solid #E6E6E6; /* Top border */
        padding-top: 10px;
    }

    table tbody tr:last-child td {
        border-bottom: 1px solid #E6E6E6; /* Bottom border */
    }

td {
    padding-bottom: 10px;
}

.TableContent {
    text-align: right;
    color: #6D6E78;
}

.TableLabel {
    font-weight: 600;
    color: #30313D;
}

#view-details {
    color: #0055DE;
}

#retry-button {
    text-align: center;
    background: #0055DE;
    color: #ffffff;
    border-radius: 4px;
    border: 0;
    padding: 12px 16px;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
    width: 100%;
}

@-webkit-keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loading {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 600px) {
    form, #payment-status {
        width: 80vw;
        min-width: initial;
    }
}


.inv-card__wrapper {
    width: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.inv-card__amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.inv-card__due-date {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.inv-card__details {
    margin-bottom: 1.5rem;
}

.inv-card__row {
    display: flex;
    margin-bottom: 0.75rem;
}

.inv-card__label {
    width: 80px;
    color: #718096;
}

.inv-card__value {
    color: #2d3748;
    font-weight: 500;
}

.inv-card__divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 1.5rem 0;
}

.inv-card__view-link {
    color: #718096;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

    .inv-card__view-link:hover {
        color: #4a5568;
    }

.inv-card__arrow-icon {
    margin-left: 5px;
}

.inv-card__download-container {
    position: absolute;
    top: 2rem;
    right: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inv-card__download-icon {
    background-color: #f7fafc;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 2;
}

.inv-card__download-text {
    background-color: #f7fafc;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-weight: 500;
}

.inv-card__download-container:hover .inv-card__download-text {
    transform: translateX(0);
}

.inv-card__download-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-confirmation-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: transparent;
}

.payment-confirmation-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 400px;
    padding: 30px 20px;
    text-align: center;
}

.payment-confirmation-icon-container {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
}

.payment-confirmation-paper-icon {
    width: 40px;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 5px;
    position: absolute;
    left: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-confirmation-paper-lines-container {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 25px;
}

.payment-confirmation-paper-line {
    height: 2px;
    background-color: #e0e0e0;
    margin-bottom: 5px;
    border-radius: 1px;
}

.payment-confirmation-check-circle {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: #26c17e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-confirmation-check-mark {
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.payment-confirmation-status {
    color: #666;
    font-size: 16px;
    margin-bottom: 5px;
}

.payment-confirmation-amount {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin: 5px 0 15px;
}

.payment-confirmation-view-link {
    color: #2d8fcc;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 14px;
}

    .payment-confirmation-view-link::after {
        content: "›";
        margin-left: 5px;
        font-size: 16px;
    }

.payment-confirmation-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    margin-bottom: 25px;
    row-gap: 15px;
}

.payment-confirmation-detail-label {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.payment-confirmation-detail-value {
    color: #333;
    font-size: 14px;
    margin: 0;
    text-align: right;
    font-weight: 500;
}

.payment-confirmation-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-confirmation-button {
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.payment-confirmation-button-outline {
    border: 1px solid #ffb548;
    color: #ffb548;
    background-color: transparent;
}

    .payment-confirmation-button-outline:hover {
        background-color: rgba(45, 143, 204, 0.05);
    }

.payment-confirmation-button-primary {
    background-color: #ffb548;
    color: white;
    border: none;
}

    .payment-confirmation-button-primary:hover {
        background-color: #B37F32;
    }
