/** this is the container placed around the form and summary **/

.gotrgf_form_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 2em;
}

/*This is the form alone*/

.gotrgf_form_wrapper {
    width: 65%;
}

/*This is the summary*/

.gotrgf_summary_wrapper {
    width: 30%;
}

/* Small screens: stack the form and the summary, with space between them on either side */
@media only screen and (max-width: 641px) {
    .gotrgf_form_container {
        flex-direction: column;
        gap: 2em;
    }
    .gotrgf_form_wrapper,
    .gotrgf_summary_wrapper {
        width: 100%;
    }
}

.gotrgf_form_overview_container {
    /* No background and borders based on the text color, so the summary fits light and dark themes */
    border: 1px solid rgba(0, 0, 0, .2);
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 0.5rem;
    position: relative;
}

.gotrgf_form_overview_container>.gotrgf_summary_title {
    border-bottom: 1px solid #e5e5e5;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.gotrgf_form_overview_container>.gotrgf_summary_total {
    border-top: 1px solid #e5e5e5;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    display: flex;
}

.gotrgf_form_overview_container>.gotrgf_summary_total>.gotrgf_label {
    min-width: 36%;
    padding: .3em;
    font-weight: 700;
}

.gotrgf_form_overview_container>.gotrgf_summary_total>.gotrgf_total_right {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    padding: .3em;
}

.gotrgf_price_amount {
    font-weight: bold;
}

.gotrgf_form_overview_container>.gotrgf_summary_title>h5 {
    /* Reset theme heading styles, so the title looks the same on every site */
    margin: 0;
    padding: .3em;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line {
    font-size: 0.85em;
    margin-bottom: .3em;
    display: flex;
}

.gotrgf_form_overview_container>.gotrgf_summary_lines {
    padding: .3em;
}

.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_left {
    min-width: 36%;
    overflow-wrap: anywhere;
}

.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_right {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    text-align: right;
}

.gotrgf_preloader_image {
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
}

.gotrgf_hide_preloader {
    display: none;
}

/* Shown only to form administrators when no fields are selected */

.gotrgf_admin_notice {
    font-size: 0.85em;
    padding: .5em;
    border-left: 4px solid #dba617;
    background-color: #fcf9e8;
    color: #1d2327;
}

.gotrgf_admin_notice p {
    margin: 0 0 .5em;
}

.gotrgf_admin_notice .gotrgf_admin_notice__small {
    margin-bottom: 0;
    opacity: .7;
}
