/* ==========================================================
   GWW BUSINESS CONTACT -> PROFESSIONAL PARITY V1.23.3.77
   Geometry only. Existing tier colors/hover remain authoritative.
   ========================================================== */

/*
 * True Business contact card.
 * Do not alter sticky/hover position.
 */
html body [data-gww77-business-card="1"] {
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: visible !important;
}

/*
 * Kill only the redundant inner full-card frame.
 */
html body [data-gww77-inner-frame="1"] {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/*
 * Website structural full row — same successful pattern as Professional.
 */
html body .gww-cta77-fullrow {
    box-sizing: border-box !important;

    grid-column: 1 / -1 !important;
    flex: 0 0 100% !important;

    display: block !important;
    position: relative !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 10px 0 12px !important;
    padding: 0 !important;

    overflow: visible !important;
}

/*
 * ALL THREE Business side controls use the same border-box geometry.
 * No color/background/transform rules here.
 */
html body [data-gww77-business-cta="1"] {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    min-height: 44px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    flex: 0 0 auto !important;

    position: relative !important;
    left: 0 !important;
    right: auto !important;

    /*
     * IMPORTANT:
     * preserve existing hover transforms from the tier CSS.
     * Do not set transform here.
     */
}

/* Website + map remain one-line at Professional-style height. */
html body
[data-gww77-business-cta="1"][data-gww77-kind="website"],
html body
[data-gww77-business-cta="1"][data-gww77-kind="map"] {
    height: 44px !important;
    max-height: 44px !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/*
 * Business name is longer than "Contact John".
 * Use the same full width but permit wrapping rather than clipping.
 */
html body
[data-gww77-business-cta="1"][data-gww77-kind="contact"] {
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;

    padding-top: 7px !important;
    padding-bottom: 7px !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    line-height: 1.12 !important;
}

/*
 * Ancestors on the Website branch are unlocked only after JS verifies
 * this is the true Business Contact card.
 */
html body .gww77-overflow-unlocked {
    overflow-x: visible !important;
}

/* Remove stale geometry ownership from previous sidebar patches. */
html body
[data-gww77-business-cta="1"].gww-cta39-sidebar-website,
html body
[data-gww77-business-cta="1"].gww-cta40-sidebar-website,
html body
[data-gww77-business-cta="1"].gww-cta41-button,
html body
[data-gww77-business-cta="1"].gww-cta76-button {
    right: auto !important;
}
