.heading-wrapper .heading h3 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.heading-wrapper .heading p {
    font-size: 16px;
}

.breadcrumb-heading-wrapper .breadcrumb-heading {
    font-size: 36px;
    margin-bottom: 15px;
}

.btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Button */
.btn-primary {
    position: static;
}

a.btn,
button.btn,
a.button,
button.button,
.btn {
    width: fit-content;
    height: fit-content;
    background-color: #97144d;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    text-align: center;
}

a.btn,
.btn:active,
button.button:hover,
button.button:focus,
button.button:focus-visible,
.btn:hover,
.btn:focus,
.btn:active,
.btn:disabled,
.btn:focus-visible,
:not(.btn-check)+.btn:active,
.btn:first-child:active {
    background-color: #97144d;
    box-shadow: none;
    outline: none;
    color: #ffffff;
    border: none;
}

.btn:disabled,
button[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

a.btn,
a.button {
    vertical-align: middle;
}

/* Button */

/* Dropdown Button */
.api-desc-btn-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap !important;
}

.dropdown-btn-wrapper {
    width: max-content;
    position: relative;
}

.dropdown-btn-wrapper .dropdown-btn-active {
    background: #97144D;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-wrap: nowrap;
    cursor: pointer;
    gap: 0 10px;
    align-items: center;
    justify-content: space-between;
}

.dropdown-btn-wrapper .dropdown-btn-active .fa-angle-down::before {
    content: "\f107" !important;
    padding-left: 0px;
}

.dropdown-btn-wrapper .dropdown-none {
    display: none !important;
}

.dropdown-btn-wrapper .dropdown-btn-open {
    width: 100%;
    background: #ffffff;
    display: block;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0px 0 5px 5px;
    position: absolute;
    z-index: 10;
    margin-top: 1px;
}

.dropdown-btn-wrapper .dropdown-btn-open .btn {
    border: none;
    border-radius: 0;
    outline: none;
    height: auto;
    padding: 10px;
    text-align: center;
    display: block;
    background-color: #fff;
    color: #97144D;
    width: 100%;
    font-family: 'Lato-Regular';
    font-weight: normal;
    text-align: left;
}

/* .dropdown-btn-wrapper .dropdown-btn-open .btn+.btn {
    border-top: 1px solid #97144D;
} */

.dropdown-btn-wrapper .dropdown-btn-open .btn:hover {
    background-color: #97144D !important;
    color: #fff !important;
    text-decoration: none;
}

/* Dropdown Button */

/* Drupal Input Field */
.journey-form {
    padding: 0 !important;
}

.journey-form .custom-form-element {
    margin-bottom: 20px;
}

.journey-form .custom-form-element label.bx--label {
    display: inline-block;
    margin-bottom: 10px;
    margin-top: 0;
}

.journey-form .custom-form-element label.bx--label .children {
    font-size: 16px;
    font-weight: bold;
    padding-right: 0;
}

.journey-form .custom-form-element .form-control {
    border: none;
    color: #000;
    border-bottom: 1px solid #ddd;
    background-color: #fefefe;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    padding: 8px 10px;
    height: 40px;
}

.journey-form.custom-form-element .form-control:focus {
    outline: none;
    box-shadow: none;
    border-bottom: 1px solid #97144d;
}

.journey-form .custom-form-element .form-control::placeholder {
    color: #000;
}

.journey-form .step-wrapper {
    padding-top: 10px;
}

.journey-form label.js-form-required::after,
form legend span.js-form-required::after {
    content: '*';
    color: red;
    margin-left: 1px;
}

/* Drupal Input Fileld */

/* Drupal Radio Button & Checkbox */
.journey-form legend {
    margin-bottom: 10px;
}

.journey-form legend .fieldset-legend {
    font-size: 16px;
    font-weight: bold;
    padding-right: 0;
    color: #000;
}

.journey-form .radio-wrapper {
    margin-bottom: 0;
}

.journey-form .radio-wrapper .custom-form-element {
    margin-bottom: 0;
}

.journey-form .radio-wrapper fieldset {
    width: auto;
    height: auto;
    margin-bottom: 20px;
}

