/* “Contact person” Elementor widget: photo next to a button with the name. */

.jits-contact {
    --jits-contact-button-width: 175px;
    --jits-contact-size: 3rem;

    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Photo: as high as the button. */
.jits-contact__photo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: var(--jits-contact-size);
    height: var(--jits-contact-size);
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
    color: #9aa3c2;

    img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
    }

    svg {
        width: 70%;
        height: 70%;
    }
}

.jits-contact--light .jits-contact__photo {
    background: #e6e9f5;
}

.jits-contact .jits-button,
.jits-contact__name {
    min-width: min(var(--jits-contact-button-width), 100%);
    min-height: var(--jits-contact-size);
}

/* Name without a link (plain text in a button-like frame). */
.jits-contact__name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.jits-contact--normal .jits-contact__name {
    font-weight: 400;
}

.jits-contact--thin .jits-contact__name {
    font-weight: 300;
}

.jits-contact--dark .jits-contact__name {
    color: #ffffff;
}
