/* good-brew/assets/css/goodbrew-comparison.css */

/* Styling for the main comparison block */
.wp-block-uagb-container.uagb-block-93560ede.wp-block-uagb-container > .uagb-container-inner-blocks-wrap > *:not( .wp-block-uagb-column ):not( .wp-block-uagb-section ):not( .uagb-container__shape ):not( .uagb-container__video-wrap ):not( .uagb-slider-container ):not(.spectra-image-gallery__control-lightbox).goodbrew-comparison-block {
    width: 100% !important;
    padding: 0;
}
.goodbrew-comparison-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif; /* Example font */
}

/* Flexbox for top row headers and then for each comparison row */
.food-test-info {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center; /* Center items if they don't fill the row */
    align-items: flex-start; /* Align items to the top */
    flex-direction: column; /* Stack the rows vertically */
    width: 100%; /* Take full width for inner flex items */
}

/* Header row specific styling */
.icon-box-row.header-row {
    margin-top: 0; /* No extra top margin */
    border: 0;
}

.icon-box-row.header-row .left-col,
.icon-box-row.header-row .right-col {
    justify-content: center; /* Center content in header cells */
    text-align: center;
    align-items: center;
    flex-direction: column; /* Stack title lines */
    padding: 15px; /* Padding for header cells */
    /* Ensuring headers stretch to full height of header row */
    background: transparent;
}

.icon-box-row.top-space {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    overflow: hidden;
}
.icon-box-row.bottom-space {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    border-bottom: 1px solid var(--ast-global-color-2);
}

.icon-box-row {
    border: 1px solid var(--ast-global-color-2);
    border-bottom: 0;
}

.tab-title {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.3;
    height: 100%;
    flex-direction: column;
    display: flex;
    justify-content: center;
}

/* Individual feature rows */
.icon-box-row {
    display: flex; /* Make this row a flex container */
    width: 100%; /* Take full width of parent */
    /* REMOVED: align-items: center;
       This allows flex items (.left-col, .right-col) to stretch by default */
    box-sizing: border-box; /* Include padding in width calculation */
}

.left-col,
.right-col {
    flex: 1 1 50%; /* Each takes 50% width */
    display: flex; /* Keep flexbox for content inside column (image+text inline) */
    align-items: center; /* Align content within the column vertically */
    box-sizing: border-box;
    position: relative; /* For inner elements */
}

.left-col {
    background-color: var(--ast-global-color-6);
}

.right-col {
    background-color: #FFE5BA;
}

.left-col img,
.right-col .comparison-item img {
    max-width: 40px;
    height: auto;
    flex-shrink: 0;
    padding: 5px 0;
}

.comparison-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
    align-items: start;
    
}

.left-col .sub-heading,
.right-col .comparison-item .sub-heading {
    font-size: 1em;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-left: 5px;
    width: 100%;
    height: 100%;
    /* The 'display: inline' from previous version for h5/span is now handled
       by the flex container in .left-col, .right-col if needed, but not required here.
       The h5 and span are already inline elements. */
}

.left-col .sub-heading span,
.right-col .comparison-item .sub-heading span {
    font-size: 0.8em;
    display: inline;
}

/* Specific styling for the black-bg comparison data */
.right-col .comparison-item.active {
}

/* Hide all comparison items by default */
.right-col .comparison-item {
    display: none;
}

/* Show only the active one */
.right-col .comparison-item.active {
    height: 100%;
    display: flex;
}

/* Line separator for rows */
.line.full-width {
    width: 100%;
    border-bottom: 1px dashed var(--ast-global-color-2);
}

/* Adjustments for the dropdown */
.dropdown {
    width: 100%; /* Make dropdown span full width above content */
    z-index: 10;
}

.selectric-wrapper {
    position: relative;
}

.selectric-hide-select {
    display: none !important; /* FIX: This hides the original select and its wrapper */
}

.selectric {
    background-color: white;
    border-radius: 40px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--ast-global-color-2); /* Label color for dropdown button */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-size: 20px;
    border: 1px solid var(--ast-global-color-2);
}

.selectric.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.selectric .label {
    flex-grow: 1;
}

.selectric .button {
    font-size: 1.2em;
    line-height: 20px;
    transition: transform 0.2s ease;
    min-width: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    background: var(--ast-global-color-2);
    color: white;
    border-radius: 50%; /* Make it round */
    display: flex;
    justify-content: center;
    align-items: center;
}

.selectric.active .button {
    transform: rotate(180deg);
}

.selectric-items {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #fff;
    border: 1px solid var(--ast-global-color-2);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    color: var(--ast-global-color-2);
}

.selectric-items.open {
    display: block;
}

.selectric-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selectric-items li {
    padding: 10px 15px;
    cursor: pointer;
}

.selectric-items li:hover,
.selectric-items li.selected {
    background-color: var(--ast-global-color-2);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-item {
        flex-direction: column;
    }
    .left-col .sub-heading, .right-col .comparison-item .sub-heading{
        text-align: center;
    }
    .comparison-item {
        align-items: center;
    }
}