/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


.ui-autocomplete {
    z-index: 9999;
    width: 400px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.seastrong-pump-selection-tool-table th {
    background-color: #595959;
    color: #ffffff;
}

.seastrong-pump-selection-tool-table th,
.seastrong-pump-selection-tool-table td {
    text-align: center;
    border: 2px solid #6D6D6D;
}



.seastrong-pump-selection-tool-table img {
    margin: auto;
}

.gf_progressbar .percentbar_100 {
    display: none;
}

@media
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

    /* Force table to not be like tables anymore */
    table.seastrong-pump-selection-tool-table,
    table.seastrong-pump-selection-tool-table thead,
    table.seastrong-pump-selection-tool-table tbody,
    table.seastrong-pump-selection-tool-table th,
    table.seastrong-pump-selection-tool-table td,
    table.seastrong-pump-selection-tool-table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.seastrong-pump-selection-tool-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.seastrong-pump-selection-tool-table tr { border: 1px solid #ccc; }

    table.seastrong-pump-selection-tool-table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    table.seastrong-pump-selection-tool-table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    /*
    Label the data
    */
    table.seastrong-pump-selection-tool-table td:nth-of-type(1):before { content: "Current Pump"; }
    table.seastrong-pump-selection-tool-table td:nth-of-type(2):before { content: "SeaStrong Pump"; }
    table.seastrong-pump-selection-tool-table td:nth-of-type(3):before { content: "SeaStrong MSRP"; }
    table.seastrong-pump-selection-tool-table td:nth-of-type(4):before { content: "Other Notes"; }
}


/* image choices styles */
.gform_wrapper.gravity-theme.electrosea-product-model-selection-tool_wrapper .gform_page_footer.left_label {
    text-align: center;
    padding: 16px 0 10px 0;
}

body .gform_wrapper.electrosea-product-model-selection-tool_wrapper h2.gform_title {
    display: none !important;
}

.gform_wrapper .electrosea-tool-note {
    background-color: #e67e19;
    padding: 10px;
    border: 1px solid #000;
    margin: 0 !important;
}

.gfield.electrosea-tool-note p {
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
}

.gfield.electrosea-tool-note em {
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
}

/* covert radio fields into custom checkboxes */
.ss-selection-cell {
    position: relative;
}
.ss-product-selection {
    /* position: absolute; */
    right: 40px;
    top: 11px;
    width: 30px;
    height: 30px;
}
.image-radio-field .gfield_radio .gchoice .gfield-choice-input {
    visibility: hidden;
    position: absolute;
}

.image-radio-field .gfield_radio .gchoice .gfield-choice-input + label {
    width: 100%;
    color: #33549b;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}
@media (min-width: 992px) {
    .image-radio-field .gfield_radio .gchoice .gfield-choice-input + label {
        width: calc(50% - 8px);
    }
}

.image-radio-field .gfield_radio .gchoice .gfield-choice-input + label:after,
.ss-product-selection:after {
    content: "";
    width: 30px;
    height: 30px;
    pointer-events: none;
    transition: all .3s;
    text-align: center;
    line-height: 30px;
    color: red;
    background-color: #ffffff;
    float: right;
    border: 3px solid #33549b;
    margin-left: 10px;
}

.image-radio-field .gfield_radio .gchoice .gfield-choice-input:checked + label:after,
.ss-product-selection:checked:after {
    content: url('../images/checkmark-orange.svg');
}

.gform_wrapper.gravity-theme fieldset.gfield.image-choices-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gform_wrapper.gravity-theme fieldset.gfield.image-choices-field legend.gfield_label {
    color: #33539a;
    width: 100%;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.image-choices-field .gfield_radio {
    display: flex;
    gap: 40px;
}

.image-choices-field .gfield_radio .gchoice .gfield-choice-input {
    visibility: hidden;
    position: absolute;
}

.image-choices-field .gfield_radio .gchoice {
    flex: 1;
}

.image-choices-field .gfield_radio .gchoice .gfield-choice-input + label {
    text-align: center;
    border: 7px solid #659cd9;
}

.image-choices-field .gfield_radio .gchoice .gfield-choice-input:checked + label {
    border: 7px solid #fb9b1f;
}

.image-choices-field .gfield_radio .gchoice .gfield-choice-input+label {
    max-width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-choices-choice-text {
    padding: 16px;
    height: 54px;
    background-color: #659cd9;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
}

.image-choices-field .gfield_radio .gchoice .gfield-choice-input:checked + label .image-choices-choice-text {
    color: #33549b;
}

.image-choices-field-with-check .gfield_radio .gchoice .gfield-choice-input + label {
    border: 7px solid #33549b;
}

.image-choices-field-with-check .image-choices-choice-text {
    height: 54px;
    background-color: #ffffff;
    color: #33549b;
    font-weight: bold;
    font-size: 20px;
}

.image-choices-field.image-choices-field-with-check .gfield_radio .gchoice .gfield-choice-input + label:before {
    content: "";
    width: 30px;
    height: 30px;
    pointer-events: none;
    transition: all .3s;
    text-align: center;
    line-height: 30px;
    color: red;
    background-color: #ffffff;
    float: left;
    border: 3px solid #33549b;
    margin: 10px;
}

.image-choices-field.image-choices-field-with-check .gfield_radio .gchoice .gfield-choice-input:checked + label:before {
    content: url('../images/checkmark-orange.svg');
}

.gform_wrapper.gravity-theme .gfield.gfield_html_formatted.electrosea-model-selection,
.gform_wrapper.gravity-theme .gfield.gfield_html_formatted.electrosea-model-strainers-selection,
.gform_wrapper.gravity-theme .gfield.gfield_html_formatted.electrosea-model-clskitmodel-selection {
    display: flex;
    margin: 0;
    width: 100%;
    justify-content: center;
}

/* model-selection-table styles */
table#model-selection-table #vbrand-logo {
    vertical-align: middle;
    height: 100px;
    background: left center no-repeat;
    background-size: contain;
}

table#model-selection-table > thead th {
    background-color: #595959;
    color: #fff;
    text-align: center;
}

table#model-selection-table tr.vmodel-row {
    background-color: #0b0b0b;
    color: #fff;
}

table#model-selection-table #vmodel {
    text-align: center;
}

