.contacto-cliente {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    width: 360px;
    max-width: calc(100vw - 80px);
    max-height: 75vh;
    overflow: auto;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 35px #0002;
    font-size: 13px
}

.contacto-cliente h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px
}

.contacto-cliente p {
    line-height: 1.5;
    margin: 0 0 14px
}

.contacto-cliente label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    min-width: 0
}

.contacto-cliente input,
.contacto-cliente select {
    background: white;
    color: #1e293b;
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px;
    font: inherit;
    font-weight: 400
}

.contacto-cliente input:focus-visible,
.contacto-cliente select:focus-visible,
.contacto-cliente button:focus-visible {
    outline: 2px solid var(--fondoBotones, #b91c1c);
    outline-offset: 2px
}

.contacto-telefono {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.contacto-telefono.contacto-telefono-completo {
    grid-template-columns: 82px minmax(0, 1fr);
}

.contacto-telefono-completo select {
    padding-left: 6px;
    padding-right: 4px;
}

.contacto-cliente small {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 8px
}

.contacto-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px
}

.contacto-acciones button {
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    font: inherit;
    cursor: pointer
}

.contacto-acciones [data-contact-later] {
    background: #f1f5f9;
    color: #475569
}

.contacto-acciones [data-contact-save] {
    background: var(--fondoBotones, #b91c1c);
    color: white
}

.contacto-acciones button:disabled {
    opacity: .5;
    cursor: wait
}

.contacto-cliente .contacto-error {
    color: #b91c1c;
    margin-top: 8px;
    font-size: 12px
}

.contacto-numero {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0
}

.contacto-numero input {
    flex: 1;
    min-width: 0
}

.contacto-prefijo {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #1e293b
}
