/*
    ATLAS Intent Widget CSS
    Copyright (c) 2020 Canadian Tire Corporation
*/
/* Common styles */

/* End common styles */

.autocomplete-suggestions-container.ctr-aiw {
    position: absolute;
    min-height: 570px;
    z-index: 9998;
    box-sizing: border-box;
    text-align: left;
    cursor: default;
    border: 1px solid #ccc;
    background: #fff;
    font-family: "Roboto", Arial, sans-serif;
    box-shadow: 0 8px 8px 0 rgba(47, 47, 47, 0.33);
    display: none;
}

.autocomplete-suggestions-container.aiw-fixed {
    position: fixed;
}

.autocomplete-product-grid-suggestions-container {
  position: absolute;
  min-height: 570px;
  z-index: 9999;
  overflow: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: left;
  cursor: default;
  border: 1px solid #ccc;
  background: #fff;
  font-family: "Roboto",Arial,sans-serif;
}

/* core styles should not be changed */
.autocomplete-suggestions.ctr-aiw {
    position: relative;
    display: none;
    top: 0 !important;
    z-index: 9999;
    min-height: auto;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: left;
    cursor: default;
    background: #fafafa;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    color: #323232;
    font-family: "Roboto", Arial, sans-serif;
}

.ctr-aiw .autocomplete-suggestion-title {
    color: #323232;
    font-size: 16px;
    font-weight: bold;
    padding: 20px 10px 10px 20px;
    font-family: "Roboto", Arial, sans-serif;
}

.ctr-aiw .autocomplete-suggestion {
    display: block;
    position: relative;
    line-height: 26px;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: break-word;
    height: 26px;
    padding: 0 20px 0 20px;
    cursor: pointer;
    /*border-bottom: 0 solid #ccc;*/
    font-family: "Roboto", Arial, sans-serif;
    font-size: .775rem;
    font-style: normal;
    font-weight: normal;
    color: #323232;
}

.autocomplete-product-grid-suggestions.ctr-aiw {
    /* position: absolute; */
    background: #fff;
    height: auto;
    font-family: "Roboto", Arial, sans-serif;
    font-size: .875rem;
    font-style: normal;
    font-weight: normal;
    display: block;
    cursor: pointer;
    top: 0;
}

.autocomplete-product-grid-suggestion.ctr-aiw {
    display: flex;
    position: relative;
    box-sizing: border-box;
    background: #fff;
    height: 100px;
    padding: 0 10px;
    margin: 5px 1px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: .775rem;
    font-style: normal;
    font-weight: normal;
    border-bottom: 1px solid #efefef;
}

.ctr-aiw .autocomplete-product-grid-description {
    display: block;
    padding: 5px 10px 5px 5px;
    color: #323232;
}

.ctr-aiw .autocomplete-suggestion.selected:after {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAANCAYAAACUwi84AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAjBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWNvcm4gdmVyc2lvbiA0LjUuODwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpDb21wcmVzc2lvbj41PC90aWZmOkNvbXByZXNzaW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpDyBsAAAAA6ElEQVQYGW1ROw6CQBRkVzpqP42VhVFaCjrEE9jrCbyPhb1HsAbpCCQkJMbGqIl6BWgI4AxRAsSXTDK7M/ve7K4Iw3AqpdxnWbYxTfOtdEqWZbkDLFVVT57njTu6IouiWAMXCBNN09yuSfCE7/tDjHGAObrdhRC2YRhPapWBJI7jAXI4oDrwABY01QZsKFEU9THOBa1M6Gi3DF/THKYzODW3x81fcUye50esBwDHrGoDg7I9AurNoJKnm7fA8pamaRWQmgiCYMQrgs8oJkliW5b1oshSgQMwQ/srsITYem4+9RY4Ufz3Fx8dAHf96fgjYwAAAABJRU5ErkJggg==);
    width: 8px;
    height: 20px;
    background-color: transparent;
    background-repeat: no-repeat;
    overflow: hidden;
    position: absolute;
    top: 8px;
    right: 17px;
    display: block;
    content: '';
    filter: grayscale(100%) sepia(71%) brightness(63%) hue-rotate(69deg) saturate(1000%) contrast(71%) invert(8%);
    -webkit-filter: grayscale(100%) sepia(71%) brightness(63%) hue-rotate(69deg) saturate(1000%) contrast(71%) invert(8%);
    -moz-filter: grayscale(100%) sepia(71%) brightness(63%) hue-rotate(69deg) saturate(1000%) contrast(71%) invert(8%);
}