.journey-form .radio-wrapper fieldset .fieldset-wrapper div[role="radiogroup"],
.read-write-form .radio-wrapper #edit-auth-type {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.journey-form .radio-wrapper div[role="radiogroup"] .custom-form-element label.option,
.read-write-form .radio-wrapper div[role="radiogroup"] .custom-form-element label.option {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.journey-form .radio-wrapper div[role="radiogroup"] .fieldset-wrapper span.children,
.read-write-form .radio-wrapper div[role="radiogroup"] .fieldset-wrapper span.children {
    padding-right: 0;
}

/* Drupal Radio Button & Checkbox */

/* Checkbox column & Checkbox inline*/
.journey-form .checkbox-column-wrapper .fieldset-wrapper .form-checkboxes,
.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes {
    margin-bottom: 20px;
}

.journey-form .checkbox-column-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element,
.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #ddd;
}

.journey-form .checkbox-column-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element+.custom-form-element {
    margin-top: 5px;
}

.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element+.custom-form-element {
    margin: 0;
}

.journey-form .checkbox-column-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element label.option,
.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element label.option {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.journey-form .checkbox-column-wrapper .fieldset-wrapper .form-checkboxes span.children,
.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes span.children {
    padding-right: 0;
}

.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
}

.journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element {
    width: calc(25% - 7.5px);
}

/* Drupal Radio Button & Checkbox */

/* Default */
.bx--radio-button:disabled~*,
.bx--checkbox:disabled~* {
    opacity: 0.5;
    cursor: not-allowed;
}

.bx--global-light-ui .bx--radio-button:checked+.bx--radio-button__appearance {
    border-color: #97144d;
}

.bx--global-light-ui .bx--radio-button__appearance {
    border: 1px solid #aeaeae;
    background-color: transparent;
    border-radius: 50%;
    height: 1.125rem;
    width: 1.125rem;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bx--global-light-ui .bx--radio-button:checked+.bx--radio-button__appearance:before {
    content: "";
    display: inline-block;
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #97144d;
}

.bx--global-light-ui .bx--checkbox-appearance {
    display: inline-block;
    height: 1rem;
    width: 1rem;
    margin-right: 0;
    background-color: transparent;
    border: 1px solid #97144d;
    flex-shrink: 0;
}

.bx--global-light-ui .bx--checkbox:checked+.bx--checkbox-appearance {
    background-color: #97144d;
    border-color: #97144d;
    margin-right: 0;
}

.bx--global-light-ui .form-item input:read-only:not([type=file]),
.bx--global-light-ui .form-control[disabled],
.bx--global-light-ui .form-control[readonly],
.bx--global-light-ui fieldset[disabled] .form-control,
input.form-control[disabled="disabled"] {
    opacity: 0.5;
    cursor: not-allowed;
}


.bx--global-light-ui .bx--checkbox:focus+.bx--checkbox-appearance,
.bx--global-light-ui .bx--checkbox:focus+.bx--checkbox-label .bx--checkbox-appearance {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #d0d0d0;

}

input[type="radio"].bx--radio-button,
input[type="checkbox"].bx--checkbox {
    position: absolute;
    margin: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    visibility: visible;
    white-space: nowrap;
}

.bx--global-light-ui .form-item input,
.bx--global-light-ui .form-item input:hover,
.bx--global-light-ui .form-item input:focus {
    color: #161616;
    background-color: #ffffff;
    font-size: 0.875rem;
    border-radius: 0;
}

/* Modal */
.ui-dialog .ui-dialog-titlebar {
    background: none;
    border: none;
    text-align: center;
    padding: 15px 10px;
    position: relative;
}

.ui-widget-content .ui-dialog-titlebar .ui-dialog-title {
    color: #97144d;
    font-family: "Lato-Bold", sans-serif !important;
}

.ui-widget-content .ui-dialog-titlebar-close {
    width: auto;
    height: auto;
    background: #fff;
    border: none;
    position: absolute;
    right: 5px;
    top: 17px;
    margin: -10px 0 0 0;
    padding: 1px;
    font-family: Lato-Regular;
    color: #aeaeae;
    font-size: x-large;
    background-color: unset;
    border: none;
    outline: none;
}

.ui-widget-content .ui-dialog-titlebar-close:hover,
.ui-widget-content .ui-dialog-titlebar-close:active,
.ui-widget-content .ui-dialog-titlebar-close:focus {
    background-color: unset;
    border: none;
    outline: none;
}

.ui-widget-content .ui-dialog-titlebar-close:hover {
    color: #97144d;
}

.ui-dialog .ui-dialog-titlebar-close:after {
    content: "\f057";
    font-family: Fontawesome;
}

.ui-dialog .ui-dialog-content {
    border: none;
    background: none;
    overflow: auto;
    padding: 0px 20px 20px;
}

/* Bootstrap Modal */
/* .modal-dialog .modal-content button.close {
    position: absolute;
    top: 0;
    right: 0;
    margin: auto;
    height: fit-content;
    color: inherit;
    padding: 10px 10px;
}

.modal-dialog .modal-content button.close img {
    display: none;
}

.modal-dialog .modal-content button.close::after {
    content: "\f057";
    font-family: Fontawesome;
    font-size: x-large;
    color: #aeaeae;
}

.modal-dialog .modal-content button:hover {
    color: #97144d;
}
*/

.modal-dialog {
    max-width: 800px;
}

.modal-dialog .modal-close,
.modal-dialog .close {
    position: absolute;
    right: 15px;
    top: 15px;
    background-color: unset;
}

.modal-dialog .modal-close i,
.modal-dialog .close i {
    font-size: 24px;
    color: #aeaeae;
}

.modal-dialog .modal-close i:hover,
.modal-dialog .close i:hover {
    color: #97144d;
}

.modal-dialog .modal-content .modal-body {
    position: static;
    padding: 20px;
}

.modal .modal-body .modal-body-title {
    text-align: center;
    font-family: "Lato-Bold", sans-serif;
    color: #97144d;
    font-size: 20px;
}

/* Bootstrap Modal */

/* Reset Modal*/
.ui-draggable.ui-resizable {
    padding: 20px;
}

.ui-draggable.ui-resizable .ui-dialog-titlebar {
    padding: 0px;
}

.ui-draggable.ui-resizable .ui-dialog-titlebar-close {
    right: -15px;
    top: -5px;
}

.ui-draggable.ui-resizable #autologout-confirm {
    padding: 20px 0;
}

