@font-face {
    font-family: 'RedHatDisplay-Bold';
    src: url('https://cloud-files.helcim.com/RedHatDisplay-Bold.woff2') format('woff2'),
    url('#{$pathToFonts}/RedHatDisplay-Bold.woff2') format('woff2'),
    url('#{$pathToFonts}/RedHatDisplay-Bold.woff') format('woff'),
    url('#{$pathToFonts}/RedHatDisplay-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RedHatText-Medium';
    src: url('https://cloud-files.helcim.com/RedHatText-Medium.woff2') format('woff2'),
    url('#{$pathToFonts}/RedHatText-Medium.woff2') format('woff2'),
    url('#{$pathToFonts}/RedHatText-Medium.woff') format('woff'),
    url('#{$pathToFonts}/RedHatText-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RedHatText-Regular';
    src: url('https://cloud-files.helcim.com/RedHatText-Regular.woff2') format('woff2'),
    url('#{$pathToFonts}/RedHatText-Regular.woff2') format('woff2'),
    url('#{$pathToFonts}/RedHatText-Regular.woff') format('woff'),
    url('#{$pathToFonts}/RedHatText-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body, h1, p {
    margin: 0;
}

body {
    width: 0;
    height: 0;
}

.background {
    width: 100%;
    height: 100%;
}

/** To hide Helcim Pay's close button **/
div#pay-modal__modal > div > header > button {
    display: none;
}

.main-container {
    background-color: #F9F8FE;
    border-radius: 10px;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    margin: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.main-container-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 24px;
}

.main-container-content-header {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-approved-summary {
    width: 30%;
    background-color: #FFFFFF;
    border: 1px solid rgba(238, 237, 246, 1);
    border-radius: 5px;
    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-approved-summary-label {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.try-again-button {
    cursor: pointer;
    background-color: #815AF0;
    color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 8px 32px;
}

.try-again-button:hover {
    background-color: #7552D0;
}

#spinner {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hb24 {
    font-family: 'RedHatDisplay-Bold', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
}

.hb18 {
    font-family: 'RedHatDisplay-Bold', sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
}

.tr16 {
    font-family: 'RedHatText-Regular', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.tm14 {
    font-family: 'RedHatText-Medium', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.lm12 {
    font-family: 'RedHatText-Medium', sans-serif;
    font-size: 12px;
    letter-spacing: 2.56px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: 400;
}

.text-midnight-1000 {
    color: #232043;
}

.text-midnight-700 {
    color: #6A6881;
}

.text-center {
    text-align: center;
}

.text-break {
    word-break: break-all;
}