/* Rate Table Container */
.rate-table-container {
    display:block;
    clear:both;
  margin-bottom:40px;
/*  padding-bottom:30px;*/
    max-width:80%;
    position:relative;
}


/* Rate Table Wrapper */
.rate-table {
    width: 80%;
    margin: auto 0;
/*    border: 1px solid #ccc;*/
    font-family: Arial, sans-serif;
    font-size: 16px;
    border-collapse: collapse;
    color: #0073e6;
}

/* Table Header */
.rate-table-header {
/*    display: flex;*/
    background-color: #00537e;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #00537e;
    border-left: 1px solid #fff;
    color: #ffffff;
}

/* Rows */
.rate-row {
    display: flex;
    border-bottom:  1px solid #ccc;
}

/* Parent Column Wrapper */
.rate-table-body {
    display: inline-flex;
    flex-direction: row; 
    flex-wrap: nowrap; 
    width: 100%;
    min-height:auto;
    height:100%;
    overflow:visible;
    position:relative;
    align-items:flex-start;
}
   

/* Ensure Desktop Columns Stay Side by Side */
.rate-column-wrapper {
    width: 50%; 
    display: flex;
    flex-direction: column;
    
}

/* Alternating Wrapper Colors */
.col-1-bg-gray, .col-2-bg-gray {
    background-color: #d9d9d9;
    width: 100%;
    min-height: 25%;  
}

.col-1-bg-white, .col-2-bg-white {
    background-color: #ffffff;
    width: 100%;
    min-height: 25%; 
}

/* Ensure Empty Wrappers Fill Entire Row */
.full-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    min-height: auto;
    height:100%; 
    border: 1px solid #ccc;
}

/* Alternating Wrapper Background Colors */
.sub-column-wrapper.gray-bg {
    background-color: #d9d9d9;
    width: 100%;
    min-height: 25%;
}

.sub-column-wrapper.white-bg {
    background-color: #ffffff;
    width: 100%;
   
}

/* Main Columns */
.rate-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right:  1px solid #ccc;
    padding: 0;
}

/* Remove border for the last column */
.rate-column:last-child {
    border-right: none;
}

/* Sub-Columns Wrapper */
.sub-column-wrapper {
    display: flex;
    flex-direction: row;
    flex-grow:0;
    flex-shrink:0;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-bottom:  1px solid #ccc;
    line-height: 1.1;
    width: 100%;
    min-height: auto;
    height:100%;
}

/* Remove bottom border for last sub-column-wrapper in each rate-column */
.rate-column .sub-column-wrapper:last-child {
    border-bottom: none;
}

/* Origin-Destination Column */
.origin-destination {
    flex: 2;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    text-align: left;
    line-height: 22px;
}

/* Origin & To (Same Line) */
.origin-to-text {
    display: inline-block;
}

/* Origin Text */
.origin-text {
    font-weight: bold;
    color: #00537e;
}

/* "To" Text */
.to-text {
    font-weight: normal;
    color: #00537e;
}

/* Destination Text */
.destination-text {
    font-weight: bold;
    color: #00537e;
}

/* Rate Value Column */
.rate-value {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

/* "As Low As" Text */
.rate-text {
    font-size: 12px;
    font-weight: normal;
    color: #0070c0;
    text-transform: uppercase;
}

/* Rate Amount */
.rate-amount {
    font-size: 16px;
    font-weight: bold;
    color: #00537e;
}

/* "Each Way" Text */
.rate-note {
    font-size: 12px;
    font-weight: normal;
    color: #0070c0;
    text-transform: uppercase;
}

/* Mobile Styling - Stack Parent Columns */
@media (max-width: 768px) {
    .rate-table-body {
        flex-direction: column; 
    }

    .rate-column-wrapper {
        width: 100%;
    }
    .rate-table {
    width: 100%;
   }

.rate-table-container {
    display:block;
    clear:both;
    margin-bottom:20px;
    padding-bottom:20px;
    width:100%;
   }

}

/* removing wrappers with the remove empty wrapper class */
.sub-column-wrapper.col-1-bg-gray.full-wrapper.remove-empty-wrapper {
    display: none !important;
}
.sub-column-wrapper.col-1-bg-white.full-wrapper.remove-empty-wrapper {
     display: none !important;
}
.sub-column-wrapper.col-2-bg-gray.full-wrapper.remove-empty-wrapper {
    display: none !important;
}
.sub-column-wrapper.col-2-bg-white.full-wrapper.remove-empty-wrapper {
     display: none !important;
}

/* making rate table italics with ** bold * Also added in the additional css section of wp ui */
.rate-table-header em {
    font-weight: 700 !important;
}
.origin-text em {
    font-weight: 700 !important;
}
.destination-text em {
    font-weight: 700 !important;
}