.ui-draggable.ui-resizable .ui-dialog-buttonpane {
    border: none;
}

.ui-draggable.ui-resizable .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ui-draggable.ui-resizable .ui-dialog-buttonpane .ui-dialog-buttonset button {
    width: fit-content;
    height: fit-content;
    background-color: #97144d;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    text-align: center;
    vertical-align: middle;
    margin: 0;
}

button:active,
button:hover,
button:focus,
button:focus-visible,
button:active {
    background-color: #97144d;
    box-shadow: none;
    outline: none;
    color: #ffffff;
    border: none;
}

/* Reset Modal */

/* Modal */

/* File Upload */
/* Imported from themes */
.file {
    display: table;
    font-size: 75%;
    font-weight: 700;
    margin: 5px 0;
    width: 100%;
}

.file>span {
    border: 0 !important;
    color: #97144D;
}

/* .file>span:first-child {
    border-left: 1px solid #8d8d8d;
}

.file>span:last-child {
    border-right: 1px solid #8d8d8d;
} */

.file>.tabledrag-changed {
    background: #fdf6dd;
    border-radius: 0;
    color: #161616;
    display: table-cell;
    padding: 0 1em;
    top: 0;
    vertical-align: middle;
    border-left: 1px solid inherit;
}

.file>.tabledrag-changed,
.file>.tabledrag-changed:last-child {
    border: 1px solid #e4b50e;
}

.file-icon {
    display: table-cell;
    font-size: 150%;
    padding: 0.25em 0.5em;
    text-align: center;
    vertical-align: middle;
}

.file-link {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
}

.file-link a,
.file-link a:hover,
.file-link a:focus,
.file-link a:active {
    color: #97144d;
}

.file-link a:hover {
    pointer-events: none;
}

