.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.credit-alert {
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.data8-input {
    padding: 5px;
}

.d8-demo-examples {
    padding: 10px;
}

.input-group {
    position: relative;
    display: table;
    border-collapse: separate;
}

.open>.dropdown-menu {
    display: block;
}

.d8-demo-example {
    color: white;
}

.postcode-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}
  
.postcode-wrapper>.find-button {
    flex: 1;
}

.column-right {
    padding-left: 65px;
}

.column-left {
    padding-right: 65px;
}

.demo-results-table {
    background-color: white;
}

button:disabled {
    background-color: grey !important;
    border-color: grey !important;
}

.PAResultsMap, .PAResultsAddress {
    text-align: center;
}

.demo-input {
    width: 100%;
    max-width: 100%;
    border: 1px solid #69727D;
    background-color: white;
    color: #1f2124;
    vertical-align: middle;
    flex-grow: 1;
}

.out_of_credits {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.out_of_credits_overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.out_of_credits_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 92%);
    max-width: 600px;
    padding: 30px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #1f2124;
}

.out_of_credits_close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #1f2124;
}

.elementor-widget-validatedemo .elementor-widget-container {
    position: relative;
}

/* The locked_out class is applied to the nearest parent container and the popup is
   moved into it, so the overlay fills the whole container. */
.locked_out {
    position: relative;
}

.locked_out > #d8_popup_div {
    position: absolute;
    inset: 0;
    z-index: 9;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    overflow: hidden;
}

.locked_out .out_of_credits_overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.locked_out .out_of_credits_content {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    transform: none;
    transform-origin: center center;
    width: min(600px, 92%);
    max-width: 600px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Space the popup sections so the content isn't cramped. */
.out_of_credits_content > * + * {
    margin-top: 24px;
}

/* Add padding to the heading. */
.out_of_credits_content h1 {
    margin: 0;
    padding-bottom: 15px;
    padding-top: 10px;
    line-height: 1.3;
}

.out_of_credits_content p {
    margin: 0;
    line-height: 1.6;
}

.credits_popup_img_row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.credits_popup_img_row .credits_popup_img {
    width: 100px;
    max-width: 100px;
    height: auto;
    flex: 0 0 auto;
}

.popup_features_row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.popup_features_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.popup_features_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
}

.popup_features_icon img,
.popup_features_icon svg {
    width: 24px;
    height: 24px;
}

.popup_features_caption {
    text-align: left;
}

.popup_buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px
}

.popup_buttons button {
    border: 1px solid transparent;
}

.out_of_credits_close:hover {
    background-color: grey !important;
    border-color: grey !important;
    color: #fff !important;
}

/* Stack the popup CTA buttons full-width when the demo is locked out on mobile. */
@media (max-width: 767px) {
    .locked_out .popup_buttons,
    .out_of_credits .popup_buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .locked_out .popup_buttons button,
    .out_of_credits .popup_buttons button {
        width: 100%;
    }

    /* Let the horizontal image and feature rows scroll instead of overflowing the popup. */
    .locked_out .credits_popup_img_row,
    .locked_out .popup_features_row,
    .out_of_credits .credits_popup_img_row,
    .out_of_credits .popup_features_row {
        justify-content: safe center;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .locked_out .credits_popup_img_row .credits_popup_img,
    .locked_out .popup_features_item,
    .out_of_credits .credits_popup_img_row .credits_popup_img,
    .out_of_credits .popup_features_item {
        scroll-snap-align: start;
    }
}

body.d8-no-scroll {
    overflow: hidden;
}

#AddressCapture_FindButton:disabled {
    cursor: not-allowed;
}