:root {
    --summary-section-bgcolor: #fbfbfb; /**was f7f7f7**/
}



/** 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;
}
@media only screen and (max-width: 641px) {
    .gotrgf_form_container {
        display: block !important;
    }
    .gotrgf_form_wrapper {
        width: 100% !important;
    }
    .gotrgf_summary_wrapper {
        width: 100% !important;
    }
}

.gotrgf_summary_wrapper .gotrgf_form_overview_container {
    /*background-color: #ffffff;*/
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    
}

@media only screen and (max-width: 768px) {
    .gotrgf_form_overview_container {
        margin-top: 2em;
    }
}

.gotrgf_form_overview_container>.gotrgf_summary_title {
    border-bottom: 1px solid #e5e5e5;
}

.gotrgf_form_overview_container>.gotrgf_summary_total {
    border-top: 1px solid #e5e5e5;
    display: flex;
}

.gotrgf_form_overview_container>.gotrgf_summary_total>.gotrgf_label {
    min-width: 36%;    
    font-weight: 700;
}

.gotrgf_form_overview_container>.gotrgf_summary_total>.gotrgf_total_right {
    flex: 1;
    text-align: right;   
}

.gotrgf_price_amount {
    font-weight: bold;
}

.gotrgf_form_overview_container .gotrgf_summary_line {
    display: flex;
    padding: 5px 10px;
    margin-bottom: 0;
    vertical-align: middle;
}

.gotrgf_form_overview_container .gotrgf_summary_line:not(.gotrgf_section_title) {
    justify-content: space-between;    
}
.gotrgf_summary_wrapper .gotrgf_form_overview_container .gotrgf_summary_line:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}


.gotrgf_form_overview_container>.gotrgf_summary_lines {    
    position: relative;
}

.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_right {
    text-align: right;
}


.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_left {
    min-width: 0;
    padding-right: 20px;
    font-weight: 500;
}

.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_right {
    flex: 1;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
    overflow-wrap: break-word;
}

/** END OF ORIGINAL FREE CSS **/


/*summary field sizes*/
.gotrgf_small_summary {
    width: 25%;
}

.gotrgf_medium_summary {
    width: 50%;
}

.gotrgf_large_summary {
    width: 100%;
}

/**summary field container**/
.ginput_container_gotrgf_live_summary_field .gotrgf_form_overview_container {
    border-radius: 0;
    padding: 0; 
    border-radius: 5px;
    -webkit-border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    position: relative;
}


/*summary field title*/
.gotrgf_summary_field_title_container span {
    font-weight: bold;
    font-size: 1em;    
    vertical-align: middle;
    color: #333333;
}

.ginput_container_gotrgf_live_summary_field .gotrgf_form_overview_container>.gotrgf_summary_lines {
    padding: 0;
}

.ginput_container_gotrgf_live_summary_field .gotrgf_form_overview_container .gotrgf_summary_line {
    padding: 10px;
    margin-bottom: 0;
    vertical-align: middle;
}

.gotrgf_form_overview_container .gotrgf_nothing_selected {
    padding: 20px 10px;
    margin: 0;
}


/*make sure everything is vertically centered inside the line*/

.ginput_container_gotrgf_live_summary_field .gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line:not(:last-child) {
    /* border-bottom: 1px solid rgba(0, 0, 0, .1); */
    border-bottom: 1px solid #e5e7eb;
}


/*Summary field title section**/

.ginput_container_gotrgf_live_summary_field .gotrgf_summary_field_title_container {
    background-color: #f7f7f7; 
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    border-bottom: 3px solid #e5e7eb;
}


/*summary field total container*/

.ginput_container_gotrgf_live_summary_field .gotrgf_summary_field_total_container {
    background-color: var(--summary-section-bgcolor);
    min-height: 40px;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px;
}


/*Summary field total section*/

.gotrgf_summary_field_total_container {
    display: flex;
}