.file-size {
    display: table-cell;
    padding: 0 1em;
    text-align: right;
    white-space: pre;
    vertical-align: middle;
}

.image-widget.row {
    overflow: hidden;
}

/* Imported from themes */

.form-managed-file .file {
    padding-bottom: 15px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 5px;
}

.form-managed-file input.form-control[type="file"] {
    height: 60px;
    /* height: 56px; */
    padding: 14px 14px 14px 20px;
}

/* .form-managed-file input[name="files[esign_csr]"],
.form-managed-file input[name="files[csr]"] {
    height: 60px;
} */

.form-managed-file input[type="file"]::file-selector-button {
    margin-right: 10px;
    border: none;
    background-color: #97144d !important;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: bacckground .2s ease-in-out;
}

.form-managed-file input[type="file"]::file-selector-button:hover,
.form-managed-file input[type="file"]::file-selector-button:focus,
.form-managed-file input[type="file"]::file-selector-button:active {
    background-color: #97144d !important;
}

.form-managed-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.form-managed-file span.file .file-icon {
    padding: 0 5px 0 0;
}

.form-managed-file span.file .file-icon .icon {
    display: block !important;
}

.form-managed-file .btn,
.form-managed-file .btn-danger {
    padding: 5px 10px !important;
    border: none;
    outline: none;
    margin: 10px 0;
    height: auto;
}

.form-managed-file .btn {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0 !important;
}

.form-managed-file .file-size {
    opacity: 0;
}

.form-managed-file .btn:hover {
    border: none;
    outline: none;
}

/*
.bx--global-light-ui button.btn-danger {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
} */

.esign-uat-multi-step-form .input-group span .glyphicon {
    display: none;
}

/* File Upload */

/* Tooltip */
.tooltip-auth i,
.tooltip-auth svg {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 12px;
    color: #97144d;
    border: 1px solid #97144d;
}

.tooltip-auth {
    /* position: relative; */
    position: absolute;
    top: 0px;
    left: 165px;
    display: inline;
    transition: all 0.3s ease-in-out;
    line-height: 1;
    margin-left: 0px;
    z-index: 3;
}

.tooltip-auth .tooltiptext {
    display: none;
    width: 430px;
    background-color: #97144d;
    color: #ffffff;
    border-radius: 10px;
    padding: 9px 8px;
    position: absolute;
    z-index: 2;
    top: 50%;
    font-size: 12px;
    left: 30px;
    box-shadow: 0px 3px 13px 0px rgb(177 174 174 / 15%);
    transform: translateY(-50%);
}

.tooltip-auth:hover .tooltiptext {
    display: block;
}

.tooltip-auth .tooltiptext:before {
    content: " ";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 5.5px 0 6.5px;
    border-color: #97144d transparent transparent transparent;
    top: 50%;
    transform: rotate(90deg) translateX(-50%);
    position: absolute;
    left: -2%;
    z-index: 1;
}

.pre-post-auth .form-required:after {
    color: #da1e28;
    content: "*";
    background-image: none;
    padding-left: 0.25rem;
}

.pre-post-auth,
.bene_api,
.disabled_apis_listing .tooltip-auth {
    position: relative;
}

.bene_api .tooltip-auth {
    left: 210px;
}

/* Tooltip */


@media (max-width: 767px) {
    .journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element {
        width: calc(50% - 5px);
    }

    .api-desc-wrapper {
        flex-direction: column;
        align-items: start;
    }

    .tooltip-auth .tooltiptext {
        top: 28px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 250px;
    }
}

@media (max-width: 576px) {
    .journey-form .checkbox-inline-wrapper .fieldset-wrapper .form-checkboxes .custom-form-element {
        width: 100%;
    }

    .api-desc-btn-wrapper {
        width: 100%;
        flex-direction: column;
    }

    .dropdown-btn-wrapper {
        width: 100%;
        flex-wrap: wrap;
    }

    .tooltip-auth .tooltiptext {
        width: 150px;
    }

    .tooltip-auth .tooltiptext:before {
        content: " ";
        border-width: 9px 5.5px 0 6.5px;
        top: 0%;
        transform: rotate(60deg) translateX(-50%);
        left: 48%;
    }
}