.ctr-aiw .autocomplete-thumbnail-wrp {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    flex: 0 0 auto;
    height: 100px;
    width: 100px;
    padding: 1px 10px 3px;
    box-sizing: border-box;
    margin-right: 15px;
}

.ctr-aiw .autocomplete-thumbnail {
    max-width: 100px;
    max-height: 100%;
    float: none;
    margin: 0;
}

.autocomplete-more-results {
    height: 30px;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    width: 60%;
    right: 0;
    position: absolute;
    bottom: 0;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    z-index: inherit;
}

.autocomplete-more-results.selected {
    color: #000;
}

.ctr-aiw p.autocomplete-product-grid-price {
    padding: 0 0 0 4px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    min-height: 21px;
}

.ctr-aiw .was-price {
    color: #666;
    font-weight: 400;
    text-decoration: line-through;
}

.ctr-aiw .sale-price {
    margin-left: 8px;
    color: #000;
}

.ctr-aiw p.autocomplete-product-grid-name {
    padding: 0 0 0 4px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    max-height: 100%;
    overflow: hidden;
    -ms-word-break: break-word;
    word-wrap: break-word;
}

.autocomplete-suggestion b {
    font-family: "Roboto", Arial, sans-serif;
    font-weight: normal;
}

.autocomplete-suggestion b.category {
    font-family: "Roboto", Arial, sans-serif;
}

.autocomplete-suggestion .termin {
    font-family: "Roboto", Arial, sans-serif;

}

.ctr-aiw .autocomplete-suggestion.selected {
    font-family: "Roboto", Arial, sans-serif;
    background: transparent;
    color: #080;
}

.autocomplete-suggestion.selected:after {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAANCAYAAACUwi84AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAjBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWNvcm4gdmVyc2lvbiA0LjUuODwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpDb21wcmVzc2lvbj41PC90aWZmOkNvbXByZXNzaW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpDyBsAAAAA6ElEQVQYGW1ROw6CQBRkVzpqP42VhVFaCjrEE9jrCbyPhb1HsAbpCCQkJMbGqIl6BWgI4AxRAsSXTDK7M/ve7K4Iw3AqpdxnWbYxTfOtdEqWZbkDLFVVT57njTu6IouiWAMXCBNN09yuSfCE7/tDjHGAObrdhRC2YRhPapWBJI7jAXI4oDrwABY01QZsKFEU9THOBa1M6Gi3DF/THKYzODW3x81fcUye50esBwDHrGoDg7I9AurNoJKnm7fA8pamaRWQmgiCYMQrgs8oJkliW5b1oshSgQMwQ/srsITYem4+9RY4Ufz3Fx8dAHf96fgjYwAAAABJRU5ErkJggg==);
    width: 8px;
    height: 20px;
    background-color: transparent;
    background-repeat: no-repeat;
    overflow: hidden;
    position: absolute;
    top: 8px;
    right: 17px;
    display: block;
    content: '';
    filter: grayscale(100%) sepia(71%) brightness(63%) hue-rotate(69deg) saturate(1000%) contrast(71%) invert(8%);
    -webkit-filter: grayscale(100%) sepia(71%) brightness(63%) hue-rotate(69deg) saturate(1000%) contrast(71%) invert(8%);
    -moz-filter: grayscale(100%) sepia(71%) brightness(63%) hue-rotate(69deg) saturate(1000%) contrast(71%) invert(8%);
}

.autocomplete-suggestion:after {
    display: none;
    content:''
}

.ctr-aiw .autocomplete-suggestion.selected b {
    font-family: "Roboto", Arial, sans-serif;
    color: #080;
}

