/* === LL_FILE_START ===
 * File: business-finder.css
 * Description: Styles autocomplete business search, account resolution, and onboarding save transitions.
 */

.ll-business-finder {
    display: flex;
    min-height: clamp(480px, 56vh, 560px);
    flex-direction: column;
    gap: 22px;
    width: min(100%, 900px);
    margin: 0 auto;
}

.ll-business-finder h2,
.ll-business-finder p {
    margin-top: 0;
}

.ll-business-finder-intro {
    display: grid;
    gap: 8px;
}

.ll-business-finder-intro p,
.ll-business-finder-account-form > p,
.ll-business-finder-selection p,
.ll-business-finder-no-profile p,
.ll-business-finder-check-email p {
    color: #4b5563;
    line-height: 1.55;
}

.ll-business-finder-identity-note {
    font-size: 14px;
}

.ll-business-finder-search-shell {
    position: relative;
    margin-bottom: 18px;
}

.ll-business-finder-search-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 25px;
    line-height: 1;
    pointer-events: none;
}

.ll-business-finder-search-shell > input {
    width: 100%;
    min-height: 58px;
    padding: 12px 54px 12px 52px;
    border: 2px solid #9ca3af;
    border-radius: 14px;
    background: #fff;
    font-size: 17px;
    box-sizing: border-box;
}

.ll-business-finder-search-shell > input:focus {
    border-color: #177ab5;
    outline: 4px solid rgb(23 122 181 / 14%);
}

.ll-business-finder-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.ll-business-finder-clear:hover,
.ll-business-finder-clear:focus-visible {
    background: #eef2f7;
    color: #111827;
}

.ll-business-finder-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 20;
}

.ll-business-finder-google-content {
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgb(15 23 42 / 18%);
}

.ll-business-finder-result {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.ll-business-finder-result:hover,
.ll-business-finder-result:focus-visible {
    background: #f3f8fc;
    outline: 0;
}

.ll-business-finder-result-icon {
    color: #4b5563;
    font-size: 22px;
    line-height: 1.2;
}

.ll-business-finder-result-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ll-business-finder-result-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ll-business-finder-result-copy span {
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ll-business-finder-attribution {
    padding: 8px 12px;
    color: #5e5e5e;
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.ll-business-finder-empty,
.ll-business-finder-selection,
.ll-business-finder-no-profile,
.ll-business-finder-check-email {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

.ll-business-finder-empty {
    box-shadow: 0 16px 34px rgb(15 23 42 / 18%);
}

.ll-business-finder-empty p,
.ll-business-finder-selection p {
    margin: 4px 0 0;
}

.ll-business-finder-selection {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border-color: #8bc49b;
    background: #f4fbf6;
}

.ll-business-finder-selection-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #137333;
    color: #fff;
    font-weight: 800;
}

.ll-business-finder-no-profile {
    margin-top: auto;
    border-color: #93b4df;
    background: #f7fbff;
}

.ll-business-finder-status {
    padding: 10px 12px;
    border-radius: 7px;
    background: #eef5ff;
    color: #1f4e88;
}

.ll-business-finder-status.is-error {
    background: #fff1f1;
    color: #9b1c1c;
}

.ll-business-finder-account-form {
    display: grid;
    gap: 10px;
}

.ll-business-finder-account-form label {
    margin-top: 4px;
    font-weight: 700;
}

.ll-business-finder-account-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #9ca3af;
    border-radius: 7px;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.ll-business-finder-account-form input:focus {
    border-color: #0d6efd;
    outline: 3px solid rgb(13 110 253 / 16%);
}

.ll-business-finder-conditional {
    margin-left: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}


.ll-business-finder-change {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0d6efd;
    cursor: pointer;
    text-decoration: underline;
}

.ll-onboarding-save-transition {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 42px 24px;
    text-align: center;
}

.ll-onboarding-save-transition h2,
.ll-onboarding-save-transition p {
    margin: 0;
}

@media (max-width: 640px) {
    .ll-business-finder {
        min-height: 440px;
    }

    .ll-business-finder-result-copy span,
    .ll-business-finder-result-copy strong {
        white-space: normal;
    }

    .ll-business-finder-search-shell {
        margin-bottom: 14px;
    }
}


/* Explicit confirmation before the selected Google business opens the form. */
.ll-business-finder-confirm .ll-business-finder-selection {
    margin-top: 18px;
}

.ll-business-finder-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

@media (max-width: 680px) {
    .ll-business-finder-confirm-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ll-business-finder-confirm-actions .ll-btn {
        width: 100%;
    }

    .ll-business-finder-confirm-actions .ll-btn--primary {
        order: -1;
    }
}