.ginput_container_gotrgf_live_summary_field>.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_left {
    width: 36%;    
}

.ginput_container_gotrgf_live_summary_field>.gotrgf_form_overview_container>.gotrgf_summary_lines>.gotrgf_summary_line>.gotrgf_line_part_right {
    width: 64%;
    text-align: right;    
}

.gotrgf_summary_field_total_left {
    width: 36%;    
}

.gotrgf_summary_field_total_right {
    width: 64%;
    text-align: right;    
}


/**
 * GP Ecommerce Fields
 **/

.gfs_ecommerce {
    padding: .3em;
    border-bottom: 1px solid #e5e7eb;
}

.gotrgf_label {
    min-width: 36%;
    font-weight: 700;
}

.gotrgf_eco_val {
    flex: 1;
    text-align: right;
    font-weight: 700;
}

.gfs_tax,
.gfs_discount,
.gfs_subtotal, 
.gfs_coupon {
    display: flex;
}

.gfs_discount {
    color: green;
}

.gotrgf_summary_gpecom {
    border-top: 2px solid #e5e7eb;
}

.gotrgf_itemized {
    text-align: right;
}

.gotrgf_itemized>span {
    display: block;
    font-size: 13px;
    /*color: #9e9e9e;    */
    font-style: italic;
}

.gotrgf_hide_image_label .gotrgf_line_part_right .gotrgf_image_label {
    display: none !important;
}

.gfs_coupon {
    border-top: 1px solid #e5e5e5;
    padding: 0.3em;
    font-size: 0.85em;
}

.gfs_coupon .gfs_coupon_value ul {
    list-style-type: none;
    list-style: none;
    margin: 0;
}

.gfs_coupon .gfs_coupon_value ul li {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/**
 * Section field
 **/
 .gotrgf_summary_wrapper .gotrgf_form_overview_container .gotrgf_section_title {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 25px;
    padding-bottom: 10px;
    background-color: var(--summary-section-bgcolor);
    color: #333333;
    font-weight: bold;
    font-size: 105%;
 }

 .ginput_container_gotrgf_live_summary_field .gotrgf_form_overview_container .gotrgf_summary_line.gotrgf_section_title {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 25px;
    padding-bottom: 10px;
    background-color: var(--summary-section-bgcolor);
    color: #333333;
    font-weight: bold;
    font-size: 105%;
}




/*product lines*/

.gotrgf_pricing_column {
    display: flex;
    align-self: stretch;
}

.gotrgf_pricing_column.gotrgf_price_quantity  {    
    flex: .7;
    text-align: center;   
    justify-content: center;
    font-weight: bold;
}

.gotrgf_pricing_column.gotrgf_price_unit {
    /* flex: 1.5; */ /*commented this on v2.0.4 as it gives problems for longer prices*/
    text-align: right;
    justify-content: flex-end;
    font-weight: bold;
    gap: 2px;
}

.gotrgf_pricing_column.gotrgf_price_label {
    flex: 3; /* Since the first column should take 50% of the width, we make its flex value 2, making it twice as large as the other columns */
    display: flex;
    flex-direction: column; /* This will make the inner content stack vertically */
    justify-content: space-between; /* This will ensure that the inner rows are evenly spaced */
    font-weight: 700;
}

.gotrgf_pricing_column.gotrgf_price_label.head {
    flex: 3;
    display: block !important
}

.gotrgf_sub_row {
    width: 100%;                    
    text-align: left; 
    line-height: 1.2;
}

.gotrgf_sub_row.field-label {
    font-weight: bold;
}

.gotrgf_sub_row.sub-label {
    font-style: italic;
    font-weight: 400;
    padding-left: 15px;
    position: relative;
} 


.gotrgf_sub_row.sub-label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px; 
    width: 8px; 
    height: 8px; 
    border-bottom: 1px solid #CCC; 
    border-left: 1px solid #CCC; 
} 

