/* Saved Searches Section Styles */

.saved-searches {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
}

.saved-searches button {
    border: none;
    background: none;
    color: inherit;
    padding: 0;
    text-align: left;
}

.saved-searches--dropdown {
    position: relative;
}

button.saved-searches--view-button {
    display: flex;
    height: 60px;
    padding: 0px 24px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #667085;
    background: #F4F5F7;
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

button.saved-searches--save-button {
    display: flex;
    width: 100%;
    margin-top: 7px;
    height: 60px;
    padding: 0px 24px;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #005CC8;
    background: #FFF;
    color: #005CC8;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
}

button.saved-searches--save-button:hover:not(:disabled) {
    border-color: #002D53;
    background: #004FA1;
    color: #fff;
}

button.saved-searches--save-button:hover:not(:disabled) svg path {
    stroke: #fff;
}

.saved-searches--save-button:disabled,
.saved-searches--view-button:disabled {
    opacity: 0.6;
}

.saved-searches--view-button:hover:not(:disabled) {
    border-color: #101828;
    background: #475467;
    color: #fff;
}

.saved-searches--view-button:hover:not(:disabled) path {
    stroke: #fff;
}

.saved-searches--view-button.active {
    border-color: #005CC8;
    background: #CFE0F5;
    color: #005CC8;
    box-shadow: 0px 1px 2px 0px rgba(0, 92, 200, 0.05), 0px 0px 0px 4px rgba(0, 92, 200, 0.25);
}

.saved-searches--view-button.active path {
    stroke: #005CC8;
}

.saved-searches--popup {
    position: absolute;
    top: 100%;
    width: 100%;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0px 24px 48px -12px rgba(16, 24, 40, 0.18);
    overflow: hidden;
    z-index: 1;
}

.saved-searches--popup-container {
    height: 100%;
    overflow: auto;
    max-height: 400px;
}

.saved-searches--popup ul {
    list-style: none;
    margin: 0;
    display: flex;
    padding: 10px;
    flex-direction: column;
    align-items: center;
}

.saved-searches--popup li {
    width: 100%;
    padding: 0;
    margin: 0;
}

button.saved-searches--list-item-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    align-self: stretch;
    padding: 6px;
    width: 100%;
    border-bottom: 1px solid transparent;
}

button.saved-searches--list-item-button.active {
    border-color: #00359E;
    background: #BFD6F1;
}

.saved-searches--list-item-button:not(.active):hover {
    border-bottom: 1px solid #98A1B2;
    background: #EAECF0;
}

.saved-searches--list-item-button:not(.active):hover > svg path {
    stroke: #155EEF;
}

.saved-searches--list-item-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 0 0;
}

.saved-searches--list-item-button-label {
    color: #101828;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.saved-searches--alert-info-frequency {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #101828;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.saved-searches--alert-info-frequency.disabled {
    color: #101828;
}

.saved-searches--currently-viewing-text {
    display: flex;
    padding: 0px 6px;
    justify-content: flex-end;
    align-items: center;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    background: #528BFF;
    border-radius: 5px;
}

.saved-searches--heading {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 12px;
}

.truncate-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

button.saved-searches--currently-viewing-card {
    display: flex;
    padding: 12px;
    align-items: center;
    border-bottom: 1px solid #F2F4F7;
    background: #FCFCFD;
    width: 100%;
}

.saved-searches--currently-viewing-card:hover {
    border-color: #2970FF;
    background: #EAECF0;
}

.saved-searches--currently-viewing-card-content {
    display: flex;
    padding: 6px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.saved-searches--currently-viewing-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 0 0;
}

input.saved-searches--form-label-input {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    color: #101828;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #DCDCDD;
    background: #FFF;
    outline: 0;
}

input.saved-searches--form-label-input:focus {
    border-color: #005CC8;
    box-shadow: 0px 1px 2px 0px rgba(0, 92, 200, 0.05), 0px 0px 0px 4px rgba(0, 92, 200, 0.25);
}

input.saved-searches--form-label-input::placeholder {
    color: #868686;
}

.saved-searches--form-alert-enabled {
    display: flex;
    padding: 12px 0px;
    align-items: center;
    gap: 24px;
}

.saved-searches--form-label {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.saved-searches--form-radio-button-group {
    display: flex;
    gap: 8px;
}

.saved-searches--form-alert-enabled-label {
    flex: 1;
}

.saved-searches--form-radio-fields {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-top: 1px solid #667085;
    background: #FCFCFD;
    user-select: none;
}

.saved-searches--form-radio-fields label {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.saved-searches--form-radio-button-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-searches--form-footer {
    display: flex;
    padding: 12px 6px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #667085;
    background: #EAECF0;
}

.saved-searches--form-footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex: 1 0 0;
}

button.saved-searches--form-cancel-button,
button.saved-searches--form-delete-button,
button.saved-searches--form-close-button,
button.saved-searches--form-submit-button {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    border-radius: 8px;
}

button.saved-searches--form-close-button,
button.saved-searches--form-submit-button {
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

button.saved-searches--form-cancel-button {
    color: #475467;
}

button.saved-searches--form-cancel-button:hover {
    background: #F9FAFB;
}

button.saved-searches--form-delete-button {
    color: #A30C25;
}

button.saved-searches--form-delete-button:hover {
    background: #FDD8DE;
}

button.saved-searches--form-close-button {
    border: 1px solid #344054;
    background: #FFF;
    color: #344054;
}

button.saved-searches--form-close-button:hover {
    background: #F9FAFB;
    color: #1D2939;
}

button.saved-searches--form-submit-button {
    border: 1px solid #155EEF;
    background: #155EEF;
    color: #fff;
}

button.saved-searches--form-submit-button:hover {
    border-color: #0040C1;
    background: #0040C1;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-switch--label {
    color: #667085;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.toggle-switch--group {
    position: relative;
    display: flex;
}

.toggle-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
}

.toggle-switch label {
    position: relative;
    width: 36px;
    height: 20px;
    display: inline-block;
    background: #F2F4F7;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

.toggle-switch label:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #FFF;
    border-radius: 50%;
    box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.10), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
}

.toggle-switch input:checked + label {
    background: #155EEF;
}

.toggle-switch input:checked + label:after {
    left: auto;
    right: 2px;
}

.saved-search-limit-badge-container {
    padding: 5px 12px 5px 12px;
    background: #FFF;
    margin-top: 6px;
    box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
}

.saved-search-limit-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.saved-search-limit-badge p {
    margin: 0;
}

.saved-search-limit-badge-header {
    color: #101828;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.saved-search-limit-badge-subheader {
    color: #475467;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.saved-search-limit-badge-number-of-searches-container {
    border-radius: 6px;
    padding: 2px 6px;
    border: 1px solid #D0D5DD;
    background: #FFF;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
}

.saved-search-limit-badge-number-of-searches {
    color: #344054;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.saved-search-list-individual-list-item {
    display: flex;
    width: 100%;
}

.delete-saved-search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 0 8px 8px 0;
    border-bottom: 1px solid #F2F4F7;
    background: #F9FAFB;
}

.delete-saved-search-dropdown-item:hover {
    cursor: pointer;
    background-color: #FDD8DE;
}