.ctr-aiw .autocomplete-suggestion.selected .termin {
    color: #080;
    font-family: "Roboto", Arial, sans-serif;
}

.aiw-no-results {
    display: none;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 15px;
    text-transform: uppercase;
    font-weight: bold;
    color: #444;
    font-size: .775rem;
    -ms-word-break: break-word;
    word-wrap: break-word;
    line-height: 130%;
}

.autocomplete-product-grid-suggestion.selected::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background: #d1d1d1;
    top: -4px;
    bottom: 0;
    margin: auto;
}

.autocomplete-product-grid-suggestion.selected::after {
    right: 1px;
}

.autocomplete-product-grid-suggestion.selected .autocomplete-product-grid-name {
    color: #c00;
    text-decoration: none;
}

.autocomplete-product-grid-suggestion.selected .autocomplete-thumbnail {
    opacity: 0.85;
}

@media only screen and (min-width: 640px) {
    .autocomplete-suggestions {
        height: 570px;
    }
}

@media only screen and (max-width: 767px) {
    .autocomplete-product-grid-suggestions,
    .autocomplete-more-results {
        display: none !important;
    }

    .autocomplete-suggestions {
        width: 100% !important;
    }

    .autocomplete-suggestion.suggested-item,
    .autocomplete-suggestion.category-item {
        margin: 0 15px 0 15px;
    }

    .suggested-item:not(:last-child),
    .category-item:not(:last-child) {
        border-bottom: 1px solid #ccc;
    }

    .autocomplete-suggestion.category-item,
    .autocomplete-suggestion.suggested-item {
        height: 32px;
        line-height: 32px;
    }

    .autocomplete-suggestion.category-item .termin,
    .autocomplete-suggestion.suggested-item b,
    .autocomplete-suggestion.category-item,
    .autocomplete-suggestion.suggested-item {
        font-size: 1rem;
        vertical-align: inherit;
    }

    .autocomplete-suggestions-container.ctr-aiw {
        min-height: auto;
        top: 87px !important;
        min-width: calc(100vw - 16px) !important;
        margin-left: -268px;
        margin-top: 1px;
    }

    .autocomplete-suggestions.ctr-aiw {
        margin: 0;
        padding-bottom: 12px;
    }

    .ctr-aiw .autocomplete-thumbnail-wrp {
        width: 75px;
    }

    .ctr-aiw p.autocomplete-product-grid-name {
        font-size: 12px;
        line-height: 14px;
    }

    .ctr-aiw p.autocomplete-product-grid-price {
        font-size: 12px;
        min-height: 19px;
    }
    
    .autocomplete-suggestion.selected:after {
        background-image: none !important;
    }
}

@media only screen and (max-width: 359px) {
    .autocomplete-suggestions-container.ctr-aiw {
        margin-left: -228px;
    }
}

.aiw-mobile-view .autocomplete-product-grid-suggestions {
    display: none !important; 
}

.aiw-mobile-view .autocomplete-suggestions {
    width: 100% !important;
}

.aiw-mobile-view.autocomplete-suggestions-container {
    min-height: auto;
}

.aiw-mobile-view .autocomplete-suggestion.suggested-item,
.aiw-mobile-view .autocomplete-suggestion.category-item {
    margin: 0 15px 0 15px;
}

.aiw-mobile-view .suggested-item:not(:last-child),
.aiw-mobile-view .category-item:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.aiw-mobile-view .autocomplete-suggestion.category-item,
.aiw-mobile-view .autocomplete-suggestion.suggested-item {
    height: 32px;
    line-height: 32px;
}

.aiw-mobile-view .autocomplete-suggestion.category-item .termin,
.aiw-mobile-view .autocomplete-suggestion.suggested-item b,
.aiw-mobile-view .autocomplete-suggestion.category-item,
.aiw-mobile-view .autocomplete-suggestion.suggested-item {
    font-size: 1rem;
    vertical-align: inherit;
}

.aiw-mobile-view .autocomplete-suggestion.selected:after {
    background-image: none !important;
}
