﻿/*.page-id-122891 .template-header, .page-id-122891 .header-inner {
    display: none !important;
}*/

.template-header {
    display: none !important;
}

html {
    --maincolor: #004190;
}


.home-search::after {
    display: none !important;
}

.home .border-top {
    border-top: 0 !important;
}

/*body, .txt-content  {
    font-family: "PFEncoreSansPro-Bold", sans-serif !important;
}*/

.coa-logo-outer {
	position: relative;
	margin: 0px auto 10px auto;
	display: inline-block;
}

.search-heading {
	font-size: 46px;
    font-family: "PFEncoreSansPro-Bold", sans-serif !important;
	margin: 30px auto 15px auto;
    display: inline-block;
    color: var(--maincolor);
    letter-spacing: 1.2px;
}

.home-search .search-heading {
    color:white;
}


.search-result {
    margin-bottom: 35px;
}

.ai-link {
    color: var(--maincolor) !important;
}

.search-result a {
    color: var(--maincolor);
}

.search-result h3 {
    font-size: 16px;
}

.search-result p {
    font-size: 16px;
}

body {
    background: #fff;
}

.form {
    position: relative;
}

.form .fa-search, .fa-times {
    color: #9ca3af;
}

.form span {
    position: absolute;
    right: 17px;
    top: 10px;
    padding: 2px;
    border-left: 1px solid #d1d5db;
    font-size: 20px;
}

.left-pan i {
    padding-left: 10px;
}

.form-input {
    height: 55px;
    text-indent: 20px;
    border-radius: 10px;
    font-size: 16px;
}

.form-input:focus {
    box-shadow: none;
}

.fixedSearchBarButton {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: none;
    color: black;
}

.coa-ai {
	margin-bottom: 100px;
}

.home-search .coa-ai{
    display: grid;
    top: -100px;
    position: relative;
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

#aiResult {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

#aiResults {
    padding: 20px;
    margin: 30px 0;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    font-weight: 300;
    color: black !important;
    display: none;
    border-radius: 10px;
}

#aiResults.active {
	background: #7cbae440;
	max-width: 965px;
	margin-left: 0;
}

#aiResults, #searchResults {
    max-width: 1024px;
    color: #666;
}

#searchResults {
    margin-top: 40px;
 }

.search-result h3 {
    font-weight: 600;
}

.coa-logo {
    max-width: 300px !important;
    margin: 30px 0px;
}

#searchQueryInput {
    border-radius: 50px;
    border: 1px solid #dfe1e5;
    margin-bottom: 20px;
}

#searchQueryInput:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

#submitButton, #deleteQueryButton {
    border: none;
    background: transparent;
}

.coa-search-outer .form span {
    border: none;
}

#loadingIndicator {
    margin-top: 30px;
}

#loadingIndicator p {
	font-size: 20px;
	color: var(--maincolor);
}

.spinner-border {
    color: var(--maincolor)!important;
}

#aiResults.active p a.ailink {
    color: var(--maincolor);
}

.ai-generated {
    font-size: 12px;
    color: #666;
    margin: 20px 0;
}

.toggleContainer {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    margin-bottom: 16px;
}

.ai-result-outer.more {
    display: grid;

}

.no-results {
    text-align: center;
    font-size: 16px;
}

.txt-content h2 {
    color: #004190;
}

/*  Toggle Switch  */
.toggleSwitch span span {
    display: none;
}

.toggleSwitch {
    display: inline-block;
    height: 16px;
    position: relative;
    overflow: visible;
    padding: 0;
    cursor: pointer;
    width: 200px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 30px;
    height: 40px;
    user-select: none;
}

.toggleSwitch * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.toggleSwitch label,
.toggleSwitch > span {
    line-height: 20px;
    height: 20px;
    vertical-align: middle;
}

.toggleSwitch input:focus ~ a,
.toggleSwitch input:focus + label {
    outline: none;
}

.toggleSwitch label {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
}

.toggleSwitch input {
    position: absolute;
    opacity: 0;
    z-index: 5;
}

.toggleSwitch > span {
    position: absolute;
    left: 0;
    width: calc(100% - 6px);
    margin: 0;
    text-align: left;
    white-space: nowrap;
    margin: 0 3px;
}

