/*
WaterTech Contact Center C0102
Only styles the optional messenger selector added to the existing contact page.
*/

.ccontact-app-group {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    background: #fafbfc;
}

.ccontact-app-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ccontact-app-label {
    display: block;
    color: #11131a;
    font-size: 14px;
    font-weight: 650;
}

.ccontact-app-heading p {
    margin: 4px 0 0;
    color: #7a808b;
    font-size: 12px;
    line-height: 1.5;
}

.ccontact-app-clear {
    flex: 0 0 auto;
    border: 0;
    padding: 2px 0;
    color: #6f7784;
    background: transparent;
    font-size: 11px;
    cursor: pointer;
}

.ccontact-app-clear:hover {
    color: #11131a;
    text-decoration: underline;
}

.ccontact-app-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ccontact-app-option {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    color: #4b5361;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.ccontact-app-option:hover {
    border-color: #aeb6c2;
}

.ccontact-app-option:has(input:checked) {
    border-color: #202630;
    background: #f3f5f7;
    box-shadow: 0 0 0 2px rgba(17, 19, 26, .05);
}

.ccontact-app-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ccontact-app-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #11131a;
    background: #f0f2f5;
}

.ccontact-app-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ccontact-app-name {
    overflow: hidden;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccontact-account-field {
    padding-top: 2px;
}

.ccontact-account-field[hidden],
.ccontact-app-clear[hidden] {
    display: none !important;
}

@media (max-width: 620px) {
    .ccontact-app-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccontact-app-name {
        font-size: 12px;
    }
}
