/* myAccount styles */

div#myaccount-btn {
    display: flex;
    border: 4px solid var(--color-myaccount-primary);
    border-radius: 14px;
    padding: 4px 8px;
    justify-content: space-between;
    width: fit-content;
}

    div#myaccount-btn a.btn {
        background-color: var(--color-myaccount-primary);
        border-bottom-color: var(--color-myaccount-deep);
        text-align: center;
    }

        div#myaccount-btn a.btn:hover {
            background-color: var(--color-myaccount-deep);
        }

    div#myaccount-btn img.img-fluid {
        width: 160px;
        margin: 0.75rem;
    }

}

/* cpe-search-filter */

div.cpe-search-filter,
#dform_container div.cpe-search-filter {
    display: flex;
    flex-direction: column;
}

    div.cpe-search-filter label,
    #dform_container div.cpe-search-filter label {
        font-size: var(--font-size-h3);
        width: auto;
        margin-bottom: 0;
    }

    div.cpe-search-filter input {
        border: 2px solid var(--color-secondary);
    }

    div.cpe-search-filter #search-result-label,
    #dform_container div.cpe-search-filter #search-result-label {
        padding: 4px 4px 4px 8px;
    }

/* cpe-page-intro styles*/

#cpe-page-intro {
    border-bottom: 1px solid var(--border-color);
    margin: 0 0 12px 0;
}

    #cpe-page-intro h1 {
        margin-top: 0;
        margin-bottom: 0;
    }

    #cpe-page-intro p {
        margin: 12px 0;
    }

    #cpe-page-intro h3 {
        margin-bottom: 0;
    }

    #cpe-page-intro a {
        margin-bottom: 4px;
    }


/* Start of stuff taken from vof-style-08.css */

#dform_container .citizen-case-table .dform_th {
    background: var(--color-info);
    color: var(--color-white);
    font-weight: normal;
}

#dform_container .citizen-case-table .dform_tr,
#dform_container .citizen-case-table .dform_th,
#dform_container .citizen-case-table .dform_td {
    padding: 8px 15px;
}


/********************************************/
/*********** Verint widget styles ***********/
/********************************************/

#widget_ServiceCollection div.serviceNavigationAnchor {
    border-bottom: none;
}

#widget_ServiceCollection div.serviceListTable {
    border-bottom: 1px solid var(--color-grey);
    margin-bottom: 10px;
    display: inline-block;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 360px;
}

    /* Optional: Add a hover effect to the whole card to show it's clickable */
    #widget_ServiceCollection div.serviceListTable:hover {
        background-color: #f9f9f9;
        cursor: pointer;
    }

    #widget_ServiceCollection div.serviceListTable div.category {
        padding: 12px 22px 12px 12px;
    }

    #widget_ServiceCollection div.serviceListTable .category a::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1; /* Ensures it sits on top of the text and icons */
    }

    #widget_ServiceCollection div.serviceListTable a {
        display: block;
        width: auto;
        text-decoration: none;
        padding: 4px 0;
        margin: 0;
    }

        #widget_ServiceCollection div.serviceListTable.header2,
        #widget_ServiceCollection div.serviceListTable a h2 {
            font-size: var(--font-size-h3);
            color: var(--color-link);
            text-decoration: underline;
            text-decoration-thickness: 2px;
            margin-bottom: 12px;
            font-weight: 600;
        }

        #widget_ServiceCollection div.serviceListTable a:focus h2 {
            color: var(--heading-3-color);
            text-decoration: none;
        }

        #widget_ServiceCollection div.serviceListTable a:hover h2 {
            color: var(--color-green);
            text-decoration: none;
        }

    #widget_ServiceCollection div.serviceListTable .category:has(a:focus) {
        border-bottom: 3px solid var(--color-link);
        background-color: var(--color-focus);
        border-radius: 0;
        outline: none;
        text-decoration: none;
        border-bottom-color: var(--color-secondary);
    }

        #widget_ServiceCollection div.serviceListTable .category:has(a:focus) a {
            border-bottom: none;
            color: initial;
        }

    #widget_ServiceCollection div.serviceListTable a p {
        font-size: var(--font-size-medium);
        margin: 0 0 12px 0;
    }

/********************************************/
/***********     misc             ***********/
/********************************************/

span.bottom-right-arrow {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 12px;
    height: 12px;
    border-top: 3px solid #555;
    border-right: 3px solid #555;
    transform: rotate(45deg);
    display: inline-block;
}

a:not([class*="toolbar"]):focus {
    box-shadow: none;
}

div#nearMeDiv {
    margin-top: 8px;
}

    div#nearMeDiv .nearMeItem {
        border-top: 1px solid darkgray;
        margin-bottom: 18px;
    }

div:has(+ #dform_widget_html_nearMeInfo) h2 {
    margin-bottom: 0;
}

div#nearMeDiv .nearMeItem h3 {
    margin: 0;
}

div#nearMeDiv .nearMeItem p {
    margin: 0;
}

.prefix-circle-grey,
.prefix-diamond-red,
.prefix-triangle-blue,
.prefix-square-brown,
.prefix-circle-green {
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

    .prefix-circle-grey::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        left: 0;
        background-color: var(--color-grey); /* #6c757d; */
        border-radius: 50%;
    }

    .prefix-circle-green::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        left: 0;
        background-color: var(--color-caerlaverock-green); /* #4AA14E; */
        border-radius: 50%;
    }

    .prefix-diamond-red::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        left: 0;
        width: 10px;
        height: 10px;
        background-color: car(--color-danger); /* #dc3545; */
    }

    .prefix-triangle-blue::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        left: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 10px solid #007bff;
    }

    .prefix-square-brown::before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        left: 0;
        background-color: var(--color-warning-darken); /* #8b4513; */
    }

div.serviceList nav.inlineServiceList,
div.serviceList div.serviceNavigationAnchor {
    display: none;
}

.serviceList {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#widget_ahtm_services .services-filter-bar {
    margin-bottom: 20px;
}

#dform_cpe_mycases > div.container {
    padding: unset !important;
}

@media only screen and (max-width: 768px) {
    #widget_ServiceCollection div.serviceListTable {
        /*width: 44%;*/
    }

    #widget_ahtm_services {
        margin: 10px 10px 30px;
    }

    div#widget_Navigation {
        margin: 0;
    }

    #widget_Navigation .menu {
        padding: 0;
    }

    #dform_container div.service-list li {
        width: 47%;
    }
}

@media only screen and (max-width: 576px) {
    #widget_ServiceCollection div.serviceListTable {
        width: 96%;
        margin-bottom: 0px;
    }

    #dform_container div.service-list li {
        width: 96%;
    }

    div#myaccount-btn {
        flex-direction: column;
    }

        div#myaccount-btn img.img-fluid {
            margin: 0 auto;
        }
}