.toggleSwitch > span span {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: block;
    width: 50%;
    margin-left: 50px;
    text-align: left;
    font-size: 16px;
    width: auto;
    left: 0;
    top: 1px;
    opacity: 1;
    width: 40%;
    text-align: center;
    line-height: 34px;
}

.toggleSwitch a {
    position: absolute;
    right: 50%;
    z-index: 4;
    display: block;
    top: 3px;
    bottom: 3px;
    padding: 0;
    left: 3px;
    width: 50%;
    background-color: #0d6efd;
    border-radius: 20px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toggleSwitch > span span:first-of-type {
    color: #FFF;
    opacity: 1;
    left: 0;
    margin: 0;
    width: 50%;
}

.toggleSwitch > span span:last-of-type {
    left: auto;
    right: 0;
    color: #999;
    margin: 0;
    width: 50%;
}

.toggleSwitch > span::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: -2px;
    border-radius: 30px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.toggleSwitch input:checked ~ a {
    left: calc(50% - 3px);
}

      
.toggleSwitch input:checked ~ span span:first-of-type {
    left: 0;
    color: #999;
}

.toggleSwitch input:checked ~ span span:last-of-type {
    color: #FFF;
}

/* Switch Sizes */

.toggleSwitch.large {
    width: 60px;
    height: 27px;
}

.toggleSwitch.large a {
    width: 27px;
}

.toggleSwitch.large > span {
    height: 29px;
    line-height: 28px;
}

.toggleSwitch.large input:checked ~ a {
    left: 41px;
}

.toggleSwitch.large > span span {
    font-size: 1.1em;
}

.toggleSwitch.large > span span:first-of-type {
    left: 50%;
}

.toggleSwitch.xlarge {
    width: 80px;
    height: 36px;
}

.toggleSwitch.xlarge a {
    width: 36px;
}

.toggleSwitch.xlarge > span {
    height: 38px;
    line-height: 37px;
}

.toggleSwitch.xlarge input:checked ~ a {
    left: 52px;
}

.toggleSwitch.xlarge > span span {
    font-size: 1.4em;
}

.toggleSwitch.xlarge > span span:first-of-type {
    left: 50%;
}

.beta {
    position: absolute;
    right: 0;
    top: 0;
    background: #e0e0e0;
    font-size: 10px !important;
    border-radius: 8px !important;
    right: -40px !important;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    pointer-events: none;
}
            
/*  End Toggle Switch  */


/* HTML: <div class="loader"></div> */
.loader {
    height: 15px;
    border-radius: 10px;
    width: 40%;
    --c: no-repeat linear-gradient(#004190 0 0);
    background: var(--c),var(--c),#dae0f1;
    background-size: 60% 100%;
    animation: l16 3s infinite;
}


.frequent-queries-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 10px;
    row-gap: 10px;
    justify-content: center;
}

.frequent-queries-list .frequent-queries {
    border-radius: 30px;
    background-color: #004190;
    padding: 12px 16px;
    font-size: 13px;
    cursor: pointer;
    color: white;
}

.frequent-queries:hover {
    color: white;
    background-color: #7ab7e5 !important;
}

.ms-1 {
    font-size: 16px;
}

.row.row-gap-30 {
    justify-items: center !important;
    display: grid !important;
}

.pad-right {
    padding-right: 0px !important;
}


section, .section.pad-right.txt-content {
    padding: 0px !important;
}

.new-search-button {
    border-radius: 30px;
    background-color: #dbeafc;
    padding: 9px 20px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    display: none;
}

.new-search-button:hover {
    background-color: #c7defa;
}

.link-container {
    font-size: 12px;
    padding: 0px;
    transition: all 0.3s ease-in-out;
    /*display: none;*/
    height: 0px;
    opacity: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
}

.link-container.out-of-bounds {
    right: 0; 
    transform: translateX(-100%); 
}

.link-container.open {
    height: 70px;
    opacity: 1;
    width: 300px;
    background: white;
    padding: 14px;
    border: 1px solid #dadce0;
    border-radius: 14px;
    margin: 10px 0;
    line-height: 2;
}

#feedback-buttons {
	margin-top: 20px;
	font-size: 12px;
	display: flex;
	align-items: center;
}

#feedback-buttons span {
	margin-right: 10px;
}