.gotrgf_unordered_list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gotrgf_no_flex {
    display: block !important;
}

.gotrgf_single_coupon_wrap {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.gotrgf_single_coupon_wrap:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px; 
    width: 8px; 
    height: 8px; 
    border-bottom: 1px solid #CCC; 
    border-left: 1px solid #CCC; 
} 

.gotrgf_single_coupon_wrap .coupon-name {
    font-style: italic;
    font-weight: 400;
    padding-left: 15px;    
}

.gotrgf_single_coupon_wrap .coupon-value {    
    font-weight: 700;       
}






/**
 * Product Table/Grid
 **/
.gotrls-product-grid {
    display: grid;            
    /* grid-template-columns: 1fr auto auto;  */
    gap: 0;
    width: 100%;
    row-gap: 0;    
    
}

.gotrls-product-grid.col-2 {
    grid-template-columns: 1fr auto; 
}

.gotrls-product-grid.col-3 {
    grid-template-columns: 1fr auto auto; 
}

.gotrls-product-grid.col-4 {
    grid-template-columns: 1fr auto auto auto; 
}

.gotrls-product-grid .gotrgf-grid-heading {
    background-color: var(--summary-section-bgcolor);
}

.gotrls-product-grid .gotrgf-grid-heading > div { 
    color: #333;
    font-weight: bold;
    padding: 25px 10px 10px 10px;
    background-color: var(--summary-section-bgcolor);
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85em;
    font-size: 110%;
}

.gotrls-product-grid .gotrls-product-head.price,  .gotrls-product-grid .gotrls-product-head.unitprice{            
    text-align: right;
    padding-left: 10px;
    
}

.gotrls-product-grid .gotrls-product-head.quantity {
    text-align: center;
    
}

.gotrls-product-grid div.gotrls-grid-item {
    padding: 8px;
    border: none;            
    white-space: pre-wrap;  
}

.gotrls-product-grid .gotrgf_summary_line.even > div {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    
}

.gotrls-product-grid .gotrgf_summary_line.odd > div {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.gotrls-product-grid .gotrgf_summary_line  {
    display: contents;
    margin-bottom: 0 !important;
}

.gotrls-product-grid .gotrgf_pricing_column  {    
    display: block !important;
}

.gotrgf_summary_gpecom .gotrgf_summary_line {
    margin-bottom: 0;
}


/**
 * Spinner
 **/
.gotrgf_preloader_image {
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
}

.gotrgf_hide_preloader {
    display: none;
}

.gotr_summary_spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px; /* Adjust the size of the spinner */
    height: 25px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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



/**
 * Fontawesome
 **/
.lsfa-free {
    position: relative;
}

.lsfa-free .gotrgf_line_part_left {
    min-width: 0 !important;
}

.gotrgf_summary_lines .gotrgf_summary_line.lsfa-free::before,
.gotrgf_summary_products .gotrgf_summary_line.lsfa-free .gotrgf_price_label:before {
	font-weight: 900; 
	font-family: 'Font Awesome 6 Free';
    margin-right: 10px;
}

.gotrgf_summary_products .gotrls-product-grid .gotrgf_summary_line.lsfa-free .gotrgf_price_label {
    position: relative;
    display: flex;
}






/**
 * Image Choices
 **/
.gotrgf_choice_image_wrap {   
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

/* .gotrgf_choice_image_wrap .gotrgf_summary_image_choice {
    max-width: 30px;
} */

.gotrgf_price_label_inner {
    display: flex;
}

.gotrgf_price_image {
    align-items: flex-start;    
}

.gotrgf_price_image img {
    max-width: 50px;
    margin-right: 10px;
}

/*hide product option sub line classes*/
.gotrgf_sub_row.gfls-hide-option, 
.gotrgf_summary_line.gfls-hide-options .gotrgf_sub_row.sub-label {
    display: none !important;
}