table#model-selection-table td.dt-center {
    font-weight: 600;
    text-align: center;
}

table#model-selection-table table.model-details th {
    background-color: #00B0F0;
    color: #fff;
}

table#model-selection-table table.model-details th,
table#model-selection-table table.model-details td {
    vertical-align: middle;
    text-align: center;
}

table#model-selection-table table.model-details td {
    font-weight: 600;
}

table#model-selection-table table.model-details select,
#find-clskitmodel-form  select {
    padding: 0;
}

div#models {
    width: 100%;
}

.electrosea-product-model-selection-tool h3.gsection_title {
    font-size: 20px;
}

.gform_addtocart_button {
    background-color: var( --e-global-color-accent ) !important;
    color: white !important;
    border: 1px solid var( --e-global-color-accent ) !important;
    line-height: inherit;
    border-radius: 0;
    white-space: normal;
}

.gform_addtocart_button:hover {
    background-color: #fff !important;
    color: var( --e-global-color-accent ) !important;
    box-shadow: none;
    border: 1px solid var( --e-global-color-accent ) !important;
    line-height: inherit;
    border-radius: 0;
    white-space: normal;
}

/* tooltip */

.electrosea-product-model-selection-tool .woocommerce-help-tip {
    margin-left: 5px;
    vertical-align: middle;
    cursor: help;
    line-height: 1;
    position: relative;
    top: 0;
}

.electrosea-product-model-selection-tool .woocommerce-help-tip::after {
    font-family: Dashicons;
    speak: never;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    text-indent: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    content: "\f348";
    cursor: help;
    font-size: 20px;
}

#tiptip_holder{
    display:none;
    z-index:8675309;
    position:absolute;
    top:0;
    pointer-events:none;
    left:20px;
}

#tiptip_holder.tip_top{
    padding-bottom:5px
}
#tiptip_holder.tip_top #tiptip_arrow_inner{
    margin-top:-7px;
    margin-left:-6px;
    border-top-color:#33549b
}
#tiptip_holder.tip_bottom{
    padding-top:5px
}
#tiptip_holder.tip_bottom #tiptip_arrow_inner{
    margin-top:-5px;
    margin-left:-6px;
    border-bottom-color:#33549b
}
#tiptip_holder.tip_right{
    padding-left:5px
}
#tiptip_holder.tip_right #tiptip_arrow_inner{
    margin-top:-6px;
    margin-left:-5px;
    border-right-color:#33549b
}
#tiptip_holder.tip_left{
    padding-right:5px
}
#tiptip_holder.tip_left #tiptip_arrow_inner{
    margin-top:-6px;
    margin-left:-7px;
    border-left-color:#33549b;
}
#tiptip_content,.chart-tooltip,.wc_error_tip{
    color:#fff;
    font-size:.8em;
    line-height: 1.6em;
    max-width:300px;
    background:#33549b;
    text-align:center;
    border-radius:3px;
    padding:3px;
    box-shadow:0 1px 3px rgba(0,0,0,.2)
}
#tiptip_content code,.chart-tooltip code,.wc_error_tip code{
    padding:1px;
    background:#888
}
#tiptip_arrow,#tiptip_arrow_inner{
    position:absolute;
    border-color:transparent;
    border-style:solid;
    border-width:6px;
    height:0;width:0
}