.feedback-button.selected {
    border: 1px solid #004190 !important;
}


.feedback-button {
    font-size: 18px;
    color: #3367d6;
    border: none;
    background: none;
    border: 1px solid transparent;
}

.feedback-button:not([disabled]):hover, .feedback-button.selected {
	background: transparent;
	border: 1px solid #004190;
}

.feedback-button[disabled] {
    opacity: 0.8;
    pointer-events: none;
    border: 1px solid #dadce0;
}

.reference-title, .ai-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-title {
    font-weight: 400;
}

.feedback-icon-down::before {
    content: "";
    background-image: url("/wp-content/themes/iw_theme/assets/AI/images/thumb-down-outline.svg");
/*    background-image: url('/Resources/Images/thumb-down-outline.svg');
*/    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

i.feedback-icon-down {
    padding: 8px 6px;
    font-size: 13px;
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
}

.feedback-icon-up::before {
    content: "";
    background-image: url("/wp-content/themes/iw_theme/assets/AI/images/thumb-up-outline.svg");
/*    background-image: url('/Resources/Images/thumb-up-outline.svg');
*/    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

i.feedback-icon-up {
    padding: 8px 6px;
    font-size: 13px;
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
}

.md-link::before {
    content: "";
    background-image: url("/wp-content/themes/iw_theme/assets/AI/images/link.svg");
/*    background-image: url('/Resources/Images/link.svg');
*/    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

i.md-link {
    background: #c2e7ff;
    padding: 8px 6px;
    border-radius: 50%;
    font-size: 13px;
    width: 24px;
    height: 24px;
    display: block;
    position: relative;
}

.link-icon {
    /*margin-bottom: 5px;*/
    margin-left: 3px;
    cursor: pointer;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}


.references-container {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(0px, auto) );
	justify-content: left;
	column-gap: 20px;
}

.footer-promos {
    display: none;
}

.link-wrapper {
    display: inline;
}

.p {
    margin-bottom: 20px;
}

.p strong {
    color: #004190;
}

.txt-content h2 {
    color: #004190;
}

.frequent-queries-title {
    font-size: 18px;
    color: var(--maincolor);
    margin-bottom: 20px !important;
    margin-top: 30px !important;
    display: block;
}

.home-search .frequent-queries-title {
    color: white;
}

/***** responsive *****/

@media (max-width: 1024px) {
    #aiResults, #searchResults {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .coa-ai {
        padding: 0 20px;
    }

    #aiResults {
        line-height: 1.4;
        font-family: 17px;
    }
}


@media (max-width: 500px) {

    .coa-ai {
        padding: 0;
        top: -25px;
    }

    .frequent-queries-list .frequent-queries {
        padding: 8px 12px;
        font-size: 12px;
    }

    .search-heading {
        font-size: 28px;
    }

    .toggleContainer {
        display: grid;
        grid-template-columns: repeat(1, 100%);
        justify-items: center;
        row-gap: 10px;
    }

    .beta {
        font-size: 9px !important;
        border-radius: 4px !important;
        right: -32px !important;
        top: 50%;
        transform: translateY(-50%);
        padding: 4px 4px;
        pointer-events: none;
    }
}


@media (max-width: 767px) {
    #aiResults {
        display: none;
    }

        #aiResults.active {
            display: block;
        }
}

@media (max-width: 570px) {
    .page-wrapper .col.col-8.col-md-8.col-sm-12 {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .row.row-gap-30 {
        justify-items: start !important;
        display: block !important;
    }

    .ai-result-outer.more {
        display: block;
    }
}


@media (max-width: 500px) {
    .link-container.open {
        border: 1px solid #999;
        position: fixed;
        left: 50%;
        top: 65%;
        transform: translateX(-50%);
    }

    .link-container {
        transition: none;
    }
}

/***animations***/

@keyframes l16 {
    0% {
        background-position: -150% 0,-150% 0
    }

    66% {
        background-position: 250% 0,-150% 0
    }

    100% {
        background-position: 250% 0, 250% 0
    }
}

@keyframes slide-out {

    0% {
        height: 70px;
    }

    100% {
        height: 0px;
    }
}

@keyframes slide-in {

    0% {
        height: 0px;
    }

    100% {
        height: 70px;
    }
}

